WO2022188686A1 - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
WO2022188686A1
WO2022188686A1 PCT/CN2022/078991 CN2022078991W WO2022188686A1 WO 2022188686 A1 WO2022188686 A1 WO 2022188686A1 CN 2022078991 W CN2022078991 W CN 2022078991W WO 2022188686 A1 WO2022188686 A1 WO 2022188686A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
target
service
transmission
remaining
Prior art date
Application number
PCT/CN2022/078991
Other languages
French (fr)
Chinese (zh)
Inventor
张彦清
李雪茹
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022188686A1 publication Critical patent/WO2022188686A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • H04W28/22Negotiating communication rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a communication method and device.
  • logical channel In a communication system, three main channels are defined, namely: logical channel, transport channel and physical channel.
  • the logical channel is used to provide data transmission services, and different logical channels are defined for different data transmission services; the transmission channel is used to define the method and characteristics of data transmission in the air interface, and the physical channel is used to define the bearer of the signal transmitted in the air interface.
  • multiple logical channels can be multiplexed on the same transport channel, that is, service data on multiple logical channels can be scheduled to the same transport channel and then transmitted through the physical channel.
  • the media access control (MAC) layer needs to schedule the MAC service data unit (SDU) in the logical channel to the MAC protocol data in the transmission channel.
  • SDU MAC service data unit
  • Unit protocol data unit
  • the token bucket mechanism is used in the communication system to realize the resource mapping from the logical channel to the transmission channel.
  • the service data in the MAC SDU of each logical channel is mapped to the transmission on the MAC PDU of the channel.
  • the number of tokens contained in the token bucket corresponding to each logical channel directly affects the data volume of the service data mapped by the logical channel.
  • the tokens in the token bucket corresponding to each logical channel are based on the speed-prioritized bit rate (PBR) increase evenly.
  • PBR is a static minimum guaranteed bit rate allocated by the network device side for the logical channel, and this value is a fixed value.
  • the PBR configured by the network device for each logical channel directly affects the rate at which the service data in the logical channel is mapped to the transmission channel, thereby affecting the service data transmission delay of the service corresponding to the logical channel.
  • the terminal equipment in the communication system is required to have a higher or more flexible transmission rate.
  • the real-time broadband communication (RTBC) scenario is designed to support large bandwidth and low latency. The purpose is to increase the bandwidth under a given latency and certain reliability requirements, and to create an immersive human interaction with the virtual world. experience.
  • this scenario includes extended reality (extended reality, XR) services that require ultra-high bandwidth and ultra-low latency.
  • the XR service requires the terminal device to upload images, and the data volume of different images after encoding fluctuates greatly (for example, in a group of picture (GOP), the data volume of the encoded I-frame image is large, while the Generally, the data volume of the encoded P frame image is small), but the transmission delay requirements of each frame image are the same.
  • the bit rate is set, therefore, the image with a large amount of data may not be fully transmitted within the set transmission delay. Therefore, the PBR static allocation method of the logical channel in the above token bucket mechanism will greatly affect the transmission delay of the XR service, thereby reducing the user experience of the service.
  • the present application provides a communication method and device, which are used to ensure the transmission delay of service data of a terminal device and improve the user experience of the service.
  • an embodiment of the present application provides a communication method, which can be applied to a sending end that sends service data in the communication system shown in FIG. 4 , for example, a terminal device in the uplink direction of a mobile communication system or a network device in the downlink direction.
  • a terminal device in the uplink direction of a mobile communication system or a network device in the downlink direction for example, a terminal device in the uplink direction of a mobile communication system or a network device in the downlink direction.
  • another example is any terminal device in the sidelink communication system.
  • the method is described below by taking a communication device as an example, and the method includes the following steps:
  • the communication device determines the remaining data volume of the first service data of the target service and the first remaining transmission time of the first service data; and then determines the corresponding target service according to the remaining data volume and the first remaining transmission time The first priority bit rate PBR; wherein, the first remaining transmission time is the difference between the first target transmission duration and the duration of transmitting the first service data; the first target transmission duration is determined according to the transmission delay of the target service.
  • the communication device can dynamically determine the PBR corresponding to the target service according to the remaining data volume and the remaining transmission time of the service data of the target service, so as to transmit the service data according to the PBR; wherein, the remaining transmission time is determined according to the target service
  • the communication device when the communication device is a terminal device in a mobile communication system or a sidelink communication system, the communication device may receive indication information from a network device, where the indication information is used to indicate the target service transmission delay.
  • the network device can configure the transmission delay of the target service for the terminal device, so that when the terminal device sends each service data, the target transmission duration of the service data can be determined according to the transmission delay of the target service.
  • the communication device may also perform the following steps according to the PBR:
  • the value of a first variable (that is, the number of tokens corresponding to the target logical channel) is increased, and the first variable corresponds to the target logical channel; wherein, the target logical channel corresponds to the target service a logical channel; according to the value of the first variable, multiplex the remaining data of the first service data to a target transmission channel; wherein, the target transmission channel is a transmission channel corresponding to the target logical channel.
  • the communication device can use the token bucket mechanism to transmit the remaining data of the first service data according to the calculated first PBR.
  • the communication device may further determine the size of the first service data multiplexed into the target transmission channel. the total size; and then reduce the value of the first variable according to the total size of the first service data multiplexed to the target transmission channel.
  • the communication device can update the value of the first variable according to the amount of data multiplexed to the target transmission channel each time.
  • the communication The device may also reduce the remaining data amount of the first service data according to the total size of the partial data; and reduce the first service data according to the time consumed by multiplexing the partial data to the target transmission channel this time. a remaining transmission time; then when the first remaining transmission time is greater than 0, according to the updated remaining data volume of the first service data and the first remaining transmission time, the first remaining transmission time corresponding to the target service is determined.
  • Two PBR Two PBR.
  • the communication device can continue to dynamically calculate the PBR when the first service data is not all multiplexed into the target transmission channel, so that the newly calculated PBR can be used to continue to transmit the remaining data of the first service data.
  • the communication device may also discard the remaining data of the first service data.
  • the communication device When the first remaining transmission time is less than or equal to the judgment threshold, it indicates that the current actual transmission time of the first service data has not met the transmission delay requirement of the target service. With this design, the communication device no longer multiplexes the remaining data of the first service data to the target transmission channel, so that the vacated resources can be used to continue multiplexing the next service data to the target transmission channel.
  • the communication device may also, according to the last calculated PBR (that is, the first PBR), Increase the value of the first variable.
  • the communication device can no longer dynamically calculate the PBR. Therefore, the communication device can select the last calculated PBR to continue to increase the value of the first variable, so as to continue to transmit the remainder of the first service data. data.
  • the communication device when the first service data times out, if the communication device continues to describe the remaining data of the first service data; then in order to ensure the next service data (second service data) after the first service data as much as possible.
  • the transmission duration can meet the requirements of the transmission delay of the target service as much as possible, and the communication device can start the timing of the occupation duration according to the arrival time of the second service data, as shown in the following two ways:
  • Manner 1 Before the first remaining transmission time is less than or equal to 0, determine that the second service data of the target service reaches the target logical channel; when the first remaining transmission time is less than or equal to 0, start to Occupy time for timing;
  • Method 2 After the first remaining transmission time is less than or equal to 0, and before all the first service data is multiplexed to the target transmission channel, determine that the second service data of the target service arrives at the target logic channel; when the second service data arrives, start timing the occupied duration;
  • the communication device After starting the timing of the occupied time, when all the first service data is multiplexed to the target transmission channel, the communication device stops timing the occupied time; then the communication device initializes the remaining data of the second service data The amount is the total data amount of the second service data, and the second remaining transmission time of the second service data is initialized as the second target transmission duration; wherein, the second target transmission duration is the transmission of the target service and determining the third PBR corresponding to the target service according to the remaining data amount of the second service data and the second remaining transmission time.
  • the communication device can sample the above design to count the occupied time of the first service data.
  • the second target transmission duration of the second service data can be set equal to the duration of the target service. The difference between the transmission delay and the occupied duration of the first service data.
  • an embodiment of the present application provides a communication method, the method can be applied to a network device, and the method includes the following steps:
  • the network device determines the transmission delay of the target service; and then sends indication information to the terminal device, where the indication information is used to indicate the transmission delay of the target service.
  • the network device can configure the transmission delay of the target service for the terminal device, so that when the terminal device sends each service data, the target transmission duration of the service data can be determined according to the transmission delay of the target service.
  • an embodiment of the present application provides a communication apparatus, including a unit for performing the steps of the method provided in any of the above aspects of the present application.
  • an embodiment of the present application provides a communication device, comprising at least one processing element and at least one storage element, wherein the at least one storage element is used to store programs and data, and the at least one processing element is used to execute any
  • An aspect provides the steps of a method.
  • an embodiment of the present application provides a communication system, including: a terminal device for implementing the method provided in the first aspect above, and a network device for implementing the method provided in the second aspect above.
  • an embodiment of the present application further provides a computer program, which, when the computer program runs on a computer, causes the computer to execute the method provided in any of the foregoing aspects.
  • an embodiment of the present application further provides a computer storage medium, where a computer program is stored in the computer storage medium, and when the computer program is executed by the computer, the computer is made to execute the method provided in any of the above aspects.
  • an embodiment of the present application further provides a chip, where the chip is configured to read a computer program stored in a memory, and execute the method provided in any of the foregoing aspects.
  • an embodiment of the present application further provides a chip system, where the chip system includes a processor for supporting a computer device to implement the method provided in any one of the foregoing aspects.
  • the chip system further includes a memory for storing necessary programs and data of the computer device.
  • the chip system can be composed of chips, and can also include chips and other discrete devices.
  • an embodiment of the present invention provides an apparatus, including a unit for executing the method described in any embodiment of the present invention.
  • FIG. 1 is a schematic diagram of an encoding method of an image frame in a GOP provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of the data volume after encoding of each graphic frame in a GOP provided by an embodiment of the present application;
  • FIG. 3 is an example diagram of MAC layer scheduling of a terminal device according to an embodiment of the present application.
  • FIG. 4 is an architectural diagram of a communication system provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a network topology of a communication system according to an embodiment of the present application.
  • 6A is a flowchart of a communication method provided by an embodiment of the present application.
  • 6B is a schematic diagram of a dynamic PBB and a static PBR variation curve provided by an embodiment of the application;
  • FIG. 7 is an example flowchart of a communication method provided by an embodiment of the present application.
  • FIG. 8 is an example diagram of MAC layer scheduling of a terminal device according to an embodiment of the present application.
  • FIG. 9 is a structural diagram of a communication device according to an embodiment of the present application.
  • the present application provides a communication method and device, which are used to ensure the transmission delay of service data of a terminal device and improve the user experience of the service.
  • the method and the device are based on the same technical concept. Since the principles of the method and the device for solving problems are similar, the implementation of the device and the method can be referred to each other, and repeated descriptions will not be repeated.
  • a network device is a device that connects a terminal device to a wireless network in a communication system.
  • the network device as a node in a wireless access network, may also be called a base station, may also be called a radio access network (radio access network, RAN) node (or device), or an access point (access point, AP).
  • RAN radio access network
  • AP access point
  • network equipment generation Node B (gNB), transmission reception point (TRP), evolved Node B (evolved Node B, eNB), radio network controller (radio network controller, RNC), Node B (Node B, NB), access point (access point, AP) base station controller (base station controller, BSC), base transceiver station (base transceiver station, BTS), home base station (such as , home evolved NodeB, or home Node B, HNB), or base band unit (base band unit, BBU), enterprise LTE discrete narrowband aggregation (Enterprise LTE Discrete Spectrum Aggregation, eLTE-DSA) base station, etc.
  • gNB generation Node B
  • TRP transmission reception point
  • eNB evolved Node B
  • RNC radio network controller
  • Node B Node B
  • AP access point
  • base station controller base station controller
  • BTS base transceiver station
  • home base station such as , home evolved NodeB, or home Node B, H
  • the network device may include a centralized unit (centralized unit, CU) node and a distributed unit (distributed unit, DU) node.
  • CU centralized unit
  • DU distributed unit
  • This structure separates the protocol layers of the eNB in the long term evolution (LTE) system. The functions of some protocol layers are centrally controlled by the CU, and the remaining part or all of the functions of the protocol layers are distributed in the DU, which is controlled by the CU. Centralized control of DU.
  • LTE long term evolution
  • a terminal device is a device that provides voice and/or data connectivity to users.
  • a terminal device may also be called a user equipment (user equipment, UE), a mobile station (mobile station, MS), a mobile terminal (mobile terminal, MT), and the like.
  • the terminal device may be a handheld device with a wireless connection function, various in-vehicle devices, a roadside unit, and the like.
  • some examples of terminal devices are: mobile phone (mobile phone), tablet computer, notebook computer, PDA, mobile internet device (MID), smart point of sale (POS), wearable device, Virtual reality (VR) equipment, augmented reality (AR) equipment, wireless terminals in industrial control, wireless terminals in self driving, remote medical surgery wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, Smart meters (smart water meter, smart electricity meter, smart gas meter), eLTE-DSA UE, equipment with integrated access and backhaul (IAB) capability, on-board electronic control unit (ECU) etc., on-board computer, on-board cruise system, telematics box (T-BOX), etc.
  • IAB integrated access and backhaul
  • a communication device is a device with a communication function in a communication system, which may be a network device or a terminal device, which is not limited in this application.
  • channel channel (channel), the channel of communication, is the medium of signal/data transmission.
  • channels There are mainly three kinds of channels defined in the communication system, namely logical channel, transport channel and physical channel. The different types of channels are described below:
  • Logical channels are used to provide data transmission services. Different logical channels are defined for different data transmission services, such as common transaction channel (CTCH), dedicated transaction channel (DTCH), and broadcast control channel (broadcast). control channel, BCCH), common control channel (common control channel, CCCH), etc.
  • CCH common transaction channel
  • DTCH dedicated transaction channel
  • BCH broadcast control channel
  • BCCH common control channel
  • CCCH common control channel
  • Transport channels are used to define the way and characteristics of data transmission in the air interface, such as random access channel (RACH), downlink shared channel (DSCH), uplink shared channel (USCH) , broadcast channel (broadcast channel, BCH), common packet channel (common packet channel, CPCH), etc.
  • RACH random access channel
  • DSCH downlink shared channel
  • USCH uplink shared channel
  • BCH broadcast channel
  • CPCH common packet channel
  • the physical channel is used to define the bearer of the signal transmitted in the air interface.
  • the physical channel can define specific time-domain resources and frequency-domain resources, scrambling codes, and so on.
  • the physical channels may include: a physical random access channel (PRACH), a physical downlink shared channel (PDSCH), a physical uplink shared channel (PUSCH), a physical uplink shared channel (PUSCH), and a physical uplink shared channel (PUSCH).
  • PRACH physical random access channel
  • PDSCH physical downlink shared channel
  • PUSCH physical uplink shared channel
  • PUSCH physical uplink shared channel
  • PUSCH physical uplink shared channel
  • PUSCH physical uplink shared channel
  • PUSCH physical uplink shared channel
  • PCPCH physical uplink shared channel
  • the amount of data is the value obtained by measuring the size of the data using the same unit of measurement set.
  • Services which are certain functions or services implemented by terminal equipment, or data streams related to services at the application layer are transmitted.
  • the services involved in the present application may be classified into different types according to different angles.
  • services can be divided according to the severity of delay requirements, then services can be divided into ordinary services (services with transmission delay greater than or equal to the first threshold) and low-latency services (transmission delay less than the first threshold) , real-time services (transmission delay is less than the second threshold), etc.
  • the second threshold is smaller than the first threshold.
  • services may also be classified according to functions or types of services, and then services may be classified into data services, voice services, video services, XR services, and the like.
  • the XR business mainly includes virtual reality (virtual reality, VR), augmented reality (AR), mixed reality (mixed reality, MR) and other virtual and reality interaction services.
  • Terminal devices that support XR services are generally equipped with cameras to capture images of the current scene, and the terminal devices need to continuously upload the collected images. Therefore, XR services have higher requirements on the data transmission delay and bandwidth of the terminal devices.
  • services can also be divided according to the types of data streams.
  • the service of the application layer includes video stream and audio stream
  • the video stream can be one service
  • the audio stream can be another service.
  • the terminal device For another example, no matter what kind of function or service the terminal device expects to implement, it needs to be implemented by the terminal device by establishing a connection with a corresponding data network (data network, DN). Moreover, when implementing different functions or services, the data networks that the terminal devices need to connect to are also different. Therefore, services can also be divided through the data network connected to the terminal equipment.
  • data network data network
  • the embodiment of the present application does not limit the representation of services.
  • the services can be divided by time delay requirements, by function or service type, by data stream type, or by The Data Network Number (DNN) division requested by the terminal device.
  • DNN Data Network Number
  • the transmission delay of the service that is, the time delay requirement of the data packet of the service from the sending device to the receiving device, can reflect the QoS of the service.
  • the transmission delay may also be referred to as an air interface packet delay budget (air interface packet delay budget), a delay upper limit, or an air interface delay, and the like.
  • the transmission delay of the service is the delay requirement from the UE MAC to the gNB/eNB packet arrival of the service data packet from the MAC layer of the UE to the base station.
  • Token which is a resource used by the MAC layer scheduling process of the communication device to control the amount of transmitted data.
  • the number of tokens will change continuously, that is, the number of tokens is a variable.
  • the token data may also be referred to as a token quantity variable, a variable, or the like.
  • changing the number of tokens can be understood as changing the value of the token quantity variable (or variable)
  • increasing the number of tokens can be understood as increasing the value of the variable
  • reducing the number of tokens can be understood as reducing the value of the variable.
  • the "first variable" is the number of tokens corresponding to the target logical channel.
  • the terminal device sends service data as an example for description.
  • the service data of the XR service can be video coded using the H.264/H.265 video coding standard.
  • Multiple images generated by the terminal device performing the XR service can be divided into multiple GOPs.
  • each GOP may contain the same number of images.
  • the terminal device can perform intra-frame coding or inter-frame coding on each frame of image in each GOP.
  • the first frame image in each GOP can be called an intra-frame coding frame, abbreviated as an I frame, which can be independently encoded and decoded; and subsequent frame images can be called inter-frame coding frames.
  • inter-frame coding frame including: predictive coding frame (predicated frame) (referred to as P frame), bidirectional predictive coding frame (bidirectional predicted frame) (referred to as B frame).
  • P frame predictive coding frame
  • B frame bidirectional predictive coding frame
  • the inter-coded frame needs to be coded and decoded based on the previously coded image, so as to improve the codec compression performance and reduce the data volume of the transmitted service data.
  • the data amount of the encoded first frame image (ie, I frame) is significantly larger than that of the encoded subsequent frame image (ie, P frame or B frame).
  • the data amount of each encoded P frame is also different.
  • the data amount of the encoded fourth frame image is about twice the data amount of the encoded second frame image.
  • the transmission delay of the XR service is the transmission delay of each frame of image, that is, the transmission delay of each frame of image is required to be the same (for example, 10 milliseconds), and the XR service has higher requirements on the transmission delay, so the amount of data is large.
  • the images have more stringent requirements on the transmission rate. If the transmission rate of the terminal equipment for all images is the same, the terminal equipment may not be able to complete the transmission of the entire image (for example, the I frame in the GOP) within the specified transmission delay. This has a great impact on the XR service, and further reduces the user experience of the service.
  • XR services are only examples, and do not constitute a limitation that the methods provided in the embodiments of the present application can be applied to services.
  • the methods provided in the embodiments of the present application can be applied to various services, for example, services with large fluctuations in the data volume of service data, services with strict requirements on transmission delay, etc.
  • Specific examples are video call services, artificial intelligence (artificial intelligence) intelligence, AI) business, etc.
  • the token bucket mechanism is described below.
  • the token bucket mechanism is used in the communication system to limit the data traffic of the communication device to a specific bandwidth, that is, a certain number of tokens are placed in the token bucket, and one token is allowed to send a set amount of data (The following takes 1Byte as an example) data. Every time 1Byte of data is transmitted, a token needs to be removed from the token bucket. When there are no tokens in the token bucket, sending data of any size will be considered as exceeding the rated bandwidth of the communication device. It can be understood that the token bucket is like a pool, and the token is like water. The tokens in the token bucket can not only be removed, but also continuously added. In order to ensure that the communication device can continuously send data, it is necessary to continuously add tokens to the token bucket.
  • the increasing speed of the tokens in the token bucket also determines the speed at which the communication device sends data.
  • the bandwidth of the communication device is 1000 bytes per second (Bytes per second, Bps). As long as 1000 tokens are added to the token bucket every second, the bandwidth of the communication device can be guaranteed.
  • the MAC layer needs to schedule the service data carried in the MAC SDU located in the logical channel to the MAC PDU in the transmission channel.
  • the MAC layer of the communication device needs to maintain a token bucket for each logical channel and parameters corresponding to the token bucket.
  • Each token is used to transfer a set amount of data.
  • the parameters corresponding to each token bucket include: a variable of the number of tokens in the token bucket, PBR, and the depth of the token bucket (bucket size duration, BSD) (optional).
  • PBR the number of tokens in the token bucket
  • BSD bucket size duration
  • the PBR and the BSD are configured by the (radio resource control, RRC) layer of the network device in the communication system.
  • the depth BSD of the token bucket that is, the maximum capacity of the token bucket, the threshold of the maximum number of tokens that can be contained, or the maximum amount of data that can be transmitted according to the tokens in the token bucket.
  • BSD can be directly set to a set threshold for the number of tokens; or BSD can be represented by time, for example, in seconds (s) or milliseconds (ms); or directly set to a set threshold of data volume.
  • the communication device implements data exchange between the MAC layer and the physical layer according to the transmission time interval (TTI), and each TTI performs one transmission, or each TTI corresponds to a transmission moment .
  • TTI may also be called a scheduling period or a transmission period, that is, two adjacent transmission times (transmission opportunity, scheduling opportunity).
  • the TTI may be 1 ms, 2 ms, 0.5 ms, or the like. It should be noted that in some mobile communication systems (such as 5G NR systems), the TTI may change.
  • token increment time interval T also called token increment period T
  • the token increment time interval T may be the same as or different from the value of TTI, which is not limited in this application.
  • the number of tokens in the token bucket cannot exceed PBR*BSD, and in each T, the number of tokens in the token bucket increases at the rate of PBR*T.
  • the RRC layer of the network device may also allocate each logical channel of the communication device priority.
  • the priority of any logical channel determines the order in which the MAC SDU of the logical channel is scheduled to the MAC PDU of the transport channel among multiple logical channels, that is, the MAC SDU of the logical channel with higher priority will be preferentially scheduled to the MAC SDU in the PDU.
  • the RRC layer of the network device allocates corresponding PBRs for each logical channel of the communication device, so as to avoid the occurrence of low-priority logical channels that cannot be multiplexed to MAC PDU resources. Case.
  • a communication device when it sends data, it generally processes the data in the order from high to low of the protocol stack, that is, the MAC SDU and the radio link control (RLC) PDU are in one-to-one correspondence of. That is, the size of the MAC SDU depends on the RLC PDU, and the RLC PDU is divided from the RLC SDU, and the segmentation criterion depends on the size of the MAC PDU. That is, the MAC layer can decide how much data in the RLC SDU is divided into one RLC PDU according to the idle resources in the MAC PDU (that is, determine the size of the RLC PDU (or MAC SDU)).
  • RLC radio link control
  • the MAC layer of the communication device can use the token bucket algorithm to multiplex the MAC SDUs in the logical channel to the MAC PDUs of the transmission channel.
  • the MAC layer uses the token bucket algorithm to multiplex the RLC SDUs in the logical channel.
  • MAC PDU to the transport channel.
  • the MAC layer divides the RLC SDU into at least one RLC PDU, it also configures a header (Header) for each RLC PDU. Therefore, compared with the data amount of the RLC SDU, the sum of the data amount of at least one RLC PDU obtained by dividing the RLC SDU will increase the data amount of at least one packet header.
  • the data volume of the packet header is generally small (for example, one packet header is 8 bits), it can be ignored relative to the data volume of the service data carried by the RLC SDU.
  • the MAC layer of the communication device can use the token bucket algorithm to realize multiplexing of multiple logical channels to the MAC layer transmission channel, that is, the amount of data multiplexed into the transmission channel from the logical channel is determined according to the number of tokens of each logical channel.
  • the MAC layer of the communication device maintains a variable B j for the jth logical channel, which indicates the number of tokens in the token bucket corresponding to the logical channel (that is, the number of tokens remaining in the token bucket). , or the number of tokens available in the token bucket), and each token is used to transfer a fixed amount of data.
  • j is a non-negative integer used to identify the jth logical channel.
  • Bj is initialized to 0 when the jth logical channel is established, and PBR ⁇ T tokens are added in each T.
  • the MAC layer scheduling process performed by the communication device it may be performed according to the following principles:
  • the MAC layer multiplexes the data in the multiple logical channels to the transmission channel according to the logical channel priority from high to low.
  • the MAC layer multiplexes the data of the corresponding data amount in the RLC SDU of the target logical channel into the MAC PDU according to the value of B j of the target logical channel.
  • B' can be greater than B j .
  • the MAC layer multiplexes the data in the logical channel into the remaining resources of the MAC PDU according to the descending order of the logical channel priority, and This process does not consume the token count of the logical channel.
  • the data in the logical channel with the lower priority can continue to be multiplexed into the MAC PDU.
  • FIG. 3 the process of performing MAC layer scheduling by the communication device will be described in detail.
  • the corresponding token numbers are B1, B2, and B3, and B1, B2, and B3 are all greater than 0.
  • the present application numbers the RLC SDUs in each logical channel, that is, RLC SDUs a-b, where a represents the logical channel, and b represents the number of the RLC SDUs in the logical channel.
  • the RLC SDUs to be transmitted in logical channel 1 are recorded as RLC SDU1-1, RLC SDU1-2; the RLC SDUs to be transmitted in logical channel 2 are recorded as RLC SDU2-1, RLC SDU2-2, RLC SDU2-3; RLC SDUs to be transmitted in logical channel 3 are recorded as RLC SDU3-1 and RLC SDU3-2.
  • the RLC SDUs in logical channel 1 with the highest priority are first multiplexed into MAC PDUs, as shown in Figure 3:
  • the MAC layer will give priority to the data in the RLC SDU1-1 that is equal to the amount of idle resources in the MAC PDU.
  • the amount of data is multiplexed into the MAC PDU (at this time, in the logical channel, the RLC SDU1-1 is segmented, the MAC PDU is full, and there are no more idle resources);
  • the MAC layer preferentially multiplexes all the data in the RLC SDU1-1 to the MAC PDU.
  • the MAC layer continues to follow the above principles, the next token
  • the RLC SDUs of the logical channel whose number is greater than 0 are multiplexed into the MAC PDU, that is, if B2>0, continue to multiplex the data in the RLC SDU2-1 in the logical channel 2 into the MAC PDU.
  • the MAC layer reduces the number of tokens B1, B2, B3 of each logical channel multiplexing transmission channel consumes according to the logical channel, and at each token increment time In the interval T, the speed increases according to PBR1*T, PBR2*T, and PBR3*T respectively.
  • the number of tokens consumed is greater than the current token of the logical channel number, the token data for that logical channel will become negative.
  • the MAC layer will re-multiplex all logical channels with the number of tokens greater than 0 according to the The priority of the logical channel is in descending order.
  • the RLC SDU of the logical channel is multiplexed into the MAC PDU, that is, the logical channel has the opportunity to be multiplexed into the MAC PDU only after the logical channel data with a higher priority than the logical channel is all transmitted. .
  • the MAC layer multiplexes the RLC SDUs in the respective logical channels into the MAC PDUs according to the number of tokens in each logical channel. If there are still idle resources in the MAC PDUs at this time, the MAC layer continues to assign the logical channels according to the priority of the logical channel. The RLC SDU in the logical channel multiplexes the idle resources in the MAC PDU.
  • the MAC layer preferentially assigns the remaining data in logical channel 1 (at least one RLC SDU, the data in the remaining data only includes RLC SDU1-2 as an example) is multiplexed into the MAC PDU, regardless of the size of the token number B1 of the current logical channel 1, and this multiplexing does not consume logical channels 1 token, as shown in Figure 3, including:
  • the MAC layer multiplexes all the data in the RLC SDU1-2 into the MAC PDU;
  • the MAC layer multiplexes part of the data in the RLC SDU1-2 equal to the amount of idle resources in the MAC PDU into the MAC PDU .
  • the MAC layer continues to multiplex the remaining data in logical channel 2 according to the above method. into the MAC PDU. ...and so on, until the MAC PDU no longer has idle resources or the remaining data in each logical channel is multiplexed into the MAC PDU.
  • the amount of idle resources in the MAC PDU is less than or equal to the data amount of the remaining data in logical channel 1
  • the MAC layer multiplexes part or all of the remaining data in logical channel 1 into the MAC PDU. At this time, the MAC PDU cannot Residual data in multiplexing other logical channels.
  • the MAC layer transmits the MAC PDU to the physical layer for further transmission by the physical layer.
  • PBR is a fixed static variable allocated by the network device, and the network device may consider the average bit rate of the logical channel during allocation.
  • the data volume of service data generated in some services may fluctuate greatly.
  • the data volume of different frame images in a GOP varies greatly, but the transmission delay requirement of each frame image is The same, so that each frame of images has different requirements on the transmission rate.
  • the PBR is a fixed value, which may cause the transmission rate to fail to meet the transmission requirements of images with a large amount of data, thus increasing the transmission delay.
  • the data amount of each frame of image after encoding varies greatly, and the transmission delay requirements of each frame of image are the same.
  • the data volume of the first frame image after encoding is about 5 times that of the second frame image after encoding, which means that the transmission rate of the first frame image after encoding is expected to be the transmission rate of the second frame image after encoding. about 5 times.
  • the PBR is a fixed value, the transmission rate of the terminal device cannot be changed with the change of the transmission rate requirements of different images, and eventually some images with a large amount of data cannot be transmitted within the specified transmission delay.
  • the embodiments of the present application provide a communication method and device. The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
  • FIG. 4 shows the architecture of a possible communication system to which the communication method provided by the embodiment of the present application is applicable.
  • the communication system includes: a network device, and at least one terminal device (terminal device a-terminal device g in FIG. 4 ).
  • the network equipment is an entity that can receive and transmit wireless signals on the network side, and is responsible for providing wireless access-related services for terminal equipment within its coverage, realizing physical layer functions, resource scheduling and wireless resource management, quality of service ( Quality of Service, QoS) management, wireless access control and mobility management functions.
  • the network device may be a base station, an AP or other RAN device, which is not limited in this application.
  • the terminal device is an entity capable of receiving and transmitting wireless signals on the user side, and needs to access the network through the network device.
  • the terminal device can be various devices that provide voice and/or data connectivity for the user, for example, as shown in FIG.
  • the communication system shown in FIG. 4 may support a sidelink (sidelink) communication technology.
  • the sidelink communication technology is a near-field communication technology that enables direct connection between terminal devices, also known as a proximity services (proximity services, ProSe) communication technology, or a D2D communication technology.
  • a plurality of terminal devices that are geographically close together and support sidelink communication may form a sidelink communication system (also referred to as a sidelink communication subsystem, a sidelink system, etc.).
  • two terminal devices also called sidelink devices
  • the sidelink communication technology can support broadcast, multicast and unicast transmission within the coverage of network equipment, outside the coverage of network equipment, and in scenarios where network equipment is partially covered.
  • different sidelink communication systems can be formed for different application scenarios.
  • the user's smartphone can form a sidelink communication system with the in-vehicle equipment installed in the car, as shown in the figure.
  • the user's smartphone and the VR glasses and/or VR glasses may form a sidelink communication system, as shown in the figure.
  • the user's smartphone and the HMD can form a sidelink communication system, as shown in the figure.
  • in-vehicle devices between different cars can also form a sidelink communication system, or mobile phones on different cars can form a sidelink communication system.
  • an embodiment of the present application further provides a network topology architecture of the communication system, as shown in FIG. 5 .
  • the network device and the terminal device may be connected through an air interface (ie, a Uu interface), so as to implement communication between the terminal device and the network device (this communication may be referred to as Uu communication, or cellular network communication).
  • Uu communication ie, a Uu interface
  • a direct link can be established for sidelink data transmission through the ProSe communication 5 (ProSe communication 5, PC5) interface.
  • both the Uu interface and the PC5 interface include a control plane protocol stack and a user plane protocol stack.
  • the user plane protocol stack includes at least the following protocol layers: physical (PHY) layer, MAC layer, radio link control (radio link control, RLC) layer and packet data convergence protocol (packet data convergence protocol, PDCP) Layer, service data adaptation protocol (service data adaptation protocol, SDAP) layer;
  • the control plane protocol stack at least includes the following protocol layers: physical layer, MAC layer, RLC layer, PDCP layer, radio resource control (radio resource control, RRC) Floor.
  • the terminal device can implement specific services by communicating with network devices or other terminal devices.
  • a smartphone can communicate with a network device to realize video calling services
  • VR glasses or AR glasses can communicate with a smartphone or network device to realize XR services, etc.
  • any communication device when any communication device (terminal device or network device) implements the target service, it can send service data of the target service to another communication device (network device or terminal device). Then in the process of sending service data, the MAC layer of the communication device can multiplex the service data carried by the RLC SDU in the logical channel to the MAC PDU in the transmission channel through the token bucket mechanism, so as to finally pass the Uu interface or PC5 interface.
  • the physical channel is transmitted to another communication device.
  • the network device can transmit VR service data to the terminal device through the token bucket mechanism; in the AR uplink and downlink transmission scenarios, the network device or the terminal device can use the token bucket mechanism to transmit VR service data to the terminal device.
  • the token bucket mechanism transmits AR service data to the opposite end; in the sidelink communication system, any terminal device can transmit various service data to another terminal device through the token bucket mechanism.
  • FIG. 4 is taken as an example, and does not constitute a limitation on the communication system to which the method provided by the embodiment of the present application is applicable.
  • the methods provided in the embodiments of the present application are applicable to communication systems or application scenarios of various types and standards.
  • the 5th Generation (5G) communication system Long Term Evolution (LTE) communication system, Wi-Fi system, Vehicle to Everything (V2X), Long Term Evolution-Vehicle Networking (LTE) -vehicle, LTE-V), vehicle to vehicle (V2V), Internet of Vehicles, Machine Type Communications (MTC), Internet of Things (IoT), Long Term Evolution-Machine to Machine ( LTE-machine to machine, LTE-M), machine to machine (machine to machine, M2M), the embodiment of the present application is not limited.
  • 5G 5th Generation
  • LTE Long Term Evolution
  • Wi-Fi Wireless Fidelity
  • V2X Vehicle to Everything
  • LTE Long Term Evolution-Vehicle Networking
  • LTE-V vehicle to vehicle
  • V2V Internet of Vehicles
  • MTC Machine Type Communications
  • IoT Internet of Things
  • LTE-machine to machine LTE-M
  • machine to machine machine to machine
  • the embodiment of the present application provides a communication method, which can be applied to the uplink direction in a mobile communication system composed of a terminal device and a network device (ie, the terminal device sends service data to the network device).
  • the method will be described in detail below with reference to the flowchart shown in FIG. 6A .
  • S600a The terminal device and the network device establish a wireless connection.
  • the terminal device may, but is not limited to, establish an RRC connection with the network device in the following ways:
  • the terminal device can establish an RRC connection with the network device through processes such as cell search, time synchronization, random access, and RRC connection establishment.
  • Manner 2 The terminal device establishes an RRC connection with the network device through the process of cell selection, cell reselection or cell handover.
  • Mode 3 The terminal device in the RRC idle state (RRC_idle) or the RRC inactive state (RRC inactive) can establish/restore the RRC connection with the network device through the RRC connection establishment/restoration process. At this point, the terminal device enters the RRC connected state.
  • the network device may establish at least one data bearer (data resource bearer, DRB) of the terminal device based on the RRC connection, so as to transmit service data of at least one service of the terminal device.
  • the data bearer is also called a radio bearer, and each data bearer corresponds to a logical channel in the MAC layer of the terminal device and the network device respectively.
  • the MAC layers of the terminal device and the network device need to establish a corresponding logical channel for each data bearer, so as to transmit the service data corresponding to the data bearer.
  • the terminal device may start executing the target service (that is, the terminal device opens a function, service or application that implements the target service, and requests to establish the target data bearer of the target service), through the above method
  • An RRC connection is established, and a target data bearer for transmitting the service data of the target service is established with the network device.
  • the MAC layers of the terminal device and the network device establish a target logical channel corresponding to the target data bearer.
  • the terminal device after the terminal device establishes the RRC connection with the network device, when the terminal device starts to execute the target service, it can send a bearer establishment request to the network device, so that the network device can establish a bearer establishment request for transmitting the target service.
  • the target data bearer of the business data wherein, in the process of establishing the target data bearer, the MAC layers of the terminal device and the network device establish a target logical channel corresponding to the target data bearer.
  • the terminal device and the network device can establish/restore the RRC connection through the traditional RRC connection establishment/restoration process, and establish the target data bearer of the target service through the traditional wireless bearer establishment/modification process.
  • the application examples are not repeated here.
  • the network device determines the transmission delay of the target service (that is, the air interface transmission delay of the target service), and sends indication information to the terminal device, where the indication information is used to indicate the transmission delay of the target service.
  • the terminal device receives the indication information from the network device, and determines the transmission delay of the target service according to the indication information.
  • the network device may determine the transmission delay of the target service in the following manner:
  • the network device stores transmission delays of multiple services, and the network device may determine the transmission delay of the target service requested by the terminal device from the transmission delays of the multiple services.
  • the transmission delay of the multiple services may be factory-configured, or specified by a protocol, or configured for a core network device, which is not limited in this application.
  • the network device may first determine the target service requested by the terminal device, and then determine the transmission delay of the target service according to the QoS information of the target service.
  • the QoS information of the target service may be acquired by the network device from the subscription information of the terminal device saved by the core network device, or configured by the core network device according to the subscription information of the terminal device.
  • the indication information may be an RRC message, and the RRC message carries the transmission delay of the target service.
  • the indication information may be downlink control information (DCI), and the DCI may include a first field that carries the transmission delay of the target service; or the DCI may include a first indication bit, the indication bit It is used to indicate the transmission delay of the target service.
  • DCI downlink control information
  • S600b may be performed after performing S600a, or performed during the process of performing S600a, which is not limited in this application.
  • the terminal device determines the remaining data amount of the first service data and the first The first remaining transmission time of a service data.
  • the first service data is any service data of the target service
  • the target transmission channel is the transmission channel corresponding to the target logical channel.
  • the first remaining transmission time is the difference between the first target transmission duration and the duration elapsed for transmitting the first service data, and the first target transmission duration is determined according to the transmission delay of the target service .
  • the remaining data amount of the first service data is the data amount of remaining data in the first service data that has not been multiplexed to the target transmission channel.
  • the elapsed time period for transmitting the first service data may be the sum of the TTIs elapsed by the terminal device from the moment when the terminal device starts to transmit the first service data to the current moment.
  • the terminal device after the first service data reaches the target logical channel, when the terminal device starts to transmit the first service data (the first service data has not been multiplexed at this time), the terminal device initializes the first service data.
  • the remaining data volume of the service is the total data volume of the first service data, and the first remaining transmission time is initialized as the first target transmission duration.
  • the terminal device in order to ensure that the transmission duration of the first service data meets the transmission delay requirement of the target service as much as possible, the terminal device may set the first target transmission duration to be less than or equal to the target transmission duration The transmission delay of the service. Further, in order to make the transmission duration of the first service data as long as possible, the terminal device may set the first target transmission duration to be equal to the transmission delay of the target service.
  • the terminal device may set the first target transmission duration to be equal to the transmission delay of the target service.
  • the terminal device can continue to transmit the previous service data, then in this case, if the Before the first service data arrives before the previous service data is all multiplexed to the target transmission channel, the terminal device will count the occupied time of the previous service data. When all the previous service data is multiplexed into the target transmission channel, the terminal device may set the first target transmission duration to be equal to the difference between the transmission delay of the target service and the occupied duration of the previous service data.
  • the terminal device may determine whether the first remaining transmission time of the first service data is greater than a judgment threshold after each time the terminal device determines/updates the first remaining transmission time of the first service data, where the judgment threshold is used to judge whether the service data times out , the judgment threshold can be set by the user, or stipulated by the protocol, or configured for the network equipment, or factory-configured by the terminal equipment, or default in the field; the judgment threshold is usually 0, but this The application does not limit the value of the judgment threshold.
  • the first remaining transmission time is greater than the judgment threshold, indicating that the actual transmission time of the current first service data meets the transmission delay requirement of the target service; and the first remaining transmission time is less than or equal to the judgment threshold, indicating that the actual transmission time of the current first service data has not been longer. Meet the transmission delay requirements of the target service.
  • the embodiments of the present application do not limit the value of the judgment threshold of the first remaining transmission time, and the embodiments of the present application use 0 as an example for description. In other scenarios, the judgment threshold may also be other set values. .
  • Steps S602 and S604 performed by the terminal device under the condition that the first remaining transmission time is greater than 0 will be described below.
  • the terminal device determines the first PBR according to the remaining data amount of the first service data and the first remaining transmission time.
  • the terminal device initializes the remaining data volume of the first service as the total data volume of the first service data, and initializes the first remaining transmission time as the total data volume of the first service data.
  • the terminal device increases the value of the number of tokens (ie, the first variable) corresponding to the target logical channel according to the first PBR. That is, in each token increment time interval T, the terminal device increases the first variable by the first PBR*T.
  • the terminal device may, at the first transmission moment, multiplex the remaining data of the first service data to the target transmission channel according to the value of the first variable.
  • the value of the first variable is greater than 0.
  • the terminal device Since the first service data can be carried in multiple RLC SDUs, in the process of multiplexing the remaining data of the first service data to the target transmission channel according to the value of the first variable, the terminal device needs to avoid as much as possible to RLC SDU fragmentation.
  • the process of multiplexing service data to the target transmission channel by the terminal device according to the value of the first variable is the same as the multiplexing process in the traditional token mechanism. Therefore, refer to The process shown in FIG. 3, or the specific description about the multiplexing process in the example shown in FIG. 7 or FIG. 8 (for example, the description in S704 in the example shown in FIG. The descriptions in A3 and A4), which will not be repeated here.
  • the terminal device In each transmission moment, for all logical channels whose number of tokens is greater than 0, the terminal device, in the order of logical channel priority from high to low, sequentially assigns the number of tokens in each logical channel according to the number of tokens in each logical channel.
  • the data is multiplexed to the target transmission channel;
  • the terminal device After completing the above steps, if there are remaining idle resources in the target transmission channel, the terminal device continues to multiplex the data in the logical channel into the remaining resources of the target transmission channel according to the descending order of the logical channel priority, and This process does not consume the token count of the logical channel.
  • the RLC SDU will not be segmented
  • the length of the segment should be maximized according to the amount of free resources of the MAC PDU;
  • the terminal device should transmit as much data as possible, that is, multiplex the data in the logical channel as much as possible in the MAC PDU.
  • the terminal device can multiplex the remaining data of the first service data to the target transmission channel, and then can transmit the first service data to the base station through the physical channel.
  • the terminal device After the first transmission time, the terminal device reduces the value of the first variable according to the total size (total size) of the first service data multiplexed to the target transmission channel at the first transmission time.
  • the total size of the first service data is only the size of the first service data multiplexed to the target transmission channel according to the value of the first variable. total size.
  • the terminal device can dynamically determine the first PBR of the target logical channel according to the remaining data volume and remaining transmission time of the first service data, so that the value of the first variable can be increased according to the first PBR, so that, At the first transmission moment, the remaining data of the first service data may be multiplexed to the target transmission channel according to the value of the first variable, so as to realize the transmission of the first service data.
  • the terminal device when the terminal device multiplexes part of the remaining data of the first service data to the target transmission channel in S603 (that is, not all the first service data is multiplexed to the target transmission channel), then After S604, the terminal device continues to perform S601, so that it can continue to pass through S602-S604 to dynamically update the first PBR, and continue to multiplex the remaining data in the first service data to the target according to the dynamically updated first PBR transmission channel.
  • the terminal device may update the remaining data amount of the first service data according to the total size of the partial data multiplexed to the target transmission channel in S603; time, update the first remaining transmission time.
  • the terminal device may update the data of the first service data according to the total size of the partial data multiplexed into the target transmission channel in S603 and the data volume of the first service data that is continuously multiplexed into the target transmission channel amount of data remaining.
  • updating the first remaining transmission time includes:
  • the terminal device updates the first remaining transmission time according to the TTI corresponding to the first transmission moment. That is, the first remaining transmission time is updated to be the first remaining transmission time minus the TTI.
  • the target service no longer needs the remaining data of the first service data.
  • the remaining data of the first service data is multiplexed to the target transmission channel, so that the vacated resources can be used to continue multiplexing the next service data to the target transmission channel.
  • a certain frame of image is not fully transmitted to the network device within the set transmission delay.
  • the processing/display time of the frame image has elapsed, and the processing/display is no longer required. Transmitting that frame of image also doesn't improve the user experience. Therefore, in order to avoid wasting resources and avoid affecting the transmission delay of the image of the next frame, the remaining data in the image of the frame may be discarded.
  • the terminal device when the first remaining transmission time of the first service data is greater than 0, the next service data (referred to as the second service data) of the first service data reaches the target logical channel, the terminal device needs to continue to multiplex the remaining data of the first service data to the target transmission channel until the first remaining transmission time of the first service data is less than or equal to 0.
  • the terminal device discards the remaining data of the first service data, and starts to start the second service data through the following steps.
  • Service data is multiplexed to the target transmission channel:
  • a second PBR corresponding to the target service is determined according to the remaining data amount of the second service data and the second remaining transmission time.
  • the terminal device may increase the value of the first variable according to the second PBR, and multiplex the second service data to the target transmission channel according to the value of the first variable.
  • the terminal device can refer to the above S601-S607, dynamically update the second PBR according to the remaining data volume of the second service data and the second remaining transmission time, and multiplex the second service data according to the dynamically updated second PBR to the target transmission channel, which will not be repeated here.
  • the terminal device discards the remaining data of the first service data when the first remaining transmission time is less than or equal to 0, or after the terminal device multiplexes all the first service data to the target transmission channel, the second service data arrives target logical channel, the terminal device also needs to adopt the above steps to initialize the remaining data volume and the second remaining transmission time of the second service data, and determine the second PBR, etc., the specific process will not be repeated here.
  • the terminal device increases the value of the first variable according to the last calculated first PBR; at the second transmission moment, multiplexes the remaining data of the first service data to the target transmission channel according to the value of the first variable.
  • the terminal device can no longer dynamically calculate the first PBR. Therefore, the terminal device can select the last calculated first PBR to continue to increase the value of the first variable.
  • S606 is an optional step.
  • the terminal device may also use the PBR statically configured by the network device to increase the value of the first variable, which is not limited in this application.
  • the terminal device After the second transmission time, the terminal device reduces the value of the first variable according to the total size of the first service data multiplexed to the target transmission channel at the second transmission time.
  • the terminal device multiplexes the remaining data of the first service data to the target transmission channel according to the value of the first variable, and the process of reducing the value of the first variable may refer to the description in the above S603-S604, It will not be repeated here.
  • the terminal device may execute S606-S607 cyclically to continuously multiplex the remaining data of the first service data to the target transmission channel.
  • this application since the actual transmission duration of the first service data does not meet the transmission delay requirement of the target service, in order to avoid affecting the transmission of the next service data (hereinafter referred to as the second service data), this application implements The example provides a deduction mechanism for occupied time.
  • the terminal device will count the occupied time of the first service data.
  • the second target transmission duration of the second service data can be set equal to the transmission time of the target service The difference between the delay and the occupied duration of the first service data.
  • Manner 1 Before the first remaining transmission time is less than or equal to 0, it is determined that the second service data of the target service arrives at the target logical channel. In this case, when the first remaining transmission time is less than or equal to 0, the terminal device starts to count the occupied duration.
  • Method 2 After the first remaining transmission time is less than or equal to 0, and before all the first service data is multiplexed to the target transmission channel, determine that the second service data of the target service arrives at the target logic channel. In this case, when the second service data arrives, the terminal device starts to count the occupied duration.
  • the terminal device stops timing the occupied duration; and starts to multiplex the second service data to the target transmission channel through the following steps:
  • a second PBR corresponding to the target service is determined according to the remaining data amount of the second service data and the second remaining transmission time.
  • the terminal device may increase the value of the first variable according to the second PBR, and multiplex the second service data to the target transmission channel according to the value of the first variable.
  • the terminal device can refer to the above S601-S607, dynamically update the second PBR according to the remaining data volume of the second service data and the second remaining transmission time, and multiplex the second service data according to the dynamically updated second PBR to the target transmission channel, which will not be repeated here.
  • the terminal device In the scenario where the terminal device adopts solution 2, if the second service data arrives at the target logical channel after the first service data is all multiplexed into the target transmission channel, the terminal device starts to start the second service through the following steps. Service data is multiplexed to the target transmission channel:
  • a second PBR corresponding to the target service is determined according to the remaining data amount of the second service data and the second remaining transmission time.
  • the terminal device may increase the value of the first variable according to the second PBR, and multiplex the second service data to the target transmission channel according to the value of the first variable.
  • the above-mentioned terminal device performs the MAC layer scheduling process may be specifically performed by the MAC layer of the terminal device, or performed for other protocol layers, which is not limited in this application.
  • An embodiment of the present application provides a communication method, in which a terminal device can dynamically determine a PBR corresponding to a target service according to the remaining data volume and remaining transmission time of service data of the target service, so as to transmit the service according to the PBR data; wherein, the remaining transmission time is the difference between the target transmission duration determined according to the transmission delay of the target service and the duration elapsed for transmitting the service data. Since the PBR of the target service changes dynamically according to the requirement of the transmission rate of the service data, as shown in FIG. 6B , compared with the PBR static allocation method, this method can improve the transmission delay within the specified target service as far as possible. The probability that all traffic data is transmitted. In a word, the method can ensure the transmission delay of the service data of the terminal device and improve the user experience of the service.
  • the embodiment of the present application provides another communication method, which can be applied to the downlink direction in a mobile communication system composed of a terminal device and a network device (ie, the network device sends service data to the terminal device).
  • the network device sends service data to the terminal device.
  • the transmission delay of the target service is determined.
  • the specific process can refer to the descriptions in S600a and S600b in FIG. 6A , which will not be described here.
  • the MAC layer of the network device can dynamically determine the PBR corresponding to the target service according to the steps in S601-S607, according to the remaining data volume and remaining transmission time of the first service data of the target service, so as to transmit the first service according to the PBR. Service data; wherein, the remaining transmission time is the difference between the target transmission duration determined according to the transmission delay of the target service and the duration elapsed for transmitting the first service data.
  • the process can be described in detail with respect to the corresponding steps in the embodiment shown in FIG. 6A , which will not be described here.
  • the embodiment of the present application also provides another communication method, which can be applied to a sidelink communication system composed of multiple terminal devices.
  • the MAC layer of the first terminal device (sending device) determines the transmission delay of the target service, and adopts the steps in S601-S607 to send the service data of the target service to
  • the second terminal device (receiving device)
  • the first terminal device may, but is not limited to, determine the transmission delay of the target service in the following ways:
  • the network device may send indication information to the first terminal device, where the indication information is used to indicate the transmission delay of the target service.
  • Mode 2 When the transmission mode adopted by the sidelink system is mode2, the RRC layer or the PDCP layer of the first terminal device can determine the transmission delay of the target service and configure it to the MAC layer of the first terminal device; A terminal device stores the transmission delay of multiple services, and after starting the target service, determines the transmission delay of the target service; or the second terminal device sends indication information to the first terminal device, and the indication information is used to indicate the target service.
  • the transmission delay of the service When the transmission mode adopted by the sidelink system is mode2, the RRC layer or the PDCP layer of the first terminal device can determine the transmission delay of the target service and configure it to the MAC layer of the first terminal device; A terminal device stores the transmission delay of multiple services, and after starting the target service, determines the transmission delay of the target service; or the second terminal device sends indication information to the first terminal device, and the indication information is used to indicate the target service. The transmission delay of the service.
  • the present application also provides an example of a communication method.
  • a mobile communication system including a terminal device and a base station is taken as an example.
  • the MAC layer is performed. Taking scheduling as an example, it will be described with reference to the flowchart shown in FIG. 7 .
  • the base station After the base station establishes a wireless connection with the terminal device, the base station allocates the transmission delay of the XR service to the terminal device.
  • the base station may establish an RRC connection with the terminal device according to the description in S600a in the embodiment shown in FIG. 6A , and establish the data bearer of the XR service based on the RRC connection.
  • the MAC layer of the base station and the terminal device establishes a target logical channel corresponding to the data bearer.
  • the base station may determine the transmission delay of the XR service in the manner described in S600b, and send indication information indicating the transmission delay of the XR service to the terminal device.
  • the terminal device can determine the transmission delay of the XR service, so as to transmit the service data of the XR service (hereinafter referred to as XR service data) according to the transmission delay.
  • the number of tokens Bxr in the token bucket corresponding to the target logical channel may also be referred to as the number of tokens Bxr corresponding to the target logical channel.
  • This example only takes the example of initializing the token data Bxr corresponding to the target logical channel to 0, but it should be noted that this example does not limit the initial value of the number of tokens, and the initial value may also be other values.
  • the Vth XR service data may be any XR service data.
  • Each XR service data may be one frame of image, set frame image or multiple frame images; or one frame image, set frame image or one image slice of multiple frame images, which is not limited in this application.
  • the Vth XR service data may be the Vth frame image or the Vth image slice.
  • the amount of data carried by each RLC SDU that carries the Vth XR service data is determined by the terminal equipment itself, which is not described in detail in this application.
  • this example does not limit the format of data packets carrying XR service data.
  • This example only takes RLC SDU as an example.
  • data packets carrying service data may also be in other formats. data pack.
  • the MAC layer of the terminal device can sequentially multiplex multiple RLC SDUs carrying the Vth XR service data into the target transport channel according to the set order, and the target transport channel is the transport channel corresponding to the target logical channel.
  • the MAC layer of the terminal device calculates the PBR of the target logical channel according to the data volume Sv of the remaining data of the Vth XR service data and the remaining transmission time D; and updates the order of the token bucket corresponding to the target logical channel according to the PBR Number of cards Bxr.
  • PBR represents the increase rate of tokens in the token bucket, it can represent the transmission speed of XR service data. Therefore, when the data volume Sv and the remaining transmission time D of the remaining data of the Vth XR service data are known, it is possible to Determine the rate of increase of tokens in the token bucket for the remaining time D.
  • PBR is represented by the amount of data (such as the number of bits) increased per unit time
  • PBR Sv/D
  • the unit time may be a standard time unit such as seconds (second, s) or milliseconds (millisecond, ms).
  • the token increment time interval T is the update period of Bxr, and its value may be the same as the transmission time interval TTI, or may be different from the TTI, which is not limited in this application.
  • the MAC layer of the terminal device when the RRC layer of the base station further configures the token bucket depth BSD (used to indicate the token number threshold of the token bucket) for the target logical channel of the terminal device, the MAC layer of the terminal device is in the In the process of updating Bxr according to PBR, it is necessary to ensure that Bxr is less than or equal to the token quantity threshold indicated by BSD.
  • the token bucket depth BSD used to indicate the token number threshold of the token bucket
  • the MAC layer of the terminal device At each transmission moment, the MAC layer of the terminal device, according to the number of tokens Bxr in the current token bucket, the data amount K of the remaining data in the RLC SDU to be transmitted in the target logical channel, and the idle data in the MAC PDU of the target transmission channel
  • the amount of resources M that is, the amount of data M that can be carried by idle resources in the MAC PDU
  • the target data whose data amount is Z in the remaining data of the Vth XR service data is multiplexed into the MAC PDU, and according to the target data of the target data.
  • the RLC SDUs to be transmitted are: in the process of sequentially transmitting the plurality of RLC SDUs carrying the Vth XR service data by the MAC layer, the RLC SDUs whose data has not been completely transmitted. Certainly, the remaining data in the to-be-transmitted RLC SDU is included in the remaining data of the Vth XR service data.
  • the amount of idle resources in the MAC PDU the total amount of data that can be carried in the MAC PDU - the total amount of data that has been multiplexed into all data in the MAC PDU.
  • the MAC layer of the terminal device can multiplex data with a data amount of M into the MAC PDU at most.
  • the value of the data amount Z of the target data multiplexed this time is also different, which can be divided into for the following cases:
  • the MAC layer multiplexes all the RLC SDUs to be transmitted into the MAC PDU, that is, the target data is all the remaining data in the RLC SDUs to be transmitted.
  • the multiplexing process is the same as the above steps, that is, the updated RLC SDU to be transmitted needs to be
  • the data amount K of the remaining data is continuously compared with the idle resource amount M in the updated MAC PDU, and according to the comparison result, part or all of the data in the updated RLC SDU to be transmitted is multiplexed into the MAC PDU until it meets any of the following Stop condition:
  • the RLC SDUs carrying the Vth XR service data in the target logical channel are RLC SDU0 and RLC SDU1
  • the current RLC SDU to be transmitted is RLC SDU0.
  • the updated Bxr may be less than 0.
  • the Bxr of the target logical channel is less than or equal to 0, if Bxr is still less than 0 at the next TTI transmission time, that is, after adding PBR*TTI tokens, the MAC layer will no longer perform the Vth XR in the target logical channel.
  • the remaining data in the service data is multiplexed until the Bxr of the target logical channel is greater than 0.
  • the RRC layer of the base station also needs to configure the priorities of the multiple logical channels.
  • the priority parameter of any logical channel determines the order in which the target transport channel is multiplexed by the logical channel in multiple logical channels, that is, the RLC SDU in the logical channel with the higher priority will be preferentially multiplexed into the MAC PDU.
  • the MAC layer of the terminal device sequentially multiplexes the data in the three logical channels into the MAC PDU according to the current parameters such as the number of tokens of each logical channel (that is, the MAC layer performs the above S704 for the parameters such as the number of tokens of each logical channel) ), if there are still idle resources in the MAC PDU, the MAC layer of the terminal device can perform an additional multiplexing process, and continue to sequentially multiplex the remaining data in the logical channels into the MAC PDU according to the priorities of the multiple logical channels. .
  • additional multiplexing processes include:
  • the MAC layer of the terminal device sequentially assigns the RLC SDU1-1 in the logical channel 1, the RLC SDU2-1 in the logical channel 2, and the RLC SDU3 in the logical channel 3 according to the parameters such as the token data amount of each logical channel. -1 is multiplexed into the MAC PDU. That is, the MAC layer performs the above S704 for parameters such as the number of tokens of each logical channel, so that the RLC SDU1-1 in the logical channel 1, the RLC SDU2-1 in the logical channel 2, and the RLC SDU3- 1 is multiplexed into the MAC PDU.
  • step 2 there are still idle resources in the MAC PDU, and the idle resources are sufficient, then the MAC layer preferentially multiplexes all the remaining data (ie RLC SDU1-2) in the logical channel 1 into the MAC PDU, as shown in Figure 8 shown.
  • step 2 since there are still idle resources in the MAC PDU (the amount of data that can be carried is X), the MAC layer continues to store the remaining data (RLC SDU2-2 and RLC SDU2-) in logical channel 2 (ie, the target logical channel). 3) The data whose data volume is X is multiplexed into the MAC PDU. For example, when X is greater than the data volume of all data in RLC SDU2-2, and less than the data volume of all data in RLC SDU2-2 and the data volume of all data in RLC SDU2-3, the MAC layer will All the data in the RLC SDU2-2 and part of the data in the RLC SDU2-2 are multiplexed into the MAC PDU.
  • the MAC layer of the terminal device updates the data amount Sv of the remaining data of the Vth XR service data, and the remaining transmission time D.
  • the MAC layer of the terminal device completes a round of multiplexing process for multiple logical channels according to parameters such as the number of tokens of each logical channel, there are still idle resources in the MAC PDU, and the MAC PDU still has idle resources.
  • the layer continues with additional multiplexing processes. And in this additional multiplexing process, the idle resource is not occupied by data with a priority higher than the target logical channel, and the MAC layer continues to use the remaining data of the Vth XR service data in the target logical channel as Z.
  • the MAC layer can continue to update the PBR of the target logical channel according to the updated Sv and D.
  • S706 The MAC layer of the terminal device determines whether the remaining transmission time D of the Vth XR service data is less than or equal to 0, and if so, execute S707; otherwise, according to the Sv and D updated in S705, continue to execute S703, so that the th The remaining data in the V XR service data is multiplexed into the MAC PDU in the target transport channel.
  • This example only takes the determination threshold value of the remaining transmission time D as 0 for illustration, but does not constitute a limitation on the determination threshold value. In practical applications, the determination threshold value may also be other set values.
  • the XR service requires the same transmission delay for each XR service data.
  • the remaining transmission time D of a certain XR service data is less than or equal to 0, it means that the transmission time of the XR service data cannot reach the XR service transmission delay.
  • the transmission delay of the subsequently arrived XR service data may continue to be affected.
  • the MAC layer of the terminal device determines that the remaining transmission time D of the Vth XR service data is less than or equal to 0, then discard the Vth XR in the target logical channel The remaining data of the service data (that is, discarding all RLC SDUs carrying the remaining data in the Vth XR service data in the target logical channel). In this way, the MAC layer no longer multiplexes the RLC SDUs carrying the remaining data of the Vth XR service data, so that the RLC SDUs carrying the next XR service data can be multiplexed to the target transmission channel.
  • S707 is the first possible implementation manner provided by this embodiment of the present application.
  • the MAC layer of the terminal device may choose to continue multiplexing the Vth XR in the target logical channel.
  • the remaining data in the business data.
  • the MAC layer can continue to update Bxr using the PBR calculated last time before. Since the actual transmission duration of the Vth XR service exceeds the transmission delay of the XR service, it may occur that the remaining data of the Vth XR service data has not been transmitted, and at least one RLC SDU carrying the V+1th service data may occur. The condition of reaching the target logical channel.
  • the MAC layer may initialize the remaining transmission time of the V+1th XR service data by adding the Vth The occupied time of XR service data will be deducted accordingly.
  • the MAC layer determines that the remaining transmission time D of the Vth XR service data is less than or equal to 0, it continues to update Bxr using the PBR calculated last time before, and continues to update Bxr at each transmission moment through the implementation method described in S704.
  • the remaining data in the V XR service data is multiplexed into the MAC PDU; in the process of continuing to transmit the remaining data in the V th XR service data, when at least one RLC SDU carrying the V+1 th service data arrives at the target logical channel After that, the MAC layer can time the occupied duration of the Vth XR service data.
  • the MAC layer stops timing the occupied duration, and then the MAC layer transmits the V+1th XR service data through S702-S707.
  • the MAC layer of the terminal device discards the remaining data of the Vth XR service data, that is, discards the RLC SDU that carries the remaining data of the Vth service data in the target logical channel.
  • this step may occur at any time during the process of transmitting the Vth XR service data, or after the transmission of the Vth XR service data ends.
  • the MAC layer of the terminal device transmits the Vth XR service data
  • one or more RLC SDUs carrying V+1 XR service data arrive at the target logical channel
  • the MAC layer determines when When the Vth XR service data times out (that is, the remaining transmission time D ⁇ 0 of the Vth XR service data)
  • the MAC layer can discard the RLC SDU carrying the remaining data of the Vth service data, so as to transmit the V+1th service data as soon as possible XR business data. In this way, the transmission delay of each VR service data in the XR service can be guaranteed.
  • the MAC layer of the terminal device transmits the Vth XR service data
  • one or more RLC SDUs carrying V+1 XR service data arrive at the target logical channel
  • the MAC layer determines the Vth XR service data.
  • the V pieces of XR service data time out that is, the remaining transmission time D ⁇ 0 of the Vth XR service data
  • the MAC layer can continue to update Bxr with the PBR calculated last time before, and use the embodiment method described in S704 to update Bxr in each At the transmission moment, the remaining data in the Vth XR service data is multiplexed into the MAC PDU. In this way, the following two situations can occur:
  • the MAC layer starts to count the occupied duration of the V th XR service data at the moment when the V th XR service data times out, and at the time when the V th XR service data times out.
  • the timing of the occupied time period is stopped.
  • the MAC layer starts to count the occupied duration of the V th XR service data at the arrival time of the V+1 th service data, and at the When the transmission of the V XR service data is completed, the counting of the occupied duration is stopped.
  • the V+1 th XR service data initialized by the MAC layer is less than the transmission delay of the XR service
  • the V+1 th XR service data is also very limited. May time out. If the remaining transmission time D of the V+1 XR service data is less than or equal to 0, and there is still remaining data that has not been transmitted, the MAC layer can continue to occupy the transmission time of the V+2 XR service data. The descriptions in the two implementation manners are shown, and are not repeated here.
  • the present application also provides another example of a communication method.
  • the mobile communication system is continued as an example, and the MAC layer scheduling is performed in the process of implementing the XR service by the terminal device.
  • the example includes the following steps:
  • logical channel 1 is assigned the highest priority by the RRC layer of the base station
  • logical channel 3 is assigned by the RRC layer of the base station.
  • the layer configures the lowest priority, where XR traffic is transmitted on logical channel 2.
  • the PBR of logical channel 1 or logical channel 2 can be assigned a static PBR to the RRC layer of the base station, that is, the MAC layer uses the traditional method to multiplex the RLC SDUs in logical channel 1 and logical channel 2.
  • the logical channel 2 is used as the target logical channel, its PBR adopts the method described in FIG. 6A or FIG. 7 , and uses the dynamic PBR to update the token.
  • the base station After the base station and the terminal device establish a wireless connection, the base station allocates the service delay of the XR service to the terminal device.
  • the data amount of the remaining data Sv the total data amount of the V-th frame image (ie, the total data amount of the V-th frame image data) 1Mbits.
  • the MAC layer of the terminal device can determine the PBR of the XR logical channel according to Sv and D.
  • the PBR is a dynamic PBR, and in this example, the PBR is represented by the amount of data increased per unit time.
  • the MAC layer of the terminal device adopts the implementation described in S704 in the embodiment shown in FIG. 7 to multiplex the Vth frame image data in the logical channel 2 into the MAC PDU.
  • the free resource M of the MAC PDU is greater than Bxr and greater than the RLC SDU0, so the RLC SDU0 does not need to be segmented.
  • the layer multiplexes the entire data of SDU2 in logical channel 2 and the first 12kbits of data of SDU3 into the MAC PDU. After that, because the MAC PDU has no idle resources, the MAC layer stops multiplexing all logical channels. SDU3 in logical channel 2 still has 38kbits to transmit.
  • Bxr' can also be calculated by rounding down.
  • the MAC PDU After the multiplexing of logical channel 1 is completed, the MAC PDU still has idle resources, so the MAC layer can perform multiplexing of logical channel 2. If the MAC layer of the terminal device adopts the implementation described in S704 in the embodiment shown in FIG. 7 , the Vth frame image data in logical channel 2 is multiplexed into the MAC PDU. In this call, the free resource M of the MAC PDU is larger than Bxr and larger than the remaining data amount of the RLC SDU3, which is 38kbits.
  • the MAC PDU has no available resources, and the MAC layer no longer multiplexes the data of logical channel 3 into the MACP PDU.
  • the MAC layer of the terminal device can continue to multiplex the data in the logical channel into the MAC PDU of the transport channel by repeating step A3 or A4.
  • the MAC layer of the terminal device can discard the remaining data of the V-th frame image whose data volume is Sv, so that when the RLC SDU carrying the V+1-th frame image data reaches the XR logical channel, the MAC layer The layer can schedule the RLC SDU carrying the V+1th frame image data as soon as possible.
  • the MAC layer of the terminal device can choose to continue to multiplex the remaining data in the image data of the Vth frame, that is, continue to repeat steps A3 or A4; wherein in A3 and A4, the MAC layer does not update the PBR corresponding to the logical channel. And update Bxr with the last calculated PBR before.
  • A7 In the first embodiment, when the RLC SDU carrying the V+1th frame of image data arrives at the XR logical channel, if the Vth frame of image data has not been transmitted, the MAC layer of the terminal device can start the Vth frame of image data. When the remaining transmission time D of the data is less than or equal to 0, the remaining data of the Vth frame of image data is discarded, that is, the first embodiment in A6; and the MAC layer continues to repeat the above for the RLC SDU carrying the Vth+1st frame of image data. Steps A2-A6, in order to try to multiplex all the image data of the V+1th frame into the MAC PDU within the specified transmission delay of the XR service.
  • the MAC layer of the terminal device when the RLC SDU carrying the V+1 frame of image data arrives at the XR logical channel, if the V-th frame of image data has not been transmitted, the MAC layer of the terminal device can continue to repeat steps A3 or A4 to The remaining data in the image data of the Vth frame is multiplexed. If after a certain scheduling, the MAC layer of the terminal device determines that the image data of the Vth frame has timed out, there is still remaining data in the image data of the Vth frame that has not been transmitted, and the MAC layer of the terminal device can choose to continue to process the remaining data in the image data of the Vth frame.
  • the MAC layer can update Bxr using the PBR calculated last time before. If the V+1 th frame of image data arrives before the V th frame of image data times out, the MAC layer starts to count the occupied duration of the V th frame of image data at the moment when the V th frame of image data times out. If the V+1th frame of image data arrives after the Vth frame of image data times out, the MAC layer starts timing the occupied duration of the Vth frame of image data at the time when the V+1th frame of image data arrives.
  • the MAC layer stops the arrival duration of the V+1th frame of image data to count, and performs the above steps A2-A6 for the RLC SDU carrying the V+1st frame of image data.
  • this example takes the XR service as an example for description, however, this example does not constitute a limitation on the service to which the method provided by the present application is applied.
  • the MAC layer of the terminal device may perform the above communication method on some or all of the multiple logical channels.
  • the MAC layer of the terminal device may perform the above communication method on some or all of these logical channels, which is not limited in this application.
  • the communication method provided by the embodiment of the present application is applicable to the initial transmission of service data, and the retransmission of some service data may not be applicable due to different retransmission mechanisms of service data.
  • a logical channel may be associated with a transmission moment, and at this transmission moment, other logical channels may not allow multiplexing of the transmission channel corresponding to the logical channel.
  • the MAC layer of the communication device can only associate the first logical channel
  • the service data in the logical channel is multiplexed to the transport channel, and the service data in other logical channels is not multiplexed to the transport channel.
  • an embodiment of the present application also provides a communication device, which can be applied to the communication system as shown in FIG. 4 .
  • the communication device may be a terminal device or a network device in a mobile communication system, or may be a terminal device in a sidelink communication system, which is not limited in this application.
  • the communication device can implement the methods provided by the above embodiments or examples.
  • the communication device 900 includes: a transceiver 901 , a processor 902 , and a memory 903 .
  • the transceiver 901 , the processor 902 and the memory 903 are connected to each other.
  • the transceiver 901 , the processor 902 and the memory 903 are connected to each other through a bus 904 .
  • the bus 904 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus or the like.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus can be divided into address bus, data bus, control bus and so on. For ease of presentation, only one thick line is used in FIG. 9, but it does not mean that there is only one bus or one type of bus.
  • the transceiver 901 is used for receiving and sending signals to realize communication with other devices.
  • the transceiver 901 can be connected to an antenna for signal transmission.
  • the processor 902 is configured to implement the communication methods provided by the above embodiments or examples. For specific functions, reference may be made to the descriptions in the above embodiments, which will not be repeated here.
  • the processor 902 may be a central processing unit (central processing unit, CPU), a network processor (network processor, NP), or a combination of CPU and NP, and so on.
  • the processor 902 may further include hardware chips.
  • the above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
  • the above-mentioned PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general-purpose array logic (generic array logic, GAL) or any combination thereof.
  • CPLD complex programmable logic device
  • FPGA field-programmable gate array
  • GAL general-purpose array logic
  • the memory 903 is used to store program instructions and the like.
  • the program instructions may include program code, and the program code includes computer operation instructions.
  • the memory 903 may include random access memory (RAM), and may also include non-volatile memory (non-volatile memory), such as at least one disk storage.
  • the processor 902 executes the program instructions stored in the memory 903 to implement the above functions, thereby implementing the methods provided by the above embodiments.
  • the embodiments of the present application further provide a computer program, when the computer program runs on a computer, the computer can execute the methods provided by the above embodiments.
  • the embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a computer, the computer executes the method provided by the above embodiment. .
  • the storage medium may be any available medium that the computer can access.
  • computer readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or be capable of carrying or storing instructions or data structures in the form of desired program code and any other medium that can be accessed by a computer.
  • an embodiment of the present application further provides a chip, where the chip is used to read a computer program stored in a memory to implement the methods provided by the above embodiments.
  • the embodiments of the present application provide a chip system, where the chip system includes a processor for supporting a computer apparatus to implement the functions involved in the communication device in the above embodiments.
  • the chip system further includes a memory for storing necessary programs and data of the computer device.
  • the chip system may be composed of chips, or may include chips and other discrete devices.
  • the embodiments of the present application provide a communication method and device.
  • the communication device can dynamically determine the PBR corresponding to the target service according to the remaining data volume and remaining transmission time of the service data of the target service, so as to transmit the service data according to the PBR; wherein, the remaining transmission time is based on the target service.
  • the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
  • the apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiments of the present application provide a communication method and device. In the method, a terminal device can dynamically determine, according to the remaining data volume and remaining transmission time of service data of a target service, a PBR corresponding to the target service, so as to transmit the service data according to the PBR, wherein the remaining transmission time is the difference between a target transmission duration determined according to a transmission delay of the target service and a duration for transmitting the service data. Since the PBR of the target service dynamically changes according to the requirement for a transmission rate of the service data, by means of the method, the probability of transmitting all service data within a specified transmission delay of the target service can be improved as much as possible. In conclusion, by means of the method, the transmission delay of service data of a terminal device can be ensured, and the user experience of a service can be improved.

