CROSS-REFERENCE TO RELATED APPLICATION

The present application is a U.S. National Phase Entry of International PCT Application No. PCT/CN2018/075475 filed on Feb. 6, 2018, which claims priority to PCT Patent Application No. PCT/CN2017/104018, filed with the Chinese Patent Office on Sep. 28, 2017 and entitled “RESOURCE ALLOCATION METHOD, NETWORK DEVICE, AND COMMUNICATIONS DEVICE”, which is incorporated herein by reference in its entirety.

BACKGROUND

Technical Field

This application relates to the communications field, and in particular, to a resource allocation method, a network device, and a communications device.

Related Art

An Internet of Vehicles system is a sidelink (Sidelink, SL) transmission technology based on Long Term Evolution (long term evolution, LTE) device-to-device communication (device-to-device communication, D2D). Different from a manner in a conventional LTE system in which communication data is received or sent by using a base station, the Internet of Vehicles system uses a manner of direct communication between terminal devices, and therefore has higher spectrum efficiency and lower transmission latency.

In a version Rel-14 of the 3rd Generation Partnership Project (3rd Generation Partnership Project, 3GPP), an Internet of Vehicles technology (V2X) is standardized, and two transmission modes, a mode 3 and a mode 4, are defined. In the mode 3, a transmission resource of a vehicle terminal is allocated by a base station. The vehicle terminal sends data on a sidelink according to the resource allocated by the base station, and the base station may allocate, to the terminal, a resource for a single transmission or a resource for semi-static transmission. In the mode 4, a vehicle terminal uses a sensing-based (sensing) and reservation-based (reservation) transmission manner. The vehicle terminal obtains an available transmission resource set in a resource pool through sensing, and then randomly selects a resource from the set to transmit data. Because services in the Internet of Vehicles system have a periodicity feature, the vehicle terminal generally uses a semi-static transmission manner. That is, after selecting a transmission resource, the terminal continually uses the resource in a plurality of transmission cycles, thereby reducing resource re-selection and resource conflict probabilities.

In addition, a terminal device may transmit data through carrier aggregation (Carrier Aggregation, CA). To prevent the terminal device from abusing a carrier resource, it is necessary to properly restrict a carrier selection action of the terminal device. However, for the mode 3, a network device still cannot implement such restriction.

SUMMARY

This application provides a resource allocation method, a network device, and a communications device.

According to a first aspect, a resource allocation method is provided. The method includes: determining a quality of service (Quality of Service, QoS) attribute of a first terminal device; and allocating a transmission resource to the first terminal device according to the QoS attribute, where the transmission resource is used by the first terminal device to send data to a second terminal device.

With reference to the first aspect, in an implementation of the first aspect, the QoS attribute includes a data transmission rate and/or a reliability requirement of the first terminal device.

It should be understood that, the data transmission rate and/or the reliability requirement of the first terminal device may be specifically a data transmission rate and/or a reliability requirement of a target service of the first terminal device, where the target service is a service transmitted between the first terminal device and the second terminal device by using the transmission resource.

With reference to the first aspect and the foregoing implementation of the first aspect, in another implementation of the first aspect, the determining a QoS attribute of a first terminal device includes: receiving QoS attribute information sent by the first terminal device or a core-network network element; and determining the QoS attribute of the first terminal device according to the QoS attribute information.

With reference to the first aspect and the foregoing implementations of the first aspect, in another implementation of the first aspect, the QoS attribute information includes the data transmission rate and/or a packet loss rate of the first terminal device.

It should be understood that, the QoS attribute information may specifically include the data transmission rate and/or a packet loss rate of the target service.

With reference to the first aspect and the foregoing implementations of the first aspect, in another implementation of the first aspect, the QoS attribute information includes a target index; and the determining the QoS attribute of the first terminal device according to the QoS attribute information includes: determining, according to a correspondence between different QoS attributes and different indexes, that a QoS attribute corresponding to the target index is the QoS attribute of the first terminal device.

With reference to the first aspect and the foregoing implementations of the first aspect, in another implementation of the first aspect, the correspondence between different QoS attributes and different indexes is a correspondence between different data transmission rates and reliability requirements and different indexes; and the determining, according to a correspondence between different QoS attributes and different indexes, that a QoS attribute corresponding to the target index is the QoS attribute of the first terminal device includes: determining, according to the correspondence between different data transmission rates and reliability requirements and different indexes, that a data transmission rate and a reliability requirement corresponding to the target index is the QoS attribute of the first terminal device.

