Patent Description:
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-<NUM> 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 <NUM> and a mode <NUM>, are defined. In the mode <NUM>, 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 <NUM>, 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 <NUM>, a network device still cannot implement such restriction.

The document <CIT> discloses a D2D resource allocation method, and data transmission method and device. The D2D resource allocation method comprises: determining a D2D resource configuration corresponding to the quality of service (QoS) level of a D2D service; and transmitting to a user equipment (UE) the information of the D2D resource configuration corresponding to the service quality level of the D2D service. The D2D data transmission method comprises: according to the received information of the D2D resource configuration corresponding to the service quality level of the D2D service, selecting a transmission resource for the D2D service to be transmitted; and transmitting the data of the D2D service over the selected transmission resource.

The document <CIT> discloses that a method for a device-to-device user dynamically multiplexing resources of a cellular user, which is applied to a base station side includes: when determining that the device-to-device user interferes with other cellular users within a service scope, allocating resources that meet quality of service requirements of the device-to-device user and do not cause interference to other cellular users to the device-to-device user, and instructing the device-to-device user to use the resources newly allocated.

The document <CIT> discloses technology for a vehicle-to-anything (V2X) a user equipment (UE) to perform V2X communication within a wireless communication network. The V2X UE can process, by the V2X UE, for transmission to a V2X function a V2X service registration request having one or more parameters to confirm and authorize the V2X service registration request. The V2X UE can process a V2X service registration authorization response and V2X operation parameters, received by from the V2X function, for permitting the V2X UE to operate in one of a plurality of V2X operation modes. The V2X UE can operate in the one of the plurality of V2X operation modes using the V2X operation parameters.

A resource allocation method according to claim <NUM>, a resource allocation method according to claim <NUM>, and a network device according to claim <NUM> and a communication device according to claim <NUM> are provided. Further improvements and implementations are provided in the dependent claims.

The following describes technical solutions of implementations of this disclosure with reference to the accompanying drawings.

The technical solutions of the implementations of this disclosure may be applied to various communications systems, such as a Global System for Mobile Communications (Global System for Mobile communications, GSM) system, a Code Division Multiple Access (code division multiple access, CDMA) system, a Wideband Code Division Multiple Access (wideband code division multiple access, WCDMA) system, a general packet radio service (general packet radio service, GPRS) system, an LTE system, an LTE frequency division duplex (frequency division duplex, FDD) system, an LTE time division duplex (Time Division Duplex, TDD) system, a Universal Mobile Telecommunications System (universal mobile telecommunication system, UMTS), a Worldwide Interoperability for Microwave Access (worldwide interoperability for microwave access, WiMAX) communications system, a future 5th generation (5th generation, <NUM>) system, or a new radio (new radio, NR) system.

In the implementations of this disclosure, a terminal device may be user equipment, an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile console, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communications device, a user agent, or a user apparatus. The terminal device may alternatively be a cellular phone, a cordless phone, a Session Initiation Protocol (session initiation protocol, SIP) phone, a wireless local loop (wireless local loop, WLL) station, a personal digital assistant (personal digital assistant, PDA), a handheld device having a wireless communication function, a computing device, another processing device connected to a wireless modem, an in-vehicle device, a wearable device, a terminal device in a future <NUM> network, a terminal device in a future evolved public land mobile network (public land mobile network, PLMN), or the like. This is not limited in the implementations of this disclosure.

In the implementations of this disclosure, a network device may be a device configured to communicate with the terminal device. The network device may be a base transceiver station (base transceiver station, BTS) in a GSM system or in CDMA, a NodeB (NodeB, NB) in a WCDMA system, an evolved NodeB (evolvedNodeB, eNB or eNodeB) in an LTE system, or a wireless controller in a cloud radio access network (cloud radio access network, CRAN) scenario. Alternatively, the network device may be a relay station, an access point, an in-vehicle device, a wearable device, a network device in a future <NUM> network, a network device in a future evolved PLMN network. This is not limited in the implementations of this disclosure.

<FIG> is a schematic flowchart of a resource allocation method <NUM> according to an implementation of this disclosure. The method <NUM> may be performed by a network device. As shown in <FIG>, the method <NUM> includes the following steps: S110. Determine a QoS attribute of a first terminal device. Allocate 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.

