TECHNICAL FIELD

This application relates to communications technologies, and in particular, to a service data transmission method and apparatus.

BACKGROUND

With continuous development of society, vehicles are increasingly popularized. Driving makes people's traveling more convenient, but it poses particular adverse impact on human society. A rapid increase in a quantity of vehicles causes a series of problems such as urban traffic congestion, frequent traffic accidents, and worse environmental quality. Therefore, a sound intelligent transportation system (ITS) is needed from a perspective of a plurality of aspects such as personal safety, traffic efficiency, environmental protection, and economic effects.

Currently, a vehicle may obtain traffic information or receive an information service in time through vehicle to vehicle (V2V) communication, vehicle to infrastructure (V2I) communication, vehicle to pedestrian (V2P) communication, or vehicle to network (V2N) communication. These communication manners may be collectively referred to as “V2X communication”, and X represents anything. In addition, communication between vehicles is implemented through forwarding by a network device.

Specifically, currently main air interface transmission technologies in V2X communication-related technologies include sidelink communication and network-forwarded communication. The sidelink communication means that mobile terminals directly communicate with each other and service data is not forwarded by a network device such as a base station, and is mainly communication over a PC5 air interface currently. The network-forwarded communication means that mobile terminals communicate with each other through forwarding by a network device such as a base station, and is mainly communication over an air interface in existing technologies. In the sidelink communication manner, a mobile terminal mainly operates in two operation modes: a mode 3 and a mode 4. The mode 3 means that a terminal device sends a resource request to a network device, and the network device allocates a transmission resource to the terminal device. However, in the mode 4, a terminal does not need to access a network, and autonomously selects a transmission resource.

In the prior art, in a scenario of a mode 4 transmission resource selection solution, when a terminal needs to send service data, a higher layer requests a sending resource from a physical layer, and the physical layer selects an available resource set based on a parameter obtained from the higher layer and a channel listening status, and reports the available resource set to the higher layer. The higher layer randomly selects a required resource from resources reported by the physical layer and sends the service data.

However, in such a prior-art resource selection method, a transmission delay is relatively great, and service reliability cannot be ensured.

SUMMARY

This application provides a service data transmission method and apparatus, so as to resolve problems in an existing resource selection method that a transmission delay is relatively great, and low-delay and reliability requirements of some low-delay and/or highly-reliable services cannot be satisfied.

A first aspect of this application provides a service data transmission method, including:

obtaining, by a terminal, first configuration information, where the first configuration information includes a first service feature parameter and a first resource parameter corresponding to the first service feature parameter;

obtaining, by the terminal, to-be-sent service data and a second service feature parameter corresponding to the to-be-sent service data;

determining, by the terminal based on the first service feature parameter, the second service feature parameter, and the first resource parameter, a second resource parameter for transmitting the to-be-sent service data;

selecting, by the terminal based on the second resource parameter, an available resource for transmitting the to-be-sent service data; and

transmitting, by the terminal, the to-be-sent service data by using the available resource.

In one embodiment, the method further includes:

obtaining, by the terminal, the to-be-sent service data at a first moment.

In one embodiment, the first resource parameter and the second resource parameter each include a first time parameter or a value range parameter of a first time parameter.

In one embodiment, the value range parameter of the first time parameter includes a lower limit of a value range of the first time parameter and/or an upper limit of a value range of the first time parameter.

In one embodiment, the determining, by the terminal based on the first service feature parameter, the second service feature parameter, and the first resource parameter, a second resource parameter for transmitting the to-be-sent service data includes:

when the second service feature parameter is the first service feature parameter, determining, by the terminal, that the second resource parameter is the first resource parameter.

In one embodiment, when the first resource parameter and the second resource parameter each include the value range parameter of the first time parameter, the selecting, by the terminal based on the second resource parameter, an available resource for transmitting the to-be-sent service data includes:

determining, by the terminal, a value of the first time parameter based on the second resource parameter; and

selecting, by the terminal based on the value of the first time parameter, the available resource for transmitting the to-be-sent service data.

In one embodiment, the selecting, by the terminal based on the second resource parameter, an available resource for transmitting the to-be-sent service data includes:

selecting, by the terminal from a transmission resource pool based on the second resource parameter, the available resource for transmitting the to-be-sent service data.

In one embodiment, the first service feature parameter and the second service feature parameter each include one or more of a proximity service per-packet priority, a destination identifier, and a channel busy ratio.

In one embodiment, the obtaining, by a terminal, first configuration information includes:

reading, by the terminal, the first configuration information prestored in the terminal; or

receiving, by the terminal, the first configuration information sent by a network device.

In one embodiment, the receiving, by the terminal, the first configuration information sent by a network device includes:

receiving, by the terminal, a system message that is broadcast by the network device, where the system message includes the first configuration information; or

receiving, by the terminal, dedicated signaling that is sent by the network device, where the dedicated signaling includes the first configuration information.

In one embodiment, the first resource parameter and the second resource parameter may further include a second time parameter or a value range parameter of a second time parameter.