With reference to the first aspect and the foregoing implementations of the first aspect, in another implementation of the first aspect, the QoS attribute information includes at least one of a maximum value, a minimum value, and a value range, where the maximum value is a maximum value of the data transmission rate and/or the reliability requirement of the first terminal device, the minimum value is a minimum value of the data transmission rate and/or the reliability requirement of the first terminal device, and the value range is a value range of the data transmission rate and/or a value range of the reliability requirement of the first terminal device.

With reference to the first aspect and the foregoing implementations of the first aspect, in another implementation of the first aspect, the QoS attribute information includes at least one of a maximum value, a minimum value, and a value range, where the maximum value is a maximum value of a data transmission rate and/or a reliability requirement of a target service, the minimum value is a minimum value of the data transmission rate and/or the reliability requirement of the target service, the value range is a value range of the data transmission rate and/or a value range of the reliability requirement of the target service, and the target service is a service transmitted between the first terminal device and the second terminal device by using the transmission resource.

With reference to the first aspect and the foregoing implementations of the first aspect, in another implementation of the first aspect, before the receiving QoS attribute information sent by the first terminal device or a core-network network element, the method further includes: sending a preset value to the first terminal device or the core-network network element, where the QoS attribute information is used to indicate a magnitude relationship between the data transmission rate and/or the reliability requirement of the first terminal device and the preset value, and the magnitude relationship is one of the following relationships: the data transmission rate and/or the reliability requirement of the first terminal device is greater than the preset value, the data transmission rate and/or the reliability requirement of the first terminal device is less than the preset value, the data transmission rate and/or the reliability requirement of the first terminal device is greater than or equal to the preset value, and the data transmission rate and/or the reliability requirement of the first terminal device is less than or equal to the preset value.

With reference to the first aspect and the foregoing implementations of the first aspect, in another implementation of the first aspect, before the receiving QoS attribute information sent by the first terminal device or a core-network network element, the method further includes: sending a preset value to the first terminal device or the core-network network element, where the QoS attribute information is used to indicate a magnitude relationship between a data transmission rate and/or a reliability requirement of a target service and the preset value; the magnitude relationship is one of the following relationships: the data transmission rate and/or the reliability requirement of the target service is greater than the preset value, the data transmission rate and/or the reliability requirement of the target service is less than the preset value, the data transmission rate and/or the reliability requirement of the target service is greater than or equal to the preset value, and the data transmission rate and/or the reliability requirement of the target service is less than or equal to the preset value; and the target service is a service transmitted between the first terminal device and the second terminal device by using the transmission resource.

It should be understood that, the reliability requirement in this implementation of this application may be specifically a packet loss rate.

According to a second aspect, a resource allocation method is provided. The method includes: determining, by a core-network network element, QoS attribute information, where the QoS attribute information is used to indicate a QoS attribute of a first terminal device; and sending, by the core-network network element, the QoS attribute information to a network device, where the QoS attribute information is used by the network device to allocate a transmission resource to the first terminal device, and the transmission resource is used by the first terminal device to send data to a second terminal device.

With reference to the second aspect, in an implementation of the second aspect, the QoS attribute includes a data transmission rate and/or a reliability requirement of the first terminal device.

It should be understood that, the data transmission rate and/or the reliability requirement of the first terminal device may be specifically a data transmission rate and/or a reliability requirement of a target service of the first terminal device, where the target service is a service transmitted between the first terminal device and the second terminal device by using the transmission resource.

With reference to the second aspect and the foregoing implementations of the second aspect, in another implementation of the second aspect, the QoS attribute information includes the data transmission rate and/or a packet loss rate of the first terminal device.

It should be understood that, the QoS attribute information may specifically include the data transmission rate and/or the reliability requirement of the target service.

With reference to the second aspect and the foregoing implementations of the second aspect, in another implementation of the second aspect, the QoS attribute information includes a target index, and the target index corresponds to the QoS attribute of the first terminal device.

With reference to the second aspect and the foregoing implementations of the second aspect, in another implementation of the second aspect, the method further includes: sending a to-be-processed service to the first terminal device, so that the first terminal device uses the transmission resource to process the to-be-processed service.

With reference to the second aspect and the foregoing implementations of the second aspect, in another implementation of the second aspect, the QoS attribute information includes at least one of a maximum value, a minimum value, and a value range, where the maximum value is a maximum value of the data transmission rate and/or the reliability requirement of the first terminal device, the minimum value is a minimum value of the data transmission rate and/or the reliability requirement of the first terminal device, and the value range is a value range of the data transmission rate and/or a value range of the reliability requirement of the first terminal device.