In this implementation of this disclosure, the determining, by the network device, a QoS attribute of a first terminal device may include: receiving, by the network device, QoS attribute information sent by the first terminal device or a core-network network element; and indicating the QoS attribute of the first terminal device by using the QoS attribute information.

It should be understood that, the QoS attribute of the first terminal device may include a data transmission rate and/or a reliability requirement of the first terminal device, or may further include another parameter representing the QoS attribute of the first terminal device. This is not limited in this implementation of this disclosure.

Specifically, the QoS attribute of the first terminal device may include a data transmission rate and/or a reliability requirement of a target service, or may further include another parameter representing a QoS attribute of the target service. The target service is a service between the first terminal device and the second terminal device. The first terminal device may transmit the target service with the second terminal device by using the transmission resource configured by the network device.

Correspondingly, the QoS attribute information may include information related to the data transmission rate of the first terminal device or the target service between the first terminal device and the second terminal device, and/or may include information related to the reliability requirement, or may further include information representing another QoS attribute. For ease of description, that the QoS attribute information includes the information related to the data transmission rate and/or the reliability requirement is used as an example for description below.

Optionally, in an implementation, the QoS attribute information may include a specific value representing the data transmission rate and/or the reliability requirement. For example, the QoS attribute information may include a specific value representing the data transmission rate. For example, any three data transmission rates may be randomly defined as X/Y/Z (Mbit/s) respectively. The QoS attribute information includes any one of the values of the three data transmission rates.

For another example, the QoS attribute information may alternatively include a specific value representing the reliability requirement. For example, the reliability requirement is represented by using a packet loss rate, and any three packet loss rates (error rates) may be randomly defined as <NUM>^-A/<NUM>^-B/<NUM>^-C respectively. The QoS attribute information may include any one of the three values.

Optionally, in an implementation, the QoS attribute information may alternatively include a maximum value and/or a minimum value of the data transmission rate and/or the reliability requirement of the first terminal device or the target service transmitted between the first terminal device and the second terminal device. Specifically, the QoS attribute information may include a maximum value, and the maximum value is a maximum value of the data transmission rate and/or the reliability requirement. That is, the network device may determine, according to the QoS attribute information, that the data transmission rate and/or the reliability requirement of the first terminal device or the target service in the corresponding QoS attribute does not exceed the maximum value.

Alternatively, the QoS attribute information may include a minimum value, and the minimum value is a minimum value of the data transmission rate and/or the reliability requirement. That is, the network device may determine, according to the QoS attribute information, that the data transmission rate and/or the reliability requirement of the first terminal device or the target service in the corresponding QoS attribute is not less than the minimum value.

Alternatively, the QoS attribute information may include a value range, and the value range corresponds to a maximum value and a minimum value. In other words, the QoS attribute information may include a range. The data transmission rate and/or the reliability requirement of the first terminal device or the target service does not exceed an upper limit of the value range, and the data transmission rate and/or the reliability requirement of the first terminal device or the target service is not less than a lower limit of the value range. That is, the network device may determine, according to the QoS attribute information, that a range of the data transmission rate and/or the reliability requirement of the first terminal device or the target service in the corresponding QoS attribute falls within the value range.

In an implementation, before the receiving, by the network device, QoS attribute information sent by the first terminal device or a core-network network element, the method <NUM> further includes: sending, by the network device, a preset value to the first terminal device or the core-network network element, so that the first terminal device or the core-network network element receiving the preset value sends the QoS attribute information according to the preset value. This implementation is not part of the claimed invention.

The QoS attribute information may include a magnitude relationship between the data transmission rate and/or the reliability requirement of the target service or the first terminal device and the preset value, and the magnitude relationship may be any one of the following four relationships: the data transmission rate and/or the reliability requirement of the target service or the first terminal device is greater than the preset value, the data transmission rate and/or the reliability requirement of the target service or the first terminal device is less than the preset value, the data transmission rate and/or the reliability requirement of the target service or 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 target service or the first terminal device is less than or equal to the preset value. This implementation is not part of the claimed invention.