In one embodiment, when the first resource parameter and the second resource parameter include the value range parameter of the second time parameter, the value range parameter of the second time parameter includes:

a lower limit of a value range of the second time parameter and/or an upper limit of a value range of the second time parameter.

In one embodiment, the first resource parameter and the second resource parameter each include:

the first time parameter and the second time parameter; or

the value range parameter of the first time parameter and the value range parameter of the second time parameter; or

the first time parameter and the value range parameter of the second time parameter; or

the value range parameter of the first time parameter and the second time parameter.

In one embodiment, the value range parameter of the first time parameter includes a lower limit of a value range of the first time parameter and/or an upper limit of a value range of the first time parameter; and

the value range parameter of the second time parameter includes a lower limit of a value range of the second time parameter and/or an upper limit of a value range of the second time parameter.

A second aspect of this application provides a resource selection apparatus for service data transmission, including:

an obtaining module, configured to: obtain first configuration information, where the first configuration information includes a first service feature parameter and a first resource parameter corresponding to the first service feature parameter; and obtain to-be-sent service data and a second service feature parameter corresponding to the to-be-sent service data;

a determining module, configured to determine, based on the first service feature parameter, the second service feature parameter, and the first resource parameter, a second resource parameter for transmitting the to-be-sent service data;

a selection module, configured to select, based on the second resource parameter, an available resource for transmitting the to-be-sent service data; and

a transmission module, configured to transmit the to-be-sent service data by using the available resource.

In one embodiment, the obtaining module is further configured to obtain the to-be-sent service data at a first moment.

In one embodiment, the first resource parameter and the second resource parameter each include a first time parameter or a value range parameter of a first time parameter.

In one embodiment, the value range parameter of the first time parameter includes a lower limit of a value range of the first time parameter and/or an upper limit of a value range of the first time parameter.

In one embodiment, the determining module is specifically configured to: when the second service feature parameter is the first service feature parameter, determine that the second resource parameter is the first resource parameter.

In one embodiment, the selection module is specifically configured to: when the first resource parameter and the second resource parameter each include the value range parameter of the first time parameter, determine a value of the first time parameter based on the second resource parameter, and select, based on the value of the first time parameter, the available resource for transmitting the to-be-sent service data.

In one embodiment, the selection module is specifically configured to: select, from a transmission resource pool based on the second resource parameter, the available resource for transmitting the to-be-sent service data.

In one embodiment, the first service feature parameter and the second service feature parameter each include one or more of a proximity service per-packet priority, a destination identifier, and a channel busy ratio.

In one embodiment, the obtaining module is specifically configured to read the first configuration information prestored in the terminal, or receive the first configuration information sent by a network device.

In one embodiment, the obtaining module receives a system message that is broadcast by the network device, where the system message includes the first configuration information; or receives dedicated signaling that is sent by a network device, where the dedicated signaling includes the first configuration information.

In one embodiment, the first resource parameter and the second resource parameter may further include a second time parameter or a value range parameter of a second time parameter.

When the first resource parameter and the second resource parameter include the value range parameter of the second time parameter, the value range parameter of the second time parameter includes a lower limit of a value range of the second time parameter and/or an upper limit of a value range of the second time parameter.

In one embodiment, the first resource parameter and the second resource parameter each include:

the first time parameter and the second time parameter; or

the value range parameter of the first time parameter and the value range parameter of the second time parameter; or

the first time parameter and the value range parameter of the second time parameter; or

the value range parameter of the first time parameter and the second time parameter.

The value range parameter of the first time parameter includes a lower limit of a value range of the first time parameter and/or an upper limit of a value range of the first time parameter, and the value range parameter of the second time parameter includes a lower limit of a value range of the second time parameter and/or an upper limit of a value range of the second time parameter.

A third aspect of this application provides a resource selection apparatus for service data transmission, where the apparatus includes one or more processors and a memory, the memory is configured to store a program, and the one or more processors invokes the program stored in the memory, to perform the method provided in the first aspect of this application.

A fourth aspect of this application provides a resource selection apparatus for service data transmission, including at least one processing element (or chip) configured to perform the foregoing method in the first aspect.

A fifth aspect of this application provides a program, and when executed by one or more processors, the program is configured to perform the foregoing method in the first aspect.

A sixth aspect of this application provides a program product, such as a computer readable storage medium, and the program product includes the program in the seventeenth aspect.

In the service data transmission method and apparatus provided in this application, the terminal obtains the first configuration information, and the first configuration information includes the first service feature parameter and the first resource parameter corresponding to the first service feature parameter. Then, the terminal obtains the to-be-sent service data and the second service feature parameter corresponding to the to-be-sent service data, and determines, based on the first service feature parameter, the second service feature parameter, and the first resource parameter, the second resource parameter required for transmitting the to-be-sent service data. The terminal selects, based on the second resource parameter, the available resource for transmitting the to-be-sent service data, and transmits the to-be-sent service data by using the available resource. In this way, the service feature parameter of the service data is considered while the available resource is determined, to determine the resource parameter based on the service feature parameter, thereby better satisfying a delay requirement of a low-delay service.