Description

一种通信方法及设备A communication method and device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求在2021年03月08日提交中国专利局、申请号为202110250199.3、申请名称为“一种通信方法、终端及网络设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中;本申请要求在2021年06月11日提交中国专利局、申请号为202110655744.7、申请名称为“一种通信方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number of 202110250199.3 and the application title of "a communication method, terminal and network equipment" filed with the China Patent Office on March 08, 2021, the entire contents of which are incorporated herein by reference In application; this application claims the priority of the Chinese patent application filed on June 11, 2021 with the application number 202110655744.7 and the application name is "a communication method and device", the entire contents of which are incorporated herein by reference Applying.
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种通信方法及设备。The present application relates to the field of communication technologies, and in particular, to a communication method and device.
背景技术Background technique
在通信系统中,主要定义了三种信道,分别为:逻辑信道(logical channel)、传输信道(transport channel)和物理信道(physical channel)。逻辑信道用于提供数据传输业务,不同逻辑信道是针对不同的数据传输业务定义的;传输信道用于定义在空中接口中数据传输的方式和特性,物理信道用于定义信号在空口中传输的承载。在实际应用中,多个逻辑信道可以复用同一个传输信道上,即多个逻辑信道上的业务数据可以被调度到同一个传输信道,然后在通过物理信道进行传输。In a communication system, three main channels are defined, namely: logical channel, transport channel and physical channel. The logical channel is used to provide data transmission services, and different logical channels are defined for different data transmission services; the transmission channel is used to define the method and characteristics of data transmission in the air interface, and the physical channel is used to define the bearer of the signal transmitted in the air interface. . In practical applications, multiple logical channels can be multiplexed on the same transport channel, that is, service data on multiple logical channels can be scheduled to the same transport channel and then transmitted through the physical channel.
通信系统中的通信设备在发送业务数据过程中,媒体访问控制(media access control,MAC)层需要将逻辑信道中的MAC服务数据单元(service data unit,SDU)调度到传输信道中的MAC协议数据单元(protocol data unit,PDU)。目前,通信系统中采用令牌桶(token bucket)机制来实现逻辑信道到传输信道的资源映射。当通信设备中的多个逻辑信道映射到同一个传输信道时,资源映射过程为:When a communication device in a communication system sends service data, the media access control (MAC) layer needs to schedule the MAC service data unit (SDU) in the logical channel to the MAC protocol data in the transmission channel. Unit (protocol data unit, PDU). At present, the token bucket mechanism is used in the communication system to realize the resource mapping from the logical channel to the transmission channel. When multiple logical channels in a communication device are mapped to the same transport channel, the resource mapping process is:
按照网络设备分配的所述多个逻辑信道的优先级的降序顺序,依次根据每个逻辑信道对应的令牌桶包含的令牌数量,将每个逻辑信道的MAC SDU中的业务数据映射到传输信道的MAC PDU上。其中,每个逻辑信道对应的令牌桶包含的令牌数量直接影响到该逻辑信道映射的业务数据的数据量。According to the descending order of the priorities of the multiple logical channels allocated by the network device, and sequentially according to the number of tokens contained in the token bucket corresponding to each logical channel, the service data in the MAC SDU of each logical channel is mapped to the transmission on the MAC PDU of the channel. The number of tokens contained in the token bucket corresponding to each logical channel directly affects the data volume of the service data mapped by the logical channel.
而在令牌桶机制中,为了实现逻辑信道中业务数据可以持续复用到传输信道,每个逻辑信道对应的令牌桶中的令牌按照速度——优先比特率(prioritized bit rate,PBR)匀速增加。其中,PBR为网络设备侧为该逻辑信道分配的静态最低保证比特率,该值为固定值。In the token bucket mechanism, in order to realize that the service data in the logical channel can be continuously multiplexed to the transmission channel, the tokens in the token bucket corresponding to each logical channel are based on the speed-prioritized bit rate (PBR) increase evenly. The PBR is a static minimum guaranteed bit rate allocated by the network device side for the logical channel, and this value is a fixed value.
综上可知,网络设备为每个逻辑信道配置的PBR直接影响了该逻辑信道中的业务数据映射到传输信道的速率,进而影响该逻辑信道对应的业务的业务数据传输时延。To sum up, the PBR configured by the network device for each logical channel directly affects the rate at which the service data in the logical channel is mapped to the transmission channel, thereby affecting the service data transmission delay of the service corresponding to the logical channel.
而随着通信技术的发展,以及用户对业务质量(quality of service,QoS)提出了更高的要求,要求通信系统中的终端设备的传输速率更高或更灵活。例如,宽带实时交互(real-time broadband communication,RTBC)场景旨在支持大带宽和低时延,目的是在给定时延和一定可靠性要求下提升带宽,打造人与虚拟世界交互时的沉浸式体验。其中,该场景包含有超高带宽和超低时延要求的扩展现实(extended reality,XR)业务。由于XR业务需要终端设备上传图像,并且不同图像编码后的数据量波动较大(例如,在一个图像 群组(group of picture,GOP)中,编码后的I帧图像的数据量较大,而一般编码后的P帧图像的数据量较小),但每帧图像的传输时延要求是相同的,XR业务对应的逻辑信道的PBR的具体取值可能是网络设备考虑到该逻辑信道的平均码率而设置的,因此,这就会导致在设定的传输时延内数据量较大的图像可能无法全部传输。因此,上述令牌桶机制中的逻辑信道的PBR静态分配方式会对XR业务的传输时延造成较大的影响,进而降低了该业务的用户体验。However, with the development of communication technology, and users have put forward higher requirements for quality of service (QoS), the terminal equipment in the communication system is required to have a higher or more flexible transmission rate. For example, the real-time broadband communication (RTBC) scenario is designed to support large bandwidth and low latency. The purpose is to increase the bandwidth under a given latency and certain reliability requirements, and to create an immersive human interaction with the virtual world. experience. Among them, this scenario includes extended reality (extended reality, XR) services that require ultra-high bandwidth and ultra-low latency. Because the XR service requires the terminal device to upload images, and the data volume of different images after encoding fluctuates greatly (for example, in a group of picture (GOP), the data volume of the encoded I-frame image is large, while the Generally, the data volume of the encoded P frame image is small), but the transmission delay requirements of each frame image are the same. The bit rate is set, therefore, the image with a large amount of data may not be fully transmitted within the set transmission delay. Therefore, the PBR static allocation method of the logical channel in the above token bucket mechanism will greatly affect the transmission delay of the XR service, thereby reducing the user experience of the service.
发明内容SUMMARY OF THE INVENTION
本申请提供一种通信方法及设备,用于保证终端设备的业务数据的传输时延,提升业务的用户体验。The present application provides a communication method and device, which are used to ensure the transmission delay of service data of a terminal device and improve the user experience of the service.
第一方面,本申请实施例提供了一种通信方法,该方法可以应用于图4所示的通信系统中发送业务数据的发送端,例如移动通信系统上行方向的终端设备或下行方向的网络设备,又例如sidelink通信系统中的任一个终端设备。下面以通信设备为例对该方法进行说明,该方法包括以下步骤:In the first aspect, an embodiment of the present application provides a communication method, which can be applied to a sending end that sends service data in the communication system shown in FIG. 4 , for example, a terminal device in the uplink direction of a mobile communication system or a network device in the downlink direction. , another example is any terminal device in the sidelink communication system. The method is described below by taking a communication device as an example, and the method includes the following steps:
通信设备确定目标业务的第一业务数据的剩余数据量和所述第一业务数据的第一剩余传输时间;然后根据所述剩余数据量和所述第一剩余传输时间,确定所述目标业务对应的第一优先比特率PBR;其中,所述第一剩余传输时间为所述第一目标传输时长与传输所述第一业务数据所经过的时长之间的差值;所述第一目标传输时长是根据所述目标业务的传输时延确定的。The communication device determines the remaining data volume of the first service data of the target service and the first remaining transmission time of the first service data; and then determines the corresponding target service according to the remaining data volume and the first remaining transmission time The first priority bit rate PBR; wherein, the first remaining transmission time is the difference between the first target transmission duration and the duration of transmitting the first service data; the first target transmission duration is determined according to the transmission delay of the target service.
通过该方法,通信设备可以根据目标业务的业务数据的剩余数据量和剩余传输时间,动态地确定目标业务对应的PBR,以根据该PBR传输该业务数据;其中,该剩余传输时间为根据目标业务的传输时延确定的目标传输时长与传输该业务数据所经过的时长之间的差值。由于该目标业务的PBR是根据业务数据的传输速率的要求而动态变化的,因此该方法可以尽量提高在规定的目标业务的传输时延内全部传输业务数据的概率。总之,该方法可以保证通信设备的业务数据的传输时延,提升业务的用户体验。Through this method, the communication device can dynamically determine the PBR corresponding to the target service according to the remaining data volume and the remaining transmission time of the service data of the target service, so as to transmit the service data according to the PBR; wherein, the remaining transmission time is determined according to the target service The difference between the target transmission duration determined by the transmission delay and the duration elapsed for transmitting the service data. Since the PBR of the target service changes dynamically according to the requirement of the transmission rate of service data, this method can improve the probability of all transmission of service data within the specified transmission delay of the target service as much as possible. In a word, the method can ensure the transmission delay of the service data of the communication device and improve the user experience of the service.
在一种可能的设计中,当所述通信设备为移动通信系统或sidelink通信系统中的终端设备时,该通信设备可以接收来自网络设备的指示信息,所述指示信息用于指示所述目标业务的传输时延。In a possible design, when the communication device is a terminal device in a mobile communication system or a sidelink communication system, the communication device may receive indication information from a network device, where the indication information is used to indicate the target service transmission delay.
这样,网络设备可以为终端设备配置目标业务的传输时延,从而使终端设备可以发送每个业务数据时,根据目标业务的传输时延确定该业务数据的目标传输时长。In this way, the network device can configure the transmission delay of the target service for the terminal device, so that when the terminal device sends each service data, the target transmission duration of the service data can be determined according to the transmission delay of the target service.
在一种可能的设计中,该通信设备在确定所述目标业务对应的第一PBR之后,还可以根据所述PBR,执行以下步骤:In a possible design, after determining the first PBR corresponding to the target service, the communication device may also perform the following steps according to the PBR:
根据所述第一PBR,增加第一变量(即目标逻辑信道对应的令牌数量)的取值,所述第一变量对应目标逻辑信道;其中,所述目标逻辑信道为所述目标业务对应的逻辑信道;根据所述第一变量的取值,将所述第一业务数据的剩余数据复用到目标传输信道;其中,所述目标传输信道为所述目标逻辑信道对应的传输信道。According to the first PBR, the value of a first variable (that is, the number of tokens corresponding to the target logical channel) is increased, and the first variable corresponds to the target logical channel; wherein, the target logical channel corresponds to the target service a logical channel; according to the value of the first variable, multiplex the remaining data of the first service data to a target transmission channel; wherein, the target transmission channel is a transmission channel corresponding to the target logical channel.
通过该设计,所述通信设备可以采用令牌桶机制,根据计算的第一PBR传输第一业务数据的剩余数据。With this design, the communication device can use the token bucket mechanism to transmit the remaining data of the first service data according to the calculated first PBR.
在一种可能的设计中,所述通信设备在将所述第一业务数据的剩余数据复用到目标传输信道之后,还可以确定复用到所述目标传输信道的所述第一业务数据的总大小;然后根 据复用到所述目标传输信道的第一业务数据的总大小减少所述第一变量的取值。In a possible design, after the communication device multiplexes the remaining data of the first service data into the target transmission channel, the communication device may further determine the size of the first service data multiplexed into the target transmission channel. the total size; and then reduce the value of the first variable according to the total size of the first service data multiplexed to the target transmission channel.
通过该设计,所述通信设备可以根据每次复用到目标传输信道的数据量,更新第一变量的取值。Through this design, the communication device can update the value of the first variable according to the amount of data multiplexed to the target transmission channel each time.
在一种可能的设计中,在通信设备根据所述第一变量的取值,将所述第一业务数据的剩余数据中的部分数据复用到所述目标传输信道的情况下,所述通信设备还可以根据所述部分数据的总大小,减少所述第一业务数据的剩余数据量;以及根据本次将所述部分数据复用到所述目标传输信道所消耗的时间,减少所述第一剩余传输时间;然后当所述第一剩余传输时间大于0时,根据更新后的所述第一业务数据的剩余数据量,和所述第一剩余传输时间,确定所述目标业务对应的第二PBR。In a possible design, when the communication device multiplexes part of the remaining data of the first service data into the target transmission channel according to the value of the first variable, the communication The device may also reduce the remaining data amount of the first service data according to the total size of the partial data; and reduce the first service data according to the time consumed by multiplexing the partial data to the target transmission channel this time. a remaining transmission time; then when the first remaining transmission time is greater than 0, according to the updated remaining data volume of the first service data and the first remaining transmission time, the first remaining transmission time corresponding to the target service is determined. Two PBR.
通过该设计,所述通信设备可以在第一业务数据未全部复用到目标传输信道时,继续动态地计算PBR,从而可以采用该最新计算的PBR继续传输第一业务数据的剩余数据。Through this design, the communication device can continue to dynamically calculate the PBR when the first service data is not all multiplexed into the target transmission channel, so that the newly calculated PBR can be used to continue to transmit the remaining data of the first service data.
在一种可能的设计中,当所述第一剩余传输时间小于或等于判断阈值(以0为例)时,所述通信设备还可以丢弃所述第一业务数据的剩余数据。In a possible design, when the first remaining transmission time is less than or equal to a judgment threshold (take 0 as an example), the communication device may also discard the remaining data of the first service data.
当第一剩余传输时间小于或等于该判断阈值表示当前第一业务数据的实际传输时长已经不满足目标业务的传输时延要求。通过该设计,通信设备不再将第一业务数据的剩余数据复用到目标传输信道,以便可以利用空出的资源继续将下一个业务数据复用到目标传输信道。When the first remaining transmission time is less than or equal to the judgment threshold, it indicates that the current actual transmission time of the first service data has not met the transmission delay requirement of the target service. With this design, the communication device no longer multiplexes the remaining data of the first service data to the target transmission channel, so that the vacated resources can be used to continue multiplexing the next service data to the target transmission channel.
在一种可能的设计中,当所述第一剩余传输时间小于或等于判断阈值(以0为例)时,所述通信设备还可以根据最后一次计算的PBR(即所述第一PBR),增加所述第一变量的取值。In a possible design, when the first remaining transmission time is less than or equal to a judgment threshold (take 0 as an example), the communication device may also, according to the last calculated PBR (that is, the first PBR), Increase the value of the first variable.
由于第一剩余传输时间小于或等于判断阈值,通信设备无法再动态计算PBR,因此,通信设备可以选择之前最后一次计算的PBR继续增加第一变量的取值,以便继续传输第一业务数据的剩余数据。Since the first remaining transmission time is less than or equal to the judgment threshold, the communication device can no longer dynamically calculate the PBR. Therefore, the communication device can select the last calculated PBR to continue to increase the value of the first variable, so as to continue to transmit the remainder of the first service data. data.
在一种可能的设计中,在第一业务数据超时的情况下若通信设备继续阐述第一业务数据的剩余数据;那么为了尽量保证第一业务数据之后的下一个业务数据(第二业务数据)的传输时长能够尽量符合目标业务的传输时延的要求,所述通信设备可以根据第二业务数据的到达时刻,启动占用时长的计时,如以下两种方式所示:In a possible design, when the first service data times out, if the communication device continues to describe the remaining data of the first service data; then in order to ensure the next service data (second service data) after the first service data as much as possible The transmission duration can meet the requirements of the transmission delay of the target service as much as possible, and the communication device can start the timing of the occupation duration according to the arrival time of the second service data, as shown in the following two ways:
方式一:在所述第一剩余传输时间小于或等于0之前,确定所述目标业务的第二业务数据到达所述目标逻辑信道;在所述第一剩余传输时间小于或等于0时,开始对占用时长进行计时;Manner 1: Before the first remaining transmission time is less than or equal to 0, determine that the second service data of the target service reaches the target logical channel; when the first remaining transmission time is less than or equal to 0, start to Occupy time for timing;
方式二:在所述第一剩余传输时间小于或等于0之后,且所述第一业务数据全部复用到所述目标传输信道之前,确定所述目标业务的第二业务数据到达所述目标逻辑信道;在所述第二业务数据的到达时,开始对占用时长进行计时;Method 2: After the first remaining transmission time is less than or equal to 0, and before all the first service data is multiplexed to the target transmission channel, determine that the second service data of the target service arrives at the target logic channel; when the second service data arrives, start timing the occupied duration;
在启动占用时长的计时之后,在所述第一业务数据全部复用到所述目标传输信道时,通信设备停止对所述占用时长进行计时;然后通信设备初始化所述第二业务数据的剩余数据量为所述第二业务数据的总数据量,并初始化所述第二业务数据的第二剩余传输时间为第二目标传输时长;其中,所述第二目标传输时长为所述目标业务的传输时延与所述占用时长之间的差值;并根据所述第二业务数据的剩余数据量和所述第二剩余传输时间,确定所述目标业务对应的第三PBR。After starting the timing of the occupied time, when all the first service data is multiplexed to the target transmission channel, the communication device stops timing the occupied time; then the communication device initializes the remaining data of the second service data The amount is the total data amount of the second service data, and the second remaining transmission time of the second service data is initialized as the second target transmission duration; wherein, the second target transmission duration is the transmission of the target service and determining the third PBR corresponding to the target service according to the remaining data amount of the second service data and the second remaining transmission time.
通过该设计,若第一业务数据全部复用到目标传输信道之前第二业务数据到达,通信 设备可以采样以上设计统计第一业务数据的占用时长。这样,在该第一业务数据全部复用到目标传输信道,通信设备开始将第二业务数据复用到目标传输信道时,可以设置第二业务数据的第二目标传输时长等于所述目标业务的传输时延与第一业务数据的占用时长的差值。通过该占用时长扣除机制,可以保证第二业务数据的实际传输时长接近第二目标传输时长,进而在目标业务的传输时延要求内将第二业务数据全部复用到目标传输信道。With this design, if the second service data arrives before the first service data is all multiplexed to the target transmission channel, the communication device can sample the above design to count the occupied time of the first service data. In this way, when all the first service data is multiplexed to the target transmission channel and the communication device starts to multiplex the second service data to the target transmission channel, the second target transmission duration of the second service data can be set equal to the duration of the target service. The difference between the transmission delay and the occupied duration of the first service data. Through the occupied time deduction mechanism, it can be ensured that the actual transmission time of the second service data is close to the second target transmission time, and then all the second service data is multiplexed to the target transmission channel within the transmission delay requirement of the target service.
第二方面,本申请实施例提供了一种通信方法,该方法可以应用于网络设备,该方法包括以下步骤:In a second aspect, an embodiment of the present application provides a communication method, the method can be applied to a network device, and the method includes the following steps:
网络设备确定目标业务的传输时延;然后向终端设备发送指示信息,所述指示信息用于指示所述目标业务的传输时延。The network device determines the transmission delay of the target service; and then sends indication information to the terminal device, where the indication information is used to indicate the transmission delay of the target service.
通过该方法,网络设备可以为终端设备配置目标业务的传输时延,从而使终端设备可以发送每个业务数据时,根据目标业务的传输时延确定该业务数据的目标传输时长。Through this method, the network device can configure the transmission delay of the target service for the terminal device, so that when the terminal device sends each service data, the target transmission duration of the service data can be determined according to the transmission delay of the target service.
第三方面,本申请实施例提供了一种通信装置,包括用于执行本申请以上任一方面提供的方法的步骤的单元。In a third aspect, an embodiment of the present application provides a communication apparatus, including a unit for performing the steps of the method provided in any of the above aspects of the present application.
第四方面,本申请实施例提供了一种通信设备,包括至少一个处理元件和至少一个存储元件,其中该至少一个存储元件用于存储程序和数据,该至少一个处理元件用于执行本申请任一方面提供的方法的步骤。In a fourth aspect, an embodiment of the present application provides a communication device, comprising at least one processing element and at least one storage element, wherein the at least one storage element is used to store programs and data, and the at least one processing element is used to execute any An aspect provides the steps of a method.
第五方面,本申请实施例提供了一种通信系统,包含:用于实现以上第一方面提供的方法的终端设备,以及用于实现以上第二方面提供的方法的网络设备。In a fifth aspect, an embodiment of the present application provides a communication system, including: a terminal device for implementing the method provided in the first aspect above, and a network device for implementing the method provided in the second aspect above.
第六方面,本申请实施例还提供了一种计算机程序,当计算机程序在计算机上运行时,使得计算机执行上述任一方面提供的方法。In a sixth aspect, an embodiment of the present application further provides a computer program, which, when the computer program runs on a computer, causes the computer to execute the method provided in any of the foregoing aspects.
第七方面,本申请实施例还提供了一种计算机存储介质,计算机存储介质中存储有计算机程序,当计算机程序被计算机执行时,使得计算机执行上述任一方面提供的方法。In a seventh aspect, an embodiment of the present application further provides a computer storage medium, where a computer program is stored in the computer storage medium, and when the computer program is executed by the computer, the computer is made to execute the method provided in any of the above aspects.
第八方面,本申请实施例还提供了一种芯片,芯片用于读取存储器中存储的计算机程序,执行上述任一方面提供的方法。In an eighth aspect, an embodiment of the present application further provides a chip, where the chip is configured to read a computer program stored in a memory, and execute the method provided in any of the foregoing aspects.
第九方面,本申请实施例还提供了一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现上述任一方面提供的方法。在一种可能的设计中,芯片系统还包括存储器,存储器用于保存该计算机装置必要的程序和数据。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。In a ninth aspect, an embodiment of the present application further provides a chip system, where the chip system includes a processor for supporting a computer device to implement the method provided in any one of the foregoing aspects. In a possible design, the chip system further includes a memory for storing necessary programs and data of the computer device. The chip system can be composed of chips, and can also include chips and other discrete devices.
第十方面,本发明实施例提供一种装置,包含用于执行本发明任一实施例所介绍的方法的单元。In a tenth aspect, an embodiment of the present invention provides an apparatus, including a unit for executing the method described in any embodiment of the present invention.
附图说明Description of drawings
图1为本申请实施例提供的一种GOP内图像帧的编码方式示意图;FIG. 1 is a schematic diagram of an encoding method of an image frame in a GOP provided by an embodiment of the present application;
图2为本申请实施例提供的一种GOP内各个图形帧编码后的数据量示意图;FIG. 2 is a schematic diagram of the data volume after encoding of each graphic frame in a GOP provided by an embodiment of the present application;
图3为本申请实施例提供的一种终端设备的MAC层调度示例图;FIG. 3 is an example diagram of MAC layer scheduling of a terminal device according to an embodiment of the present application;
图4为本申请实施例提供的一种通信系统的架构图;FIG. 4 is an architectural diagram of a communication system provided by an embodiment of the present application;
图5为本申请实施例提供的一种通信系统的网络拓扑示意图;5 is a schematic diagram of a network topology of a communication system according to an embodiment of the present application;
图6A为本申请实施例提供的一种通信方法的流程图;6A is a flowchart of a communication method provided by an embodiment of the present application;
图6B为本申请实施例提供的一种动态PBB和静态PBR变化曲线示意图;6B is a schematic diagram of a dynamic PBB and a static PBR variation curve provided by an embodiment of the application;
图7为本申请实施例提供的一种通信方法的实例流程图;FIG. 7 is an example flowchart of a communication method provided by an embodiment of the present application;
图8为本申请实施例提供的一种终端设备的MAC层调度示例图;FIG. 8 is an example diagram of MAC layer scheduling of a terminal device according to an embodiment of the present application;
图9为本申请实施例提供的一种通信设备的结构图。FIG. 9 is a structural diagram of a communication device according to an embodiment of the present application.
具体实施方式Detailed ways
本申请提供一种通信方法及设备,用于保证终端设备的业务数据的传输时延,提升业务的用户体验。其中,方法和设备是基于同一技术构思的,由于方法及设备解决问题的原理相似,因此设备与方法的实施可以相互参见,重复之处不再赘述。The present application provides a communication method and device, which are used to ensure the transmission delay of service data of a terminal device and improve the user experience of the service. The method and the device are based on the same technical concept. Since the principles of the method and the device for solving problems are similar, the implementation of the device and the method can be referred to each other, and repeated descriptions will not be repeated.
以下,对本申请中的部分用语进行解释说明,以便于本领域技术人员理解。Hereinafter, some terms in the present application will be explained so as to facilitate the understanding of those skilled in the art.
1)、网络设备,是通信系统中将终端设备接入到无线网络的设备。所述网络设备作为无线接入网中的节点,又可以称为基站,还可以称为无线接入网(radio access network,RAN)节点(或设备),或者称为接入点(access point,AP)。1) A network device is a device that connects a terminal device to a wireless network in a communication system. The network device, as a node in a wireless access network, may also be called a base station, may also be called a radio access network (radio access network, RAN) node (or device), or an access point (access point, AP).
目前,一些网络设备的举例为:新一代节点B(generation Node B,gNB)、传输接收点(transmission reception point,TRP)、演进型节点B(evolved Node B,eNB)、无线网络控制器(radio network controller,RNC)、节点B(Node B,NB)、接入点(access point,AP)基站控制器(base station controller,BSC)、基站收发台(base transceiver station,BTS)、家庭基站(例如,home evolved NodeB,或home Node B,HNB),或基带单元(base band unit,BBU),企业LTE离散窄带聚合(Enterprise LTE Discrete Spectrum Aggregation,eLTE-DSA)基站等。At present, some examples of network equipment are: generation Node B (gNB), transmission reception point (TRP), evolved Node B (evolved Node B, eNB), radio network controller (radio network controller, RNC), Node B (Node B, NB), access point (access point, AP) base station controller (base station controller, BSC), base transceiver station (base transceiver station, BTS), home base station (such as , home evolved NodeB, or home Node B, HNB), or base band unit (base band unit, BBU), enterprise LTE discrete narrowband aggregation (Enterprise LTE Discrete Spectrum Aggregation, eLTE-DSA) base station, etc.
另外,在一种网络结构中,所述网络设备可以包括集中单元(centralized unit,CU)节点和分布单元(distributed unit,DU)节点。这种结构将长期演进(long term evolution,LTE)系统中eNB的协议层拆分开,部分协议层的功能放在CU集中控制,剩下部分或全部协议层的功能分布在DU中,由CU集中控制DU。In addition, in a network structure, the network device may include a centralized unit (centralized unit, CU) node and a distributed unit (distributed unit, DU) node. This structure separates the protocol layers of the eNB in the long term evolution (LTE) system. The functions of some protocol layers are centrally controlled by the CU, and the remaining part or all of the functions of the protocol layers are distributed in the DU, which is controlled by the CU. Centralized control of DU.
2)、终端设备,是一种向用户提供语音和/或数据连通性的设备。终端设备又可以称为用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等。2) A terminal device is a device that provides voice and/or data connectivity to users. A terminal device may also be called a user equipment (user equipment, UE), a mobile station (mobile station, MS), a mobile terminal (mobile terminal, MT), and the like.
例如,终端设备可以为具有无线连接功能的手持式设备、各种车载设备、路侧单元等。目前,一些终端设备的举例为:手机(mobile phone)、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、智能销售终端(point of sale,POS)、可穿戴设备,虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端、各类智能仪表(智能水表、智能电表、智能燃气表)、eLTE-DSA UE、具有接入回传一体化(integrated access and backhaul,IAB)能力的设备、车载电子控制单元(electronic control unit,ECU)等、车载电脑、车载巡航系统、远程信息处理器(telematics box,T-BOX)等。For example, the terminal device may be a handheld device with a wireless connection function, various in-vehicle devices, a roadside unit, and the like. At present, some examples of terminal devices are: mobile phone (mobile phone), tablet computer, notebook computer, PDA, mobile internet device (MID), smart point of sale (POS), wearable device, Virtual reality (VR) equipment, augmented reality (AR) equipment, wireless terminals in industrial control, wireless terminals in self driving, remote medical surgery wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, Smart meters (smart water meter, smart electricity meter, smart gas meter), eLTE-DSA UE, equipment with integrated access and backhaul (IAB) capability, on-board electronic control unit (ECU) etc., on-board computer, on-board cruise system, telematics box (T-BOX), etc.
3)、通信设备,为通信系统中具有通信功能的设备,可以为网络设备,也可以为终端设备,本申请对此不作限定。3) A communication device is a device with a communication function in a communication system, which may be a network device or a terminal device, which is not limited in this application.
4)、信道(channel),通信的通道,是信号/数据传输的媒介。在通信系统中主要定义了三种信道,分别为逻辑信道、传输信道和物理信道。下面分别对不同种类的信道进行说 明:4), channel (channel), the channel of communication, is the medium of signal/data transmission. There are mainly three kinds of channels defined in the communication system, namely logical channel, transport channel and physical channel. The different types of channels are described below:
逻辑信道用于提供数据传输业务,不同逻辑信道是针对不同的数据传输业务定义的,例如公共业务信道(common transaction channel,CTCH)、专用业务信道(dedicated transaction channel,DTCH)、广播控制信道(broadcast control channel,BCCH)、公共控制信道(common control channel,CCCH)等。Logical channels are used to provide data transmission services. Different logical channels are defined for different data transmission services, such as common transaction channel (CTCH), dedicated transaction channel (DTCH), and broadcast control channel (broadcast). control channel, BCCH), common control channel (common control channel, CCCH), etc.
传输信道用于定义在空中接口中数据传输的方式和特性,例如随机接入信道(random access channel,RACH)、下行共享信道(downlink shared channel,DSCH),上行共享信道(uplink shared channel,USCH)、广播信道(broadcast channel,BCH)、公共分组信道(common packet channel,CPCH)等。Transport channels are used to define the way and characteristics of data transmission in the air interface, such as random access channel (RACH), downlink shared channel (DSCH), uplink shared channel (USCH) , broadcast channel (broadcast channel, BCH), common packet channel (common packet channel, CPCH), etc.
物理信道用于定义信号在空口中传输的承载,例如物理信道可以定义特定的时域资源和频域资源、扰码等。示例性的,物理信道可以包括:物理随机接入信道(physical random access channel,PRACH)、物理下行共享信道(physical downlink shared channel,PDSCH),物理上行共享信道(physical uplink shared channel,PUSCH)、物理公共分组信道(physical common packet channel,PCPCH)等。The physical channel is used to define the bearer of the signal transmitted in the air interface. For example, the physical channel can define specific time-domain resources and frequency-domain resources, scrambling codes, and so on. Exemplarily, the physical channels may include: a physical random access channel (PRACH), a physical downlink shared channel (PDSCH), a physical uplink shared channel (PUSCH), a physical uplink shared channel (PUSCH), and a physical uplink shared channel (PUSCH). Common packet channel (physical common packet channel, PCPCH) and so on.
5)、数据量,采用设定的同一的计量单位,计量数据的大小得到的数值。在本申请实施例中,数据量的计量单位可以但不限于为:比特(bit,又称为位)、字节(Byte)。其中,1Byte=8bit。5) The amount of data is the value obtained by measuring the size of the data using the same unit of measurement set. In the embodiment of the present application, the measurement unit of the data amount may be, but is not limited to, a bit (bit, also referred to as a bit) and a byte (Byte). Among them, 1Byte=8bit.
6)、业务,为通过终端设备实现的某些功能或服务,或者为传输与应用层的服务相关的数据流。可选的,本申请涉及业务可以按照不同的角度划分为不同种类。6) Services, which are certain functions or services implemented by terminal equipment, or data streams related to services at the application layer are transmitted. Optionally, the services involved in the present application may be classified into different types according to different angles.
例如,业务可以按照对时延要求的严苛程度来划分,那么业务可以分为普通业务(传输时延大于或等于第一阈值的业务)、低时延业务(传输时延小于第一阈值)、实时业务(传输时延小于第二阈值)等。其中,所述第二阈值小于所述第一阈值。For example, services can be divided according to the severity of delay requirements, then services can be divided into ordinary services (services with transmission delay greater than or equal to the first threshold) and low-latency services (transmission delay less than the first threshold) , real-time services (transmission delay is less than the second threshold), etc. Wherein, the second threshold is smaller than the first threshold.
又例如,业务还可以按照功能或服务的类型划分,那么业务可以分为数据业务、语音业务、视频类业务、XR业务等。其中,XR业务主要包含虚拟现实(virtual reality,VR)、增强现实(augmented reality,AR)、混合现实(mixed reality,MR)等虚拟与现实交互业务。支持XR业务的终端设备一般内部设置有摄像头以采集当前场景图像,并需要终端设备持续上传采集到的图像,因此XR业务对终端设备的数据的传输时延以及带宽有较高的要求。For another example, services may also be classified according to functions or types of services, and then services may be classified into data services, voice services, video services, XR services, and the like. Among them, the XR business mainly includes virtual reality (virtual reality, VR), augmented reality (AR), mixed reality (mixed reality, MR) and other virtual and reality interaction services. Terminal devices that support XR services are generally equipped with cameras to capture images of the current scene, and the terminal devices need to continuously upload the collected images. Therefore, XR services have higher requirements on the data transmission delay and bandwidth of the terminal devices.
再例如,当同一功能或服务中可以传输多种数据流时,业务还可以按照数据流的类型划分。例如,应用层的服务包含视频流和音频流,那么视频流可以为一个业务,音频流为另一个业务。For another example, when multiple data streams can be transmitted in the same function or service, services can also be divided according to the types of data streams. For example, if the service of the application layer includes video stream and audio stream, the video stream can be one service, and the audio stream can be another service.
再例如,由于终端设备无论期望实现哪种功能或服务,均需要终端设备通过与对应的数据网络(data network,DN)建立连接来实现。而且实现不同的功能或服务时,终端设备需要连接的数据网络也不同。因此业务还可以通过终端设备连接的数据网络进行划分。For another example, no matter what kind of function or service the terminal device expects to implement, it needs to be implemented by the terminal device by establishing a connection with a corresponding data network (data network, DN). Moreover, when implementing different functions or services, the data networks that the terminal devices need to connect to are also different. Therefore, services can also be divided through the data network connected to the terminal equipment.
基于上述理论,本申请实施例中,并不限定业务的表现形式,所述业务可以通过时延要求划分,也可以通过功能或服务的类型划分,还可以通过数据流的类型划分,还可以通过终端设备请求的数据网络标识(Data Network Number,DNN)划分。Based on the above theory, the embodiment of the present application does not limit the representation of services. The services can be divided by time delay requirements, by function or service type, by data stream type, or by The Data Network Number (DNN) division requested by the terminal device.
7)、业务的传输时延,即业务的数据包从发送设备到接收设备的时延要求,能够体现业务的QoS。在本申请中,传输时延又可以称为空口包时延预算(air interface packet delay budget)、时延上限,或者称为空口时延等。7) The transmission delay of the service, that is, the time delay requirement of the data packet of the service from the sending device to the receiving device, can reflect the QoS of the service. In this application, the transmission delay may also be referred to as an air interface packet delay budget (air interface packet delay budget), a delay upper limit, or an air interface delay, and the like.
以UE和基站构成的移动通信系统为例说明,业务的传输时延为业务的数据包从UE的MAC层到基站的时延要求(latency requirement from UE MAC to gNB/eNB packet arrival)。Taking a mobile communication system composed of a UE and a base station as an example, the transmission delay of the service is the delay requirement from the UE MAC to the gNB/eNB packet arrival of the service data packet from the MAC layer of the UE to the base station.
8)、令牌,为通信设备的MAC层调度过程用于控制传输的数据量的资源。需要说明的是,由于通信设备的MAC层会根据PBR增加令牌数量,以及在传输数据的过程也会消耗令牌数量,因此,令牌数量会不断发生变化,即令牌数量为变量。在本申请实施例中,令牌数据还可以称为令牌数量变量、变量等。其中,改变令牌数量可以理解为改变令牌数量变量(或者变量)的取值,增加令牌数量可以理解为增加变量的取值,减少令牌的数量可以理解为减少变量的取值。8) Token, which is a resource used by the MAC layer scheduling process of the communication device to control the amount of transmitted data. It should be noted that, since the MAC layer of the communication device will increase the number of tokens according to the PBR, and the number of tokens will also be consumed in the process of data transmission, the number of tokens will change continuously, that is, the number of tokens is a variable. In this embodiment of the present application, the token data may also be referred to as a token quantity variable, a variable, or the like. Among them, changing the number of tokens can be understood as changing the value of the token quantity variable (or variable), increasing the number of tokens can be understood as increasing the value of the variable, and reducing the number of tokens can be understood as reducing the value of the variable.
例如,在本申请图6A所示的实施例中“第一变量”即为目标逻辑信道对应的令牌数量。For example, in the embodiment shown in FIG. 6A of the present application, the "first variable" is the number of tokens corresponding to the target logical channel.
9)、“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。9), "and/or", describe the association relationship of the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, and B exists alone. Happening. The character "/" generally indicates that the associated objects are an "or" relationship.
需要说明的是,本申请中所涉及的多个,是指两个或两个以上。至少一个,是指一个或多个。It should be noted that the plural referred to in this application refers to two or more. At least one means one or more.
另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and should not be understood as indicating or implying relative importance, nor should it be understood as indicating or implied order.
下面以实现XR业务中,终端设备发送业务数据为例进行说明。In the following, in the implementation of the XR service, the terminal device sends service data as an example for description.
如图1所示,XR业务的业务数据可以采用H.264/H.265的视频编码标准进行视频编码。终端设备执行XR业务产生的多个图像可以分割为多个GOP。可选的,每个GOP中可以包含相同数量的图像。终端设备可以将每个GOP内的每帧图像进行帧内编码或帧间编码。参阅图1所示,每个GOP中的首帧图像可以称为帧内编码帧(intra-frame coding frame),简称为I帧,可以独立编解码;而后续帧图像可以称为帧间编码帧(inter-frame coding frame),包括:预测编码帧(predicated frame)(简称为P帧)、双向预测编码帧(bidirectional predicted frame)(简称为B帧)。帧间编码帧需要基于之前已编码的图像进行编解码,从而提高编解码压缩性能,减少传输的业务数据的数据量。As shown in FIG. 1 , the service data of the XR service can be video coded using the H.264/H.265 video coding standard. Multiple images generated by the terminal device performing the XR service can be divided into multiple GOPs. Optionally, each GOP may contain the same number of images. The terminal device can perform intra-frame coding or inter-frame coding on each frame of image in each GOP. Referring to Figure 1, the first frame image in each GOP can be called an intra-frame coding frame, abbreviated as an I frame, which can be independently encoded and decoded; and subsequent frame images can be called inter-frame coding frames. (inter-frame coding frame), including: predictive coding frame (predicated frame) (referred to as P frame), bidirectional predictive coding frame (bidirectional predicted frame) (referred to as B frame). The inter-coded frame needs to be coded and decoded based on the previously coded image, so as to improve the codec compression performance and reduce the data volume of the transmitted service data.
参阅图2所示,编码后第1帧图像(即I帧)的数据量明显大于编码后的后续帧图像(即P帧或B帧)的数据量。另外,由于终端设备采集的图像中内容的变化,每个编码后的P帧的数据量也不尽相同。例如,图2中编码后第4帧图像的数据量为编码后第2帧图像的数据量的两倍左右。Referring to FIG. 2 , the data amount of the encoded first frame image (ie, I frame) is significantly larger than that of the encoded subsequent frame image (ie, P frame or B frame). In addition, due to changes in the content of the images collected by the terminal device, the data amount of each encoded P frame is also different. For example, in FIG. 2 , the data amount of the encoded fourth frame image is about twice the data amount of the encoded second frame image.
XR业务的传输时延即每帧图像的传输时延,即每帧图像的传输时延要求是相同的(例如10毫秒),并且XR业务对传输时延的要求较高,因此数据量较大的图像对传输速率有着更为严苛的要求。若终端设备对所有图像的传输速率相同,那么在规定的传输时延内,终端设备可能无法完成整个图像(例如GOP中的I帧)的传输。这就对XR业务造成较大的影响,进而降低了该业务的用户体验。The transmission delay of the XR service is the transmission delay of each frame of image, that is, the transmission delay of each frame of image is required to be the same (for example, 10 milliseconds), and the XR service has higher requirements on the transmission delay, so the amount of data is large. The images have more stringent requirements on the transmission rate. If the transmission rate of the terminal equipment for all images is the same, the terminal equipment may not be able to complete the transmission of the entire image (for example, the I frame in the GOP) within the specified transmission delay. This has a great impact on the XR service, and further reduces the user experience of the service.
需要说明的是,以上XR业务仅为示例,并不构成本申请实施例提供的方法可以适用业务的限定。本申请实施例提供的方法可以应用于各种业务,例如,业务数据的数据量波动较大的业务,对传输时延要求较为严苛的业务等,具体示例如视频通话业务、人工智能(artificial intelligence,AI)业务等。It should be noted that the above XR services are only examples, and do not constitute a limitation that the methods provided in the embodiments of the present application can be applied to services. The methods provided in the embodiments of the present application can be applied to various services, for example, services with large fluctuations in the data volume of service data, services with strict requirements on transmission delay, etc. Specific examples are video call services, artificial intelligence (artificial intelligence) intelligence, AI) business, etc.
下面对令牌桶机制进行说明。The token bucket mechanism is described below.
令牌桶(token bucket)机制,用于通信系统中的将通信设备的数据流量限制在特定的 带宽内,即在令牌桶中放置一定数量的令牌,一个令牌允许发送设定数据量(下面以1Byte为例说明)数据。每当传输完1Byte的数据后,需要从令牌桶中移除一个令牌。当令牌桶里没有令牌的时候,继续发送任何大小的数据,都会被认为通信设备超过了额定带宽。可以理解,令牌桶像水池,而令牌好像水,令牌桶中的令牌不仅仅可以被移除,也不断地添加。为了保证通信设备能够持续发送数据,需要不停地向令牌桶里添加令牌。因此,令牌桶里令牌的增加速度,也就决定了通信设备发送数据的速度。比如通信设备的带宽为1000字节/秒(Bytes per second,Bps),只要保证每秒钟往令牌桶里添加1000个令牌即可保证通信设备的带宽。The token bucket mechanism is used in the communication system to limit the data traffic of the communication device to a specific bandwidth, that is, a certain number of tokens are placed in the token bucket, and one token is allowed to send a set amount of data (The following takes 1Byte as an example) data. Every time 1Byte of data is transmitted, a token needs to be removed from the token bucket. When there are no tokens in the token bucket, sending data of any size will be considered as exceeding the rated bandwidth of the communication device. It can be understood that the token bucket is like a pool, and the token is like water. The tokens in the token bucket can not only be removed, but also continuously added. In order to ensure that the communication device can continuously send data, it is necessary to continuously add tokens to the token bucket. Therefore, the increasing speed of the tokens in the token bucket also determines the speed at which the communication device sends data. For example, the bandwidth of the communication device is 1000 bytes per second (Bytes per second, Bps). As long as 1000 tokens are added to the token bucket every second, the bandwidth of the communication device can be guaranteed.
本领域人员了解,通信系统中的通信设备在发送业务数据过程中,MAC层需要将位于逻辑信道中的MAC SDU中承载的业务数据调度到传输信道中的MAC PDU中。Those skilled in the art understand that when a communication device in a communication system sends service data, the MAC layer needs to schedule the service data carried in the MAC SDU located in the logical channel to the MAC PDU in the transmission channel.
在令牌桶机制中,通信设备的MAC层需要针对每个逻辑信道分别维护一个令牌桶,以及该令牌桶对应的参数。每个令牌用于传输设定数据量的数据。继续以一个令牌可以传输1Byte的数据为例。其中,每个令牌桶对应的参数包括:该令牌桶中令牌的数量变量、PBR,以及该令牌桶深度(bucket size duration,BSD)(可选的)。其中,所述PBR和所述BSD为通信系统中网络设备的(radio resource control,RRC)层为配置的。In the token bucket mechanism, the MAC layer of the communication device needs to maintain a token bucket for each logical channel and parameters corresponding to the token bucket. Each token is used to transfer a set amount of data. Continue to take a token that can transmit 1Byte of data as an example. The parameters corresponding to each token bucket include: a variable of the number of tokens in the token bucket, PBR, and the depth of the token bucket (bucket size duration, BSD) (optional). Wherein, the PBR and the BSD are configured by the (radio resource control, RRC) layer of the network device in the communication system.
其中,任一令牌桶的PBR,为该令牌桶中令牌的增加速度,即单位时间内向令牌桶中增加令牌的数量。由于每个令牌用于传输固定的数据量的数据,因此可以用数据的传输速度来表示令牌的增加速度。示例性的,PBR=8k Bps=8k令牌/秒。Among them, the PBR of any token bucket is the increase rate of tokens in the token bucket, that is, the number of tokens added to the token bucket per unit time. Since each token is used to transmit a fixed amount of data, the increase rate of the token can be represented by the transmission speed of the data. Exemplarily, PBR=8k Bps=8k tokens/sec.
令牌桶的深度BSD,即令牌桶的最大容量,最多能够包含的令牌的数量阈值,或者根据该令牌桶中的令牌最多能够传输的数据量。可选的,BSD可以直接设置为设定的令牌数量阈值;或者BSD可以通过时间表示,例如以秒(s)或毫秒(ms)为单位;再或者直接设置为设定的数据量阈值。示例性的,某令牌桶的BSD=100ms;在PBR=8k令牌/秒时,每1毫秒增加的令牌个数为8个;因此,该令牌桶的BSD=100ms=0.1s,相当于PBR*0.1s=800令牌,等于800Byte。The depth BSD of the token bucket, that is, the maximum capacity of the token bucket, the threshold of the maximum number of tokens that can be contained, or the maximum amount of data that can be transmitted according to the tokens in the token bucket. Optionally, BSD can be directly set to a set threshold for the number of tokens; or BSD can be represented by time, for example, in seconds (s) or milliseconds (ms); or directly set to a set threshold of data volume. Exemplarily, the BSD=100ms of a certain token bucket; when PBR=8k tokens/second, the number of tokens added every 1 millisecond is 8; therefore, the BSD=100ms=0.1s of the token bucket, Equivalent to PBR*0.1s=800 tokens, equal to 800Bytes.
需要说明的是,在通信系统中,通信设备按照传输时间间隔(transmission time interval,TTI)实现MAC层与物理层之间的数据交换,每个TTI执行一次传输,或者每个TTI对应一个传输时刻。TTI又可以称为调度周期或传输周期,即相邻两次传输时刻(传输时机、调度时机)。示例性的,TTI可以为1ms、2ms、0.5ms等。需要说明的是,在一些移动通信系统中(例如5G NR系统)中,TTI可以发生变化。It should be noted that, in the communication system, the communication device implements data exchange between the MAC layer and the physical layer according to the transmission time interval (TTI), and each TTI performs one transmission, or each TTI corresponds to a transmission moment . TTI may also be called a scheduling period or a transmission period, that is, two adjacent transmission times (transmission opportunity, scheduling opportunity). Exemplarily, the TTI may be 1 ms, 2 ms, 0.5 ms, or the like. It should be noted that in some mobile communication systems (such as 5G NR systems), the TTI may change.
另外,针对令牌桶中不断增加令牌的过程,本申请还可以引出令牌增量时间间隔T(又可以称为令牌增量周期T)的概念。可选的,令牌增量时间间隔T可以与TTI的取值相同,也可以不同,本申请对此不作限定。In addition, for the process of continuously adding tokens in the token bucket, the present application can also introduce the concept of token increment time interval T (also called token increment period T). Optionally, the token increment time interval T may be the same as or different from the value of TTI, which is not limited in this application.
总之,令牌桶中令牌的数量不能超过PBR*BSD,且在每个T中,令牌桶中令牌的数量以PBR*T的速度增加。In summary, the number of tokens in the token bucket cannot exceed PBR*BSD, and in each T, the number of tokens in the token bucket increases at the rate of PBR*T.
另外,在通信设备(即通信系统中的网络设备或终端设备)中多个逻辑信道可以复用到同一个传输信道的情况下,网络设备的RRC层还可以为通信设备的每个逻辑信道分配优先级。其中,任一逻辑信道的优先级决定了在多个逻辑信道中该逻辑信道的MAC SDU调度到传输信道的MAC PDU的顺序,即优先级越高的逻辑信道的MAC SDU会被优先调度到MAC PDU中。In addition, in the case where multiple logical channels in a communication device (that is, a network device or a terminal device in a communication system) can be multiplexed into the same transmission channel, the RRC layer of the network device may also allocate each logical channel of the communication device priority. Among them, the priority of any logical channel determines the order in which the MAC SDU of the logical channel is scheduled to the MAC PDU of the transport channel among multiple logical channels, that is, the MAC SDU of the logical channel with higher priority will be preferentially scheduled to the MAC SDU in the PDU.
并且,为防止高优先级逻辑信道的数据一直占用MAC PDU资源,网络设备的RRC 层为通信设备的每个逻辑信道分配对应PBR,以避免出现低优先级的逻辑信道无法复用到MAC PDU资源的情况。In addition, in order to prevent data of high-priority logical channels from occupying MAC PDU resources all the time, the RRC layer of the network device allocates corresponding PBRs for each logical channel of the communication device, so as to avoid the occurrence of low-priority logical channels that cannot be multiplexed to MAC PDU resources. Case.
需要说明的是,在通信设备发送数据时,一般是将数据按照协议栈的从高到低的顺序依次进行处理,即MAC SDU与无线链路控制(radio link control,RLC)PDU是一一对应的。即MAC SDU的大小取决于RLC PDU,而RLC PDU由RLC SDU分割而来,其分割准则依赖MAC PDU大小。即MAC层可以根据MAC PDU中的空闲资源,来决定将RLC SDU中的多少数据量的数据分割到一个RLC PDU中(即决定RLC PDU(或MAC SDU)的大小)。It should be noted that when a communication device sends data, it generally processes the data in the order from high to low of the protocol stack, that is, the MAC SDU and the radio link control (RLC) PDU are in one-to-one correspondence of. That is, the size of the MAC SDU depends on the RLC PDU, and the RLC PDU is divided from the RLC SDU, and the segmentation criterion depends on the size of the MAC PDU. That is, the MAC layer can decide how much data in the RLC SDU is divided into one RLC PDU according to the idle resources in the MAC PDU (that is, determine the size of the RLC PDU (or MAC SDU)).
因此,通信设备的MAC层可以使用令牌桶算法将逻辑信道中的MAC SDU复用到传输信道的MAC PDU,实际上可以理解为MAC层使用令牌桶算法将逻辑信道中的RLC SDU复用到传输信道的MAC PDU。Therefore, the MAC layer of the communication device can use the token bucket algorithm to multiplex the MAC SDUs in the logical channel to the MAC PDUs of the transmission channel. In fact, it can be understood that the MAC layer uses the token bucket algorithm to multiplex the RLC SDUs in the logical channel. MAC PDU to the transport channel.
应注意,MAC层将RLC SDU分割为至少一个RLC PDU时,还会为每个RLC PDU配置包头(Header)。因此,将RLC SDU分割后得到的至少一个RLC PDU的数据量之和与该RLC SDU的数据量相比,会增加至少一个包头的数据量。但是,由于包头的数据量一般较小(例如一个包头为8bits),相对于RLC SDU承载的业务数据的数据量来说,可以忽略不计。综上,在本申请实施例和实例中,仅以RLC SDU全部复用到MAC PDU时占用的MAC PDU的资源量(RLC SDU)等于RLC SDU承载的数据量为例进行说明。It should be noted that when the MAC layer divides the RLC SDU into at least one RLC PDU, it also configures a header (Header) for each RLC PDU. Therefore, compared with the data amount of the RLC SDU, the sum of the data amount of at least one RLC PDU obtained by dividing the RLC SDU will increase the data amount of at least one packet header. However, since the data volume of the packet header is generally small (for example, one packet header is 8 bits), it can be ignored relative to the data volume of the service data carried by the RLC SDU. To sum up, in the embodiments and examples of this application, only the amount of resources occupied by the MAC PDU (RLC SDU) occupied when the RLC SDUs are all multiplexed into the MAC PDU is equal to the amount of data carried by the RLC SDU as an example for description.
通信设备的MAC层可以使用令牌桶算法实现多个逻辑信道到MAC层传输信道的复用,即根据每个逻辑信道的令牌数量来决定该逻辑信道复用到传输信道的数据量。The MAC layer of the communication device can use the token bucket algorithm to realize multiplexing of multiple logical channels to the MAC layer transmission channel, that is, the amount of data multiplexed into the transmission channel from the logical channel is determined according to the number of tokens of each logical channel.
可选的,通信设备的MAC层针对第j个逻辑信道维护一个变量B j,该变量指示了该逻辑信道对应的令牌桶中令牌的数量(即令牌桶中剩余的令牌的数量,或者令牌桶中可用的令牌的数量),且每个令牌用于传输固定数据量的数据。其中,j为非负整数,用于标识第j个逻辑信道。B j在第j个逻辑信道建立时初始化为0,且每个T中增加PBR×T个令牌。 Optionally, the MAC layer of the communication device maintains a variable B j for the jth logical channel, which indicates the number of tokens in the token bucket corresponding to the logical channel (that is, the number of tokens remaining in the token bucket). , or the number of tokens available in the token bucket), and each token is used to transfer a fixed amount of data. Among them, j is a non-negative integer used to identify the jth logical channel. Bj is initialized to 0 when the jth logical channel is established, and PBR×T tokens are added in each T.
在一些实施方式中,在通信设备进行MAC层调度过程中,可以按照以下原则执行:In some embodiments, during the MAC layer scheduling process performed by the communication device, it may be performed according to the following principles:
1、在一个传输时刻,对于所有B j>0的逻辑信道,MAC层按照逻辑信道优先级从高到低的顺序将多个逻辑信道中的数据复用到传输信道。当目标逻辑信道复用传输信道时,MAC层根据该目标逻辑信道的B j的取值,将该目标逻辑信道的RLC SDU中相应数据量的数据复用到MAC PDU中。 1. At a transmission moment, for all logical channels with B j > 0, the MAC layer multiplexes the data in the multiple logical channels to the transmission channel according to the logical channel priority from high to low. When the target logical channel multiplexes the transport channel, the MAC layer multiplexes the data of the corresponding data amount in the RLC SDU of the target logical channel into the MAC PDU according to the value of B j of the target logical channel.
2、在该传输时刻之后,MAC层根据在该传输时刻该目标逻辑信道中复用到传输信道的数据(以下简称目标数据)的数据量,更新所述目标逻辑信道的B j,即B j=B j-B’,其中B’为复用该目标数据到传输信道所消耗的令牌数量,为非负数。B’为该目标数据的数据量除以每个令牌能够传输的固定数据量。需要注意的是,考虑到将逻辑信道的数据复用到传输信道MAC PDU的过程(即MAC层调度过程)中,需尽量避免对RLC SDU分段,因此B’可以大于B j2. After the transmission time, the MAC layer updates the B j of the target logical channel according to the data volume of the data (hereinafter referred to as target data) multiplexed into the transmission channel in the target logical channel at the transmission time, that is, B j =B j -B', where B' is the number of tokens consumed by multiplexing the target data to the transmission channel, which is a non-negative number. B' is the data amount of the target data divided by the fixed amount of data each token can transmit. It should be noted that considering the process of multiplexing the data of the logical channel into the MAC PDU of the transport channel (ie, the MAC layer scheduling process), it is necessary to avoid segmenting the RLC SDU as much as possible, so B' can be greater than B j .
3、当完成上述步骤1-2之后,若MAC PDU中还有剩余的空闲资源,则MAC层按照逻辑信道优先级的降序顺序将逻辑信道中的数据复用到MAC PDU的剩余资源中,且该过程不消耗逻辑信道的令牌数量。当优先级较高的逻辑信道的数据全部复用到MAC PDU且MAC PDU中还存在空闲资源的情况下,优先级较低的逻辑信道中的数据才能继续复用到 MAC PDU。3. After completing the above steps 1-2, if there are remaining idle resources in the MAC PDU, the MAC layer multiplexes the data in the logical channel into the remaining resources of the MAC PDU according to the descending order of the logical channel priority, and This process does not consume the token count of the logical channel. When all the data of the logical channel with the higher priority is multiplexed into the MAC PDU and there are idle resources in the MAC PDU, the data in the logical channel with the lower priority can continue to be multiplexed into the MAC PDU.
下面以图3为例,对通信设备进行MAC层调度的过程进行详细说明。如图3所示,从左到右分别为逻辑信道1、2、3,其优先级依次递减,且对应令牌数量分别为B1、B2和B3,且B1、B2、B3均大于0。为了便于区分,本申请将每个逻辑信道中的RLC SDU进行编号,即RLC SDU a-b,其中,a代表逻辑信道,b代表逻辑信道中RLC SDU的编号。如图3所示,将逻辑信道1中需要传输的RLC SDU记为RLC SDU1-1、RLC SDU1-2;逻辑信道2中需要传输的RLC SDU记为RLC SDU2-1、RLC SDU2-2、RLC SDU2-3;逻辑信道3中需要传输的RLC SDU记为RLC SDU3-1、RLC SDU3-2。Taking FIG. 3 as an example below, the process of performing MAC layer scheduling by the communication device will be described in detail. As shown in Figure 3, from left to right are logical channels 1, 2, and 3, and their priorities decrease in turn, and the corresponding token numbers are B1, B2, and B3, and B1, B2, and B3 are all greater than 0. In order to facilitate the distinction, the present application numbers the RLC SDUs in each logical channel, that is, RLC SDUs a-b, where a represents the logical channel, and b represents the number of the RLC SDUs in the logical channel. As shown in Figure 3, the RLC SDUs to be transmitted in logical channel 1 are recorded as RLC SDU1-1, RLC SDU1-2; the RLC SDUs to be transmitted in logical channel 2 are recorded as RLC SDU2-1, RLC SDU2-2, RLC SDU2-3; RLC SDUs to be transmitted in logical channel 3 are recorded as RLC SDU3-1 and RLC SDU3-2.
在进行MAC SDU到MAC PDU的资源复用时,首先将优先级最高的逻辑信道1中的RLC SDU复用到MAC PDU中,如图3中所示:During resource multiplexing from MAC SDUs to MAC PDUs, the RLC SDUs in logical channel 1 with the highest priority are first multiplexed into MAC PDUs, as shown in Figure 3:
若逻辑信道1中RLC SDU1-1的数据量大于MAC PDU中的空闲资源量(即空闲资源能够承载的数据量),则MAC层优先将RLC SDU1-1中与MAC PDU空闲资源量相等的数据量的数据复用到MAC PDU中(此时该逻辑信道中,RLC SDU1-1被分段,该MAC PDU被占满,且不再有空闲资源);If the data amount of RLC SDU1-1 in logical channel 1 is greater than the amount of idle resources in the MAC PDU (that is, the amount of data that the idle resources can carry), the MAC layer will give priority to the data in the RLC SDU1-1 that is equal to the amount of idle resources in the MAC PDU. The amount of data is multiplexed into the MAC PDU (at this time, in the logical channel, the RLC SDU1-1 is segmented, the MAC PDU is full, and there are no more idle resources);
若逻辑信道1中的RLC SDU1-1的数据量小于或等于MAC PDU中的空闲资源量,则MAC层优先将RLC SDU1-1中所有数据复用到MAC PDU上。If the data amount of the RLC SDU1-1 in logical channel 1 is less than or equal to the amount of idle resources in the MAC PDU, the MAC layer preferentially multiplexes all the data in the RLC SDU1-1 to the MAC PDU.
如果MAC PDU空闲资源充足,在将逻辑信道1中的RLC SDU1-1中的所有数据全部复用到MAC PDU后,MAC PDU仍存在空闲资源,那么MAC层继续按照上述原则,将下一个令牌数量大于0的逻辑信道的RLC SDU复用到该MAC PDU中,即若B2>0,则继续将逻辑信道2中的RLC SDU2-1中的数据复用到MAC PDU中。以此类推,直至MAC PDU中不存在空闲资源或者所有令牌数据大于0的逻辑信道中的RLC SDU均复用到MAC PDU中。If the MAC PDU idle resources are sufficient, after multiplexing all the data in the RLC SDU1-1 in the logical channel 1 into the MAC PDU, there are still idle resources in the MAC PDU, then the MAC layer continues to follow the above principles, the next token The RLC SDUs of the logical channel whose number is greater than 0 are multiplexed into the MAC PDU, that is, if B2>0, continue to multiplex the data in the RLC SDU2-1 in the logical channel 2 into the MAC PDU. By analogy, until there are no idle resources in the MAC PDU or all the RLC SDUs in the logical channels whose token data is greater than 0 are multiplexed into the MAC PDU.
其中,在每个传输时刻后,MAC层将每个逻辑信道的令牌数量B1、B2、B3按照该逻辑信道复用传输信道所消耗的令牌数量减少,并在每个令牌增量时间间隔T内,分别按照PBR1*T、PBR2*T,以及PBR3*T的速度增加。其中,当MAC层将某个逻辑信道的数据复用到传输信道消耗的令牌数量(被调度的数据的数据量/每个令牌能够传输的固定数据量)大于该逻辑信道当前的令牌数量,那么该逻辑信道的令牌数据会变成负值。若到下个传输时刻时,该逻辑信道的令牌数据还未增加到正值,那么在该下个传输时刻中,MAC层在复用完所有令牌数量大于0的逻辑信道后,再根据逻辑信道的优先级降序将该逻辑信道的RLC SDU复用到MAC PDU,即该逻辑信道只有当优先级高于该逻辑信道的逻辑信道数据全部传输完毕后,才有机会复用到MAC PDU中。Among them, after each transmission time, the MAC layer reduces the number of tokens B1, B2, B3 of each logical channel multiplexing transmission channel consumes according to the logical channel, and at each token increment time In the interval T, the speed increases according to PBR1*T, PBR2*T, and PBR3*T respectively. Among them, when the MAC layer multiplexes the data of a certain logical channel to the transmission channel, the number of tokens consumed (the data amount of the scheduled data/the fixed amount of data that can be transmitted by each token) is greater than the current token of the logical channel number, the token data for that logical channel will become negative. If the token data of the logical channel has not increased to a positive value at the next transmission moment, then at the next transmission moment, the MAC layer will re-multiplex all logical channels with the number of tokens greater than 0 according to the The priority of the logical channel is in descending order. The RLC SDU of the logical channel is multiplexed into the MAC PDU, that is, the logical channel has the opportunity to be multiplexed into the MAC PDU only after the logical channel data with a higher priority than the logical channel is all transmitted. .
另外,MAC层分别根据每个逻辑信道的令牌数量将各自逻辑信道中的RLC SDU复用到MAC PDU之后,若此时MAC PDU还有空闲资源,则MAC层继续根据逻辑信道的优先级将逻辑信道中的RLC SDU复用该MAC PDU中的空闲资源。In addition, the MAC layer multiplexes the RLC SDUs in the respective logical channels into the MAC PDUs according to the number of tokens in each logical channel. If there are still idle resources in the MAC PDUs at this time, the MAC layer continues to assign the logical channels according to the priority of the logical channel. The RLC SDU in the logical channel multiplexes the idle resources in the MAC PDU.
例如图3所示,在根据令牌数量将3个逻辑信道中的RLC SDU复用到MAC PDU之后,MAC PDU中还存在空闲资源,那么MAC层优先将逻辑信道1中的剩余数据(至少一个RLC SDU,下面以剩余数据仅包含RLC SDU1-2为例说明)中的数据复用到MAC PDU中,而无视当前逻辑信道1的令牌数量B1的大小,且本次复用不消耗逻辑信道1的令牌,参阅图3所示,具体包括:For example, as shown in Figure 3, after multiplexing the RLC SDUs in the three logical channels into the MAC PDU according to the number of tokens, and there are still idle resources in the MAC PDU, the MAC layer preferentially assigns the remaining data in logical channel 1 (at least one RLC SDU, the data in the remaining data only includes RLC SDU1-2 as an example) is multiplexed into the MAC PDU, regardless of the size of the token number B1 of the current logical channel 1, and this multiplexing does not consume logical channels 1 token, as shown in Figure 3, including:
若MAC PDU中空闲资源量大于或等于逻辑信道1中的剩余数据(即RLC SDU1-2)的数据量,那么MAC层将RLC SDU1-2中的数据全部复用到MAC PDU中;If the amount of idle resources in the MAC PDU is greater than or equal to the data amount of the remaining data in the logical channel 1 (that is, the RLC SDU1-2), the MAC layer multiplexes all the data in the RLC SDU1-2 into the MAC PDU;
若MAC PDU中空闲资源量小于逻辑信道1中的剩余数据(即RLC SDU1-2)的数据量,那么MAC层将RLC SDU1-2中等于MAC PDU空闲资源量的部分数据复用到MAC PDU中。If the amount of idle resources in the MAC PDU is less than the data amount of the remaining data in logical channel 1 (that is, RLC SDU1-2), the MAC layer multiplexes part of the data in the RLC SDU1-2 equal to the amount of idle resources in the MAC PDU into the MAC PDU .
还应注意的是,若将逻辑信道1中的剩余数据中的全部数据复用到MAC PDU之后,MAC PDU还有空闲资源,那么MAC层继续按照上述方式将逻辑信道2中的剩余数据复用到MAC PDU中。……依次类推,直至该MAC PDU不再有空闲资源或者每个逻辑信道中的剩余数据均复用到MAC PDU中。而在MAC PDU中空闲资源量小于或等于逻辑信道1中的剩余数据的数据量时,那么MAC层将逻辑信道1中的部分或全部剩余数据的复用到MAC PDU之后,此时MAC PDU不能在复用其他逻辑信道的剩余数据。It should also be noted that if all the data in the remaining data in logical channel 1 is multiplexed into the MAC PDU, and the MAC PDU still has idle resources, then the MAC layer continues to multiplex the remaining data in logical channel 2 according to the above method. into the MAC PDU. ...and so on, until the MAC PDU no longer has idle resources or the remaining data in each logical channel is multiplexed into the MAC PDU. When the amount of idle resources in the MAC PDU is less than or equal to the data amount of the remaining data in logical channel 1, then the MAC layer multiplexes part or all of the remaining data in logical channel 1 into the MAC PDU. At this time, the MAC PDU cannot Residual data in multiplexing other logical channels.
最后,MAC层将MAC PDU传输到物理层以使物理层进行下一步传输。Finally, the MAC layer transmits the MAC PDU to the physical layer for further transmission by the physical layer.
通过以上对传统的令牌桶机制的具体描述可知,每个逻辑信道对应的令牌桶中令牌的增加速度PBR直接决定了该逻辑信道中RLC SDU中数据的传输速度。然而PBR为网络设备分配的固定静态变量,且分配时网络设备可能考虑逻辑信道的平均码率。From the specific description of the traditional token bucket mechanism above, it can be known that the increase rate PBR of the token in the token bucket corresponding to each logical channel directly determines the transmission speed of the data in the RLC SDU in the logical channel. However, PBR is a fixed static variable allocated by the network device, and the network device may consider the average bit rate of the logical channel during allocation.
然而,在一些业务中产生的业务数据的数据量可能波动较大,以上述XR业务为例说明,在一个GOP中不同帧图像的数据量差别较大,但是每帧图像的传输时延要求是相同的,使得每帧图像对传输速率的要求不同。而在传统的令牌桶机制中PBR为固定数值,很可能导致传输速率无法满足数据量较大的图像的传输要求,从而加剧了传输时延。However, the data volume of service data generated in some services may fluctuate greatly. Taking the above XR service as an example, the data volume of different frame images in a GOP varies greatly, but the transmission delay requirement of each frame image is The same, so that each frame of images has different requirements on the transmission rate. In the traditional token bucket mechanism, the PBR is a fixed value, which may cause the transmission rate to fail to meet the transmission requirements of images with a large amount of data, thus increasing the transmission delay.
继续以图2为例说明。XR业务中编码后的每帧图像的数据量变化较大,而每帧图像的传输时延要求是相同的。例如编码后第1帧图像的数据量约为编码后第2帧图像的数据量的5倍左右,代表着编码后的第1帧图像的传输速率期望为编码后的第2帧图像的传输速率的5倍左右。然而,由于PBR为固定值,导致终端设备的传输速率无法随着不同图像对传输速率的要求的变化而变化,最终导致在规定的传输时延中无法传输一些数据量较大的图像。Continue to take FIG. 2 as an example for description. In the XR service, the data amount of each frame of image after encoding varies greatly, and the transmission delay requirements of each frame of image are the same. For example, the data volume of the first frame image after encoding is about 5 times that of the second frame image after encoding, which means that the transmission rate of the first frame image after encoding is expected to be the transmission rate of the second frame image after encoding. about 5 times. However, since the PBR is a fixed value, the transmission rate of the terminal device cannot be changed with the change of the transmission rate requirements of different images, and eventually some images with a large amount of data cannot be transmitted within the specified transmission delay.
为了解决由于逻辑信道的PBR静态分配方式对业务数据传输造成的影响,保证业务数据的传输时延,提升业务的用户体验,本申请实施例提供了一种通信方法及设备。下面将结合附图,对本申请实施例进行详细描述。In order to solve the impact on service data transmission caused by the PBR static allocation mode of the logical channel, ensure the transmission delay of service data, and improve the user experience of the service, the embodiments of the present application provide a communication method and device. The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
图4示出了本申请实施例提供的通信方法适用的一种可能的通信系统的架构。参阅图4所示,在该通信系统中包括:网络设备,以及至少一个终端设备(如图4中的终端设备a-终端设备g)。FIG. 4 shows the architecture of a possible communication system to which the communication method provided by the embodiment of the present application is applicable. Referring to FIG. 4 , the communication system includes: a network device, and at least one terminal device (terminal device a-terminal device g in FIG. 4 ).
所述网络设备,是网络侧能够接收和发射无线信号的实体,负责为在其覆盖范围内的终端设备提供无线接入有关的服务,实现物理层功能、资源调度和无线资源管理、服务质量(Quality of Service,QoS)管理、无线接入控制以及移动性管理功能。可选的,所述网络设备可以为基站、AP或者其他RAN设备,本申请对此不作限定。The network equipment is an entity that can receive and transmit wireless signals on the network side, and is responsible for providing wireless access-related services for terminal equipment within its coverage, realizing physical layer functions, resource scheduling and wireless resource management, quality of service ( Quality of Service, QoS) management, wireless access control and mobility management functions. Optionally, the network device may be a base station, an AP or other RAN device, which is not limited in this application.
所述终端设备,为用户侧能够接收和发射无线信号的实体,需要通过所述网络设备接入网络。所述终端设备可以为各种为用户提供语音和/或数据连通性的设备,例如图4所示,所述终端设备可以为车载设备、VR眼镜、AR眼镜、智能手机、HMD等。The terminal device is an entity capable of receiving and transmitting wireless signals on the user side, and needs to access the network through the network device. The terminal device can be various devices that provide voice and/or data connectivity for the user, for example, as shown in FIG.
可选的,图4所示的通信系统可以支持侧行链路(sidelink)通信技术。sidelink通信技术是一种终端设备之间能够直连的近场通信技术,又称为近距离服务(proximity services, ProSe)通信技术,或D2D通信技术。在该通信系统中,所处地理位置较近,且支持sidelink通信的多个终端设备可以组成一个sidelink通信系统(还可以称为sidelink通信子系统,sidelink系统等)。在该sidelink通信系统中,两个终端设备(又称为sidelink设备)之间可以通过直连链路(sidelink连接)进行通信。sidelink通信技术可以支持网络设备覆盖范围内、网络设备覆盖范围外和网络设备部分覆盖场景下的广播、组播和单播传输。Optionally, the communication system shown in FIG. 4 may support a sidelink (sidelink) communication technology. The sidelink communication technology is a near-field communication technology that enables direct connection between terminal devices, also known as a proximity services (proximity services, ProSe) communication technology, or a D2D communication technology. In the communication system, a plurality of terminal devices that are geographically close together and support sidelink communication may form a sidelink communication system (also referred to as a sidelink communication subsystem, a sidelink system, etc.). In the sidelink communication system, two terminal devices (also called sidelink devices) can communicate through a direct link (sidelink connection). The sidelink communication technology can support broadcast, multicast and unicast transmission within the coverage of network equipment, outside the coverage of network equipment, and in scenarios where network equipment is partially covered.
在图4所示的通信系统中,针对不同的应用场景,可以组成不同的sidelink通信系统。例如,在用户驾驶汽车的场景中,用户的智能手机可以与安装在汽车上的车载设备组成一个sidelink通信系统,如图所示。又例如,在用户使用VR眼镜和/或AR眼镜观看影片的场景中,用户的智能手机可以与VR眼镜和/或VR眼镜组成一个sidelink通信系统,如图所示。再例如,在用户使用HMD观看影片的场景中,用户的智能手机可以与HMD组成一个sidelink通信系统,如图所示。在其他场景中,还可以不同汽车之间的车载设备组成一个sidelink通信系统,或者,不同汽车上的手机组成一个sidelink通信系统。In the communication system shown in FIG. 4 , different sidelink communication systems can be formed for different application scenarios. For example, in the scenario where the user is driving a car, the user's smartphone can form a sidelink communication system with the in-vehicle equipment installed in the car, as shown in the figure. For another example, in a scenario where the user uses VR glasses and/or AR glasses to watch a movie, the user's smartphone and the VR glasses and/or VR glasses may form a sidelink communication system, as shown in the figure. For another example, in the scenario where the user uses the HMD to watch a movie, the user's smartphone and the HMD can form a sidelink communication system, as shown in the figure. In other scenarios, in-vehicle devices between different cars can also form a sidelink communication system, or mobile phones on different cars can form a sidelink communication system.
基于图4所示的通信系统的架构,本申请实施例还提供了一种通信系统的网络拓扑架构,如图5所示。其中,网络设备和终端设备之间可以通过空中接口(即Uu接口)连接,从而实现所述终端设备和所述网络设备之间的通信(这种通信可以简称Uu通信,或者蜂窝网通信)。邻近的终端设备之间可以通过近距业务通信接口5(ProSe communication 5,PC5)接口,建立直连链路进行sidelink数据传输。Based on the architecture of the communication system shown in FIG. 4 , an embodiment of the present application further provides a network topology architecture of the communication system, as shown in FIG. 5 . The network device and the terminal device may be connected through an air interface (ie, a Uu interface), so as to implement communication between the terminal device and the network device (this communication may be referred to as Uu communication, or cellular network communication). Between adjacent terminal devices, a direct link can be established for sidelink data transmission through the ProSe communication 5 (ProSe communication 5, PC5) interface.
其中,无论是Uu接口还是PC5接口,均包含控制面协议栈和用户面协议栈。其中,用户面协议栈中均至少包含以下协议层:物理(physical,PHY)层、MAC层、无线链路控制(radio link control,RLC)层和分组数据汇聚协议(packet data convergence protocol,PDCP)层、服务数据适配协议(service data adaptation protocol,SDAP)层;控制面协议栈中至少包含以下协议层:物理层、MAC层、RLC层、PDCP层、无线资源控制(radio resource control,RRC)层。Among them, both the Uu interface and the PC5 interface include a control plane protocol stack and a user plane protocol stack. The user plane protocol stack includes at least the following protocol layers: physical (PHY) layer, MAC layer, radio link control (radio link control, RLC) layer and packet data convergence protocol (packet data convergence protocol, PDCP) Layer, service data adaptation protocol (service data adaptation protocol, SDAP) layer; the control plane protocol stack at least includes the following protocol layers: physical layer, MAC layer, RLC layer, PDCP layer, radio resource control (radio resource control, RRC) Floor.
在图4所示的通信系统中,终端设备可以通过与网络设备或其他终端设备进行通信传输,从而实现具体的业务。例如,智能手机可以通过与网络设备进行通信,可以实现视频通话业务;VR眼镜或AR眼镜可以与智能手机或网络设备进行通信,从而实现XR业务等。In the communication system shown in FIG. 4 , the terminal device can implement specific services by communicating with network devices or other terminal devices. For example, a smartphone can communicate with a network device to realize video calling services; VR glasses or AR glasses can communicate with a smartphone or network device to realize XR services, etc.
在图4所示的通信系统中,任一个通信设备(终端设备或网络设备)在实现目标业务时,可以将目标业务的业务数据发送给另一个通信设备(网络设备或终端设备)。那么在发送业务数据的过程中,通信设备的MAC层可以通过令牌桶机制,将逻辑信道中RLC SDU承载的业务数据复用到传输信道中的MAC PDU,从而最终通过Uu接口或PC5接口的物理信道传输到另一个通信设备。In the communication system shown in FIG. 4 , when any communication device (terminal device or network device) implements the target service, it can send service data of the target service to another communication device (network device or terminal device). Then in the process of sending service data, the MAC layer of the communication device can multiplex the service data carried by the RLC SDU in the logical channel to the MAC PDU in the transmission channel through the token bucket mechanism, so as to finally pass the Uu interface or PC5 interface. The physical channel is transmitted to another communication device.
示例性的,在VR下行链路传输场景中,网络设备可以通过令牌桶机制将VR业务数据传输至终端设备;在AR上行链路和下行链路传输场景中,网络设备或终端设备可以通过令牌桶机制将AR业务数据传输至对端;在sidelink通信系统中,任一个终端设备可以通过令牌桶机制将各种业务数据传输至另一个终端设备。Exemplarily, in the VR downlink transmission scenario, the network device can transmit VR service data to the terminal device through the token bucket mechanism; in the AR uplink and downlink transmission scenarios, the network device or the terminal device can use the token bucket mechanism to transmit VR service data to the terminal device. The token bucket mechanism transmits AR service data to the opposite end; in the sidelink communication system, any terminal device can transmit various service data to another terminal device through the token bucket mechanism.
还需要指出的是,如图4所示的通信系统作为一个示例,并不对本申请实施例提供的方法适用的通信系统构成限定。总之,本申请实施例提供的方法,适用于各种类型和制式的通信系统或应用场景中。例如:第五代(The 5th Generation,5G)通信系统、长期演进(Long Term Evolution,LTE)通信系统、Wi-Fi系统、车到万物(vehicle to everything,V2X)、长期演进-车联网(LTE-vehicle,LTE-V)、车到车(vehicle to vehicle,V2V)、车 联网、机器类通信(Machine Type Communications,MTC)、物联网(internet of things,IoT)、长期演进-机器到机器(LTE-machine to machine,LTE-M)、机器到机器(machine to machine,M2M),本申请实施例不予限定。It should also be pointed out that the communication system shown in FIG. 4 is taken as an example, and does not constitute a limitation on the communication system to which the method provided by the embodiment of the present application is applicable. In conclusion, the methods provided in the embodiments of the present application are applicable to communication systems or application scenarios of various types and standards. For example: The 5th Generation (5G) communication system, Long Term Evolution (LTE) communication system, Wi-Fi system, Vehicle to Everything (V2X), Long Term Evolution-Vehicle Networking (LTE) -vehicle, LTE-V), vehicle to vehicle (V2V), Internet of Vehicles, Machine Type Communications (MTC), Internet of Things (IoT), Long Term Evolution-Machine to Machine ( LTE-machine to machine, LTE-M), machine to machine (machine to machine, M2M), the embodiment of the present application is not limited.
本申请实施例提供了一种通信方法,该方法可以应用于由终端设备和网络设备组成的移动通信系统中的上行方向(即终端设备向网络设备发送业务数据)。下面参阅图6A所示的流程图对该方法进行具体说明。The embodiment of the present application provides a communication method, which can be applied to the uplink direction in a mobile communication system composed of a terminal device and a network device (ie, the terminal device sends service data to the network device). The method will be described in detail below with reference to the flowchart shown in FIG. 6A .
S600a:终端设备和网络设备建立无线连接。S600a: The terminal device and the network device establish a wireless connection.
可选的,终端设备可以但不限于通过以下方式与网络设备建立RRC连接:Optionally, the terminal device may, but is not limited to, establish an RRC connection with the network device in the following ways:
方式一:终端设备可以通过小区搜索、时间同步、随机接入、RRC连接建立等流程,与网络设备建立RRC连接。Mode 1: The terminal device can establish an RRC connection with the network device through processes such as cell search, time synchronization, random access, and RRC connection establishment.
方式二:终端设备通过小区选择、小区重选或小区切换流程,与网络设备建立RRC连接。Manner 2: The terminal device establishes an RRC connection with the network device through the process of cell selection, cell reselection or cell handover.
方式三:处于RRC空闲状态(RRC_idle)或RRC非激活态(RRC inactive)的终端设备可以通过RRC连接建立/恢复流程来建立/恢复与网络设备之间的RRC连接。此时,终端设备进入RRC连接态。Mode 3: The terminal device in the RRC idle state (RRC_idle) or the RRC inactive state (RRC inactive) can establish/restore the RRC connection with the network device through the RRC connection establishment/restoration process. At this point, the terminal device enters the RRC connected state.
在终端设备与网络设备建立RRC连接之后,网络设备可以基于该RRC连接建立该终端设备的至少一个数据承载(data resource bearer,DRB),以便传输该终端设备的至少一个业务的业务数据。其中,数据承载又称为无线承载,每个数据承载分别与终端设备和网络设备MAC层中的一个逻辑信道对应。为了建立数据承载,终端设备和网络设备的MAC层需要针对每个数据承载建立对应的逻辑信道,以传输对应数据承载的业务数据。After the terminal device establishes an RRC connection with the network device, the network device may establish at least one data bearer (data resource bearer, DRB) of the terminal device based on the RRC connection, so as to transmit service data of at least one service of the terminal device. The data bearer is also called a radio bearer, and each data bearer corresponds to a logical channel in the MAC layer of the terminal device and the network device respectively. In order to establish a data bearer, the MAC layers of the terminal device and the network device need to establish a corresponding logical channel for each data bearer, so as to transmit the service data corresponding to the data bearer.
在一种实施方式中,终端设备可以在启动执行目标业务的情况下(即终端设备打开实现该目标业务的某个功能、服务或应用,请求建立该目标业务的目标数据承载),通过上述方式建立RRC连接,并与网络设备建立用于传输所述目标业务的业务数据的目标数据承载。其中,在建立该目标数据承载的过程中,终端设备和网络设备的MAC层建立与所述目标数据承载对应的目标逻辑信道。In an implementation manner, the terminal device may start executing the target service (that is, the terminal device opens a function, service or application that implements the target service, and requests to establish the target data bearer of the target service), through the above method An RRC connection is established, and a target data bearer for transmitting the service data of the target service is established with the network device. Wherein, in the process of establishing the target data bearer, the MAC layers of the terminal device and the network device establish a target logical channel corresponding to the target data bearer.
在另一种实施方式中,在终端设备与网络设备建立RRC连接后,终端设备启动执行目标业务时,可以向网络设备发送承载建立请求,这样,网络设备可以建立用于传输所述目标业务的业务数据的目标数据承载。其中,在建立该目标数据承载的过程中,终端设备和网络设备的MAC层建立与所述目标数据承载对应的目标逻辑信道。In another implementation manner, after the terminal device establishes the RRC connection with the network device, when the terminal device starts to execute the target service, it can send a bearer establishment request to the network device, so that the network device can establish a bearer establishment request for transmitting the target service. The target data bearer of the business data. Wherein, in the process of establishing the target data bearer, the MAC layers of the terminal device and the network device establish a target logical channel corresponding to the target data bearer.
需要说明的是,终端设备和网络设备可以通过传统的RRC连接建立/恢复流程,建立/恢复RRC连接,以及通过传统的无线承载的建立/修改流程,建立目标业务的目标数据承载,具体过程本申请实施例不再赘述。It should be noted that the terminal device and the network device can establish/restore the RRC connection through the traditional RRC connection establishment/restoration process, and establish the target data bearer of the target service through the traditional wireless bearer establishment/modification process. The application examples are not repeated here.
S600b:网络设备确定目标业务的传输时延(即目标业务的空口传输时延);向该终端设备发送指示信息,其中,所述指示信息用于指示所述目标业务的传输时延。终端设备接收来自该网络设备的指示信息,并根据该指示信息,确定目标业务的传输时延。S600b: The network device determines the transmission delay of the target service (that is, the air interface transmission delay of the target service), and sends indication information to the terminal device, where the indication information is used to indicate the transmission delay of the target service. The terminal device receives the indication information from the network device, and determines the transmission delay of the target service according to the indication information.
在本申请实施例中,在终端设备请求目标业务时,网络设备可以通过以下方式确定所述目标业务的传输时延:In this embodiment of the present application, when a terminal device requests a target service, the network device may determine the transmission delay of the target service in the following manner:
方式一:网络设备中存储有多种业务的传输时延,网络设备可以在所述多种业务的传输时延中,确定终端设备请求执行的目标业务的传输时延。Manner 1: The network device stores transmission delays of multiple services, and the network device may determine the transmission delay of the target service requested by the terminal device from the transmission delays of the multiple services.
可选的,所述多种业务的传输时延可以为出厂配置的,或者为协议规定的,或者为核 心网设备配置的,本申请对此不作限定。Optionally, the transmission delay of the multiple services may be factory-configured, or specified by a protocol, or configured for a core network device, which is not limited in this application.
方式二:网络设备可以先确定终端设备请求的所述目标业务,然后根据所述目标业务的QoS信息,确定所述目标业务的传输时延。其中,所述目标业务的QoS信息可以为所述网络设备从核心网设备保存的所述终端设备的签约信息中获取,或者为所述核心网设备根据所述终端设备的签约信息配置的。Manner 2: The network device may first determine the target service requested by the terminal device, and then determine the transmission delay of the target service according to the QoS information of the target service. The QoS information of the target service may be acquired by the network device from the subscription information of the terminal device saved by the core network device, or configured by the core network device according to the subscription information of the terminal device.
示例的,所述指示信息可以为RRC消息,该RRC消息中携带目标业务的传输时延。又例如,所述指示信息可以为下行控制信息(downlink control information,DCI),该DCI中可以包含携带目标业务的传输时延的第一字段;或者该DCI中包含第一指示位,该指示位用于指示目标业务的传输时延。For example, the indication information may be an RRC message, and the RRC message carries the transmission delay of the target service. For another example, the indication information may be downlink control information (DCI), and the DCI may include a first field that carries the transmission delay of the target service; or the DCI may include a first indication bit, the indication bit It is used to indicate the transmission delay of the target service.
还需要说明的是,S600b可以在执行S600a之后执行,或者在执行S600a的过程中执行,本申请对此不做限定。It should also be noted that, S600b may be performed after performing S600a, or performed during the process of performing S600a, which is not limited in this application.
下面通过S601-S607对所述目标业务的上行传输过程中终端设备基于令牌桶机制进行MAC层调度为例,对本申请提供的通信方法的步骤进行具体说明。The steps of the communication method provided by the present application will be specifically described below by taking S601-S607 as an example for the terminal device to perform MAC layer scheduling based on the token bucket mechanism in the uplink transmission process of the target service.
S601:当目标业务的第一业务数据到达终端设备的目标逻辑信道之后,终端设备在将第一业务数据复用到目标传输信道的过程中,终端设备确定第一业务数据的剩余数据量和第一业务数据的第一剩余传输时间。S601: After the first service data of the target service reaches the target logical channel of the terminal device, in the process of multiplexing the first service data to the target transmission channel by the terminal device, the terminal device determines the remaining data amount of the first service data and the first The first remaining transmission time of a service data.
其中,第一业务数据为目标业务的任一个业务数据,目标传输信道为所述目标逻辑信道对应的传输信道。所述第一剩余传输时间为第一目标传输时长与传输所述第一业务数据所经过的时长之间的差值,所述第一目标传输时长是根据所述目标业务的传输时延确定的。第一业务数据的剩余数据量为第一业务数据中还未复用到目标传输信道的剩余数据的数据量。The first service data is any service data of the target service, and the target transmission channel is the transmission channel corresponding to the target logical channel. The first remaining transmission time is the difference between the first target transmission duration and the duration elapsed for transmitting the first service data, and the first target transmission duration is determined according to the transmission delay of the target service . The remaining data amount of the first service data is the data amount of remaining data in the first service data that has not been multiplexed to the target transmission channel.
其中,传输所述第一业务数据所经过的时长可以为终端设备从开始传输所述第一业务数据的时刻开始到当前时刻所经过的TTI之和。Wherein, the elapsed time period for transmitting the first service data may be the sum of the TTIs elapsed by the terminal device from the moment when the terminal device starts to transmit the first service data to the current moment.
示例性的,当所述第一业务数据到达该目标逻辑信道后,终端设备开始传输第一业务数据时(此时所述第一业务数据还未被复用),终端设备初始化所述第一业务的剩余数据量为所述第一业务数据的总数据量,初始化所述第一剩余传输时间为所述第一目标传输时长。Exemplarily, after the first service data reaches the target logical channel, when the terminal device starts to transmit the first service data (the first service data has not been multiplexed at this time), the terminal device initializes the first service data. The remaining data volume of the service is the total data volume of the first service data, and the first remaining transmission time is initialized as the first target transmission duration.
在本申请实施例中,为了保证所述第一业务数据的传输时长尽量满足所述目标业务的传输时延的要求,所述终端设备可以设置所述第一目标传输时长小于或等于所述目标业务的传输时延。进一步的,为了使第一业务数据的传输时长尽量长,所述终端设备可以设置所述第一目标传输时长等于所述目标业务的传输时延。In this embodiment of the present application, in order to ensure that the transmission duration of the first service data meets the transmission delay requirement of the target service as much as possible, the terminal device may set the first target transmission duration to be less than or equal to the target transmission duration The transmission delay of the service. Further, in order to make the transmission duration of the first service data as long as possible, the terminal device may set the first target transmission duration to be equal to the transmission delay of the target service.
示例性的,当第一业务数据为所述目标业务的首个业务数据,或者在第一业务数据到达时前一个业务数据已全部复用到目标传输信道,又或者在第一业务数据到达时前一个业务数据的剩余数据被丢弃的情况下,所述终端设备可以设置所述第一目标传输时长等于所述目标业务的传输时延。Exemplarily, when the first service data is the first service data of the target service, or when the first service data arrives, all the previous service data has been multiplexed to the target transmission channel, or when the first service data arrives In the case that the remaining data of the previous service data is discarded, the terminal device may set the first target transmission duration to be equal to the transmission delay of the target service.
又示例性的,在第一业务数据的前一个业务数据的剩余传输时间小于或等于0但仍存在剩余数据的情况,终端设备可以继续传输该前一个业务数据,那么在该情况下,若在该前一个业务数据全部复用到目标传输信道之前第一业务数据到达,终端设备会统计该前一个业务数据的占用时长。在该前一个业务数据全部复用到目标传输信道时,终端设备可以设置第一目标传输时长等于所述目标业务的传输时延与该前一个业务数据的占用时长的 差值。In another example, when the remaining transmission time of the previous service data of the first service data is less than or equal to 0 but there is still remaining data, the terminal device can continue to transmit the previous service data, then in this case, if the Before the first service data arrives before the previous service data is all multiplexed to the target transmission channel, the terminal device will count the occupied time of the previous service data. When all the previous service data is multiplexed into the target transmission channel, the terminal device may set the first target transmission duration to be equal to the difference between the transmission delay of the target service and the occupied duration of the previous service data.
在本申请实施例中,终端设备可以在每次确定/更新第一业务数据的第一剩余传输时间后,判断第一剩余传输时间是否大于判断阈值,其中,判断阈值用于判断业务数据是否超时,该判断阈值可以为用户设定的,或者协议规定的,或者为网络设备配置的,又或者终端设备出厂配置的,再或者为本领域默认的;该判断阈值通常取值为0,但本申请对该判断阈值的取值不作限定。第一剩余传输时间大于判断阈值表示当前第一业务数据的实际传输时长满足目标业务的传输时延要求;而第一剩余传输时间小于或等于判断阈值表示当前第一业务数据的实际传输时长已经不满足目标业务的传输时延要求。还需要说明的是,本申请实施例不对第一剩余传输时间的判断阈值的取值进行限定,本申请实施例均以0为例说明,在其他场景,该判断阈值还可以为其他设定值。In this embodiment of the present application, the terminal device may determine whether the first remaining transmission time of the first service data is greater than a judgment threshold after each time the terminal device determines/updates the first remaining transmission time of the first service data, where the judgment threshold is used to judge whether the service data times out , the judgment threshold can be set by the user, or stipulated by the protocol, or configured for the network equipment, or factory-configured by the terminal equipment, or default in the field; the judgment threshold is usually 0, but this The application does not limit the value of the judgment threshold. The first remaining transmission time is greater than the judgment threshold, indicating that the actual transmission time of the current first service data meets the transmission delay requirement of the target service; and the first remaining transmission time is less than or equal to the judgment threshold, indicating that the actual transmission time of the current first service data has not been longer. Meet the transmission delay requirements of the target service. It should also be noted that the embodiments of the present application do not limit the value of the judgment threshold of the first remaining transmission time, and the embodiments of the present application use 0 as an example for description. In other scenarios, the judgment threshold may also be other set values. .
下面先对在第一剩余传输时间大于0的条件下,终端设备执行的步骤S602和S604进行说明。Steps S602 and S604 performed by the terminal device under the condition that the first remaining transmission time is greater than 0 will be described below.
S602:终端设备根据第一业务数据的剩余数据量和第一剩余传输时间确定第一PBR。S602: The terminal device determines the first PBR according to the remaining data amount of the first service data and the first remaining transmission time.
其中,第一PBR表示目标逻辑信道对应的令牌桶中令牌的增加速度,即目标逻辑信道对应的令牌数量(以下简称为第一变量)的增加速度。因此,在第一PBR用单位时间内增加的数据量来表示的情况下,第一PBR=第一业务数据的剩余数据量/第一剩余传输时间;在第一PBR用单位时间内增加的令牌个数表示,且一个令牌用于传输设定数据量(例如1Byte、2Byte、1bit等)的数据时,第一PBR=(第一业务数据的剩余数据量/设定数据量)/第一剩余传输时间。The first PBR represents the increasing speed of tokens in the token bucket corresponding to the target logical channel, that is, the increasing speed of the number of tokens corresponding to the target logical channel (hereinafter referred to as the first variable). Therefore, when the first PBR is represented by the amount of data added per unit time, the first PBR=the remaining data amount of the first service data/the first remaining transmission time; Indicated by the number of cards, and when one token is used to transmit data with a set data volume (for example, 1Byte, 2Byte, 1bit, etc.), the first PBR=(the remaining data volume of the first service data/the set data volume)/the first PBR a remaining transmission time.
示例性的,在第一业务数据还未被复用时,终端设备初始化所述第一业务的剩余数据量为所述第一业务数据的总数据量,初始化所述第一剩余传输时间为所述第一目标传输时长,因此,第一PBR=第一业务数据的总数据量/第一目标传输时长,或者第一PBR=(第一业务数据的总数据量/设定数据量)/第一目标传输时长。Exemplarily, when the first service data has not been multiplexed yet, the terminal device initializes the remaining data volume of the first service as the total data volume of the first service data, and initializes the first remaining transmission time as the total data volume of the first service data. The first target transmission duration is described, therefore, the first PBR=the total data volume of the first service data/the first target transmission duration, or the first PBR=(the total data volume of the first service data/the set data volume)/the first target transmission duration A target transmission duration.
S603:终端设备根据第一PBR增加目标逻辑信道对应的令牌数量(即第一变量)的取值。即终端设备在每个令牌增量时间间隔T中,将第一变量增加第一PBR*T。终端设备可以在第一传输时刻,根据第一变量的取值,将第一业务数据的剩余数据复用到目标传输信道。S603: The terminal device increases the value of the number of tokens (ie, the first variable) corresponding to the target logical channel according to the first PBR. That is, in each token increment time interval T, the terminal device increases the first variable by the first PBR*T. The terminal device may, at the first transmission moment, multiplex the remaining data of the first service data to the target transmission channel according to the value of the first variable.
其中,在第一传输时刻,第一变量的取值大于0。Wherein, at the first transmission moment, the value of the first variable is greater than 0.
由于第一业务数据可以承载在多个RLC SDU中,因此,在终端设备在根据第一变量的取值,将第一业务数据的剩余数据复用到目标传输信道的过程中,需要尽量避免对RLC SDU分段。Since the first service data can be carried in multiple RLC SDUs, in the process of multiplexing the remaining data of the first service data to the target transmission channel according to the value of the first variable, the terminal device needs to avoid as much as possible to RLC SDU fragmentation.
本申请实施例中,在每个传输时刻,终端设备在根据第一变量的取值,将业务数据复用到目标传输信道的过程与传统的令牌机制中的复用过程相同,因此可以参考图3所示的过程,或者图7或图8所示的实例中的关于复用过程的具体描述(例如图7所示的实例中的S704中的描述,以及图8所示的实例中的A3、A4中的描述),此处不再赘述。In this embodiment of the present application, at each transmission moment, the process of multiplexing service data to the target transmission channel by the terminal device according to the value of the first variable is the same as the multiplexing process in the traditional token mechanism. Therefore, refer to The process shown in FIG. 3, or the specific description about the multiplexing process in the example shown in FIG. 7 or FIG. 8 (for example, the description in S704 in the example shown in FIG. The descriptions in A3 and A4), which will not be repeated here.
总之,当包含所述目标逻辑信道在内的多个逻辑信道复用所述目标传输信道时,需要满足以下原则:In a word, when multiple logical channels including the target logical channel multiplex the target transport channel, the following principles need to be satisfied:
1、在每个传输时刻,对于所有令牌数量大于0的逻辑信道,终端设备按照逻辑信道优先级从高到低的顺序,依次根据每个逻辑信道的令牌数量将每个逻辑信道中的数据复用 到目标传输信道;1. At each transmission moment, for all logical channels whose number of tokens is greater than 0, the terminal device, in the order of logical channel priority from high to low, sequentially assigns the number of tokens in each logical channel according to the number of tokens in each logical channel. The data is multiplexed to the target transmission channel;
2、在每个传输时刻之后,针对每个逻辑信道,按照上一步骤中复用到目标传输信道的数据的总大小,从令牌数量中减去相应的令牌数量;2. After each transmission moment, for each logical channel, subtract the corresponding number of tokens from the number of tokens according to the total size of the data multiplexed to the target transmission channel in the previous step;
3、在完成上述步骤之后,若目标传输信道中还有剩余的空闲资源,则终端设备按照逻辑信道优先级的降序顺序将逻辑信道中的数据继续复用到目标传输信道的剩余资源中,且该过程不消耗逻辑信道的令牌数量。3. After completing the above steps, if there are remaining idle resources in the target transmission channel, the terminal device continues to multiplex the data in the logical channel into the remaining resources of the target transmission channel according to the descending order of the logical channel priority, and This process does not consume the token count of the logical channel.
并且,在资源分配过程中,为了尽量减少RLC SDU分段带来的开销,还需要遵守如下原则:In addition, in the process of resource allocation, in order to minimize the overhead caused by RLC SDU segmentation, the following principles need to be followed:
1、如果整个RLC SDU能够在目标传输信道的MAC PDU的空闲资源中传输,则不对该RLC SDU分段;1. If the entire RLC SDU can be transmitted in the idle resources of the MAC PDU of the target transport channel, the RLC SDU will not be segmented;
2、如果终端设备对某个RLC SDU进行了分段,应该根据MAC PDU的空闲资源量使分段的长度最大化;2. If the terminal device segments an RLC SDU, the length of the segment should be maximized according to the amount of free resources of the MAC PDU;
3、终端设备应该尽可能多的传输数据,即在MAC PDU中尽可能多的复用逻辑信道中的数据。3. The terminal device should transmit as much data as possible, that is, multiplex the data in the logical channel as much as possible in the MAC PDU.
通过本S603,终端设备可以第一业务数据的剩余数据复用到目标传输信道,进而可以通过物理信道将第一业务数据传输到基站。Through this S603, the terminal device can multiplex the remaining data of the first service data to the target transmission channel, and then can transmit the first service data to the base station through the physical channel.
S604:在第一传输时刻后,终端设备根据第一传输时刻复用到目标传输信道的第一业务数据的总大小(total size),减少第一变量的取值。S604: After the first transmission time, the terminal device reduces the value of the first variable according to the total size (total size) of the first service data multiplexed to the target transmission channel at the first transmission time.
需要说明的是,按照上述复用目标传输信道的第三条原则可知,此处的第一业务数据的总大小仅为根据第一变量的取值复用到目标传输信道的第一业务数据的总大小。当在目标传输信道还存在空闲资源时,继续根据目标逻辑信道的优先级,将第一业务数据复用到目标传输信道时,不需要减少第一变量的取值。It should be noted that, according to the above-mentioned third principle of multiplexing the target transmission channel, the total size of the first service data here is only the size of the first service data multiplexed to the target transmission channel according to the value of the first variable. total size. When there are still idle resources in the target transmission channel, when continuing to multiplex the first service data to the target transmission channel according to the priority of the target logical channel, it is not necessary to reduce the value of the first variable.
继续以每个令牌传输设定数据量的数据时,在S604中,第一变量的减量为第一业务数据的总大小/设定数据量,即第一变量=第一变量-第一变量的减量(第一业务数据的总大小/设定数据量)。When the data of the set data volume continues to be transmitted with each token, in S604, the decrement of the first variable is the total size of the first service data/the set data volume, that is, the first variable = the first variable - the first variable Decrease of the variable (total size of the first service data/set data amount).
通过S602-S604,终端设备可以根据第一业务数据的剩余数据量和剩余传输时间,动态地确定目标逻辑信道的第一PBR,从而可以根据该第一PBR增加第一变量的取值,这样,在第一传输时刻可以根据第一变量的取值将第一业务数据的剩余数据复用到目标传输信道,实现第一业务数据的传输。Through S602-S604, the terminal device can dynamically determine the first PBR of the target logical channel according to the remaining data volume and remaining transmission time of the first service data, so that the value of the first variable can be increased according to the first PBR, so that, At the first transmission moment, the remaining data of the first service data may be multiplexed to the target transmission channel according to the value of the first variable, so as to realize the transmission of the first service data.
如图6A所示,当在S603中终端设备将第一业务数据的剩余数据中的部分数据复用到目标传输信道(即第一业务数据未全部复用到目标传输信道)的情况下,那么在S604之后,所述终端设备继续执行S601,从而可以继续可以通过S602-S604,以便动态更新第一PBR,并根据动态更新的第一PBR将第一业务数据中的剩余数据继续复用到目标传输信道。As shown in FIG. 6A , when the terminal device multiplexes part of the remaining data of the first service data to the target transmission channel in S603 (that is, not all the first service data is multiplexed to the target transmission channel), then After S604, the terminal device continues to perform S601, so that it can continue to pass through S602-S604 to dynamically update the first PBR, and continue to multiplex the remaining data in the first service data to the target according to the dynamically updated first PBR transmission channel.
其中,在终端设备继续执行S601时,包括:Wherein, when the terminal device continues to execute S601, it includes:
终端设备可以根据在S603中复用到目标传输信道的所述部分数据的总大小,更新第一业务数据的剩余数据量;以及根据本次将所述部分数据复用到目标传输信道所消耗的时间,更新第一剩余传输时间。The terminal device may update the remaining data amount of the first service data according to the total size of the partial data multiplexed to the target transmission channel in S603; time, update the first remaining transmission time.
需要说明的是,若在S603中终端设备根据第一变量的取值将第一业务数据的剩余数据复用到目标传输信道后目标传输信道还存在空闲资源,那么终端设备继续根据目标逻辑信道的优先级,将第一业务数据中的剩余数据复用到目标传输信道。在该情况下,终端设 备可以根据在S603中复用到目标传输信道的所述部分数据的总大小,以及继续复用到目标传输信道的第一业务数据的数据量,更新第一业务数据的剩余数据量。It should be noted that, if the terminal device multiplexes the remaining data of the first service data into the target transmission channel according to the value of the first variable in S603, there are still idle resources in the target transmission channel, then the terminal device continues according to the value of the target logical channel. priority, multiplexing the remaining data in the first service data to the target transmission channel. In this case, the terminal device may update the data of the first service data according to the total size of the partial data multiplexed into the target transmission channel in S603 and the data volume of the first service data that is continuously multiplexed into the target transmission channel amount of data remaining.
其中,根据本次将所述部分数据复用到目标传输信道所消耗的时间,更新第一剩余传输时间,包括:Wherein, according to the time consumed for multiplexing the partial data to the target transmission channel this time, updating the first remaining transmission time includes:
终端设备根据第一传输时刻对应的TTI,更新第一剩余传输时间。即更新第一剩余传输时间为第一剩余传输时间减去该TTI。The terminal device updates the first remaining transmission time according to the TTI corresponding to the first transmission moment. That is, the first remaining transmission time is updated to be the first remaining transmission time minus the TTI.
下面对在第一剩余传输时间小于或等于0的条件下,终端设备执行的步骤进行说明。如图6A所示,本申请实施例提供了两种方案。The steps performed by the terminal device under the condition that the first remaining transmission time is less than or equal to 0 are described below. As shown in FIG. 6A , the embodiment of the present application provides two solutions.
方案一:Option One:
S605:当终端设备确定第一业务数据的第一剩余传输时间小于或等于0时,终端设备丢弃第一业务数据的剩余数据。S605: When the terminal device determines that the first remaining transmission time of the first service data is less than or equal to 0, the terminal device discards the remaining data of the first service data.
由于在目标业务的传输时延内,第一业务数据未全部传完,那么在一些情况下目标业务不再需要第一业务数据的剩余数据了,因此,通过本方案,终端设备的不再将第一业务数据的剩余数据复用到目标传输信道,以便可以利用空出的资源继续将下一个业务数据复用到目标传输信道。Since the first service data is not fully transmitted within the transmission delay of the target service, in some cases, the target service no longer needs the remaining data of the first service data. The remaining data of the first service data is multiplexed to the target transmission channel, so that the vacated resources can be used to continue multiplexing the next service data to the target transmission channel.
例如,终端设备的视频业务中,在设定的传输时延内某一帧图像未全部传输到网络设备,此时该帧图像的处理/显示时间已过,不再需要处理/显示,即使继续传输该帧图像也无法提高用户体验。因此,为了避免资源浪费,以及避免影响下一帧的图像的传输时延,可以丢弃该帧图像中的剩余数据。For example, in the video service of the terminal device, a certain frame of image is not fully transmitted to the network device within the set transmission delay. At this time, the processing/display time of the frame image has elapsed, and the processing/display is no longer required. Transmitting that frame of image also doesn't improve the user experience. Therefore, in order to avoid wasting resources and avoid affecting the transmission delay of the image of the next frame, the remaining data in the image of the frame may be discarded.
需要说明的是,在终端设备采用方案一的场景中,当在第一业务数据的第一剩余传输时间大于0时,第一业务数据的下一个业务数据(记为第二业务数据)到达目标逻辑信道,那么终端设备需要继续将第一业务数据的剩余数据复用到目标传输信道,直至第一业务数据的第一剩余传输时间小于或等于0。在第一业务数据的第一剩余传输时间小于或等于0时,若第一业务数据还未全部传完,则终端设备丢弃第一业务数据的剩余数据,并通过以下步骤,开始启动将第二业务数据复用到目标传输信道:It should be noted that, in the scenario where the terminal device adopts solution 1, when the first remaining transmission time of the first service data is greater than 0, the next service data (referred to as the second service data) of the first service data reaches the target logical channel, the terminal device needs to continue to multiplex the remaining data of the first service data to the target transmission channel until the first remaining transmission time of the first service data is less than or equal to 0. When the first remaining transmission time of the first service data is less than or equal to 0, if the first service data has not been fully transmitted, the terminal device discards the remaining data of the first service data, and starts to start the second service data through the following steps. Service data is multiplexed to the target transmission channel:
初始化所述第二业务数据的剩余数据量为所述第二业务数据的总数据量,并初始化所述第二业务数据的第二剩余传输时间为第二目标传输时长;其中,所述第二目标传输时长可以等于所述目标业务的传输时延;Initializing the remaining data volume of the second service data as the total data volume of the second service data, and initializing the second remaining transmission time of the second service data as the second target transmission duration; wherein the second The target transmission duration may be equal to the transmission delay of the target service;
根据所述第二业务数据的剩余数据量和所述第二剩余传输时间,确定所述目标业务对应的第二PBR。A second PBR corresponding to the target service is determined according to the remaining data amount of the second service data and the second remaining transmission time.
之后,与S603-S604类似的,终端设备可以根据第二PBR增加第一变量的取值,并根据第一变量的取值,将第二业务数据复用到目标传输信道。Afterwards, similar to S603-S604, the terminal device may increase the value of the first variable according to the second PBR, and multiplex the second service data to the target transmission channel according to the value of the first variable.
总之,所述终端设备可以参考以上S601-S607,根据第二业务数据的剩余数据量和第二剩余传输时间,动态更新第二PBR,并根据动态更新的第二PBR将第二业务数据复用到目标传输信道,此处不再赘述。In a word, the terminal device can refer to the above S601-S607, dynamically update the second PBR according to the remaining data volume of the second service data and the second remaining transmission time, and multiplex the second service data according to the dynamically updated second PBR to the target transmission channel, which will not be repeated here.
当然,若终端设备在第一剩余传输时间小于或等于0时,丢弃第一业务数据的剩余数据之后,或者终端设备在将第一业务数据全部复用到目标传输信道之后,第二业务数据到达目标逻辑信道,那么终端设备也需要采用上述步骤,对第二业务数据的剩余数据量、第二剩余传输时间进行初始化,以及基于第二业务数据的剩余数据量和第二剩余传输时间确 定第二PBR,等等,具体过程此处不再赘述。Of course, if the terminal device discards the remaining data of the first service data when the first remaining transmission time is less than or equal to 0, or after the terminal device multiplexes all the first service data to the target transmission channel, the second service data arrives target logical channel, the terminal device also needs to adopt the above steps to initialize the remaining data volume and the second remaining transmission time of the second service data, and determine the second PBR, etc., the specific process will not be repeated here.
方案二:Option II:
S606:终端设备根据最后一次计算的第一PBR,增加第一变量的取值;在第二传输时刻,根据第一变量的取值,将第一业务数据的剩余数据复用到目标传输信道。S606: The terminal device increases the value of the first variable according to the last calculated first PBR; at the second transmission moment, multiplexes the remaining data of the first service data to the target transmission channel according to the value of the first variable.
由于第一剩余传输时间小于或等于0,终端设备无法再动态计算第一PBR,因此,终端设备可以选择之前最后一次计算的第一PBR继续增加第一变量的取值。Because the first remaining transmission time is less than or equal to 0, the terminal device can no longer dynamically calculate the first PBR. Therefore, the terminal device can select the last calculated first PBR to continue to increase the value of the first variable.
需要说明的是,S606为可选的步骤。可选的,当第一剩余传输时间小于或等于0时,终端设备的还可以使用网络设备静态配置的PBR,增加第一变量的取值,本申请对此不作限定。It should be noted that, S606 is an optional step. Optionally, when the first remaining transmission time is less than or equal to 0, the terminal device may also use the PBR statically configured by the network device to increase the value of the first variable, which is not limited in this application.
S607:在第二传输时刻后,终端设备根据第二传输时刻复用到目标传输信道的第一业务数据的总大小,减少第一变量的取值。S607: After the second transmission time, the terminal device reduces the value of the first variable according to the total size of the first service data multiplexed to the target transmission channel at the second transmission time.
在本方案中,终端设备根据第一变量的取值,将第一业务数据的剩余数据复用到目标传输信道,以及减少第一变量的取值的过程可以参考以上S603-S604中的描述,此处不再赘述。In this solution, the terminal device multiplexes the remaining data of the first service data to the target transmission channel according to the value of the first variable, and the process of reducing the value of the first variable may refer to the description in the above S603-S604, It will not be repeated here.
如图所示,在第一剩余传输时间小于或等于0的情况下,终端设备的可以循环执行S606-S607,以持续将第一业务数据的剩余数据复用到目标传输信道。As shown in the figure, in the case that the first remaining transmission time is less than or equal to 0, the terminal device may execute S606-S607 cyclically to continuously multiplex the remaining data of the first service data to the target transmission channel.
在方案二中,由于第一业务数据的实际传输时长不符合目标业务的传输时延的要求,因此,为了避免影响下一个业务数据的(以下简称为第二业务数据)的传输,本申请实施例提供了一种占用时长扣除机制。In scheme 2, since the actual transmission duration of the first service data does not meet the transmission delay requirement of the target service, in order to avoid affecting the transmission of the next service data (hereinafter referred to as the second service data), this application implements The example provides a deduction mechanism for occupied time.
在该机制中,若第一业务数据全部复用到目标传输信道之前第二业务数据到达,终端设备会统计第一业务数据的占用时长。在该第一业务数据全部复用到目标传输信道,终端设备开始将第二业务数据复用到目标传输信道时,可以设置第二业务数据的第二目标传输时长等于所述目标业务的传输时延与第一业务数据的占用时长的差值。In this mechanism, if the second service data arrives before all the first service data is multiplexed to the target transmission channel, the terminal device will count the occupied time of the first service data. When all the first service data is multiplexed to the target transmission channel and the terminal device starts to multiplex the second service data to the target transmission channel, the second target transmission duration of the second service data can be set equal to the transmission time of the target service The difference between the delay and the occupied duration of the first service data.
下面第二业务数据的到达时刻的不同,对占用时长的计时方式进行说明:The difference in the arrival time of the second service data below will explain the timing method of the occupied time:
方式一:在所述第一剩余传输时间小于或等于0之前,确定所述目标业务的第二业务数据到达所述目标逻辑信道。在该情况下,在所述第一剩余传输时间小于或等于0时,终端设备开始对占用时长进行计时。Manner 1: Before the first remaining transmission time is less than or equal to 0, it is determined that the second service data of the target service arrives at the target logical channel. In this case, when the first remaining transmission time is less than or equal to 0, the terminal device starts to count the occupied duration.
方式二:在所述第一剩余传输时间小于或等于0之后,且所述第一业务数据全部复用到所述目标传输信道之前,确定所述目标业务的第二业务数据到达所述目标逻辑信道。在该情况下,在所述第二业务数据的到达时,终端设备开始对占用时长进行计时。Method 2: After the first remaining transmission time is less than or equal to 0, and before all the first service data is multiplexed to the target transmission channel, determine that the second service data of the target service arrives at the target logic channel. In this case, when the second service data arrives, the terminal device starts to count the occupied duration.
并且,在所述第一业务数据全部复用到所述目标传输信道时,终端设备停止对所述占用时长进行计时;并通过以下步骤,开始启动将第二业务数据复用到目标传输信道:In addition, when all the first service data is multiplexed to the target transmission channel, the terminal device stops timing the occupied duration; and starts to multiplex the second service data to the target transmission channel through the following steps:
初始化所述第二业务数据的剩余数据量为所述第二业务数据的总数据量,并初始化所述第二业务数据的第二剩余传输时间为第二目标传输时长;其中,所述第二目标传输时长为所述目标业务的传输时延与所述占用时长之间的差值;Initializing the remaining data volume of the second service data as the total data volume of the second service data, and initializing the second remaining transmission time of the second service data as the second target transmission duration; wherein the second The target transmission duration is the difference between the transmission delay of the target service and the occupied duration;
根据所述第二业务数据的剩余数据量和所述第二剩余传输时间,确定所述目标业务对应的第二PBR。A second PBR corresponding to the target service is determined according to the remaining data amount of the second service data and the second remaining transmission time.
之后,与S603-S604类似的,终端设备可以根据第二PBR增加第一变量的取值,并根据第一变量的取值,将第二业务数据复用到目标传输信道。Afterwards, similar to S603-S604, the terminal device may increase the value of the first variable according to the second PBR, and multiplex the second service data to the target transmission channel according to the value of the first variable.
总之,所述终端设备可以参考以上S601-S607,根据第二业务数据的剩余数据量和第 二剩余传输时间,动态更新第二PBR,并根据动态更新的第二PBR将第二业务数据复用到目标传输信道,此处不再赘述。In a word, the terminal device can refer to the above S601-S607, dynamically update the second PBR according to the remaining data volume of the second service data and the second remaining transmission time, and multiplex the second service data according to the dynamically updated second PBR to the target transmission channel, which will not be repeated here.
在终端设备采用方案二的场景中,若在所述第一业务数据全部复用到所述目标传输信道之后,第二业务数据到达目标逻辑信道,那么终端设备通过以下步骤,开始启动将第二业务数据复用到目标传输信道:In the scenario where the terminal device adopts solution 2, if the second service data arrives at the target logical channel after the first service data is all multiplexed into the target transmission channel, the terminal device starts to start the second service through the following steps. Service data is multiplexed to the target transmission channel:
初始化所述第二业务数据的剩余数据量为所述第二业务数据的总数据量,并初始化所述第二业务数据的第二剩余传输时间为第二目标传输时长;其中,所述第二目标传输时长可以等于所述目标业务的传输时延;Initializing the remaining data volume of the second service data as the total data volume of the second service data, and initializing the second remaining transmission time of the second service data as the second target transmission duration; wherein the second The target transmission duration may be equal to the transmission delay of the target service;
根据所述第二业务数据的剩余数据量和所述第二剩余传输时间,确定所述目标业务对应的第二PBR。A second PBR corresponding to the target service is determined according to the remaining data amount of the second service data and the second remaining transmission time.
之后,与S603-S604类似的,终端设备可以根据第二PBR增加第一变量的取值,并根据第一变量的取值,将第二业务数据复用到目标传输信道。Afterwards, similar to S603-S604, the terminal device may increase the value of the first variable according to the second PBR, and multiplex the second service data to the target transmission channel according to the value of the first variable.
最后,应了解,以上终端设备执行MAC层调度过程可以具体由终端设备的MAC层执行,或者为其他协议层执行,本申请对此不作限定。Finally, it should be understood that the above-mentioned terminal device performs the MAC layer scheduling process may be specifically performed by the MAC layer of the terminal device, or performed for other protocol layers, which is not limited in this application.
本申请实施例提供了一种通信方法,在该方法中,终端设备可以根据目标业务的业务数据的剩余数据量和剩余传输时间,动态地确定目标业务对应的PBR,以根据该PBR传输该业务数据;其中,该剩余传输时间为根据目标业务的传输时延确定的目标传输时长与传输该业务数据所经过的时长之间的差值。由于该目标业务的PBR是根据该业务数据的传输速率的要求而动态变化的,如图6B所示,因此相对于PBR静态分配方式,该方法可以尽量提高在规定的目标业务的传输时延内全部传输业务数据的概率。总之,该方法可以保证终端设备的业务数据的传输时延,提升业务的用户体验。An embodiment of the present application provides a communication method, in which a terminal device can dynamically determine a PBR corresponding to a target service according to the remaining data volume and remaining transmission time of service data of the target service, so as to transmit the service according to the PBR data; wherein, the remaining transmission time is the difference between the target transmission duration determined according to the transmission delay of the target service and the duration elapsed for transmitting the service data. Since the PBR of the target service changes dynamically according to the requirement of the transmission rate of the service data, as shown in FIG. 6B , compared with the PBR static allocation method, this method can improve the transmission delay within the specified target service as far as possible. The probability that all traffic data is transmitted. In a word, the method can ensure the transmission delay of the service data of the terminal device and improve the user experience of the service.
本申请实施例提供了另一种通信方法,该方法可以应用于由终端设备和网络设备组成的移动通信系统中的下行方向(即网络设备向终端设备发送业务数据)。在该方法中,网络设备与终端设备建立无线连接之后,确定目标业务的传输时延,具体过程可以参考图6A中的S600a和S600b中的描述,此处不再展开描述。The embodiment of the present application provides another communication method, which can be applied to the downlink direction in a mobile communication system composed of a terminal device and a network device (ie, the network device sends service data to the terminal device). In this method, after the network device establishes a wireless connection with the terminal device, the transmission delay of the target service is determined. The specific process can refer to the descriptions in S600a and S600b in FIG. 6A , which will not be described here.
之后,网络设备的MAC层可以根据S601-S607中的步骤,根据该目标业务的第一业务数据的剩余数据量和剩余传输时间,动态地确定目标业务对应的PBR,以根据该PBR传输第一业务数据;其中,该剩余传输时间为根据目标业务的传输时延确定的目标传输时长与传输第一业务数据所经过的时长之间的差值。该过程可以图6A所示的实施例中相应步骤的具体描述,此处不再展开描述。After that, the MAC layer of the network device can dynamically determine the PBR corresponding to the target service according to the steps in S601-S607, according to the remaining data volume and remaining transmission time of the first service data of the target service, so as to transmit the first service according to the PBR. Service data; wherein, the remaining transmission time is the difference between the target transmission duration determined according to the transmission delay of the target service and the duration elapsed for transmitting the first service data. The process can be described in detail with respect to the corresponding steps in the embodiment shown in FIG. 6A , which will not be described here.
本申请实施例还提供了又一种通信方法,该方法可以应用于由多个终端设备组成的sidelink通信系统。在该方法中,两个终端设备建立sidelink连接之后,第一终端设备(发送设备)的MAC层确定目标业务的传输时延,并采用S601-S607中的步骤,将目标业务的业务数据发送给第二终端设备(接收设备),具体过程可以参考图6A所示的实施例中的具体描述,此处不再赘述。The embodiment of the present application also provides another communication method, which can be applied to a sidelink communication system composed of multiple terminal devices. In this method, after the two terminal devices establish a sidelink connection, the MAC layer of the first terminal device (sending device) determines the transmission delay of the target service, and adopts the steps in S601-S607 to send the service data of the target service to For the second terminal device (receiving device), reference may be made to the specific description in the embodiment shown in FIG. 6A for the specific process, which will not be repeated here.
需要说明的是,第一终端设备可以但不限于通过以下方式,确定目标业务的传输时延:It should be noted that the first terminal device may, but is not limited to, determine the transmission delay of the target service in the following ways:
方式一:在该sidelink系统采用的传输模式为mode1时,网络设备可以向第一终端设备发送指示信息,该指示信息用于指示目标业务的传输时延。Manner 1: When the transmission mode adopted by the sidelink system is mode1, the network device may send indication information to the first terminal device, where the indication information is used to indicate the transmission delay of the target service.
方式二:在该sidelink系统采用的传输模式为mode2时,第一终端设备的RRC层或PDCP层可以确定所述目标业务的传输时延后,配置给第一终端设备的MAC层;又或者第一终端设备存储有多个业务的传输时延,在启动目标业务后,确定目标业务的传输时延;再或者第二终端设备向第一终端设备发送指示信息,该指示信息用于指示该目标业务的传输时延。Mode 2: When the transmission mode adopted by the sidelink system is mode2, the RRC layer or the PDCP layer of the first terminal device can determine the transmission delay of the target service and configure it to the MAC layer of the first terminal device; A terminal device stores the transmission delay of multiple services, and after starting the target service, determines the transmission delay of the target service; or the second terminal device sends indication information to the first terminal device, and the indication information is used to indicate the target service. The transmission delay of the service.
基于图6A所示的实施例,本申请还提供了一种通信方法实例,该实例以包含终端设备和基站的移动通信系统为例,以终端设备在向基站传输XR业务数据过程中进行MAC层调度为例,参阅图7所示的流程图进行说明。Based on the embodiment shown in FIG. 6A , the present application also provides an example of a communication method. In this example, a mobile communication system including a terminal device and a base station is taken as an example. In the process of transmitting XR service data to the base station by the terminal device, the MAC layer is performed. Taking scheduling as an example, it will be described with reference to the flowchart shown in FIG. 7 .
S700:当基站与终端设备建立无线连接后,基站为终端设备分配XR业务的传输时延。S700: After the base station establishes a wireless connection with the terminal device, the base station allocates the transmission delay of the XR service to the terminal device.
可选的,基站可以通过图6A所示的实施例中S600a中的描述,与终端设备建立RRC连接,并基于RRC连接建立XR业务的数据承载。其中,在建立该数据承载的过程中,基站和终端设备的MAC层建立该数据承载对应的目标逻辑信道。Optionally, the base station may establish an RRC connection with the terminal device according to the description in S600a in the embodiment shown in FIG. 6A , and establish the data bearer of the XR service based on the RRC connection. Wherein, in the process of establishing the data bearer, the MAC layer of the base station and the terminal device establishes a target logical channel corresponding to the data bearer.
在本步骤中,基站可以通过S600b中记载的方式,确定XR业务的传输时延,并向终端设备发送指示该XR业务的传输时延的指示信息。这样,终端设备可以确定XR业务的传输时延,以便根据该传输时延传输XR业务的业务数据(以下简称为XR业务数据)。In this step, the base station may determine the transmission delay of the XR service in the manner described in S600b, and send indication information indicating the transmission delay of the XR service to the terminal device. In this way, the terminal device can determine the transmission delay of the XR service, so as to transmit the service data of the XR service (hereinafter referred to as XR service data) according to the transmission delay.
S701:终端设备的MAC层初始化目标逻辑信道对应的令牌桶的令牌数量Bxr=0,其中,目标逻辑信道为XR业务对应的逻辑信道,用于传输XR业务的业务数据。S701: The MAC layer of the terminal device initializes the token number Bxr=0 of the token bucket corresponding to the target logical channel, where the target logical channel is the logical channel corresponding to the XR service and is used to transmit service data of the XR service.
在本申请实施例中,目标逻辑信道对应的令牌桶的令牌数量Bxr,又可以称为目标逻辑信道对应的令牌数量Bxr。In this embodiment of the present application, the number of tokens Bxr in the token bucket corresponding to the target logical channel may also be referred to as the number of tokens Bxr corresponding to the target logical channel.
本实例仅以将目标逻辑信道对应的令牌数据Bxr初始化为0为例进行说明,但是需要说明的是,本实例不对令牌数量的初始值进行限定,该初始值还可以为其他值。This example only takes the example of initializing the token data Bxr corresponding to the target logical channel to 0, but it should be noted that this example does not limit the initial value of the number of tokens, and the initial value may also be other values.
S702:当承载第V个XR业务数据的一个或多个RLC SDU到达终端设备的MAC层目标逻辑信道(第V个XR业务数据还未被复用)时,终端设备的MAC层初始化第V个XR业务数据的剩余传输时间D=XR业务的传输时延;并初始化第V个XR业务数据的剩余数据的数据量Sv=第V个XR业务数据的总数据量。S702: When one or more RLC SDUs carrying the Vth XR service data arrive at the MAC layer target logical channel of the terminal device (the Vth XR service data has not been multiplexed), the MAC layer of the terminal device initializes the Vth The remaining transmission time of the XR service data D=the transmission delay of the XR service; and the data volume of the remaining data of the Vth XR service data is initialized Sv=the total data volume of the Vth XR service data.
第V个XR业务数据可以为任一个XR业务数据。The Vth XR service data may be any XR service data.
每个XR业务数据可以为一帧图像、设定帧图像或多帧图像;或者为一帧图像、设定帧图像或多帧图像中的一个图像片,本申请对此不作限定。Each XR service data may be one frame of image, set frame image or multiple frame images; or one frame image, set frame image or one image slice of multiple frame images, which is not limited in this application.
示例性的,所述第V个XR业务数据可以为第V帧图像,或第V个图像片。Exemplarily, the Vth XR service data may be the Vth frame image or the Vth image slice.
其中,承载第V个XR业务数据的每个RLC SDU承载的数据量由终端设备自行确定,本申请对此不再详细说明。Wherein, the amount of data carried by each RLC SDU that carries the Vth XR service data is determined by the terminal equipment itself, which is not described in detail in this application.
此外,还应注意,本实例不对承载XR业务数据的数据包格式构成限定,本实例仅以RLC SDU为例,在其他通信系统或应用场景中,承载业务数据的数据包还可以是其他格式的数据包。In addition, it should also be noted that this example does not limit the format of data packets carrying XR service data. This example only takes RLC SDU as an example. In other communication systems or application scenarios, data packets carrying service data may also be in other formats. data pack.
在本实例中,终端设备的MAC层可以按照设定顺序,将承载第V个XR业务数据的多个RLC SDU依次复用到目标传输信道中,目标传输信道为目标逻辑信道对应的传输信道。In this example, the MAC layer of the terminal device can sequentially multiplex multiple RLC SDUs carrying the Vth XR service data into the target transport channel according to the set order, and the target transport channel is the transport channel corresponding to the target logical channel.
S703:终端设备的MAC层根据第V个XR业务数据的剩余数据的数据量Sv,以及剩余传输时间D,计算目标逻辑信道的PBR;并根据该PBR更新目标逻辑信道对应的令牌桶的令牌数量Bxr。S703: The MAC layer of the terminal device calculates the PBR of the target logical channel according to the data volume Sv of the remaining data of the Vth XR service data and the remaining transmission time D; and updates the order of the token bucket corresponding to the target logical channel according to the PBR Number of cards Bxr.
由于PBR表示令牌桶中令牌的增加速度,能够代表XR业务数据的传输速度,因此,在已知第V个XR业务数据的剩余数据的数据量Sv和剩余传输时间D的情况下,可以确定剩余时间D内令牌桶中令牌的增加速度。示例性的,当PBR用单位时间内增加的数据量(例如比特数)来表示时,PBR=Sv/D;当PBR用单位时间内增加的令牌个数表示时,PBR=(Sv/q)/D,其中,每个令牌用于传输固定数据量q的数据。其中,单位时间可以为秒(second,s)或毫秒(millisecond,ms)等标准时间单位。Since PBR represents the increase rate of tokens in the token bucket, it can represent the transmission speed of XR service data. Therefore, when the data volume Sv and the remaining transmission time D of the remaining data of the Vth XR service data are known, it is possible to Determine the rate of increase of tokens in the token bucket for the remaining time D. Exemplarily, when PBR is represented by the amount of data (such as the number of bits) increased per unit time, PBR=Sv/D; when PBR is represented by the number of tokens increased per unit time, PBR=(Sv/q )/D, where each token is used to transmit a fixed amount of data q. The unit time may be a standard time unit such as seconds (second, s) or milliseconds (millisecond, ms).
以下描述仅以PBR用单位时间内增加的令牌个数表示为例进行说明。The following description only takes the PBR expressed by the number of tokens added in a unit time as an example for illustration.
在S703中,所述终端设备的MAC层可以根据PBR更新Bxr,即在每个令牌增量时间间隔T中,Bxr增加Bxr’(即Bxr=Bxr+Bxr’)。其中,Bxr’为T时间内的令牌增量,即PBR和T的乘积,即Bxr’=PBR×T。其中,令牌增量时间间隔T为Bxr的更新周期,其取值可以与传输时间间隔TTI相同,也可以与TTI不同,本申请对此不作限定。In S703, the MAC layer of the terminal device may update Bxr according to the PBR, that is, in each token increment time interval T, Bxr is increased by Bxr' (that is, Bxr=Bxr+Bxr'). Among them, Bxr' is the token increment within T time, that is, the product of PBR and T, that is, Bxr'=PBR×T. The token increment time interval T is the update period of Bxr, and its value may be the same as the transmission time interval TTI, or may be different from the TTI, which is not limited in this application.
还需要说明的是,当基站的RRC层还为所述终端设备的目标逻辑信道配置令牌桶深度BSD(用于指示令牌桶的令牌数量阈值)时,所述终端设备的MAC层在根据PBR更新Bxr的过程中,需要保证Bxr小于或等于BSD所指示的令牌数量阈值。It should also be noted that when the RRC layer of the base station further configures the token bucket depth BSD (used to indicate the token number threshold of the token bucket) for the target logical channel of the terminal device, the MAC layer of the terminal device is in the In the process of updating Bxr according to PBR, it is necessary to ensure that Bxr is less than or equal to the token quantity threshold indicated by BSD.
S704:在每个传输时刻,终端设备的MAC层根据当前令牌桶中令牌的数量Bxr,目标逻辑信道中待传输RLC SDU中剩余数据的数据量K,以及目标传输信道的MAC PDU中空闲资源量M(即MAC PDU中空闲资源能够承载的数据量M),将第V个XR业务数据的剩余数据中数据量为Z的目标数据复用到MAC PDU中,并根据所述目标数据的数据量Z,更新令牌桶的令牌数量Bxr。S704: At each transmission moment, the MAC layer of the terminal device, according to the number of tokens Bxr in the current token bucket, the data amount K of the remaining data in the RLC SDU to be transmitted in the target logical channel, and the idle data in the MAC PDU of the target transmission channel The amount of resources M (that is, the amount of data M that can be carried by idle resources in the MAC PDU), the target data whose data amount is Z in the remaining data of the Vth XR service data is multiplexed into the MAC PDU, and according to the target data of the target data. The amount of data Z, the number of tokens Bxr to update the token bucket.
所述待传输RLC SDU为:在MAC层依次传输承载第V个XR业务数据的多个RLC SDU过程中,承载的数据还未传输完的RLC SDU。当然,所述待传输RLC SDU中的剩余数据包含在第V个XR业务数据的剩余数据中。The RLC SDUs to be transmitted are: in the process of sequentially transmitting the plurality of RLC SDUs carrying the Vth XR service data by the MAC layer, the RLC SDUs whose data has not been completely transmitted. Certainly, the remaining data in the to-be-transmitted RLC SDU is included in the remaining data of the Vth XR service data.
MAC PDU中空闲资源量M=MAC PDU中能够承载的总数据量-已复用到MAC PDU中所有数据的总数据量。The amount of idle resources in the MAC PDU = the total amount of data that can be carried in the MAC PDU - the total amount of data that has been multiplexed into all data in the MAC PDU.
在一个传输时刻中,在确定Bxr大于0时,终端设备的MAC层最多能够将数据量为M的数据复用到MAC PDU中。根据所述待传输RLC SDU中剩余数据的数据量K和MAC PDU中空闲资源量M中的大小关系的不同,本次复用的目标数据的数据量Z的取值也存在不同,具体可以分为以下情况:In a transmission moment, when it is determined that Bxr is greater than 0, the MAC layer of the terminal device can multiplex data with a data amount of M into the MAC PDU at most. According to the difference in the size relationship between the data amount K of the remaining data in the RLC SDU to be transmitted and the idle resource amount M in the MAC PDU, the value of the data amount Z of the target data multiplexed this time is also different, which can be divided into for the following cases:
情况一:若所述待传输RLC SDU中剩余数据的数据量K≥MAC PDU中空闲资源量M时,那么目标数据的数据量Z=M,即目标数据为所述待传输RLC SDU中数据量为M的数据。在本情况下,MAC层可以确定本次调度所述目标数据所消耗的令牌数量N=Z/q,并可以将令牌桶的令牌数量更新为Bxr=Bxr–N=Bxr–Z/q。Case 1: If the data amount K of the remaining data in the RLC SDU to be transmitted is ≥ the idle resource amount M in the MAC PDU, then the data amount of the target data Z=M, that is, the target data is the amount of data in the RLC SDU to be transmitted data for M. In this case, the MAC layer can determine the number of tokens N=Z/q consumed for scheduling the target data this time, and can update the number of tokens in the token bucket to Bxr=Bxr-N=Bxr-Z/ q.
情况二:若所述待传输RLC SDU中的剩余数据的数据量K<MAC PDU中空闲资源量M,则MAC层还需要进一步将待传输RLC SDU中的剩余数据的数据量K与令牌数量Bxr的令牌所能够传输的数据的总数据量L(L=q*Bxr)相比:Situation 2: If the data amount K of the remaining data in the RLC SDU to be transmitted < the idle resource amount M in the MAC PDU, the MAC layer needs to further combine the data amount K and the number of tokens of the remaining data in the RLC SDU to be transmitted. The total data volume L (L=q*Bxr) of the data that the token of Bxr can transmit is compared to:
若K≥L,则MAC层将待传输RLC SDU全部复用到MAC PDU中,即目标数据为所述待传输RLC SDU中的所有剩余数据。在本情况下,MAC层可以确定本次复用所述目标 数据数据量Z=K,所消耗的令牌数量N=Z/q,并可以将令牌桶的令牌数量更新为Bxr=Bxr–N=Bxr–Z/q。If K≥L, the MAC layer multiplexes all the RLC SDUs to be transmitted into the MAC PDU, that is, the target data is all the remaining data in the RLC SDUs to be transmitted. In this case, the MAC layer can determine that the target data volume Z=K for multiplexing this time, the number of tokens consumed N=Z/q, and can update the number of tokens in the token bucket to Bxr=Bxr -N=Bxr-Z/q.
若K<L,则MAC层可以确定本次复用所述目标数据数据量Z=K,且将待传输RLC SDU全部复用到MAC PDU中,将令牌桶的令牌数量更新为Bxr=Bxr–Z/q,并将MAC PDU中空闲资源量M更新为M=M-K。之后MAC层还需要将该逻辑信道中的下一个RLC SDU作为待传输RLC SDU继续复用到MAC PDU中,该复用过程与上述步骤相同,即需要将该更新后的待传输RLC SDU中的剩余数据的数据量K与更新后的MAC PDU中空闲资源量M继续比较,根据比较结果将该更新后的待传输RLC SDU中的部分或全部数据复用到MAC PDU中,直至符合以下任一停止条件:If K<L, the MAC layer can determine that the target data volume Z=K to be multiplexed this time, and multiplex all the RLC SDUs to be transmitted into the MAC PDU, and update the number of tokens in the token bucket to Bxr= Bxr-Z/q, and update the amount of idle resources M in the MAC PDU to M=M-K. After that, the MAC layer also needs to continue multiplexing the next RLC SDU in the logical channel as the RLC SDU to be transmitted into the MAC PDU. The multiplexing process is the same as the above steps, that is, the updated RLC SDU to be transmitted needs to be The data amount K of the remaining data is continuously compared with the idle resource amount M in the updated MAC PDU, and according to the comparison result, part or all of the data in the updated RLC SDU to be transmitted is multiplexed into the MAC PDU until it meets any of the following Stop condition:
目标逻辑信道中的RLC SDU全部复用到MAC PDU;令牌桶的令牌数据量Bxr小于或等于0;MAC PDU中不再有空闲资源(即MAC PDU中空闲资源量M=0)。The RLC SDUs in the target logical channel are all multiplexed into the MAC PDU; the token data amount Bxr of the token bucket is less than or equal to 0; there is no more idle resources in the MAC PDU (that is, the idle resource amount M=0 in the MAC PDU).
示例性的,假设目标逻辑信道中承载第V个XR业务数据的RLC SDU为RLC SDU0和RLC SDU1,且当前待传输RLC SDU为RLC SDU0。那么在RLC SDU0中的剩余数据的数据量K小于MAC PDU中空闲资源量M,且K<当前令牌数量Bxr的令牌所能够传输的数据的总数据量L(L=q*Bxr),那么MAC层先将RLC SDU0中的剩余数据全部复用到MAC SDU中,将令牌桶的令牌数量更新为Bxr=Bxr–K/q,并将MAC PDU中空闲资源量M更新为M=M-K。然后将RLC SDU1作为新的待传输RLC SDU(此时,待传输RLC SDU中剩余数据的数据量K=RLC SDU1的数据量),继续将RLC SDU1中的数据复用到MAC SDU中,直至符合上述停止条件:若Bxr>0,且K<M,则MAC层将RLC SDU1全部复用至MAC PDU(由于只剩一个RLC SDU,所以无需考虑Bxr能够传输的数据的总数据量,并将令牌桶的令牌数据量更新为Bxr=Bxr–K/q;若Bxr>0,且K≥M,则MAC层将RLC SDU1中数据量为M的数据复用到MAC PDU中(此时MAC PDU被占满,不再有空闲资源),并将令牌桶的令牌数据量更新为Bxr=Bxr–M/q。Exemplarily, it is assumed that the RLC SDUs carrying the Vth XR service data in the target logical channel are RLC SDU0 and RLC SDU1, and the current RLC SDU to be transmitted is RLC SDU0. Then the data amount K of the remaining data in the RLC SDU0 is less than the idle resource amount M in the MAC PDU, and the total data amount L (L=q*Bxr) of the data that can be transmitted by the token of K<the current number of tokens Bxr, Then the MAC layer first multiplexes all the remaining data in the RLC SDU0 into the MAC SDU, updates the number of tokens in the token bucket to Bxr=Bxr-K/q, and updates the idle resource M in the MAC PDU to M= M-K. Then take the RLC SDU1 as the new RLC SDU to be transmitted (at this time, the data amount of the remaining data in the RLC SDU to be transmitted is K=the data amount of the RLC SDU1), and continue to multiplex the data in the RLC SDU1 into the MAC SDU until it meets the The above stop condition: if Bxr>0 and K<M, the MAC layer multiplexes all RLC SDU1 into MAC PDU (since there is only one RLC SDU left, there is no need to consider the total amount of data that can be transmitted by Bxr, and will make The token data volume of the bucket is updated to Bxr=Bxr–K/q; if Bxr>0, and K≥M, the MAC layer multiplexes the data with the data volume of M in the RLC SDU1 into the MAC PDU (at this time the MAC The PDU is full, and there are no more free resources), and the token data amount of the token bucket is updated to Bxr=Bxr-M/q.
需要说明的是,由于MAC层在进行复用过程中,需要尽量避免对RLC SDU分段,因此,更新后的Bxr有可能小于0。当该目标逻辑信道的Bxr小于或等于0时,如果Bxr在下个TTI传输时刻,即增加PBR*TTI个令牌后,依然小于0,那么MAC层不再对该目标逻辑信道中第V个XR业务数据中的剩余数据进行复用,直至该目标逻辑信道的Bxr大于0。It should be noted that since the MAC layer needs to avoid segmenting the RLC SDU as much as possible during the multiplexing process, the updated Bxr may be less than 0. When the Bxr of the target logical channel is less than or equal to 0, if Bxr is still less than 0 at the next TTI transmission time, that is, after adding PBR*TTI tokens, the MAC layer will no longer perform the Vth XR in the target logical channel. The remaining data in the service data is multiplexed until the Bxr of the target logical channel is greater than 0.
还需要注意的是,当包含该目标逻辑信道在内的多个逻辑信道复用该目标传输信道时,基站的RRC层还需要配置该多个逻辑信道的优先级。任一逻辑信道的优先级参数决定了在多个逻辑信道中该逻辑信道复用目标传输信道的顺序,即优先级越高的逻辑信道中的RLC SDU会优先复用到MAC PDU中。It should also be noted that when multiple logical channels including the target logical channel multiplex the target transport channel, the RRC layer of the base station also needs to configure the priorities of the multiple logical channels. The priority parameter of any logical channel determines the order in which the target transport channel is multiplexed by the logical channel in multiple logical channels, that is, the RLC SDU in the logical channel with the higher priority will be preferentially multiplexed into the MAC PDU.
继续以图3为例说明,假设逻辑信道2为XR业务对应的目标逻辑信道,B2=Bxr。当终端设备的MAC层依次按照当前每个逻辑信道的令牌数量等参数,将3个逻辑信道中数据复用到MAC PDU(即MAC层针对每个逻辑信道的令牌数量等参数执行上述S704)之后,若MAC PDU仍存在空闲资源,则终端设备的MAC层可以进行额外的复用过程,继续根据所述多个逻辑信道的优先级依次将逻辑信道中的剩余数据复用到MAC PDU中。参阅图8所示,额外的复用过程包括:Continuing to take FIG. 3 as an example, it is assumed that logical channel 2 is the target logical channel corresponding to the XR service, and B2=Bxr. When the MAC layer of the terminal device sequentially multiplexes the data in the three logical channels into the MAC PDU according to the current parameters such as the number of tokens of each logical channel (that is, the MAC layer performs the above S704 for the parameters such as the number of tokens of each logical channel) ), if there are still idle resources in the MAC PDU, the MAC layer of the terminal device can perform an additional multiplexing process, and continue to sequentially multiplex the remaining data in the logical channels into the MAC PDU according to the priorities of the multiple logical channels. . Referring to Figure 8, additional multiplexing processes include:
1、终端设备的MAC层依次根据每个逻辑信道的令牌数据量等参数,分别将逻辑信道1中的RLC SDU1-1、逻辑信道2中的RLC SDU2-1、逻辑信道3中的RLC SDU3-1复用到 MAC PDU。即MAC层针对每个逻辑信道的令牌数量等参数执行上述S704,从而将分别将逻辑信道1中的RLC SDU1-1、逻辑信道2中的RLC SDU2-1、逻辑信道3中的RLC SDU3-1复用到MAC PDU。1. The MAC layer of the terminal device sequentially assigns the RLC SDU1-1 in the logical channel 1, the RLC SDU2-1 in the logical channel 2, and the RLC SDU3 in the logical channel 3 according to the parameters such as the token data amount of each logical channel. -1 is multiplexed into the MAC PDU. That is, the MAC layer performs the above S704 for parameters such as the number of tokens of each logical channel, so that the RLC SDU1-1 in the logical channel 1, the RLC SDU2-1 in the logical channel 2, and the RLC SDU3- 1 is multiplexed into the MAC PDU.
2、步骤1后,MAC PDU中仍存在空闲资源,且空闲资源充足,那么MAC层优先将逻辑信道1中剩余数据(即RLC SDU1-2)的全部复用到MAC PDU中,如图8中所示。2. After step 1, there are still idle resources in the MAC PDU, and the idle resources are sufficient, then the MAC layer preferentially multiplexes all the remaining data (ie RLC SDU1-2) in the logical channel 1 into the MAC PDU, as shown in Figure 8 shown.
3、在步骤2后由于MAC PDU中还存在空闲资源(能够承载的数据量为X),则MAC层继续将逻辑信道2(即目标逻辑信道)中剩余数据(RLC SDU2-2和RLC SDU2-3)中数据量为X的数据复用到该MAC PDU。例如,当X大于RLC SDU2-2中全部数据的数据量,且小于RLC SDU2-2中的全部数据的数据量和RLC SDU2-3中全部数据的数据量时,MAC层将RLC SDU2-2中的全部数据以及RLC SDU2-2中的部分数据复用到MAC PDU中。3. After step 2, since there are still idle resources in the MAC PDU (the amount of data that can be carried is X), the MAC layer continues to store the remaining data (RLC SDU2-2 and RLC SDU2-) in logical channel 2 (ie, the target logical channel). 3) The data whose data volume is X is multiplexed into the MAC PDU. For example, when X is greater than the data volume of all data in RLC SDU2-2, and less than the data volume of all data in RLC SDU2-2 and the data volume of all data in RLC SDU2-3, the MAC layer will All the data in the RLC SDU2-2 and part of the data in the RLC SDU2-2 are multiplexed into the MAC PDU.
应注意的是,上述在根据令牌数量对多个逻辑信道完成一轮复用过程之后,由于MAC PDU可能仍存在空闲资源进行的额外的复用过程,将不再花费(消耗)被复用的逻辑信道的令牌数量。因此,无论目标逻辑信道是否有该额外的复用过程,本次复用所述目标数据所需要消耗的令牌的数量N=Z/q。It should be noted that, after completing one round of multiplexing process for multiple logical channels according to the number of tokens, since there may still be idle resources in the MAC PDU for additional multiplexing process, it will no longer cost (consume) to be multiplexed. The number of tokens for the logical channel. Therefore, regardless of whether the target logical channel has the additional multiplexing process, the number of tokens that need to be consumed for multiplexing the target data this time is N=Z/q.
S705:在每个传输时刻后,终端设备的MAC层更新该第V个XR业务数据的剩余数据的数据量Sv,剩余传输时间D。S705: After each transmission time, the MAC layer of the terminal device updates the data amount Sv of the remaining data of the Vth XR service data, and the remaining transmission time D.
在一种实施方式中,在S705中,当终端设备的MAC层根据每个逻辑信道的令牌数量等参数对多个逻辑信道完成一轮复用过程之后,MAC PDU不存在空闲资源,或者MAC PDU存在的空闲资源被优先级高于目标逻辑信道的其他逻辑信道的数据占满,那么在S705中,MAC层仅将目标逻辑信道中数据量为Z的目标数据复用到MAC PDU中。在该情况下,MAC层将第V个XR业务数据的剩余数据的数据量更新为Sv=Sv-Z。In one embodiment, in S705, after the MAC layer of the terminal device completes a round of multiplexing process for multiple logical channels according to parameters such as the number of tokens of each logical channel, there are no idle resources in the MAC PDU, or the MAC The idle resources existing in the PDU are occupied by the data of other logical channels with a priority higher than the target logical channel, then in S705, the MAC layer only multiplexes the target data whose data volume is Z in the target logical channel into the MAC PDU. In this case, the MAC layer updates the data amount of the remaining data of the Vth XR service data to Sv=Sv-Z.
在另一种实施方式中,在S705中,当终端设备的MAC层根据每个逻辑信道的令牌数量等参数对多个逻辑信道完成一轮复用过程之后,MAC PDU仍存在空闲资源,MAC层继续进行额外的复用过程。并且在该额外的复用过程中,该空闲资源未被优先级高于目标逻辑信道的数据占满,并且MAC层继续将目标逻辑信道中第V个XR业务数据的剩余数据中数据量为Z的数据复用到MAC PDU中,如图8所示。在该情况下,MAC层将第V个XR业务数据的剩余数据的数据量更新为Sv=Sv-(Z+X)。In another embodiment, in S705, after the MAC layer of the terminal device completes a round of multiplexing process for multiple logical channels according to parameters such as the number of tokens of each logical channel, there are still idle resources in the MAC PDU, and the MAC PDU still has idle resources. The layer continues with additional multiplexing processes. And in this additional multiplexing process, the idle resource is not occupied by data with a priority higher than the target logical channel, and the MAC layer continues to use the remaining data of the Vth XR service data in the target logical channel as Z. The data is multiplexed into the MAC PDU, as shown in Figure 8. In this case, the MAC layer updates the data amount of the remaining data of the Vth XR service data to Sv=Sv-(Z+X).
另外,MAC层更新剩余传输时间D=D-TTI。In addition, the MAC layer updates the remaining transmission time D=D-TTI.
通过本步骤,MAC层可以根据更新后的Sv和D,继续更新目标逻辑信道的PBR。Through this step, the MAC layer can continue to update the PBR of the target logical channel according to the updated Sv and D.
S706:终端设备的MAC层判断第V个XR业务数据的剩余传输时间D是否小于或等于0,若是,则执行S707;否则根据S705中更新的Sv和D,继续执行S703,从而可以继续将第V个XR业务数据中的剩余数据复用到目标传输信道中的MAC PDU。S706: The MAC layer of the terminal device determines whether the remaining transmission time D of the Vth XR service data is less than or equal to 0, and if so, execute S707; otherwise, according to the Sv and D updated in S705, continue to execute S703, so that the th The remaining data in the V XR service data is multiplexed into the MAC PDU in the target transport channel.
本实例仅以剩余传输时间D的判断阈值为0为例进行说明,但不对该判断阈值构成限定,在实际应用中,该判断阈值还可以为其他设定值。This example only takes the determination threshold value of the remaining transmission time D as 0 for illustration, but does not constitute a limitation on the determination threshold value. In practical applications, the determination threshold value may also be other set values.
XR业务对每个XR业务数据的传输时延要求是相同的,当某个XR业务数据的剩余传输时间D小于或等于0,表示该XR业务数据的传输时长未能达到XR业务传输时延的要求,此时,若继续传输该XR业务数据,有可能会继续影响后续到达的XR业务数据的传输时延。因此,在本实例中的一个实施方式中,在S706中,当终端设备的MAC层确定第V个XR业务数据的剩余传输时间D小于或等于0时,则丢弃目标逻辑信道中第V个XR业务数据的剩余数据(即在目标逻辑信道中丢弃承载第V个XR业务数据中剩余数据的所 有RLC SDU)。这样,MAC层不再对承载第V个XR业务数据的剩余数据的RLC SDU进行复用,以便可以将承载下一个XR业务数据的RLC SDU复用到目标传输信道。The XR service requires the same transmission delay for each XR service data. When the remaining transmission time D of a certain XR service data is less than or equal to 0, it means that the transmission time of the XR service data cannot reach the XR service transmission delay. At this time, if the XR service data continues to be transmitted, the transmission delay of the subsequently arrived XR service data may continue to be affected. Therefore, in one implementation of this example, in S706, when the MAC layer of the terminal device determines that the remaining transmission time D of the Vth XR service data is less than or equal to 0, then discard the Vth XR in the target logical channel The remaining data of the service data (that is, discarding all RLC SDUs carrying the remaining data in the Vth XR service data in the target logical channel). In this way, the MAC layer no longer multiplexes the RLC SDUs carrying the remaining data of the Vth XR service data, so that the RLC SDUs carrying the next XR service data can be multiplexed to the target transmission channel.
如图7所示,S707为本申请实施例提供的第一种可能的实施方式。As shown in FIG. 7 , S707 is the first possible implementation manner provided by this embodiment of the present application.
在第二种实施方式中,终端设备的MAC层确定第V个XR业务数据的剩余传输时间D小于或等于0之后,终端设备的MAC层可选择继续复用目标逻辑信道中的第V个XR业务数据中的剩余数据。在这过程中,由于无法继续通过剩余传输时间D来更新PBR,因此,MAC层可以继续使用之前最后一次计算的PBR更新Bxr。由于第V个XR业务的实际传输时长超过XR业务的传输时延,因此,可能会出现第V个XR业务数据的剩余数据还未传输完,承载第V+1个业务数据的至少一个RLC SDU到达该目标逻辑信道的情况。此时为了不影响下一个XR业务数据(即第V+1个XR业务数据)的传输时延,所述MAC层可以在初始化第V+1个XR业务数据的剩余传输时间时将第V个XR业务数据的占用时长进行相应的扣除。In the second embodiment, after the MAC layer of the terminal device determines that the remaining transmission time D of the Vth XR service data is less than or equal to 0, the MAC layer of the terminal device may choose to continue multiplexing the Vth XR in the target logical channel. The remaining data in the business data. During this process, since the PBR cannot continue to be updated through the remaining transmission time D, the MAC layer can continue to update Bxr using the PBR calculated last time before. Since the actual transmission duration of the Vth XR service exceeds the transmission delay of the XR service, it may occur that the remaining data of the Vth XR service data has not been transmitted, and at least one RLC SDU carrying the V+1th service data may occur. The condition of reaching the target logical channel. At this time, in order not to affect the transmission delay of the next XR service data (that is, the V+1th XR service data), the MAC layer may initialize the remaining transmission time of the V+1th XR service data by adding the Vth The occupied time of XR service data will be deducted accordingly.
比如,MAC层在确定第V个XR业务数据的剩余传输时间D小于或等于0之后,继续使用之前最后一次计算的PBR更新Bxr,并继续通过S704中记载的实施方式在每个传输时刻将第V个XR业务数据中的剩余数据复用到MAC PDU;在继续传输第V个XR业务数据中的剩余数据过程中,当承载第V+1个业务数据的至少一个RLC SDU到达该目标逻辑信道后,MAC层可以对第V个XR业务数据的占用时长进行计时。在将第V个XR业务数据传输完毕时,MAC层停止对该占用时长进行计时,然后MAC层再通过S702-S707传输该第V+1个XR业务数据。其中,在S702过程中,将MAC层初始化该新的第V+1个XR业务数据的剩余传输时间D=XR业务的传输时延-占用时长。本实施方式中的对占用时长进行计时的过程在后续S708中作详细描述。For example, after the MAC layer determines that the remaining transmission time D of the Vth XR service data is less than or equal to 0, it continues to update Bxr using the PBR calculated last time before, and continues to update Bxr at each transmission moment through the implementation method described in S704. The remaining data in the V XR service data is multiplexed into the MAC PDU; in the process of continuing to transmit the remaining data in the V th XR service data, when at least one RLC SDU carrying the V+1 th service data arrives at the target logical channel After that, the MAC layer can time the occupied duration of the Vth XR service data. When the transmission of the Vth XR service data is completed, the MAC layer stops timing the occupied duration, and then the MAC layer transmits the V+1th XR service data through S702-S707. Wherein, in the process of S702, the remaining transmission time D=transmission delay of the XR service-occupancy time length of the new V+1 th XR service data is initialized by the MAC layer. The process of timing the occupied duration in this embodiment will be described in detail in the subsequent S708.
S707:终端设备的MAC层丢弃第V个XR业务数据的剩余数据,即丢弃目标逻辑信道中承载第V个业务数据的剩余数据的RLC SDU。S707: The MAC layer of the terminal device discards the remaining data of the Vth XR service data, that is, discards the RLC SDU that carries the remaining data of the Vth service data in the target logical channel.
S708:在承载V+1个XR业务数据的一个或多个RLC SDU到达目标逻辑信道后,终端设备的MAC层更新V=V+1,并重复执行S702-S707,以便通过动态的PBR,将承载该新的XR业务数据的RLC SDU继续复用到MAC PDU中,具体过程可以参考以上步骤,此处不再赘述。S708: After one or more RLC SDUs carrying V+1 pieces of XR service data arrive at the target logical channel, the MAC layer of the terminal device updates V=V+1, and repeats S702-S707, so that through dynamic PBR, the The RLC SDU carrying the new XR service data continues to be multiplexed into the MAC PDU, and the specific process can refer to the above steps, which will not be repeated here.
需要说明的是,本步骤可以发生在传输第V个XR业务数据过程中的任一时刻,或者发生在传输第V个XR业务数据结束后。It should be noted that this step may occur at any time during the process of transmitting the Vth XR service data, or after the transmission of the Vth XR service data ends.
在第一种实施方式中,在终端设备的MAC层传输第V个XR业务数据的过程中,承载V+1个XR业务数据的一个或多个RLC SDU到达目标逻辑信道,那么MAC层在确定第V个XR业务数据超时(即第V个XR业务数据的剩余传输时间D≤0)时,MAC层可以丢弃承载第V个业务数据的剩余数据的RLC SDU,以尽快传输第V+1个XR业务数据。通过这样的方式可以保证XR业务中每个VR业务数据的传输时延。In the first embodiment, when the MAC layer of the terminal device transmits the Vth XR service data, one or more RLC SDUs carrying V+1 XR service data arrive at the target logical channel, then the MAC layer determines when When the Vth XR service data times out (that is, the remaining transmission time D≤0 of the Vth XR service data), the MAC layer can discard the RLC SDU carrying the remaining data of the Vth service data, so as to transmit the V+1th service data as soon as possible XR business data. In this way, the transmission delay of each VR service data in the XR service can be guaranteed.
在第二种实施方式中,在终端设备的MAC层传输第V个XR业务数据的过程中,承载V+1个XR业务数据的一个或多个RLC SDU到达目标逻辑信道,那么MAC层确定第V个XR业务数据超时(即第V个XR业务数据的剩余传输时间D≤0)时,MAC层可以继续使用之前最后一次计算的PBR更新Bxr,并通过S704中记载的实施例方式在每个传输时刻将第V个XR业务数据中的剩余数据复用到MAC PDU。在本方式中,可以出现以下两种情况:In the second embodiment, when the MAC layer of the terminal device transmits the Vth XR service data, one or more RLC SDUs carrying V+1 XR service data arrive at the target logical channel, then the MAC layer determines the Vth XR service data. When the V pieces of XR service data time out (that is, the remaining transmission time D≤0 of the Vth XR service data), the MAC layer can continue to update Bxr with the PBR calculated last time before, and use the embodiment method described in S704 to update Bxr in each At the transmission moment, the remaining data in the Vth XR service data is multiplexed into the MAC PDU. In this way, the following two situations can occur:
若第V+1个XR业务数据在第V个XR业务数据超时前到达,那么MAC层在确定第V个XR业务数据超时的时刻开始对第V个XR业务数据的占用时长进行计时,并在第V个XR业务数据传输完毕时,停止对该占用时长进行计时。If the V+1 th XR service data arrives before the V th XR service data times out, the MAC layer starts to count the occupied duration of the V th XR service data at the moment when the V th XR service data times out, and at the time when the V th XR service data times out. When the transmission of the Vth XR service data is completed, the timing of the occupied time period is stopped.
若第V+1个XR业务数据在第V个XR业务数据超时后到达,那么MAC层在第V+1个业务数据到达时刻开始对第V个XR业务数据的占用时长进行计时,并在第V个XR业务数据传输完毕时,停止对该占用时长进行计时。If the V+1 th XR service data arrives after the V th XR service data times out, the MAC layer starts to count the occupied duration of the V th XR service data at the arrival time of the V+1 th service data, and at the When the transmission of the V XR service data is completed, the counting of the occupied duration is stopped.
MAC层在将第V个XR业务数据传输完毕后,并通过S702-S707传输该第V+1个XR业务数据。其中,在S702过程中,将MAC层初始化该新的第V+1个XR业务数据的剩余传输时间D=XR业务的传输时延-第V个XR业务数据的占用时长。After the MAC layer transmits the Vth XR service data, it transmits the V+1th XR service data through S702-S707. Wherein, in the process of S702, the remaining transmission time of the new V+1 th XR service data is initialized by the MAC layer D=the transmission delay of the XR service-the occupied time length of the V th XR service data.
需要说明的是,在本第二种实施方式中,由于MAC层初始化的第V+1个XR业务数据的剩余传输时间小于XR业务的传输时延,因此第V+1个XR业务数据也很有可能超时。若该第V+1个XR业务数据的剩余传输时间D小于或等于0时,还存在剩余数据未传输完,则MAC层可以继续占用第V+2个XR业务数据的传输时长,如本第二种实施方式中的描述所示,此处不再赘述。It should be noted that, in the second embodiment, since the remaining transmission time of the V+1 th XR service data initialized by the MAC layer is less than the transmission delay of the XR service, the V+1 th XR service data is also very limited. May time out. If the remaining transmission time D of the V+1 XR service data is less than or equal to 0, and there is still remaining data that has not been transmitted, the MAC layer can continue to occupy the transmission time of the V+2 XR service data. The descriptions in the two implementation manners are shown, and are not repeated here.
基于图6A所示的实施例以及图7所示的实例,本申请还提供了另一种通信方法实例,在实例继续以移动通信系统为例,以终端设备实现XR业务过程中进行MAC层调度为例说明,该示例包括以下步骤:Based on the embodiment shown in FIG. 6A and the example shown in FIG. 7 , the present application also provides another example of a communication method. In the example, the mobile communication system is continued as an example, and the MAC layer scheduling is performed in the process of implementing the XR service by the terminal device. As an example, the example includes the following steps:
以图8为例,终端设备上MAC层现有3个逻辑信道1,2,3,其优先级依次下降,即逻辑信道1被基站的RRC层配置最高优先级,逻辑信道3被基站的RRC层配置最低优先级,其中XR业务在逻辑信道2上传输。在本例中,逻辑信道1或逻辑信道2的PBR可以为基站的RRC层为其分配静态PBR,即MAC层采用传统的方式对逻辑信道1和逻辑信道2中的RLC SDU进行复用。而逻辑信道2作为目标逻辑信道,其PBR采用图6A或图7记载的方法,采用动态的PBR更新令牌。Taking Figure 8 as an example, there are currently three logical channels 1, 2, and 3 on the MAC layer of the terminal device, and their priorities decrease in sequence, that is, logical channel 1 is assigned the highest priority by the RRC layer of the base station, and logical channel 3 is assigned by the RRC layer of the base station. The layer configures the lowest priority, where XR traffic is transmitted on logical channel 2. In this example, the PBR of logical channel 1 or logical channel 2 can be assigned a static PBR to the RRC layer of the base station, that is, the MAC layer uses the traditional method to multiplex the RLC SDUs in logical channel 1 and logical channel 2. While the logical channel 2 is used as the target logical channel, its PBR adopts the method described in FIG. 6A or FIG. 7 , and uses the dynamic PBR to update the token.
本实例以XR业务数据为一帧图像数据为例进行说明。并且以每个令牌用于复用/传输1bit的数据为例说明,即q=1bit/令牌。In this example, the XR service data is one frame of image data as an example for description. And it is illustrated that each token is used for multiplexing/transmitting 1 bit of data, that is, q=1 bit/token.
A1:基站与终端设备建立无线连接后,基站为终端设备分配XR业务的业务时延。终端设备根据XR业务的业务时延,确定XR业务的传输时延D为D=10ms。终端设备初始化用于传输XR业务的XR逻辑信道,并初始化XR逻辑信道对应的令牌桶中令牌的数量Bxr=0。A1: After the base station and the terminal device establish a wireless connection, the base station allocates the service delay of the XR service to the terminal device. The terminal device determines the transmission delay D of the XR service as D=10ms according to the service delay of the XR service. The terminal device initializes the XR logical channel for transmitting the XR service, and initializes the number of tokens in the token bucket corresponding to the XR logical channel, Bxr=0.
在本移动通信系统中,终端设备的传输时间间隔(调度周期、传输周期)TTI和令牌增量时间间隔T均为1ms,即T=TTI=1ms。In this mobile communication system, the transmission time interval (scheduling period, transmission period) TTI and the token increment time interval T of the terminal equipment are both 1ms, that is, T=TTI=1ms.
A2:当承载第V帧图像数据的RLC SDU到达XR逻辑信道时,终端设备的MAC层初始化第V帧图像数据的剩余传输时间D=XR业务的传输时延10ms,并初始化第V帧图像数据的剩余数据的数据量Sv=第V帧图像的总数据量(即第V帧图像数据的总数据量)1Mbits。其中,第V帧图像数据分为20个RLC SDU,分别为{SDU0,…,SDU19},且SDU0=SDU1=…=SDU19=50kbits。终端设备的MAC层可以根据Sv和D,确定XR逻辑信道的PBR。该PBR为动态的PBR,在本实例中PBR用单位时间内增加的数据量来表示。本示例中可以用Pxr,v来表示动态的PBR,根据Sv和D,可得Pxr,v=Sv/D=100Mbps。A2: When the RLC SDU carrying the image data of the Vth frame arrives at the XR logical channel, the MAC layer of the terminal device initializes the remaining transmission time of the image data of the Vth frame D = the transmission delay of the XR service is 10ms, and initializes the image data of the Vth frame The data amount of the remaining data Sv = the total data amount of the V-th frame image (ie, the total data amount of the V-th frame image data) 1Mbits. The V-th frame image data is divided into 20 RLC SDUs, which are {SDU0,...,SDU19}, and SDU0=SDU1=...=SDU19=50kbits. The MAC layer of the terminal device can determine the PBR of the XR logical channel according to Sv and D. The PBR is a dynamic PBR, and in this example, the PBR is represented by the amount of data increased per unit time. In this example, Pxr,v can be used to represent the dynamic PBR. According to Sv and D, Pxr,v=Sv/D=100Mbps can be obtained.
A3:第一个TTI:A3: First TTI:
(1)、此时,终端设备的MAC层按照PBR,更新XR逻辑信道对应令牌桶中令牌的 数量Bxr,即Bxr=Bxr+Bxr’=100kbits,其中,Bxr’=Pxr,v×T=100kbits。(1) At this time, the MAC layer of the terminal device updates the number of tokens Bxr in the token bucket corresponding to the XR logical channel according to the PBR, that is, Bxr=Bxr+Bxr'=100kbits, where Bxr'=Pxr, v×T =100kbits.
(2)、若此次传输时刻,MAC PDU中空闲资源量M=327kbits,由于逻辑信道1的优先级最高,若此时MAC层将逻辑信道1中的数据量B1=155kbits的数据复用到MAC PDU中,此时MAC PDU的空闲资源量M=327kbits-155kbits=272kbits。(2) If the amount of idle resources in the MAC PDU is M=327kbits at the moment of this transmission, since the priority of logical channel 1 is the highest, if the MAC layer multiplexes the data of the data volume B1=155kbits in logical channel 1 to In the MAC PDU, the idle resource amount of the MAC PDU at this time is M=327kbits-155kbits=272kbits.
(3)、终端设备的MAC层采用图7所示的实施例中S704记载的实施方式,将逻辑信道2中的第V帧图像数据复用到MAC PDU。在本次调度中,MAC PDU的空闲资源量M大于Bxr,且大于RLC SDU0,所以RLC SDU0不需要分段。此时先将RLC SDU0的数据复用到MAC PDU中,并且更新Bxr=Bxr-RLC SDU0中的数据量50kbits。此时仍有Bxr>0,且MAC PDU的空闲资源量M大于RLC SDU1,因此RLC SDU1也不需要分段。当MAC层完成RLC SDU1到MAC PDU的复用后,Bxr=Bxr-RLC SDU1中的数据量50kbits=0,该MAC层不再对逻辑信道2中的数据进行复用。(3) The MAC layer of the terminal device adopts the implementation described in S704 in the embodiment shown in FIG. 7 to multiplex the Vth frame image data in the logical channel 2 into the MAC PDU. In this scheduling, the free resource M of the MAC PDU is greater than Bxr and greater than the RLC SDU0, so the RLC SDU0 does not need to be segmented. At this time, the data of the RLC SDU0 is multiplexed into the MAC PDU, and the data amount in the Bxr=Bxr-RLC SDU0 is updated to 50kbits. At this time, there is still Bxr>0, and the free resource M of the MAC PDU is greater than the RLC SDU1, so the RLC SDU1 does not need to be segmented. After the MAC layer completes the multiplexing of the RLC SDU1 to the MAC PDU, Bxr=Bxr-RLC SDU1 The amount of data in the RLC SDU1 is 50kbits=0, and the MAC layer no longer multiplexes the data in the logical channel 2.
(4)、参阅图8所示,完成逻辑信道1和2的复用后,此时MAC PDU的空闲资源M=327kbits-155kbits-100kbits=172kbits。假定逻辑信道3中有50kbits的数据复用到MAC PDU中,此时所有3个逻辑信道完成复用,且MAC PDU仍有122kbits的剩余资源,因此将根据逻辑信道优先级顺序再次进行复用:(4) Referring to Fig. 8, after the multiplexing of logical channels 1 and 2 is completed, the idle resource M of the MAC PDU at this time is 327kbits-155kbits-100kbits=172kbits. Assuming that there are 50kbits of data in logical channel 3 multiplexed into the MAC PDU, all 3 logical channels are multiplexed at this time, and the MAC PDU still has 122kbits of remaining resources, so it will be multiplexed again according to the logical channel priority order:
若逻辑信道1中存在剩余数据60kbits,则该60kbits数据全部复用到MAC PDU中,此时MAC PDU的空闲资源量M=62kbits,这些空闲资源可用于复用逻辑信道2中的数据,即MAC层将逻辑信道2中SDU2的全部数据和SDU3的前12kbits数据复用到MAC PDU中。之后由于MAC PDU无空闲资源,MAC层对所有逻辑信道停止复用。逻辑信道2中的SDU3仍有38kbits待传。If there is 60kbits of remaining data in logical channel 1, all the 60kbits data is multiplexed into the MAC PDU. At this time, the idle resource amount of the MAC PDU is M=62kbits, and these idle resources can be used to multiplex the data in the logical channel 2, that is, the MAC The layer multiplexes the entire data of SDU2 in logical channel 2 and the first 12kbits of data of SDU3 into the MAC PDU. After that, because the MAC PDU has no idle resources, the MAC layer stops multiplexing all logical channels. SDU3 in logical channel 2 still has 38kbits to transmit.
(5)、在本次调度后,终端设备的MAC层更新Sv=1Mbits-100kbits-62kbits=838kbits,D=10ms-1ms=9ms。(5) After this scheduling, the MAC layer of the terminal device updates Sv=1Mbits-100kbits-62kbits=838kbits, D=10ms-1ms=9ms.
(6)、在本次调度后,终端设备的MAC层更新动态PBR,即Pxr,v=Sv/D=838kbits/9ms=94kbps。(6) After this scheduling, the MAC layer of the terminal device updates the dynamic PBR, that is, Pxr,v=Sv/D=838kbits/9ms=94kbps.
A4:第二个TTI:A4: Second TTI:
(1)、此时终端设备的MAC层按照新的PBR,更新XR逻辑信道对应的令牌桶中令牌的数量Bxr,即Bxr=Bxr+Bxr’=94kbits,其中,
Figure PCTCN2022078991-appb-000001
为向上取整。本申请对Bxr’的计算方式不作限定,例如Bxr’还可以通过向下取整计算。
(1) At this time, the MAC layer of the terminal device updates the number of tokens Bxr in the token bucket corresponding to the XR logical channel according to the new PBR, that is, Bxr=Bxr+Bxr'=94kbits, wherein,
Figure PCTCN2022078991-appb-000001
to round up. This application does not limit the calculation method of Bxr', for example, Bxr' can also be calculated by rounding down.
(2)、终端设备的MAC层确定MAC PDU中空闲资源量M为234kbits。需注意的是,本步骤中涉及的MAC PDU与步骤A3中涉及的MAC PDU并非同一个MAC PDU。此时,MAC层将逻辑信道1中的数据量为147kbits的数据量复用到MAC PDU中,此时,MAC PDU的空闲资源量M=234kbits-147kbits=87kbits。(2) The MAC layer of the terminal device determines that the amount of idle resources M in the MAC PDU is 234kbits. It should be noted that the MAC PDU involved in this step and the MAC PDU involved in step A3 are not the same MAC PDU. At this time, the MAC layer multiplexes the data amount of 147kbits in the logical channel 1 into the MAC PDU. At this time, the idle resource amount of the MAC PDU is M=234kbits-147kbits=87kbits.
(3)、在逻辑信道1完成复用后,此时MAC PDU仍有空闲资源,因此MAC层可进行逻辑信道2的复用。若终端设备的MAC层采用图7所示的实施例中S704记载的实施方式,将逻辑信道2中的第V帧图像数据复用到MAC PDU。在本次调用中,MAC PDU的空闲资源量M大于Bxr,且大于RLC SDU3的剩余数据量38kbits,因此MAC层可将逻辑信道2中RLC SDU3的剩余数据复用到MAC PDU中,并花费对应令牌数,此时Bxr=Bxr-MAC SDU3的剩余数据量=94kbits-38kbits=56kbits,MAC PDU的空闲资源量M=87kbits-38kbits=49kbits。因为Bxr>0且MAC PDU仍有空闲资源,因此MAC层可以继续将逻辑信道2的RLC SDU4复用到MAC PDU中。又因为RLC SDU4=50kbits>49kbits, 只有SDU4的前49kbits可以复用到MAC PDU中。此时MAC PDU无可用资源,MAC层不再将逻辑信道3的数据复用到该MACP PDU中。本次调度后,逻辑信道2的令牌数Bxr=56kbits-49kbits=7kbits。(3) After the multiplexing of logical channel 1 is completed, the MAC PDU still has idle resources, so the MAC layer can perform multiplexing of logical channel 2. If the MAC layer of the terminal device adopts the implementation described in S704 in the embodiment shown in FIG. 7 , the Vth frame image data in logical channel 2 is multiplexed into the MAC PDU. In this call, the free resource M of the MAC PDU is larger than Bxr and larger than the remaining data amount of the RLC SDU3, which is 38kbits. Therefore, the MAC layer can multiplex the remaining data of the RLC SDU3 in the logical channel 2 into the MAC PDU, and spend the corresponding Number of tokens, at this time Bxr=Bxr-MAC SDU3 remaining data volume=94kbits-38kbits=56kbits, MAC PDU idle resource M=87kbits-38kbits=49kbits. Because Bxr>0 and the MAC PDU still has free resources, the MAC layer can continue to multiplex the RLC SDU4 of logical channel 2 into the MAC PDU. And because RLC SDU4=50kbits>49kbits, only the first 49kbits of SDU4 can be multiplexed into the MAC PDU. At this time, the MAC PDU has no available resources, and the MAC layer no longer multiplexes the data of logical channel 3 into the MACP PDU. After this scheduling, the number of tokens in logical channel 2 is Bxr=56kbits-49kbits=7kbits.
(4)、在本次调度后,该MAC PDU中不存在空闲资源。(4) After this scheduling, there are no idle resources in the MAC PDU.
(5)、本次调度后,终端设备的MAC层更新Sv=838kbits-87kbits=751kbits,D=9ms-1ms=8ms。(5) After this scheduling, the MAC layer of the terminal device updates Sv=838kbits-87kbits=751kbits, D=9ms-1ms=8ms.
(6)、在本次调度后,终端设备的MAC层继续更新动态PBR,即Pxr,v=Sv/D=751kbits/8ms=94kbits。(6) After this scheduling, the MAC layer of the terminal device continues to update the dynamic PBR, that is, Pxr,v=Sv/D=751kbits/8ms=94kbits.
A5:在后续的每个TTI,终端设备的MAC层可以通过重复步骤A3或A4,继续将该逻辑信道中的数据复用到传输信道的MAC PDU中。A5: In each subsequent TTI, the MAC layer of the terminal device can continue to multiplex the data in the logical channel into the MAC PDU of the transport channel by repeating step A3 or A4.
A6:在第一种实施方式中,若某一次调度后,终端设备的MAC层更新第V帧图像数据的剩余传输时间D小于或等于0时,该第V帧图像数据中剩余数据的数据量Sv>0,表示在规定的XR业务的传输时延内第V帧图像数据未传输完。为了保证后续图像帧的传输时延,终端设备的MAC层可以丢弃该第V帧图像的数据量为Sv的剩余数据,以便承载第V+1帧图像数据的RLC SDU到达XR逻辑信道时,MAC层可以尽快对承载第V+1帧图像数据的RLC SDU进行调度。A6: In the first embodiment, if after a certain scheduling, the remaining transmission time D for updating the Vth frame of image data by the MAC layer of the terminal device is less than or equal to 0, the data amount of the remaining data in the Vth frame of image data Sv>0, indicating that the Vth frame of image data is not completely transmitted within the specified transmission delay of the XR service. In order to ensure the transmission delay of subsequent image frames, the MAC layer of the terminal device can discard the remaining data of the V-th frame image whose data volume is Sv, so that when the RLC SDU carrying the V+1-th frame image data reaches the XR logical channel, the MAC layer The layer can schedule the RLC SDU carrying the V+1th frame image data as soon as possible.
在第二种实施方式中,若某一次调度后,终端设备的MAC层更新第V帧图像数据的剩余传输时间D小于或等于0时,该第V帧图像数据的剩余数据的数据量Sv>0,终端设备的MAC层可选择继续对第V帧图像数据中的剩余数据进行复用,即继续重复步骤A3或A4;其中在A3和A4中,MAC层不再更新该逻辑信道对应的PBR并使用之前最后一次计算的PBR更新Bxr。In the second embodiment, if after a certain scheduling, the remaining transmission time D of the V-th frame of image data updated by the MAC layer of the terminal device is less than or equal to 0, the data amount of the V-th frame of image data remaining data Sv> 0, the MAC layer of the terminal device can choose to continue to multiplex the remaining data in the image data of the Vth frame, that is, continue to repeat steps A3 or A4; wherein in A3 and A4, the MAC layer does not update the PBR corresponding to the logical channel. And update Bxr with the last calculated PBR before.
A7:在第一种实施方式中,当承载第V+1帧图像数据的RLC SDU到达XR逻辑信道时,若第V帧图像数据未传输完,则终端设备的MAC层可以在第V帧图像数据的剩余传输时间D小于或等于0时丢弃第V帧图像数据的剩余数据,即A6中的第一种实施方式;并且MAC层针对承载第V+1帧图像数据的RLC SDU,继续重复上述步骤A2-A6,以便在规定的XR业务的传输时延内,尽量将第V+1帧图像数据全部复用到MAC PDU中。A7: In the first embodiment, when the RLC SDU carrying the V+1th frame of image data arrives at the XR logical channel, if the Vth frame of image data has not been transmitted, the MAC layer of the terminal device can start the Vth frame of image data. When the remaining transmission time D of the data is less than or equal to 0, the remaining data of the Vth frame of image data is discarded, that is, the first embodiment in A6; and the MAC layer continues to repeat the above for the RLC SDU carrying the Vth+1st frame of image data. Steps A2-A6, in order to try to multiplex all the image data of the V+1th frame into the MAC PDU within the specified transmission delay of the XR service.
在第二种实施方式中,当承载第V+1帧图像数据的RLC SDU到达XR逻辑信道时,若第V帧图像数据未传输完,则终端设备的MAC层可以继续重复步骤A3或A4对第V帧图像数据中的剩余数据进行复用。若某一次调度后,终端设备的MAC层确定第V帧图像数据超时,第V帧图像数据还存在剩余数据未传输,而终端设备的MAC层可选择继续对第V帧图像数据中的剩余数据进行复用,即继续重复步骤A3或A4;其中在A3和A4中,MAC层可以使用之前最后一次计算的PBR更新Bxr。若第V+1帧图像数据在第V帧图像超时前到达,那么MAC层在确定第V帧图像数据超时的时刻开始对第V帧图像数据的占用时长进行计时。若第V+1帧图像数据在第V帧图像数据超时后到达,那么MAC层在第V+1帧图像数据到达时刻开始对第V帧图像数据的占用时长进行计时。当第V帧图像数据传输完毕后,MAC层停止第V+1帧图像数据的到达时长进行计时,并针对承载第V+1帧图像数据的RLC SDU执行上述步骤A2-A6。其中,在步骤A2中,MAC层初始化第V+1帧图像数据的剩余传输时间D=10ms-第V帧图像数据的占用时长。In the second embodiment, when the RLC SDU carrying the V+1 frame of image data arrives at the XR logical channel, if the V-th frame of image data has not been transmitted, the MAC layer of the terminal device can continue to repeat steps A3 or A4 to The remaining data in the image data of the Vth frame is multiplexed. If after a certain scheduling, the MAC layer of the terminal device determines that the image data of the Vth frame has timed out, there is still remaining data in the image data of the Vth frame that has not been transmitted, and the MAC layer of the terminal device can choose to continue to process the remaining data in the image data of the Vth frame. Perform multiplexing, that is, continue to repeat step A3 or A4; wherein in A3 and A4, the MAC layer can update Bxr using the PBR calculated last time before. If the V+1 th frame of image data arrives before the V th frame of image data times out, the MAC layer starts to count the occupied duration of the V th frame of image data at the moment when the V th frame of image data times out. If the V+1th frame of image data arrives after the Vth frame of image data times out, the MAC layer starts timing the occupied duration of the Vth frame of image data at the time when the V+1th frame of image data arrives. After the transmission of the Vth frame of image data is completed, the MAC layer stops the arrival duration of the V+1th frame of image data to count, and performs the above steps A2-A6 for the RLC SDU carrying the V+1st frame of image data. Wherein, in step A2, the MAC layer initializes the remaining transmission time of the V+1th frame of image data D=10ms-the occupied time duration of the Vth frame of image data.
需要注意的是,本实例是以XR业务为例进行说明的,然而,该实例并不对适用本申请提供方法的业务构成限定。另外,终端设备的中的逻辑信道为多个,终端设备的MAC 层可以对多个逻辑信道中的部分或全部执行上述通信方法。另外在多个逻辑信道复用同一个传输信道时,终端设备的MAC层可以对这些逻辑信道中的部分或全部执行上述通信方法,本申请对此也不做限定。It should be noted that this example takes the XR service as an example for description, however, this example does not constitute a limitation on the service to which the method provided by the present application is applied. In addition, there are multiple logical channels in the terminal device, and the MAC layer of the terminal device may perform the above communication method on some or all of the multiple logical channels. In addition, when multiple logical channels multiplex the same transmission channel, the MAC layer of the terminal device may perform the above communication method on some or all of these logical channels, which is not limited in this application.
此外,在以上实例中是以TTI为1ms为例说明的,但是实际上TTI的取值可以为其他时长,例如1.5ms、2ms等。并且在进行MAC层调度过程中,TTI的时长还可以发生变化的。例如第一传输时刻与相邻的第二传输时刻之间的TTI=1ms,第二传输时刻与相邻的第三传输时刻之间的TTI=1.5ms。In addition, in the above example, the TTI is 1 ms as an example, but in fact, the value of the TTI may be other durations, such as 1.5 ms, 2 ms, and so on. And in the process of MAC layer scheduling, the duration of TTI can also change. For example, TTI=1ms between the first transmission time and the adjacent second transmission time, and TTI=1.5ms between the second transmission time and the adjacent third transmission time.
最后,还应注意,本申请实施例提供的通信方法适用于业务数据的初传,由于业务数据的重传机制的不同,某些业务数据的重传可能不适用。Finally, it should also be noted that the communication method provided by the embodiment of the present application is applicable to the initial transmission of service data, and the retransmission of some service data may not be applicable due to different retransmission mechanisms of service data.
另外,在一些场景中,例如5G通信系统中,逻辑信道与传输时刻可以存在关联,那么在该传输时刻,其他逻辑信道可能不允许复用该逻辑信道对应的传输信道。例如,在通信设备的多个逻辑信道可以复用同一传输信道的情况下,第一传输时刻与第一逻辑信道关联,那么在第一传输时刻,通信设备的MAC层仅能够将第一逻辑信道中的业务数据复用到该传输信道,而不会将其他逻辑信道中的业务数据复用到该传输信道。虽然,本申请实施例提供的实施例和实例未考虑逻辑信道与传输时刻之间的关联关系,但是这并不构成本申请实施例提供的通信方法的限定。In addition, in some scenarios, such as in a 5G communication system, a logical channel may be associated with a transmission moment, and at this transmission moment, other logical channels may not allow multiplexing of the transmission channel corresponding to the logical channel. For example, in the case where multiple logical channels of a communication device can multiplex the same transmission channel, and the first transmission moment is associated with the first logical channel, then at the first transmission moment, the MAC layer of the communication device can only associate the first logical channel The service data in the logical channel is multiplexed to the transport channel, and the service data in other logical channels is not multiplexed to the transport channel. Although the embodiments and examples provided by the embodiments of the present application do not consider the association relationship between the logical channel and the transmission moment, this does not constitute a limitation of the communication methods provided by the embodiments of the present application.
基于相同的技术构思,本申请实施例还提供了一种通信设备,该通信设备可以应用于如图4所示的通信系统中。可选的,所述通信设备可以为移动通信系统中的终端设备或网络设备,也可以为sidelink通信系统中的终端设备,本申请对此不作限定。所述通信设备能够实现以上实施例或实例提供的方法。参阅图9所示,所述通信设备900包括:收发器901、处理器902,存储器903。其中,收发器901、处理器902以及存储器903之间相互连接。Based on the same technical concept, an embodiment of the present application also provides a communication device, which can be applied to the communication system as shown in FIG. 4 . Optionally, the communication device may be a terminal device or a network device in a mobile communication system, or may be a terminal device in a sidelink communication system, which is not limited in this application. The communication device can implement the methods provided by the above embodiments or examples. Referring to FIG. 9 , the communication device 900 includes: a transceiver 901 , a processor 902 , and a memory 903 . The transceiver 901 , the processor 902 and the memory 903 are connected to each other.
可选的,收发器901、处理器902以及存储器903之间通过总线904相互连接。总线904可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图9中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Optionally, the transceiver 901 , the processor 902 and the memory 903 are connected to each other through a bus 904 . The bus 904 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus or the like. The bus can be divided into address bus, data bus, control bus and so on. For ease of presentation, only one thick line is used in FIG. 9, but it does not mean that there is only one bus or one type of bus.
收发器901,用于接收和发送信号,实现与其他设备之间的通信。收发器901可以连接天线以实现信号传输。The transceiver 901 is used for receiving and sending signals to realize communication with other devices. The transceiver 901 can be connected to an antenna for signal transmission.
处理器902用于实现以上实施例或实例提供的通信方法,具体功能可以参考以上实施例中的描述,此处不再赘述。The processor 902 is configured to implement the communication methods provided by the above embodiments or examples. For specific functions, reference may be made to the descriptions in the above embodiments, which will not be repeated here.
其中,处理器902可以是中央处理器(central processing unit,CPU),网络处理器(network processor,NP)或者CPU和NP的组合等等。处理器902还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。处理器902在实现上述功能时,可以通过硬件实现,当然也可以通过硬件执行相应的软件实现。Wherein, the processor 902 may be a central processing unit (central processing unit, CPU), a network processor (network processor, NP), or a combination of CPU and NP, and so on. The processor 902 may further include hardware chips. The above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general-purpose array logic (generic array logic, GAL) or any combination thereof. When the processor 902 implements the above functions, it can be implemented by hardware, and of course, it can also be implemented by executing corresponding software by hardware.
存储器903,用于存放程序指令等。具体地,程序指令可以包括程序代码,该程序代码包括计算机操作指令。存储器903可能包含随机存取存储器(random access memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。处理器902执行存储器903所存放的程序指令,实现上述功能,从而实现上述实施例提供的方法。The memory 903 is used to store program instructions and the like. Specifically, the program instructions may include program code, and the program code includes computer operation instructions. The memory 903 may include random access memory (RAM), and may also include non-volatile memory (non-volatile memory), such as at least one disk storage. The processor 902 executes the program instructions stored in the memory 903 to implement the above functions, thereby implementing the methods provided by the above embodiments.
基于以上实施例,本申请实施例还提供了一种计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行以上实施例提供的方法。Based on the above embodiments, the embodiments of the present application further provide a computer program, when the computer program runs on a computer, the computer can execute the methods provided by the above embodiments.
基于以上实施例,本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,所述计算机程序被计算机执行时,使得计算机执行以上实施例提供的方法。Based on the above embodiments, the embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a computer, the computer executes the method provided by the above embodiment. .
其中,存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。The storage medium may be any available medium that the computer can access. By way of example and not limitation, computer readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or be capable of carrying or storing instructions or data structures in the form of desired program code and any other medium that can be accessed by a computer.
基于以上实施例,本申请实施例还提供了一种芯片,所述芯片用于读取存储器中存储的计算机程序,实现以上实施例提供的方法。Based on the above embodiments, an embodiment of the present application further provides a chip, where the chip is used to read a computer program stored in a memory to implement the methods provided by the above embodiments.
基于以上实施例,本申请实施例提供了一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现以上实施例中通信设备所涉及的功能。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。Based on the above embodiments, the embodiments of the present application provide a chip system, where the chip system includes a processor for supporting a computer apparatus to implement the functions involved in the communication device in the above embodiments. In a possible design, the chip system further includes a memory for storing necessary programs and data of the computer device. The chip system may be composed of chips, or may include chips and other discrete devices.
综上所述,本申请实施例提供了一种通信方法及设备。在该方法中,通信设备可以根据目标业务的业务数据的剩余数据量和剩余传输时间,动态地确定目标业务对应的PBR,以根据该PBR传输该业务数据;其中,该剩余传输时间为根据目标业务的传输时延确定的目标传输时长与传输该业务数据所经过的时长之间的差值。由于该目标业务的PBR是根据业务数据的传输速率的要求而动态变化的,因此该方法可以尽量提高在规定的目标业务的传输时延内全部传输业务数据的概率。总之,该方法可以保证通信设备的业务数据的传输时延,提升业务的用户体验。To sum up, the embodiments of the present application provide a communication method and device. In this method, the communication device can dynamically determine the PBR corresponding to the target service according to the remaining data volume and remaining transmission time of the service data of the target service, so as to transmit the service data according to the PBR; wherein, the remaining transmission time is based on the target service. The difference between the target transmission duration determined by the transmission delay of the service and the duration elapsed for transmitting the service data. Since the PBR of the target service changes dynamically according to the requirement of the transmission rate of service data, this method can improve the probability of all transmission of service data within the specified transmission delay of the target service as much as possible. In a word, the method can ensure the transmission delay of the service data of the communication device and improve the user experience of the service.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装 置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims (14)

  1. 一种通信方法,应用于终端设备,其特征在于,包括:A communication method, applied to terminal equipment, is characterized in that, comprising:
    确定目标业务的第一业务数据的剩余数据量和所述第一业务数据的第一剩余传输时间;determining the remaining data volume of the first service data of the target service and the first remaining transmission time of the first service data;
    根据所述剩余数据量和所述第一剩余传输时间,确定所述目标业务对应的第一优先比特率PBR;其中,所述第一剩余传输时间为所述第一目标传输时长与传输所述第一业务数据所经过的时长之间的差值;所述第一目标传输时长是根据所述目标业务的传输时延确定的。Determine the first priority bit rate PBR corresponding to the target service according to the remaining data amount and the first remaining transmission time; wherein, the first remaining transmission time is the first target transmission time and the transmission The difference between the elapsed durations of the first service data; the first target transmission duration is determined according to the transmission delay of the target service.
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:
    接收来自网络设备的指示信息,所述指示信息用于指示所述目标业务的传输时延。Receive indication information from a network device, where the indication information is used to indicate the transmission delay of the target service.
  3. 如权利要求1或2所述的方法,其特征在于,在确定所述目标业务对应的第一PBR之后,所述方法还包括:The method according to claim 1 or 2, wherein after determining the first PBR corresponding to the target service, the method further comprises:
    根据所述第一PBR,增加第一变量的取值,所述第一变量对应目标逻辑信道;其中,所述目标逻辑信道为所述目标业务对应的逻辑信道;According to the first PBR, the value of the first variable is increased, and the first variable corresponds to the target logical channel; wherein, the target logical channel is the logical channel corresponding to the target service;
    根据所述第一变量的取值,将所述第一业务数据的剩余数据复用到目标传输信道;其中,所述目标传输信道为所述目标逻辑信道对应的传输信道。According to the value of the first variable, the remaining data of the first service data is multiplexed to a target transmission channel; wherein the target transmission channel is a transmission channel corresponding to the target logical channel.
  4. 如权利要求3所述的方法,其特征在于,在将所述第一业务数据的剩余数据复用到目标传输信道之后,所述方法还包括:The method according to claim 3, wherein after multiplexing the remaining data of the first service data to the target transmission channel, the method further comprises:
    确定复用到所述目标传输信道的所述第一业务数据的总大小;determining the total size of the first service data multiplexed to the target transmission channel;
    根据复用到所述目标传输信道的第一业务数据的总大小减少所述第一变量的取值。The value of the first variable is decreased according to the total size of the first service data multiplexed to the target transmission channel.
  5. 如权利要求4所述的方法,其特征在于,根据所述第一变量的取值,将所述第一业务数据的剩余数据复用到目标传输信道,包括:The method according to claim 4, wherein, according to the value of the first variable, multiplexing the remaining data of the first service data to the target transmission channel, comprising:
    根据所述第一变量的取值,将所述第一业务数据的剩余数据中的部分数据复用到所述目标传输信道;According to the value of the first variable, multiplexing part of the data in the remaining data of the first service data to the target transmission channel;
    在将所述第一业务数据的剩余数据复用到目标传输信道之后,所述方法还包括:After multiplexing the remaining data of the first service data to the target transmission channel, the method further includes:
    根据所述部分数据的总大小,减少所述第一业务数据的剩余数据量;以及根据本次将所述部分数据复用到所述目标传输信道所消耗的时间,减少所述第一剩余传输时间;reducing the remaining data amount of the first service data according to the total size of the partial data; and reducing the first remaining transmission according to the time consumed for multiplexing the partial data to the target transmission channel this time time;
    当所述第一剩余传输时间大于0时,根据更新后的所述第一业务数据的剩余数据量,和所述第一剩余传输时间,确定所述目标业务对应的第二PBR。When the first remaining transmission time is greater than 0, the second PBR corresponding to the target service is determined according to the updated remaining data amount of the first service data and the first remaining transmission time.
  6. 如权利要求5所述的方法,其特征在于,当所述第一剩余传输时间小于或等于0时,所述方法还包括:丢弃所述第一业务数据的剩余数据。The method of claim 5, wherein when the first remaining transmission time is less than or equal to 0, the method further comprises: discarding the remaining data of the first service data.
  7. 如权利要求5所述的方法,其特征在于,当所述第一剩余传输时间小于或等于0时,所述方法还包括:The method of claim 5, wherein when the first remaining transmission time is less than or equal to 0, the method further comprises:
    根据所述第一PBR,增加所述第一变量的取值。According to the first PBR, the value of the first variable is increased.
  8. 如权利要求7所述的方法,其特征在于,所述方法还包括:The method of claim 7, wherein the method further comprises:
    在所述第一剩余传输时间小于或等于0之前,确定所述目标业务的第二业务数据到达所述目标逻辑信道;在所述第一剩余传输时间小于或等于0时,开始对占用时长进行计时;或者Before the first remaining transmission time is less than or equal to 0, it is determined that the second service data of the target service arrives at the target logical channel; when the first remaining transmission time is less than or equal to 0, the occupied time is started to be processed timing; or
    在所述第一剩余传输时间小于或等于0之后,且所述第一业务数据全部复用到所述目 标传输信道之前,确定所述目标业务的第二业务数据到达所述目标逻辑信道;在所述第二业务数据的到达时,开始对占用时长进行计时;After the first remaining transmission time is less than or equal to 0, and before all the first service data is multiplexed into the target transmission channel, determine that the second service data of the target service arrives at the target logical channel; When the second service data arrives, start timing the occupied duration;
    在所述第一业务数据全部复用到所述目标传输信道时,停止对所述占用时长进行计时;When all the first service data is multiplexed to the target transmission channel, stop timing the occupied duration;
    初始化所述第二业务数据的剩余数据量为所述第二业务数据的总数据量,并初始化所述第二业务数据的第二剩余传输时间为第二目标传输时长;其中,所述第二目标传输时长为所述目标业务的传输时延与所述占用时长之间的差值;Initializing the remaining data volume of the second service data as the total data volume of the second service data, and initializing the second remaining transmission time of the second service data as the second target transmission duration; wherein the second The target transmission duration is the difference between the transmission delay of the target service and the occupied duration;
    根据所述第二业务数据的剩余数据量和所述第二剩余传输时间,确定所述目标业务对应的第三PBR。A third PBR corresponding to the target service is determined according to the remaining data amount of the second service data and the second remaining transmission time.
  9. 一种通信方法,应用于网络设备,其特征在于,包括:A communication method, applied to network equipment, is characterized in that, comprising:
    确定目标业务的传输时延;Determine the transmission delay of the target service;
    向终端设备发送指示信息,所述指示信息用于指示所述目标业务的传输时延。Send indication information to the terminal device, where the indication information is used to indicate the transmission delay of the target service.
  10. 一种终端设备,其特征在于,包括:A terminal device, characterized in that it includes:
    收发器,用于接收和发送信号;transceivers for receiving and transmitting signals;
    存储器,用于存储程序指令和数据;memory for storing program instructions and data;
    处理器,用于读取所述存储器中的程序指令和数据,通过所述收发器实现如权利要求1-8任一项所述的方法。The processor is configured to read program instructions and data in the memory, and implement the method according to any one of claims 1-8 through the transceiver.
  11. 一种网络设备,其特征在于,包括:A network device, characterized in that it includes:
    收发器,用于接收和发送信号;transceivers for receiving and transmitting signals;
    存储器,用于存储程序指令和数据;memory for storing program instructions and data;
    处理器,用于读取所述存储器中的程序指令和数据,通过所述收发器实现如权利要求9所述的方法。A processor, configured to read program instructions and data in the memory, implements the method according to claim 9 through the transceiver.
  12. 一种通信系统,其特征在于,包括:A communication system, comprising:
    如权利要求10所述的终端设备,以及如权利要求11所述的网络设备。The terminal device as claimed in claim 10 , and the network device as claimed in claim 11 .
  13. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得计算机执行权利要求1-9任一项所述的方法。A computer-readable storage medium, characterized in that, a computer program is stored in the computer-readable storage medium, and when the computer program runs on a computer, the computer is made to execute the method described in any one of claims 1-9. method.
  14. 一种芯片,其特征在于,所述芯片与存储器耦合,所述芯片读取存储器中存储的计算机程序,执行权利要求1-9任一项所述的方法。A chip, characterized in that the chip is coupled with a memory, and the chip reads a computer program stored in the memory to execute the method of any one of claims 1-9.
PCT/CN2022/078991 2021-03-08 2022-03-03 Communication method and device WO2022188686A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202110250199 2021-03-08
CN202110250199.3 2021-03-08
CN202110655744.7 2021-06-11
CN202110655744.7A CN115038126A (en) 2021-03-08 2021-06-11 Communication method and device

Publications (1)

Publication Number Publication Date
WO2022188686A1 true WO2022188686A1 (en) 2022-09-15

Family

ID=83118501

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/078991 WO2022188686A1 (en) 2021-03-08 2022-03-03 Communication method and device

Country Status (2)

Country Link
CN (1) CN115038126A (en)
WO (1) WO2022188686A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116248885A (en) * 2021-12-03 2023-06-09 维沃移动通信有限公司 Information transmission method, device, terminal and network side equipment
WO2024092619A1 (en) * 2022-11-03 2024-05-10 富士通株式会社 Method and apparatus for reporting delay information

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110170495A1 (en) * 2010-01-08 2011-07-14 Mark Earnshaw Method and apparatus for logical channel prioritization for uplink carrier aggregation
CN110167066A (en) * 2018-02-14 2019-08-23 华为技术有限公司 A kind of data transmission method and device
CN110324902A (en) * 2018-03-30 2019-10-11 华为技术有限公司 Communication means, communication device and system
CN110636554A (en) * 2019-09-17 2019-12-31 华为技术有限公司 Data transmission method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110170495A1 (en) * 2010-01-08 2011-07-14 Mark Earnshaw Method and apparatus for logical channel prioritization for uplink carrier aggregation
CN110167066A (en) * 2018-02-14 2019-08-23 华为技术有限公司 A kind of data transmission method and device
CN110324902A (en) * 2018-03-30 2019-10-11 华为技术有限公司 Communication means, communication device and system
CN110636554A (en) * 2019-09-17 2019-12-31 华为技术有限公司 Data transmission method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HUAWEI, HISILICON: "LCP with grant-free transmission", 3GPP DRAFT; R2-1710370 LCP WITH GRANT-FREE TRANSMISSION, 3RD GENERATION PARTNERSHIP PROJECT (3GPP), MOBILE COMPETENCE CENTRE ; 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS CEDEX ; FRANCE, vol. RAN WG2, no. Prague, Czech Republic; 20171009 - 20171013, 29 September 2017 (2017-09-29), Mobile Competence Centre ; 650, route des Lucioles ; F-06921 Sophia-Antipolis Cedex ; France , XP051354899 *

Also Published As

Publication number Publication date
CN115038126A (en) 2022-09-09

Similar Documents

Publication Publication Date Title
US11051322B2 (en) Data processing method, apparatus, and system
EP3447978B1 (en) Data transmission method and device
CN109863801B (en) Uplink data scheduling system and method for license-free transmission
WO2022188686A1 (en) Communication method and device
WO2016082220A1 (en) Method and device for transmitting multiple video streams
WO2021012739A1 (en) Method and device for processing logical channel priority, storage medium, and terminal
CN118042518A (en) Communication method and device
WO2022198613A1 (en) Media data transmission method and communication apparatus
WO2014172892A1 (en) Service offloading method, apparatus and system
WO2022147727A1 (en) Communication method and apparatus
JP2023508824A (en) Systems and methods for reference signaling design and configuration
EP4366440A1 (en) Method of logical channel prioritization and device thereof
WO2024092725A1 (en) Data mapping device and method
WO2024140600A1 (en) Communication method, communication apparatus, and communication system
WO2024098267A1 (en) Data transmission apparatus, data sending apparatus, and method
CN113507726B (en) Data transmission method and device in separated bearing mode and terminal equipment
US20240048337A1 (en) Data Packet Transmission Management
WO2024073878A1 (en) Wireless communication devices and integrated scheduling methods for xr service
US20240049042A1 (en) Data Packet Transmission Efficiency
WO2024067374A1 (en) Communication method and apparatus
WO2023165199A1 (en) Communication method, apparatus, and device
EP4340314A1 (en) Data transmission method and apparatus, device, and storage medium
WO2024140241A1 (en) Data transmission method and apparatus
US20240049041A1 (en) Optimised Data Transmission
US20230217426A1 (en) Resource allocation method and apparatus and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22766212

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22766212

Country of ref document: EP

Kind code of ref document: A1