Optionally, in an implementation, the QoS attribute may alternatively be indicated by using an index. Specifically, a mapping relationship between a plurality of QoS attributes and different indexes may be established. For example, a mapping relationship between different data transmission rates and reliability requirements and different indexes is established. In this case, the QoS attribute information may include a target index, and the network device determines, according to the mapping relationship, that a QoS attribute corresponding to the target index is the QoS attribute of the first terminal device.

Any three data transmission rates are defined as X/Y/Z (Mbit/s) respectively. Likewise, the reliability requirement may be quantized by using a packet loss rate, and three packet loss rates are defined as <NUM>^-A/<NUM>^-B/<NUM>^-C respectively. In this case, there are a total of <NUM>*<NUM>=<NUM> combinations for the three data transmission rates and the three packet loss rates, and an index may be defined for each of the nine combinations, to establish a mapping relationship between the nine combinations and the nine different indexes. The network device determines that the QoS attribute information includes the target index, where the target index is any one of the nine indexes. In this case, a combination that is of a data transmission rate and a packet loss rate and that corresponds to the target index is determined as the QoS attribute of the first terminal device.

For another example, for the nine combinations of the three data transmission rates and the three packet loss rates, alternatively, after some of the nine combinations are excluded, an index is defined for each of remaining combinations, to establish a mapping relationship between the remaining combinations and the different indexes. This is not limited in this implementation of this disclosure.

In this implementation of this disclosure, the network device determines the QoS attribute of the first terminal device, and allocates the transmission resource to the first terminal device according to the QoS attribute, where the transmission resource includes a carrier resource, and one or more component carriers may be allocated to the first terminal device, so that the first terminal device can use the transmission resource to send data to the second terminal device. The second terminal device may be another terminal device than the first terminal device. The first terminal device may use the transmission resource to send data to a plurality of terminal devices, and the second terminal device may be any one of the plurality of terminal devices.

Therefore, according to the resource allocation method in this implementation of this disclosure, the network device can determine a QoS attribute of a terminal device, and allocate a transmission resource, for example, a carrier resource, to the terminal device according to the QoS attribute, so that the terminal device uses the transmission resource to send data to another terminal device, thereby improving resource utilization.

<FIG> is a schematic flowchart of a resource allocation method <NUM> according to an implementation of this disclosure. The method <NUM> may be performed by a communications device. Specifically, for example, the communications device may be a core-network network element, for example, a V2X function (function) network element, or the communications device may be a terminal device. As shown in <FIG>, the method <NUM> includes the following steps: S210. Determine QoS attribute information, where the QoS attribute information is used to indicate a QoS attribute of a first terminal device. Send 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.

The QoS attribute includes a data transmission rate and/or a reliability requirement of the first terminal device.

The QoS attribute information includes the data transmission rate and/or a packet loss rate of the first terminal device.

Optionally, the QoS attribute information includes a target index, and the target index corresponds to the QoS attribute of the first terminal device.

Optionally, the method is performed by the core-network network element. The method <NUM> further includes: sending a to-be-processed service to the first terminal device, so that the first terminal device uses the transmission resource to send the to-be-processed service to the second terminal device.

Optionally, the method is performed by the first terminal device. The method <NUM> further includes: receiving the transmission resource sent by the network device, and using the transmission resource to send data to the second terminal device.

Optionally, 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.

Optionally, 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.

Before the sending the QoS attribute information to a network device, the method further includes: receiving a preset value sent by the network device. 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. This implementation is not part of the claimed invention.

Before the sending the QoS attribute information to a network device, the method further includes: receiving a preset value sent by the network device. 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. The target service is a service transmitted between the first terminal device and the second terminal device by using the transmission resource. This implementation is not part of the claimed invention.

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

It should be understood that, the core-network network element in the method <NUM> may correspond to the core-network network element in the method <NUM>, the first terminal device in the method <NUM> may correspond to the first terminal device in the method <NUM>, and the network device in the method <NUM> may correspond to the network device in the method <NUM>.

Therefore, according to the resource allocation method in this implementation of this disclosure, QoS attribute information including a QoS attribute of a terminal device is sent to the network device. In this way, the network device can determine the QoS attribute of the terminal device, and allocate a transmission resource, for example, a carrier resource, to the terminal device according to the QoS attribute, so that the terminal device uses the transmission resource to send data to another terminal device, thereby improving resource utilization.