With reference to the second aspect and the foregoing implementations of the second aspect, in another implementation of the second aspect, the QoS attribute information includes at least one of a maximum value, a minimum value, and a value range, where the maximum value is a maximum value of a data transmission rate and/or a reliability requirement of a target service, the minimum value is a minimum value of the data transmission rate and/or the reliability requirement of the target service, the value range is a value range of the data transmission rate and/or a value range of the reliability requirement of the target service, and the target service is a service transmitted between the first terminal device and the second terminal device by using the transmission resource.

With reference to the second aspect and the foregoing implementations of the second aspect, in another implementation of the second aspect, before the sending, by the core-network network element, the QoS attribute information to a network device, the method further includes: receiving, by the core-network network element, a preset value sent by the network device, where the QoS attribute information is used to indicate a magnitude relationship between the data transmission rate and/or the reliability requirement of the first terminal device and the preset value, and the magnitude relationship is one of the following relationships: the data transmission rate and/or the reliability requirement of the first terminal device is greater than the preset value, the data transmission rate and/or the reliability requirement of the first terminal device is less than the preset value, the data transmission rate and/or the reliability requirement of the first terminal device is greater than or equal to the preset value, and the data transmission rate and/or the reliability requirement of the first terminal device is less than or equal to the preset value.

With reference to the second aspect and the foregoing implementations of the second aspect, in another implementation of the second aspect, before the sending, by the core-network network element, the QoS attribute information to a network device, the method further includes: receiving, by the core-network network element, a preset value sent by the network device, where the QoS attribute information is used to indicate a magnitude relationship between a data transmission rate and/or a reliability requirement of a target service and the preset value; the magnitude relationship is one of the following relationships: the data transmission rate and/or the reliability requirement of the target service is greater than the preset value, the data transmission rate and/or the reliability requirement of the target service is less than the preset value, the data transmission rate and/or the reliability requirement of the target service is greater than or equal to the preset value, and the data transmission rate and/or the reliability requirement of the target service is less than or equal to the preset value; and the target service is a service transmitted between the first terminal device and the second terminal device by using the transmission resource.

It should be understood that, the reliability requirement in this implementation of this application may be specifically a packet loss rate.

According to a third aspect, a resource allocation method is provided. The method includes: determining, by a first terminal device, QoS attribute information, where the QoS attribute information is used to indicate a QoS attribute of the first terminal device; sending, by the first terminal device, the QoS attribute information to a network device; receiving, by the first terminal device, a transmission resource determined by the network device according to the QoS attribute information; and using, by the first terminal device, the transmission resource to send data to a second terminal device.

With reference to the third aspect, in an implementation of the third aspect, the QoS attribute includes a data transmission rate and/or a reliability requirement of the first terminal device.

It should be understood that, the data transmission rate and/or the reliability requirement of the first terminal device may be specifically a data transmission rate and/or a reliability requirement of a target service of the first terminal device, where the target service is a service transmitted between the first terminal device and the second terminal device by using the transmission resource.

With reference to the third aspect and the foregoing implementation of the third aspect, in another implementation of the third aspect, the QoS attribute information includes the data transmission rate and/or a packet loss rate of the first terminal device.

It should be understood that, the QoS attribute information may specifically include the data transmission rate and/or the reliability requirement of the target service.

With reference to the third aspect and the foregoing implementations of the third aspect, in another implementation of the third aspect, the QoS attribute information includes a target index, and the target index corresponds to the QoS attribute of the first terminal device.

With reference to the third aspect and the foregoing implementations of the third aspect, in another implementation of the third aspect, the QoS attribute information includes at least one of a maximum value, a minimum value, and a value range, where the maximum value is a maximum value of the data transmission rate and/or the reliability requirement of the first terminal device, the minimum value is a minimum value of the data transmission rate and/or the reliability requirement of the first terminal device, and the value range is a value range of the data transmission rate and/or a value range of the reliability requirement of the first terminal device.

With reference to the third aspect and the foregoing implementations of the third aspect, in another implementation of the third aspect, the QoS attribute information includes at least one of a maximum value, a minimum value, and a value range, where the maximum value is a maximum value of a data transmission rate and/or a reliability requirement of a target service, the minimum value is a minimum value of the data transmission rate and/or the reliability requirement of the target service, the value range is a value range of the data transmission rate and/or a value range of the reliability requirement of the target service, and the target service is a service transmitted between the first terminal device and the second terminal device by using the transmission resource.