It should be understood that sequence numbers of the foregoing processes do not mean execution sequences in various implementations of this disclosure. The execution sequences of the processes should be determined according to functions and internal logic of the processes, and should not be construed as any limitation on the implementation processes of the implementations of this disclosure.

The foregoing describes the resource allocation method according to the implementations of this disclosure in detail with reference to <FIG>. The following describes a network device and a communications device according to the implementations of this disclosure in detail with reference to <FIG>.

As shown in <FIG>, a network device <NUM> according to an implementation of this disclosure includes a determining unit <NUM> and a processing unit <NUM>, and optionally, may further include a receiving unit <NUM> and a sending unit <NUM>.

Specifically, the determining unit <NUM> is configured to determine a QoS attribute of a first terminal device. The processing unit <NUM> is configured to allocate 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.

The receiving unit <NUM> is configured to receive QoS attribute information sent by the first terminal device or a core-network network element. The determining unit <NUM> is specifically configured to determine the QoS attribute of the first terminal device according to the QoS attribute information.

Optionally, the QoS attribute information includes a target index. The determining unit <NUM> is specifically configured to determine, 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.

Optionally, the correspondence between different QoS attributes and different indexes is a correspondence between different data transmission rates and reliability requirements and different indexes. The determining unit <NUM> is specifically configured to determine, 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.

The sending unit <NUM> is configured to: before the receiving unit <NUM> receives the QoS attribute information sent by the first terminal device or the core-network network element, send a preset value to the first terminal device or the core-network network element. 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. This implementation is not part of the claimed invention.

The sending unit <NUM> is configured to: before the receiving unit <NUM> receives the QoS attribute information sent by the first terminal device or the core-network network element, send a preset value to the first terminal device or the core-network network element. 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. The target service is a service transmitted between the first terminal device and the second terminal device by using the transmission resource. This implementation is not part of the claimed invention.

It should be understood that, the network device <NUM> according to this implementation of this disclosure may correspondingly perform the method <NUM> in the implementations of this disclosure, and the foregoing and other operations and/or functions of the units of the network device <NUM> are respectively intended to implement corresponding procedures of the network device in the methods in <FIG>. For simplicity, details are not described herein again.

Therefore, the network device according to this implementation of this disclosure can determine a QoS attribute of a terminal device, and allocate a transmission resource, for example, a carrier resource, to the terminal device according to the QoS attribute, so that the terminal device uses the transmission resource to send data to another terminal device, thereby improving resource utilization.

As shown in <FIG>, a communications device <NUM> according to an implementation of this disclosure includes a determining unit <NUM> and a sending unit <NUM>, and optionally, may further include a receiving unit <NUM>.

Specifically, the determining unit <NUM> is configured to determine QoS attribute information, where the QoS attribute information is used to indicate a QoS attribute of a first terminal device. The sending unit <NUM> is configured to send 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.

The receiving unit <NUM> is configured to: before the sending unit <NUM> sends the QoS attribute information to the network device, receive a preset value sent by the network device. 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. This implementation is not part of the claimed invention.

The receiving unit <NUM> is configured to: before the sending unit <NUM> sends the QoS attribute information to the network device, receive a preset value sent by the network device. 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. The target service is a service transmitted between the first terminal device and the second terminal device by using the transmission resource. This implementation is not part of the claimed invention.

Optionally, the communications device <NUM> is a core-network network element or the first terminal device.

It should be understood that, the communications device <NUM> according to this implementation of this disclosure may correspondingly perform the method <NUM> in the implementations of this disclosure, and the foregoing and other operations and/or functions of the units of the communications device <NUM> are respectively intended to implement corresponding procedures of the core-network network element or the first terminal device in the methods in <FIG>. For simplicity, details are not described herein again.

Therefore, the communications device according to this implementation of this disclosure sends QoS attribute information including a QoS attribute of a terminal device to the network device. In this way, the network device can determine the QoS attribute of the terminal device, and allocate a transmission resource, for example, a carrier resource, to the terminal device according to the QoS attribute, so that the terminal device uses the transmission resource to send data to another terminal device, thereby improving resource utilization.

<FIG> is a schematic block diagram of a network device <NUM> according to an implementation of this disclosure. As shown in <FIG>, the network device <NUM> includes a processor <NUM> and a transceiver <NUM>. The processor <NUM> is connected to the transceiver <NUM>. Optionally, the network device <NUM> further includes a memory <NUM>. The memory <NUM> is connected to the processor <NUM>. The processor <NUM>, the memory <NUM>, and the transceiver <NUM> communicate with each other through an internal connection path, to transfer and/or control a data signal. The memory <NUM> may be configured to store an instruction. The processor <NUM> is configured to execute the instruction stored in the memory <NUM>, to control the transceiver <NUM> to send information or a signal. The processor <NUM> is configured to: determine a QoS attribute of a first terminal device; and allocate 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. This implementation is not part of the claimed invention.

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

Optionally, in an implementation, the transceiver <NUM> is configured to receive QoS attribute information sent by the first terminal device or a core-network network element. The processor <NUM> is configured to determine the QoS attribute of the first terminal device according to the QoS attribute information.

In an implementation, the QoS attribute information includes the data transmission rate and/or a packet loss rate of the first terminal device.

Optionally, in an implementation, the QoS attribute information includes a target index. The processor <NUM> is configured to determine, 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.

Optionally, in an implementation, the correspondence between different QoS attributes and different indexes is a correspondence between different data transmission rates and reliability requirements and different indexes. The processor <NUM> is configured to determine, 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.

Optionally, in an implementation, 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.

Optionally, in an implementation, 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.

Optionally, in an implementation, the transceiver <NUM> is configured to: before receiving the QoS attribute information sent by the first terminal device or the core-network network element, send a preset value to the first terminal device or the core-network network element. 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. This implementation is not part of the claimed invention.

Optionally, in an implementation, the transceiver <NUM> is configured to: before receiving the QoS attribute information sent by the first terminal device or the core-network network element, send a preset value to the first terminal device or the core-network network element. 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. The target service is a service transmitted between the first terminal device and the second terminal device by using the transmission resource. This implementation is not part of the claimed invention.

It should be understood that, the network device <NUM> according to this implementation of this disclosure may correspond to the network device <NUM> in the implementations of this disclosure, and may correspond to a corresponding body in the method <NUM> according to the implementations of this disclosure, and the foregoing and other operations and/or functions of the units of the network device <NUM> are respectively intended to implement corresponding procedures of the network device in the methods in <FIG>. For simplicity, details are not described herein again.

<FIG> is a schematic block diagram of a communications device <NUM> according to an implementation of this disclosure. As shown in <FIG>, the communications device <NUM> includes a processor <NUM> and a transceiver <NUM>. The processor <NUM> is connected to the transceiver <NUM>. Optionally, the communications device <NUM> further includes a memory <NUM>. The memory <NUM> is connected to the processor <NUM>. The processor <NUM>, the memory <NUM>, and the transceiver <NUM> communicate with each other through an internal connection path, to transfer and/or control a data signal. The memory <NUM> may be configured to store an instruction. The processor <NUM> is configured to execute the instruction stored in the memory <NUM>, to control the transceiver <NUM> to send information or a signal. The processor <NUM> is configured to: determine QoS attribute information, where the QoS attribute information is used to indicate a QoS attribute of a first terminal device. The transceiver <NUM> is configured to send 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. This implementation is not part of the claimed invention.

Optionally, in an implementation, the QoS attribute information includes a target index, and the target index corresponds to the QoS attribute of the first terminal device.

Optionally, in an implementation, the transceiver <NUM> is configured to: before sending the QoS attribute information to the network device, receive a preset value sent by the network device. 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. This implementation is not part of the claimed invention.

Optionally, in an implementation, the transceiver <NUM> is configured to: before sending the QoS attribute information to the network device, receive a preset value sent by the network device. 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. The target service is a service transmitted between the first terminal device and the second terminal device by using the transmission resource. This implementation is not part of the claimed invention.

Optionally, in an implementation, the communications device <NUM> is a core-network network element or the first terminal device.

It should be understood that, the communications device <NUM> according to this implementation of this disclosure may correspond to the communications device <NUM> in the implementations of this disclosure, and may correspond to a corresponding body in the method <NUM> according to the implementations of this disclosure, and the foregoing and other operations and/or functions of the units of the communications device <NUM> are respectively intended to implement corresponding procedures of the first terminal device or the core-network network element in the methods in <FIG>. For simplicity, details are not described herein again.