With reference to the third aspect and the foregoing implementations of the third aspect, in another implementation of the third aspect, before the sending, by the first terminal device, the QoS attribute information to a network device, the method further includes: receiving, by the first terminal device, a preset value sent by the network device, where the QoS attribute information is used to indicate a magnitude relationship between the data transmission rate and/or the reliability requirement of the first terminal device and the preset value, and the magnitude relationship is one of the following relationships: the data transmission rate and/or the reliability requirement of the first terminal device is greater than the preset value, the data transmission rate and/or the reliability requirement of the first terminal device is less than the preset value, the data transmission rate and/or the reliability requirement of the first terminal device is greater than or equal to the preset value, and the data transmission rate and/or the reliability requirement of the first terminal device is less than or equal to the preset value.

With reference to the third aspect and the foregoing implementations of the third aspect, in another implementation of the third aspect, before the sending, by the first terminal device, the QoS attribute information to a network device, the method further includes: receiving, by the first terminal device, a preset value sent by the network device, where the QoS attribute information is used to indicate a magnitude relationship between a data transmission rate and/or a reliability requirement of a target service and the preset value; the magnitude relationship is one of the following relationships: the data transmission rate and/or the reliability requirement of the target service is greater than the preset value, the data transmission rate and/or the reliability requirement of the target service is less than the preset value, the data transmission rate and/or the reliability requirement of the target service is greater than or equal to the preset value, and the data transmission rate and/or the reliability requirement of the target service is less than or equal to the preset value; and the target service is a service transmitted between the first terminal device and the second terminal device by using the transmission resource.

It should be understood that, the reliability requirement in this implementation of this application may be specifically a packet loss rate.

According to a fourth aspect, a network device is provided. The network device is configured to perform the method according to the first aspect or any possible implementation of the first aspect. Specifically, the network device includes a unit configured to perform the method according to the first aspect or any possible implementation of the first aspect.

According to a fifth aspect, a core-network network element is provided. The core-network network element is configured to perform the method according to the second aspect or any possible implementation of the second aspect. Specifically, the core-network network element includes a unit configured to perform the method according to the second aspect or any possible implementation of the second aspect.

According to a sixth aspect, a terminal device is provided. The terminal device is configured to perform the method according to the third aspect or any possible implementation of the third aspect. Specifically, the terminal device includes a unit configured to perform the method according to the third aspect or any possible implementation of the third aspect.

According to a seventh aspect, a network device is provided. The network device includes a memory and a processor. The memory is configured to store an instruction, and the processor is configured to execute the instruction stored in the memory. When the processor executes the instruction stored in the memory, the execution enables the processor to perform the method according to the first aspect or any possible implementation of the first aspect.

According to an eighth aspect, a core-network network element is provided. The core-network network element includes a memory and a processor. The memory is configured to store an instruction, and the processor is configured to execute the instruction stored in the memory. When the processor executes the instruction stored in the memory, the execution enables the processor to perform the method according to the second aspect or any possible implementation of the second aspect.

According to a ninth aspect, a terminal device is provided. The terminal device includes a memory and a processor. The memory is configured to store an instruction, and the processor is configured to execute the instruction stored in the memory. When the processor executes the instruction stored in the memory, the execution enables the processor to perform the method according to the third aspect or any possible implementation of the third aspect.

According to a tenth aspect, a computer-readable medium is provided. The computer-readable medium is configured to store a computer program. The computer program includes an instruction used to perform the method according to the first aspect or any possible implementation of the first aspect.

According to an eleventh aspect, a computer-readable medium is provided. The computer-readable medium is configured to store a computer program. The computer program includes an instruction used to perform the method according to the second aspect or any possible implementation of the second aspect.

According to a twelfth aspect, a computer-readable medium is provided. The computer-readable medium is configured to store a computer program. The computer program includes an instruction used to perform the method according to the third aspect or any possible implementation of the third aspect.

According to a thirteenth aspect, a computer program product including an instruction is provided. When a computer runs the instruction in the computer program product, the computer performs the resource allocation method according to the first aspect or any possible implementation of the first aspect. Specifically, the computer program product may be run on the network device according to the fourth aspect.

According to a fourteenth aspect, a computer program product including an instruction is provided. When a computer runs the instruction in the computer program product, the computer performs the resource allocation method according to the second aspect or any possible implementation of the second aspect. Specifically, the computer program product may be run on the core-network network element according to the fifth aspect.

According to a fifteenth aspect, a computer program product including an instruction is provided. When a computer runs the instruction in the computer program product, the computer performs the resource allocation method according to the third aspect or any possible implementation of the third aspect. Specifically, the computer program product may be run on the terminal device according to the sixth aspect.