It should be noted that the foregoing method implementations of this disclosure may be applied to a processor, or implemented by a processor. The processor may be an integrated circuit chip and has a signal processing capability. In an implementation process, steps in the foregoing method implementations may be completed by using a hardware integrated logical circuit in the processor, or an instruction in a form of software. The processor may be a general-purpose processor, a digital signal processor (digital signal processor, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA), or another programmable logic device, a discrete gate or a transistor logic device, or a discrete hardware component. The processor can implement or execute methods, steps, and logical block diagrams disclosed in the implementations of this disclosure. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor or the like. The steps in the methods disclosed in the implementations of this disclosure may be directly completed by a hardware decoding processor, or may be completed by combining hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, or a register. The storage medium is located in a memory, and the processor reads information in the memory and performs the steps of the foregoing methods in combination with hardware of the processor.

It may be understood that the memory in the implementations of this disclosure may be a volatile memory or a nonvolatile memory, or may include a volatile memory and a nonvolatile memory. The non-volatile memory may be a read-only memory (read-only memory, ROM), a programmable read-only memory (programmable rom, PROM), an erasable programmable read-only memory (erasable PROM, EPROM), an electrically erasable programmable read-only memory (electrically EPROM, EEPROM), or a flash memory. The volatile memory may be a random access memory (random access memory, RAM), and is used as an external cache. By way of example but not limitation, RAMs in many forms such as a static random access memory (static RAM, SRAM), a dynamic random access memory (dynamic RAM, DRAM), a synchronous dynamic random access memory (synchronous DRAM, SDRAM), a double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), an enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), a synchlink dynamic random access memory (synchlink DRAM, SLDRAM), and a direct rambus random access memory (direct rambus RAM, DR RAM) may be used. It should be noted that the memory in the systems and methods described in this specification includes but is not limited to those and any memory of another proper type.

It should be understood that in the implementations of this disclosure, "B corresponding to A" indicates that B is associated with A, and B may be determined according to A. However, it should further be understood that determining B according to A does not mean that B is determined according to A only; that is, B may alternatively be determined according to A and/or other information.

In addition, the term "and/or" in this specification describes only an association relationship for describing associated objects and represents that three relationships may exist.

A person of ordinary skill in the art may be aware that, in combination with the examples described in the implementations disclosed in this specification, units, algorithms, and steps may be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether the functions are executed in a mode of hardware or software depends on particular disclosures and design constraint conditions of the technical solutions.

It may be clearly understood by a person skilled in the art that, for the purpose of convenient and brief description, for a detailed working process of the foregoing system, apparatus, and unit, refer to a corresponding process in the foregoing method implementations, and details are not described herein.

In the several implementations provided in this disclosure, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the described apparatus implementation is merely exemplary. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces.

The units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the implementations.

In addition, function units in the implementations of this disclosure may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units may be integrated into one unit.

Claim 1:
A resource allocation method, comprising:
determining, by a network device, a quality of service, QoS, attribute of a first terminal device (S110); and
allocating a transmission resource to the first terminal device according to the QoS attribute, wherein the transmission resource is configured to be used by the first terminal device to send data to a second terminal device (S120),
wherein the QoS attribute comprises a data transmission rate and a reliability requirement of the first terminal device;
wherein determining, by the network device, the quality of service, QoS, attribute of the first terminal device (S110) comprises:
receiving, by the network device, 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,
characterized in that the QoS attribute information comprises the data transmission rate and a packet loss rate of the first terminal device, and
wherein the data transmission rate comprises three data transmission rates; the reliability requirement is quantized by using the packet loss rate; the packet loss rate comprises three packet loss rates; there are <NUM> combinations for the three data transmission rates and the three packet loss rates; an index is defined for each of the nine combinations, a mapping relationship between the nine combinations and nine different indexes is established; the network device determines that the QoS attribute information comprises a target index, the target index is any one of the nine indexes; and a combination of the data transmission rate and the packet loss rate corresponding to the target index is determined as the QoS attribute of the first terminal device.