CN115038126A - Communication method and device - Google Patents
Communication method and device Download PDFInfo
- Publication number
- CN115038126A CN115038126A CN202110655744.7A CN202110655744A CN115038126A CN 115038126 A CN115038126 A CN 115038126A CN 202110655744 A CN202110655744 A CN 202110655744A CN 115038126 A CN115038126 A CN 115038126A
- Authority
- CN
- China
- Prior art keywords
- data
- target
- service
- transmission
- service data
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/16—Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
- H04W28/18—Negotiating wireless communication parameters
- H04W28/22—Negotiating communication rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L5/00—Arrangements affording multiple use of the transmission path
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/04—Wireless resource allocation
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Quality & Reliability (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
In the method, terminal equipment can dynamically determine a PBR corresponding to a target service according to the residual data volume and the residual transmission time of service data of the target service so as to transmit the service data according to the PBR; the remaining transmission time is a difference between a target transmission time length determined according to the transmission delay of the target service and a time length for transmitting the service data. The PBR of the target service is dynamically changed according to the requirement of the transmission rate of the service data, so the method can improve the probability of transmitting all the 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 terminal equipment and improve the user experience of the service.
Description
Cross Reference to Related Applications
The present application claims priority of chinese patent application having application number 202110250199.3, entitled "a communication method, terminal and network device" filed at 03/08/2021 by the chinese patent office, which is incorporated herein by reference in its entirety.
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication method and device.
Background
In a communication system, three channels are mainly defined, which are: logical channels, transport channels, and physical channels. The logical channels are used for providing data transmission services, and different logical channels are defined aiming at different data transmission services; transport channels are used to define the manner and characteristics of data transmission in the air interface, and physical channels are used to define the bearers over which signals are transmitted in the air interface. In practical applications, multiple logical channels may be multiplexed on the same transport channel, that is, the traffic data on multiple logical channels may be scheduled to the same transport channel and then transmitted through the physical channel.
In a process of sending service data, a Media Access Control (MAC) layer in a communication system needs to schedule a MAC Service Data Unit (SDU) in a logical channel to a MAC Protocol Data Unit (PDU) in a transport channel. Currently, a token bucket (token bucket) mechanism is adopted in a communication system to implement resource mapping from a logical channel to a transport channel. When a plurality of logical channels in the communication device are mapped to the same transport channel, the resource mapping process is as follows:
and mapping the service data in the MAC SDU of each logical channel to the MAC PDU of the transmission channel according to the descending order of the priority of the logical channels distributed by the network equipment and the number of tokens contained in the token bucket corresponding to each logical channel in sequence. 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.
In the token bucket mechanism, in order to realize that the traffic data in the logical channels can be continuously multiplexed to the transport channel, the tokens in the token bucket corresponding to each logical channel are uniformly increased according to a speed, which is a Prioritized Bit Rate (PBR). The PBR is a static minimum guaranteed bit rate allocated to the logical channel by the network device side, and the value is a fixed value.
In summary, the PBR configured for each logical channel by the network device directly affects the rate at which the service data in the logical channel is mapped to the transmission channel, and further affects the service data transmission delay of the service corresponding to the logical channel.
With the development of communication technology and the higher requirement of users on quality of service (QoS), the transmission rate of the terminal equipment in the communication system is required to be higher or more flexible. For example, a broadband real-time broadband communication (RTBC) scenario is intended to support large bandwidth and low latency, with the aim of increasing bandwidth given latency and certain reliability requirements, creating an immersive experience when people interact with a virtual world. The scenario includes extended reality (XR) services with ultra-high bandwidth and ultra-low latency requirements. Because the XR service requires the terminal device to upload pictures, and the fluctuation of the data amount of coded pictures of different pictures is large (for example, in a group of pictures (GOP), the data amount of coded I-frame pictures is large, and the data amount of coded P-frame pictures is small in general), but the transmission delay requirements of each frame of pictures are the same, and the specific value of the PBR of the logical channel corresponding to the XR service may be set by the network device in consideration of the average code rate of the logical channel, so that the pictures with large data amount may not be transmitted in the set transmission delay. Therefore, the PBR static allocation manner of the logical channel in the token bucket mechanism may have a large impact on the transmission delay of the XR service, thereby reducing the user experience of the service.
Disclosure of Invention
The application provides a communication method and equipment, which are used for guaranteeing the transmission delay of service data of terminal equipment and improving the user experience of services.
In a first aspect, an embodiment of the present application provides a communication method, where the method may be applied to a sending end for sending service data in the communication system shown in fig. 4, for example, a terminal device in an uplink direction or a network device in a downlink direction of a mobile communication system, and for example, any terminal device in a sidelink communication system. The method is described below by taking a communication device as an example, and comprises the following steps:
the communication equipment determines the residual data volume of first service data of a target service and the first residual transmission time of the first service data; then determining a first priority bit rate PBR corresponding to the target service according to the residual data volume and the first residual transmission time; wherein the first remaining transmission time is a difference between the first target transmission time and a time period for transmitting the first service data; the first target transmission duration is determined according to the transmission delay of the target service.
By the method, the communication equipment can dynamically determine the PBR corresponding to the target service according to the residual data volume and the residual transmission time of the service data of the target service so as to transmit the service data according to the PBR; the remaining transmission time is a difference between a target transmission time length determined according to the transmission delay of the target service and a time length for transmitting the service data. The PBR of the target service is dynamically changed according to the requirement of the transmission rate of the service data, so the method can improve the probability of transmitting all the 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 equipment and improve the user experience of the service.
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 a transmission delay of the target service.
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 can send each service data, the target transmission duration of the service data is determined according to the transmission delay of the target service.
In a possible design, after determining the first PBR corresponding to the target service, the communication device may further perform the following steps according to the PBR:
according to the first PBR, increasing the value of a first variable (namely the number of tokens corresponding to a target logical channel), wherein the first variable corresponds to the target logical channel; the target logic channel is a logic channel corresponding to the target service; multiplexing the residual data of the first service data to a target transmission channel according to the value of the first variable; and the target transmission channel is a transmission channel corresponding to the target logic channel.
By this design, the communication device may transmit the remaining data of the first service data according to the calculated first PBR using a token bucket mechanism.
In one possible design, the communication device may further determine a total size of the first traffic data multiplexed to a target transmission channel after multiplexing remaining data of the first traffic data to the target transmission channel; and then reducing the value of the first variable according to the total size of the first service data multiplexed to the target transmission channel.
Through the design, the communication equipment can update the value of the first variable according to the data volume multiplexed to the target transmission channel each time.
In a possible design, when the communication device multiplexes a part of data in the remaining data of the first service data to the target transmission channel according to the value of the first variable, the communication device may further reduce the remaining data amount of the first service data according to the total size of the part of data; and reducing the first remaining transmission time according to the time consumed by multiplexing the partial data to the target transmission channel; and then when the first residual transmission time is greater than 0, determining a second PBR corresponding to the target service according to the updated residual data volume of the first service data and the first residual transmission time.
With this design, the communication device can continue to dynamically calculate the PBR when the first service data is not all multiplexed to the target transmission channel, so that the remaining data of the first service data can be continuously transmitted using the newly calculated PBR.
In one possible design, when the first remaining transmission time is less than or equal to a determination threshold (taking 0 as an example), the communication device may further discard the remaining data of the first traffic data.
And when the first residual transmission time is less than or equal to the judgment threshold, the fact that the actual transmission duration of the current first service data does not meet the transmission delay requirement of the target service is shown. By means of the design, the communication device does not multiplex the rest data of the first service data to the target transmission channel any more, so that the next service data can be continuously multiplexed to the target transmission channel by using the vacant resources.
In a possible design, when the first remaining transmission time is less than or equal to a determination threshold (taking 0 as an example), the communication device may further increase the value of the first variable according to the last calculated PBR (i.e., the first PBR).
Because the first remaining transmission time is less than or equal to the judgment threshold, the communication device cannot dynamically calculate the PBR any more, and therefore, the communication device may select the last calculated PBR to continue to increase the value of the first variable, so as to continue to transmit the remaining data of the first service data.
In one possible embodiment, if the communication device continues to interpret the remaining data of the first service data in the event of a timeout of the first service data; then, in order to ensure that the transmission duration of the next service data (second service data) after the first service data can meet the requirement of the transmission delay of the target service as much as possible, the communication device may start the timing of the occupied duration according to the arrival time of the second service data, as shown in the following two manners:
the method I comprises the following steps: determining that second service data of the target service arrives at the target logical channel before the first remaining transmission time is less than or equal to 0; when the first residual transmission time is less than or equal to 0, starting to time the occupied time length;
the second method comprises the following steps: after the first residual transmission time is less than or equal to 0 and before the first service data is all multiplexed to the target transmission channel, determining that second service data of the target service reaches the target logical channel; when the second service data arrives, starting to time the occupied time;
after the timing of the occupied time length is started, when the first service data are all multiplexed to the target transmission channel, the communication equipment stops timing the occupied time length; then, the communication device initializes the remaining data volume of the second service data to be the total data volume of the second service data, and initializes the second remaining transmission time of the second service data to be a second target transmission duration; wherein the second target transmission duration is a difference between the transmission delay of the target service and the occupied duration; and determining a third PBR corresponding to the target service according to the residual data volume of the second service data and the second residual transmission time.
Through the design, if the second service data arrives before the first service data is all multiplexed to the target transmission channel, the communication equipment can sample the design to count the occupied time of the first service data. In this way, when the first service data is all 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 may be set to be equal to the difference between the transmission delay of the target service and the occupation duration of the first service data. Through the occupied time deduction mechanism, the actual transmission time of the second service data can be ensured to be close to the second target transmission time, and the second service data is completely multiplexed to the target transmission channel within the transmission time delay requirement of the target service.
In a second aspect, an embodiment of the present application provides a communication method, which may be applied to a network device, and the method includes the following steps:
the network equipment determines the transmission delay of the target service; and then sending indication information to the terminal equipment, wherein the indication information is used for indicating the transmission delay of the target service.
By the method, the network equipment can configure the transmission delay of the target service for the terminal equipment, so that the terminal equipment can determine the target transmission time length of the service data according to the transmission delay of the target service when sending each service data.
In a third aspect, an embodiment of the present application provides a communication apparatus, including means for performing the steps of the method provided in any of the above aspects of the present application.
In a fourth aspect, embodiments of the present application provide a communication device, which includes at least one processing element and at least one memory element, where the at least one memory element is configured to store programs and data, and the at least one processing element is configured to execute the steps of the method provided in any aspect of the present application.
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 above first aspect, and a network device for implementing the method provided in the above second aspect.
In a sixth aspect, the present application further provides a computer program, which, when run on a computer, causes the computer to perform the method provided in any one of the above 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 a computer, the computer is caused 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 one of the above aspects.
In a ninth aspect, an embodiment of the present application further provides a chip system, where the chip system includes a processor, and is used to support a computer device to implement the method provided in any one of the above aspects. In one possible design, the system-on-chip further includes a memory for storing programs and data necessary for the computer device. The chip system may be formed by a chip, and may also include a chip and other discrete devices.
In a tenth aspect, an embodiment of the present invention provides an apparatus, which includes means for performing the method described in any of the embodiments of the present invention.
Drawings
Fig. 1 is a schematic diagram illustrating an encoding method of an image frame in a GOP according to an embodiment of the present application;
fig. 2 is a schematic diagram of data amount after encoding of each picture frame in a GOP according to an embodiment of the present application;
fig. 3 is a diagram illustrating an example of MAC layer scheduling of a terminal device according to an embodiment of the present application;
fig. 4 is an architecture diagram of a communication system according to an embodiment of the present application;
fig. 5 is a schematic network topology diagram of a communication system according to an embodiment of the present application;
fig. 6A is a flowchart of a communication method according to an embodiment of the present application;
FIG. 6B is a schematic diagram of a dynamic PBB and static PBR variation curve provided by an embodiment of the present application;
fig. 7 is a flowchart illustrating an example communication method according to an embodiment of the present disclosure;
fig. 8 is a diagram illustrating an example of MAC layer scheduling of a terminal device according to an embodiment of the present application;
fig. 9 is a block diagram of a communication device according to an embodiment of the present application.
Detailed Description
The application provides a communication method and equipment, which are used for guaranteeing the transmission delay of service data of terminal equipment and improving the user experience of services. The method and the equipment are based on the same technical conception, and because the principles of solving the problems of the method and the equipment are similar, the implementation of the equipment and the method can be mutually referred, and repeated parts are not described again.
Hereinafter, some terms in the present application are explained so as to be easily understood by those skilled in the art.
1) And the network equipment is equipment for accessing the terminal equipment to a wireless network in the communication system. The network device is used as a node in a radio access network, and may also be referred to as a base station, and may also be referred to as a Radio Access Network (RAN) node (or device), or referred to as an Access Point (AP).
Examples of some network devices are currently: a new generation Node B (gbb), a Transmission Reception Point (TRP), an evolved Node B (eNB), a Radio Network Controller (RNC), a Node B (NB), an Access Point (AP) base station controller (base station controller, BSC), a Base Transceiver Station (BTS), a home base station (NodeB, or home Node B, HNB), or a Base Band Unit (BBU), an Enterprise LTE Discrete narrowband Aggregation (LTE-Discrete Aggregation, LTE-DSA) base station, and the like.
In addition, in a network structure, the network device may include a Centralized Unit (CU) node and a Distributed Unit (DU) node. The structure separates the protocol layers of the eNB in a Long Term Evolution (LTE) system, the functions of part of the protocol layers are controlled in the CU in a centralized way, the functions of the rest part or all of the protocol layers are distributed in the DU, and the CU controls the DU in a centralized way.
2) A terminal device is a device that provides voice and/or data connectivity to a user. The terminal equipment may also be referred to as User Equipment (UE), Mobile Station (MS), Mobile Terminal (MT), etc.
For example, the terminal device may be a handheld device having a wireless connection function, various in-vehicle devices, a roadside unit, or the like. Currently, some examples of terminal devices are: mobile phone (mobile phone), tablet computer, notebook computer, palm computer, Mobile Internet Device (MID), smart point of sale (POS), wearable device, Virtual Reality (VR) device, Augmented Reality (AR) device, wireless terminal in industrial control (industrial control), wireless terminal in self driving (self driving), wireless terminal in remote surgery (remote medical supply), wireless terminal in smart grid (smart grid), wireless terminal in transportation safety (transportation safety), wireless terminal in smart city (smart city), wireless terminal in smart home (smart home), various smart meters (smart water meter, smart electric meter, DSA gas meter), e-lte-UE, integrated access device (integrated access b, smart phone b) having access capability, An on-vehicle Electronic Control Unit (ECU), an on-vehicle computer, an on-vehicle cruise system, a telematics BOX (T-BOX), and the like.
3) The communication device is a device having a communication function in a communication system, and may be a network device or a terminal device, which is not limited in this application.
4) Channel, the channel of communication, is the medium of signal/data transmission. Three channels are mainly defined in a communication system, which are a logical channel, a transport channel, and a physical channel. Different kinds of channels are described below:
the logical channels are used to provide data transmission services, and different logical channels are defined for different data transmission services, such as a Common Traffic Channel (CTCH), a Dedicated Traffic Channel (DTCH), a Broadcast Control Channel (BCCH), a Common Control Channel (CCCH), and so on.
The transport channel is used to define the manner and characteristics of data transmission in the air interface, such as a Random Access Channel (RACH), a Downlink Shared Channel (DSCH), an Uplink Shared Channel (USCH), a Broadcast Channel (BCH), a Common Packet Channel (CPCH), and so on.
The physical channel is used to define the bearer for transmitting signals in the air interface, for example, the physical channel may define specific time domain resources and frequency domain resources, scrambling codes, and the like. Illustratively, 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 Common Packet Channel (PCPCH), and the like.
5) And the data amount is a numerical value obtained by measuring the size of the data by using the same set measuring unit. In the embodiment of the present application, the unit of measurement of the data amount may be, but is not limited to: bits (also called bits), bytes (bytes). Wherein, 1Byte is 8 bit.
6) A service, is some function or service implemented by a terminal device, or is a data stream that transports a service related to an application layer. Optionally, the services involved in the present application may be divided into different categories according to different angles.
For example, the traffic may be divided according to the severity of the delay requirement, and then the traffic may be divided into normal traffic (traffic whose transmission delay is greater than or equal to a first threshold), low-delay traffic (transmission delay is less than the first threshold), real-time traffic (transmission delay is less than a second threshold), and so on. Wherein the second threshold is less than the first threshold.
For another example, the services may be further divided according to functions or types of services, and then the services may be divided into data services, voice services, video services, XR services, and the like. The XR service mainly includes Virtual Reality (VR), Augmented Reality (AR), Mixed Reality (MR), and other virtual and real interaction services. The terminal equipment supporting the XR service is generally internally provided with a camera to acquire a current scene image, and the terminal equipment is required to continuously upload the acquired image, so that the XR service has higher requirements on the transmission delay and the bandwidth of the data of the terminal equipment.
For another example, when multiple data streams can be transmitted in the same function or service, the traffic can be further divided according to the types of the data streams. For example, the service of the application layer includes a video stream and an audio stream, and then the video stream may be one service and the audio stream may be another service.
For another example, the terminal device is required to establish a connection with a corresponding Data Network (DN) to implement whatever function or service the terminal device desires to implement. And when different functions or services are realized, the data networks to which the terminal equipment needs to be connected are also different. The traffic can also be divided over the data network to which the terminal devices are connected.
Based on the above theory, in this embodiment, without limiting the presentation form of the service, the service may be divided by the time delay requirement, may also be divided by the type of the function or the service, may also be divided by the type of the Data stream, and may also be divided by the Data Network identifier (DNN) requested by the terminal device.
7) And the transmission delay of the service, namely the delay requirement of the data packet of the service from the sending equipment to the receiving equipment can embody 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.
Taking a mobile communication system formed by the UE and the base station as an example, the transmission delay of the service is a delay requirement (latency requirement from the UE MAC to the nb/eNB packet arrival) from the MAC layer of the UE to the base station.
8) Token, a resource for the MAC layer scheduling process of the communication device to control the amount of data transmitted. It should be noted that, since the MAC layer of the communication device increases the number of tokens according to the PBR and consumes the number of tokens in the process of transmitting data, the number of tokens is constantly changed, i.e., the number of tokens is variable. In the embodiment of the present application, the token data may also be referred to as a token quantity variable, a variable, and the like. Changing the number of tokens can be understood as changing the value of a variable (or a variable) of the number of tokens, increasing the number of tokens can be understood as increasing the value of the variable, and decreasing the number of tokens can be understood as decreasing the value of the variable.
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) "and/or" describe the association relationship of the associated objects, indicating that there may be three relationships, e.g., a and/or B, which may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In the present application, the plural number means two or more. At least one, means one or more.
It is to be understood that the terms "first," "second," and the like, in the description of the present application, are used for distinguishing between descriptions and not necessarily for describing a sequential or chronological order, or for indicating or implying a relative importance.
In the XR service, the terminal device sends service data as an example.
As shown in fig. 1, service data of the XR service may be video-coded using the video coding standard of h.264/h.265. The multiple pictures generated by the terminal device performing XR services may be divided into multiple GOPs. Alternatively, each GOP may contain the same number of pictures. The terminal device may intra-frame encode or inter-frame encode each frame of image within each GOP. Referring to fig. 1, the first frame of picture in each GOP may be referred to as an intra-frame coding frame (I-frame), which is referred to as an I-frame for short, and may be independently coded and decoded; and subsequent frame images may be referred to as inter-frame coding frames, including: predictive coded frames (P-frames for short), bidirectional predictive coded frames (B-frames for short). The inter-frame coding frame needs to be coded and decoded based on the previously coded image, so that the coding and decoding compression performance is improved, and the data volume of the transmitted service data is reduced.
Referring to fig. 2, the data amount of the encoded 1 st frame image (i.e., I frame) is significantly larger than the data amount of the encoded subsequent frame image (i.e., P frame or B frame). In addition, due to the change of contents in the images collected by the terminal equipment, the data volume of each encoded P frame is different. For example, the data amount of the 4 th frame image after encoding in fig. 2 is about twice as large as the data amount of the 2 nd frame image after encoding.
The transmission delay of the XR service, i.e. the transmission delay per frame of image, i.e. the transmission delay requirement per frame of image, is the same (e.g. 10 ms), and the XR service has higher requirement on the transmission delay, so the image with larger data volume has more severe requirement on the transmission rate. If the transmission rate of the terminal device is the same for all pictures, the terminal device may not be able to complete transmission of the entire picture (e.g., I-frame in GOP) within the specified transmission delay. This has a large impact on the XR service, which in turn reduces the user experience of the service.
It should be noted that the XR service is only an example, and does not constitute a limitation to the service to which the method provided in the embodiment of the present application may be applied. The method provided by the embodiment of the application can be applied to various services, for example, a service with large fluctuation of data volume of service data, a service with severe requirement on transmission delay, and the like, and specific examples include a video call service, an Artificial Intelligence (AI) service, and the like.
The token bucket mechanism is explained below.
A token bucket (token bucket) mechanism is used in a communication system to limit the data traffic of a communication device within a specific bandwidth, that is, a certain number of tokens are placed in a token bucket, and one token allows a set data amount (hereinafter, 1Byte is taken as an example) to be sent. Each 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, it is assumed that the communication device has exceeded the nominal bandwidth to continue transmitting data of any size. It is to be understood that the token bucket behaves like a pool of water, and that tokens in the token bucket behave like water, and not only can be removed, but are also added continuously. To ensure that the communication device can continue to send data, it is necessary to continually add tokens to the token bucket. Thus, the rate of increase of tokens in the token bucket determines the rate at which the communication device transmits data. For example, the bandwidth of the communication device is 1000 Bytes per second (Bps), and the bandwidth of the communication device can be guaranteed only by guaranteeing that 1000 tokens are added to the token bucket every second.
As is known in the art, in the process of transmitting service data by a communication device in a communication system, the MAC layer needs to schedule the service data carried in the MAC SDU located in the logical channel into the MAC PDU in the transport channel.
In the token bucket mechanism, the MAC layer of the communication device needs to maintain a token bucket and parameters corresponding to the token bucket for each logical channel. Each token is used to transmit a set amount of data. Continue to take the example that one token can transmit 1Byte of data. Wherein, the corresponding parameter of every token bucket includes: a variable of the number of tokens in the token bucket, PBR, and the token bucket depth (BSD) (optional). Wherein, the PBR and the BSD are configured for a Radio Resource Control (RRC) layer of a network device in the communication system.
The PBR of any token bucket is the increasing speed of the tokens in the token bucket, i.e. 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 rate of the data. Illustratively, PBR 8 kps 8k tokens/second.
The depth BSD of a token bucket, i.e., the maximum capacity of the token bucket, is a threshold of the number of tokens that can be contained at most, or the amount of data that can be transmitted at most, depending on the tokens in the token bucket. Optionally, the BSD may be directly set to a set token number threshold; or the BSD may be expressed in time, e.g., in seconds(s) or milliseconds (ms); and then or directly set as a set data amount threshold. Illustratively, the BSD of a token bucket is 100 ms; when PBR is 8k tokens/second, the number of tokens increased every 1 millisecond is 8; therefore, the BSD of the token bucket is 100ms 0.1s, which is equivalent to PBR 0.1s 800 tokens, which is equivalent to 800 bytes.
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 a Transmission Time Interval (TTI), where each TTI executes transmission once, or each TTI corresponds to a transmission time. The TTI may also be referred to as a scheduling period or a transmission period, i.e., two adjacent transmission time instants (transmission opportunity, scheduling opportunity). Illustratively, the TTI can be 1ms, 2ms, 0.5ms, and so on. Note that in some mobile communication systems (e.g., 5G NR systems), the TTI may vary.
In addition, for the process of continuously adding tokens in the token bucket, the application can also introduce the concept of a token increment time interval T (also called a token increment period T). Optionally, the token increment time interval T may be the same as or different from a value of the TTI, which is not limited in this application.
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.
In addition, in the case where multiple logical channels can be multiplexed to the same transport channel in a communication device (i.e., a network device or a terminal device in a communication system), the RRC layer of the network device can also assign a priority to each logical channel of the communication device. The priority of any logical channel determines the order of scheduling the MAC SDUs of the logical channel to the MAC PDUs of the transport channel in multiple logical channels, that is, the MAC SDUs of the logical channel with higher priority are scheduled to the MAC PDUs preferentially.
In addition, in order to prevent the data of the high-priority logical channel from always occupying the MAC PDU resource, the RRC layer of the network device allocates a corresponding PBR to each logical channel of the communication device, so as to avoid the situation that the low-priority logical channel cannot be multiplexed to the MAC PDU resource.
When the communication device transmits data, the data is generally processed in sequence from top to bottom of the protocol stack, that is, the MAC SDU and Radio Link Control (RLC) PDU are in one-to-one correspondence. I.e. the size of the MAC SDU depends on the RLC PDU, whereas the RLC PDU is segmented from RLC SDUs, whose segmentation criteria depend on the MAC PDU size. That is, the MAC layer can decide how much data amount of data in the RLC SDU is segmented into one RLC PDU (i.e., decide the size of the RLC PDU (or MAC SDU)) according to idle resources in the MAC PDU.
Thus, the MAC layer of the communication device can multiplex MAC SDUs in the logical channel to MAC PDUs of the transport channel using the token bucket algorithm, which in practice can be understood as the MAC layer multiplexing RLC SDUs in the logical channel to MAC PDUs of the transport channel using the token bucket algorithm.
It should be noted that, when the MAC layer segments the RLC SDU into at least one RLC PDU, a Header (Header) is also configured for each RLC PDU. Therefore, the sum of the data amounts of at least one RLC PDU obtained by segmenting the RLC SDU increases the data amount of at least one packet header compared with the data amount of the RLC SDU. However, since the data amount in the header is generally small (for example, one header is 8bits), it can be ignored with respect to the data amount of the service data carried by the RLC SDU. In summary, in the embodiments and examples of the present application, only the example that the resource amount of the MAC PDU (RLC SDU) occupied when all RLC SDUs are multiplexed into the MAC PDU is equal to the data amount carried by the RLC SDU is taken as an example for description.
The MAC layer of the communication device may use a token bucket algorithm to implement multiplexing of a plurality of logical channels to a MAC layer transport channel, that is, the amount of data multiplexed to the transport channel by a logical channel is determined according to the number of tokens of each logical channel.
Optionally, the MAC layer of the communication device maintains a variable B for the jth logical channel j The variable indicates the number of tokens in the token bucket corresponding to the logical channel (i.e., 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 transmit a fixed amount of data. Wherein j is a non-negative integer and is used for identifying the jth logical channel. B is j It is initialized to 0 at jth logical channel setup and PBR × T tokens are added in each T.
In some embodiments, during the MAC layer scheduling process performed by the communication device, the following principles may be implemented:
1. at one transmission instant, for all B j >And 0, the MAC layer multiplexes data in the plurality of logical channels to the transport channel in order of logical channel priority from high to low. When the target logical channel multiplexes the transport channel, the MAC layer multiplexes the transport channel according to B of the target logical channel j And multiplexing the data of the corresponding data volume in the RLC SDU of the target logical channel into the MAC PDU.
2. After the transmission timing, the MAC layer multiplexes the data to the transport channel in the target logical channel at the transmission timing (hereinafter, referred to as "target logical channel")Target data for short), updating B of the target logical channel j I.e. B j =B j -B ', wherein B' is the number of tokens consumed for multiplexing the target data to the transport channel, and is a non-negative number. B' is the amount of data for the target data divided by the fixed amount of data each token can transmit. It should be noted that B' may be larger than B considering that RLC SDU should be avoided as much as possible in the process of multiplexing data of logical channel into transport channel MAC PDU (i.e. MAC layer scheduling process) j 。
3. After the step 1-2 is completed, if the MAC PDU has remaining idle resources, 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 priority of the logical channel, and the process does not consume the number of tokens in the logical channel. When all the data of the logical channel with higher priority is multiplexed to the MAC PDU and idle resources still exist in the MAC PDU, the data of the logical channel with lower priority can be continuously multiplexed to the MAC PDU.
The following describes in detail the procedure of MAC layer scheduling performed by the communication device, taking fig. 3 as an example. As shown in fig. 3, from left to right, there are logical channels 1,2, and 3, the priorities of which are sequentially decreased, and the numbers of corresponding tokens are B1, B2, and B3, respectively, and B1, B2, and B3 are all greater than 0. For the sake of easy differentiation, the present application numbers the RLC SDUs in each logical channel, i.e., RLC SDUs a-b, where a represents a logical channel and b represents the number of RLC SDUs in a logical channel. As shown in FIG. 3, the RLC SDUs to be transmitted in logical channel 1 are denoted as RLC SDU1-1 and RLC SDU 1-2; RLC SDUs to be transmitted in the logical channel 2 are marked as RLC SDU2-1, RLC SDU2-2 and RLC SDU 2-3; RLC SDUs to be transmitted in the logical channel 3 are denoted as RLC SDU3-1 and RLC SDU 3-2.
When resource multiplexing of MAC SDUs to MAC PDUs is performed, RLC SDUs in logical channel 1 with the highest priority are first multiplexed into MAC PDUs, as shown in fig. 3:
if the data volume of the RLC SDU1-1 in the logical channel 1 is greater than the idle resource volume in the MAC PDU (i.e., the data volume that the idle resource can carry), the MAC layer preferentially multiplexes the data with the data volume equal to the idle resource volume of the MAC PDU in the RLC SDU1-1 into the MAC PDU (at this time, in the logical channel, the RLC SDU1-1 is segmented, the MAC PDU is full, and there is no idle resource any more);
if the data amount of the RLC SDU1-1 in the logical channel 1 is less than or equal to the free resource amount in the MAC PDU, the MAC layer preferentially multiplexes all data in the RLC SDU1-1 onto the MAC PDU.
If the MAC PDU free resources are sufficient, and the MAC PDU still has free resources after all the data in the RLC SDU1-1 in the logical channel 1 is multiplexed into the MAC PDU, the MAC layer continues to multiplex the RLC SDU of the logical channel with the next token number larger than 0 into the MAC PDU according to the principle, namely if B2>0, continues to multiplex the data in the RLC SDU2-1 in the logical channel 2 into the MAC PDU. And repeating the steps until no idle resource exists in the MAC PDU or all RLC SDUs in the logical channel with the token data larger than 0 are multiplexed into the MAC PDU.
After each transmission time, the MAC layer reduces the number of tokens B1, B2, B3 for each logical channel according to the number of tokens consumed by the logical channel multiplexing transmission channel, and increases the token increment time interval T at the rate of PBR1 × T, PBR2 × T and PBR3 × T, respectively. When the number of tokens consumed by the MAC layer to multiplex data of a certain logical channel to the transport channel (the data amount of scheduled data/the fixed data amount that can be transmitted by each token) is greater than the current number of tokens of the logical channel, the token data of the logical channel becomes a negative value. If the token data of the logical channel is not increased to a positive value at the next transmission time, in the next transmission time, after the MAC layer multiplexes all the logical channels with the token number larger than 0, the RLC SDU of the logical channel is multiplexed to the MAC PDU according to the descending order of the priority of the logical channel, namely the logical channel has an opportunity to be multiplexed to the MAC PDU only after the logical channel data with the priority higher than the logical channel is completely transmitted.
In addition, after the MAC layer multiplexes the RLC SDUs in the respective logical channels into the MAC PDU according to the number of tokens of each logical channel, if the MAC PDU has free resources at the moment, the MAC layer continues to multiplex the RLC SDUs in the logical channels into the free resources in the MAC PDU according to the priority of the logical channels.
For example, as shown in fig. 3, after multiplexing RLC SDUs in 3 logical channels into a MAC PDU according to the number of tokens, there is a free resource in the MAC PDU, and then the MAC layer preferentially multiplexes data in the remaining data (at least one RLC SDU, which is described below as the case where the remaining data only includes RLC SDU1-2) in logical channel 1 into the MAC PDU, regardless of the size of token number B1 of current logical channel 1, and this multiplexing does not consume the tokens of logical channel 1, which specifically includes, as shown in fig. 3:
if the amount of idle resources in the MAC PDU is larger than or equal to the data amount of the remaining data (namely the RLC SDU1-2) in the logical channel 1, the MAC layer multiplexes all the data in the RLC SDU1-2 into the MAC PDU;
if the amount of idle resources in the MAC PDU is less than the amount of data of the remaining data in logical channel 1 (i.e., RLC SDU1-2), the MAC layer multiplexes a part of the data of RLC SDU1-2 equal to the amount of idle resources of the MAC PDU into the MAC PDU.
It should also be noted that if there is free resource in the MAC PDU after multiplexing all the data in the remaining data in logical channel 1 into the MAC PDU, the MAC layer continues to multiplex the remaining data in logical channel 2 into the MAC PDU as described above. … … and so on until the MAC PDU has no more free resources or the remaining data in each logical channel is multiplexed into the MAC PDU. And when the amount of idle resources in the MAC PDU is less than or equal to the data amount of the remaining data in the logical channel 1, the MAC layer multiplexes part or all of the remaining data in the logical channel 1 to the MAC PDU, and the MAC PDU cannot multiplex the remaining data of other logical channels.
Finally, the MAC layer transmits the MAC PDU to the physical layer so that the physical layer can carry out the next transmission.
As can be seen from the above detailed description of the conventional token bucket mechanism, the increasing speed 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 code rate of the logical channel when allocating.
However, the data amount of the service data generated in some services may fluctuate greatly, and as illustrated in the above XR service, the data amount of different frames of pictures in a GOP is different greatly, but the transmission delay requirement of each frame of pictures is the same, so that the transmission rate requirement of each frame of pictures is different. In the conventional token bucket mechanism, the PBR is a fixed value, which may cause that the transmission rate cannot meet the transmission requirement of the image with a large data volume, thereby increasing the transmission delay.
The explanation is continued by taking fig. 2 as an example. The data amount of each frame of image coded in the XR service is large in variation, and the transmission delay requirement of each frame of image is the same. For example, the data amount of the encoded 1 st frame image is about 5 times the data amount of the encoded 2 nd frame image, and it is desirable that the transmission rate of the encoded 1 st frame image is about 5 times the transmission rate of the encoded 2 nd frame image. However, because the PBR is a fixed value, the transmission rate of the terminal device cannot change with the change of the requirement of different images for the transmission rate, and finally some images with large data volume cannot be transmitted in the specified transmission delay.
In order to solve the problem that a PBR static allocation manner of a logical channel affects service data transmission, ensure transmission delay of service data, and improve user experience of a service, 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 an architecture of a possible communication system to which the communication method provided in 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 (e.g., terminal device a-terminal device g in fig. 4).
The network device is an entity capable of receiving and transmitting wireless signals at a network side, and is responsible for providing wireless access-related services for terminal devices within a coverage area of the network device, and implementing functions of a physical layer, resource scheduling and wireless resource management, Quality of Service (QoS) management, wireless access control and mobility management. Optionally, the network device may be a base station, an AP, or other RAN devices, which is not limited in this application.
The terminal device is an entity capable of receiving and transmitting wireless signals at a user side, and needs to access a network through the network device. The terminal device may be various devices providing voice and/or data connectivity to a user, such as shown in fig. 4, and may be an in-vehicle device, VR glasses, AR glasses, a smartphone, an HMD, or the like.
Optionally, the communication system shown in fig. 4 may support sidelink (sidelink) communication techniques. sidelink communication technology is a near field communication technology capable of directly connecting terminal devices, and is also called proximity services (ProSe) communication technology or D2D communication technology. In the communication system, a plurality of terminal devices which are located in close geographical positions 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 with each other through a direct link (sidelink connection). sidelink communications technologies may support broadcast, multicast, and unicast transmissions in network device coverage, out of network device coverage, and in network device partial coverage scenarios.
In the communication system shown in fig. 4, different sidelink communication systems may be composed for different application scenarios. For example, in a scenario where a user drives a car, the user's smartphone may form a sidelink communication system with a vehicle-mounted device installed in the car, as shown in the figure. For another example, in a scenario where a user watches a movie using VR glasses and/or AR glasses, the smartphone of the user may form a sidelink communication system with the VR glasses and/or the VR glasses, as shown in the figure. For another example, in a scenario where a user views a movie using an HMD, the user's smartphone may form a sidelink communication system with the HMD, as shown. In other scenes, a sidelink communication system can be formed by vehicle-mounted devices of different automobiles, or a sidelink communication system can be formed by mobile phones of different automobiles.
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 via an air interface (i.e., Uu interface), so as to implement communication between the terminal device and the network device (such communication may be referred to as Uu communication for short, or cellular network communication). Adjacent terminal devices can establish a direct link for sidelink data transmission through a short-range service communication interface 5(ProSe communication 5, PC 5).
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 at least comprises the following protocol layers: a Physical (PHY) layer, an MAC layer, a Radio Link Control (RLC) layer, a Packet Data Convergence Protocol (PDCP) layer, and a Service Data Adaptation Protocol (SDAP) layer; the control plane protocol stack at least comprises the following protocol layers: a physical layer, a MAC layer, an RLC layer, a PDCP layer, and a Radio Resource Control (RRC) layer.
In the communication system shown in fig. 4, the terminal device may perform communication transmission with the network device or other terminal devices, so as to implement a specific service. For example, a smart phone may communicate with a network device, so that a video call service may be implemented; VR glasses or AR glasses can communicate with smart mobile phone or network equipment to realize XR business etc..
In the communication system shown in fig. 4, when any one of the communication devices (terminal device or network device) implements a target service, service data of the target service may be transmitted to another communication device (network device or terminal device). Then, in the process of transmitting the service data, the MAC layer of the communication device may multiplex the service data carried by the RLC SDU in the logical channel to the MAC PDU in the transport channel through the token bucket mechanism, thereby finally transmitting to another communication device through the physical channel of the Uu interface or the PC5 interface.
For example, in a VR downlink transmission scenario, a network device may transmit VR traffic data to a terminal device through a token bucket mechanism; in the scenario of AR uplink and downlink transmission, a network device or a terminal device may transmit AR service data to an opposite end through a token bucket mechanism; in a sidelink communication system, any one terminal device may transmit various traffic data to another terminal device through a token bucket mechanism.
It should be further noted that the communication system shown in fig. 4 is taken as an example, and does not limit the communication system to which the method provided in the embodiment of the present application is applicable. In short, the method provided by the embodiment of the application is suitable for communication systems or application scenes of various types and systems. For example: a fifth Generation (The 5th Generation, 5G) communication system, a Long Term Evolution (LTE) communication system, a Wi-Fi system, a vehicle-to-everything (V2X), a Long Term Evolution-vehicle networking (LTE-V), a vehicle-to-vehicle (V2V), a vehicle networking, a Machine Type Communication (MTC), an internet of things (IoT), a Long Term Evolution-Machine to Machine (LTE-to-Machine, LTE-M), and a Machine-to-Machine (M2M), which are not limited in The embodiments of The present application.
The embodiment of the present application provides a communication method, which may be applied to an uplink direction in a mobile communication system composed of a terminal device and a network device (that is, the terminal device sends service data to the network device). The method is described in detail below with reference to the flowchart shown in fig. 6A.
S600 a: the terminal device and the network device establish a wireless connection.
Optionally, the terminal device may establish an RRC connection with the network device by, but not limited to:
the method I comprises the following steps: the terminal device can establish RRC connection with the network device through procedures of cell search, time synchronization, random access, RRC connection establishment, and the like.
The second method comprises the following steps: the terminal equipment establishes RRC connection with the network equipment through cell selection, cell reselection or cell switching process.
The third method comprises the following steps: a terminal device in an RRC idle state (RRC idle) or an RRC inactive state (RRC inactive) may establish/restore an RRC connection with a network device through an RRC connection establishment/restoration procedure. At this time, the terminal device enters the RRC connected state.
After the terminal device establishes the RRC connection with the network device, the network device may establish at least one data 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 bearers are also called radio bearers, and each data bearer corresponds to one logical channel in the MAC layers of the terminal device and the network device. In order to establish the data bearers, the MAC layers of the terminal device and the network device need to establish corresponding logical channels for each data bearer to transmit service data of the corresponding data bearers.
In an embodiment, the terminal device may, in a case of starting to execute the target service (i.e., the terminal device opens a certain function, service, or application implementing the target service, and requests to establish a target data bearer of the target service), establish an RRC connection in the foregoing manner, and establish, with the network device, a target data bearer for transmitting service data of the target service. 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.
In another embodiment, after the terminal device establishes the RRC connection with the network device, when the terminal device starts to execute the target service, a bearer establishment request may be sent to the network device, so that the network device may establish a target data bearer for transmitting service data of the target service. 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.
It should be noted that, the terminal device and the network device may establish/recover the RRC connection through a conventional RRC connection establishment/recovery procedure, and establish a target data bearer of the target service through a conventional radio bearer establishment/modification procedure, which is not described in detail in this embodiment of the present application.
S600 b: the network equipment determines the transmission delay of the target service (namely the air interface transmission delay of the target service); and sending indication information to the terminal equipment, wherein the indication information is used for indicating the transmission delay of the target service. The terminal equipment receives the indication information from the network equipment 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, a network device may determine a transmission delay of the target service in the following manner:
the first method is as follows: the network device stores the transmission delay of multiple services, and the network device can determine the transmission delay of the target service requested to be executed by the terminal device in the transmission delay of the multiple services.
Optionally, the transmission delays 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 second method comprises the following steps: 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 subscription information of the terminal device stored in a core network device, or configured by the core network device according to the subscription information of the terminal device.
For example, the indication information may be an RRC message, where the RRC message carries a transmission delay of the target service. For another example, the indication information may be Downlink Control Information (DCI), where the DCI may include a first field carrying transmission delay of a target service; or the DCI includes a first indication bit, where the indication bit is used to indicate a transmission delay of a target service.
It should be further noted that S600b may be executed after S600a is executed, or executed during S600a, which is not limited in the present application.
The following describes, by taking the example that the terminal device performs MAC layer scheduling based on the token bucket mechanism in the uplink transmission process of the target service through S601-S607, the steps of the communication method provided in the present application are specifically described.
S601: after the first service data of the target service reaches the target logical channel of the terminal device, the terminal device determines the remaining data volume of the first service data and the first remaining transmission time of the first service data in the process of multiplexing the first service data to the target transmission channel.
The first service data is any service data of the target service, and the target transmission channel is a transmission channel corresponding to the target logical channel. The first remaining transmission time is a difference between a first target transmission time and a time period for transmitting the first service data, and the first target transmission time is determined according to the transmission delay of the target service. The remaining data amount of the first service data is a data amount of remaining data that has not been multiplexed to the target transmission channel in the first service data.
The duration of transmitting the first service data may be the sum of TTIs that the terminal device passes from the time when the first service data starts to be transmitted to the current time.
Illustratively, when the terminal device starts to transmit the first service data after the first service data reaches the target logical channel (at this time, the first service data is not multiplexed yet), the terminal device initializes a remaining data volume of the first service as a total data volume of the first service data, and initializes the first remaining transmission time as the first target transmission duration.
In this embodiment, in order to ensure that the transmission duration of the first service data meets the requirement of the transmission delay of the target service as much as possible, the terminal device may set that the first target transmission duration is less than or equal to the transmission delay of the target 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.
For example, when the first service data is the first service data of the target service, or when the first service data arrives, the previous service data is all multiplexed to the target transmission channel, or when the first service data arrives, 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.
For another example, in a case that 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 may continue to transmit the previous service data, and in this case, if the first service data arrives before all the previous service data is multiplexed to the target transmission channel, the terminal device may count the occupation time of the previous service data. When all the previous service data is multiplexed to the target transmission channel, the terminal device may set the first target transmission duration to be equal to a difference between the transmission delay of the target service and the occupied duration of the previous service data.
In this embodiment of the present application, the terminal device may determine, after determining/updating the first remaining transmission time of the first service data each time, whether the first remaining transmission time is greater than a determination threshold, where the determination threshold is used to determine whether the service data is overtime, and the determination threshold may be set by a user, or specified by a protocol, or configured by a network device, or configured by the terminal device leaving a factory, or default in the field; the value of the determination threshold is usually 0, but the present application does not limit the value of the determination threshold. The first residual transmission time is greater than the judgment threshold value, which indicates that the actual transmission time of the current first service data meets the transmission time delay requirement of the target service; and the first residual transmission time is less than or equal to the judgment threshold value, which indicates that the actual transmission time of the current first service data does not meet the transmission delay requirement of the target service. It should be further noted that, in the embodiments of the present application, the value of the determination threshold of the first remaining transmission time is not limited, all the embodiments of the present application take 0 as an example, and in other scenarios, the determination threshold may also be another set value.
The following describes steps S602 and S604 executed by the terminal device under the condition that the first remaining transmission time is greater than 0.
S602: and the terminal equipment determines the first PBR according to the residual data volume of the first service data and the first residual transmission time.
The first PBR represents an increase rate of tokens in the token bucket corresponding to the target logical channel, that is, an increase rate of the number of tokens (hereinafter referred to as a first variable) corresponding to the target logical channel. Therefore, in the case where the first PBR is expressed by an increased data amount per unit time, the first PBR is the remaining data amount of the first traffic data/the first remaining transmission time; when the first PBR is represented by the number of tokens increasing per unit time and one token is used to transmit data of a set data amount (e.g., 1Byte, 2Byte, 1bit, etc.), the first PBR is (remaining data amount of the first traffic data/set data amount)/first remaining transmission time.
Illustratively, when the first service data is not 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 first target transmission time length, so that the first PBR is the total data volume of the first service data/the first target transmission time length, or the first PBR is (the total data volume of the first service data/the set data volume)/the first target transmission time length.
S603: and the terminal equipment increases the value of the token number (namely a first variable) corresponding to the target logical channel according to the first PBR. That is, the terminal device increases the first variable by the first PBR x T in each token increment time interval T. The terminal device may multiplex the remaining data of the first service data to the target transmission channel at the first transmission time according to the value of the first variable.
And at the first transmission moment, the value of the first variable is greater than 0.
Since the first service data may be carried in a plurality of RLC SDUs, in the process that 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, RLC SDU segmentation needs to be avoided as much as possible.
In this embodiment of the application, at each transmission time, a process of multiplexing, by the terminal device, the service data to the target transport channel according to the value of the first variable is the same as the multiplexing process in the conventional token mechanism, so that reference may be made to the process shown in fig. 3, or to specific descriptions about the multiplexing process in the examples shown in fig. 7 or fig. 8 (for example, the description in S704 in the example shown in fig. 7, and the descriptions in A3 and a4 in the example shown in fig. 8), which are not described herein again.
In summary, when multiplexing the target transport channel by a plurality of logical channels including the target logical channel, the following principle needs to be satisfied:
1. at each transmission moment, for all the logic channels with the token number larger than 0, the terminal equipment multiplexes the data in each logic channel to a target transmission channel according to the token number of each logic channel in sequence from high to low in the priority of the logic channel;
2. after each transmission time, for each logical channel, subtracting the corresponding token number from the token number according to the total size of the data multiplexed to the target transmission channel in the previous step;
3. after the above steps are completed, if the target transport channel has remaining free resources, the terminal device continues to multiplex the data in the logical channel to the remaining resources of the target transport channel according to the descending order of the logical channel priority, and the process does not consume the token number of the logical channel.
In addition, in the resource allocation process, in order to reduce the overhead caused by RLC SDU segmentation as much as possible, the following principles also need to be observed:
1. if the whole RLC SDU can be transmitted in the idle resource of the MAC PDU of the target transmission channel, the RLC SDU is not segmented;
2. if the terminal device segments a certain RLC SDU, the length of the segment should be maximized according to the idle resource amount of the MAC PDU;
3. the terminal device should transmit as much data as possible, i.e. multiplex as much data in logical channels as possible in the MAC PDU.
Through this S603, the terminal device may multiplex the remaining data of the first service data to the target transmission channel, and may further transmit the first service data to the base station through the physical channel.
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 third principle of multiplexing the target transport channel, the total size of the first service data is only the total size of the first service data multiplexed to the target transport channel according to the value of the first variable. When idle resources exist in the target transmission channel, the first service data is continuously multiplexed to the target transmission channel according to the priority of the target logic channel, and the value of the first variable does not need to be reduced.
When the transmission of the set data amount of data is continued for each token, in S604, the decrement of the first variable is the total size/set data amount of the first traffic data, that is, the first variable is the first variable — the decrement of the first variable (the total size/set data amount of the first traffic data).
Through S602-S604, the terminal device may dynamically determine the first PBR of the target logical channel according to the remaining data amount and the remaining transmission time of the first service data, so as to increase the value of the first variable according to the first PBR, and thus, the remaining data of the first service data may be multiplexed to the target transmission channel at the first transmission time according to the value of the first variable, thereby implementing transmission of the first service data.
As shown in fig. 6A, in S603, in the case that the terminal device multiplexes a part of the remaining data of the first service data to the target transport channel (i.e., the first service data is not fully multiplexed to the target transport channel), after S604, the terminal device continues to perform S601, so that it can continue to pass through S602-S604 so as to dynamically update the first PBR, and continue to multiplex the remaining data of the first service data to the target transport channel according to the dynamically updated first PBR.
Wherein, when the terminal device continues to execute S601, the method includes:
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 transport channel in S603; and updating the first remaining transmission time according to the time consumed by multiplexing the part of data to the target transmission channel.
It should be noted that, if idle resources exist in the target transmission channel after 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 in S603, the terminal device continues to multiplex the remaining data of the first service data to the target transmission channel according to the priority of the target logical channel. In this case, the terminal device may update the remaining data amount of the first traffic data according to the total size of the partial data multiplexed to the target transport channel in S603 and the data amount of the first traffic data continuously multiplexed to the target transport channel.
Wherein updating the first remaining transmission time according to the time consumed for multiplexing the part of data to the target transmission channel comprises:
and the terminal equipment updates the first residual transmission time according to the TTI corresponding to the first transmission time. I.e. the first remaining transmission time is updated to the first remaining transmission time minus the TTI.
The following describes steps performed by the terminal device under the condition that the first remaining transmission time is less than or equal to 0. As shown in fig. 6A, the embodiment of the present application provides two schemes.
The first scheme comprises the following steps:
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.
Because the first service data is not completely transmitted in the transmission delay of the target service, the target service does not need the residual data of the first service data under some conditions, and therefore, through the scheme, the terminal device does not multiplex the residual data of the first service data to the target transmission channel, so that the next service data can be continuously multiplexed to the target transmission channel by using the vacant resources.
For example, in a video service of a terminal device, a certain frame of image is not completely transmitted to a network device within a set transmission delay, and at this time, the processing/display time of the frame of image has elapsed, and processing/display is no longer needed, and even if the frame of image is continuously transmitted, the user experience cannot be improved. Therefore, in order to avoid resource waste and avoid affecting the transmission delay of the image of the next frame, the remaining data in the image of the frame can be discarded.
It should be noted that, in a scenario where the terminal device adopts scheme one, when the first remaining transmission time of the first service data is greater than 0, the next service data (denoted as the second service data) of the first service data reaches the target logical channel, and then the terminal device needs to continue multiplexing 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 is not completely transmitted, the terminal equipment discards the remaining data of the first service data, and starts to multiplex the second service data to a target transmission channel through the following steps:
initializing the remaining data volume of the second service data to be the total data volume of the second service data, and initializing the second remaining transmission time of the second service data to be a second target transmission time length; wherein, the second target transmission duration may be equal to the transmission delay of the target service;
and determining a second PBR corresponding to the target service according to the residual data volume of the second service data and the second residual transmission time.
Then, 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.
In short, the terminal device may refer to S601-S607, dynamically update the second PBR according to the remaining data amount of the second service data and the second remaining transmission time, and multiplex the second service data to the target transmission channel according to the dynamically updated second PBR, which is not described herein again.
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 the terminal device multiplexes all the first service data to the target transmission channel and then the second service data arrives at the target logical channel, the terminal device also needs to adopt the above steps to initialize the remaining data amount of the second service data and the second remaining transmission time, and determine the second PBR based on the remaining data amount of the second service data and the second remaining transmission time, and so on, and the specific process is not described herein again.
Scheme II:
s606: the terminal equipment increases the value of a first variable according to the first PBR calculated at the last time; and multiplexing the residual data of the first service data to a target transmission channel at the second transmission moment according to the value of the first variable.
Since the first remaining transmission time is less than or equal to 0, the terminal device cannot dynamically calculate the first PBR any more, and therefore, the terminal device may select the first PBR calculated last before to continue to increase the value of the first variable.
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 further use a PBR statically configured by the network device, and increase a value of the first variable, which is not limited in this application.
S607: and after the second transmission moment, the terminal equipment 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 moment.
In this scheme, according to the value of the first variable, the terminal device multiplexes the remaining data of the first service data to the target transmission channel, and the process of reducing the value of the first variable may refer to the description in S603-S604, which is not described herein again.
As shown, in the case that the first remaining transmission time is less than or equal to 0, the terminal device may perform S606-S607 in a loop to continue multiplexing the remaining data of the first traffic data to the target transmission channel.
In the second scheme, since the actual transmission duration of the first service data does not meet the requirement of the transmission delay of the target service, in order to avoid affecting the transmission of the next service data (hereinafter referred to as the second service data), the embodiment of the present application provides an occupied duration deduction mechanism.
In the mechanism, if the second service data arrives before the first service data is all multiplexed to the target transmission channel, the terminal device counts the occupied time of the first service data. When the first service data is all 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 may be set to be equal to the difference between the transmission delay of the target service and the occupation duration of the first service data.
The following description is given of the timing manner of the occupied duration based on the difference of the arrival time of the second service data:
the first method is as follows: determining that second traffic data of the target traffic arrives at the target logical channel before the first remaining transmission time is less than or equal to 0. In this case, when the first remaining transmission time is less than or equal to 0, the terminal device starts to time the occupied duration.
The second method comprises the following steps: and after the first residual transmission time is less than or equal to 0 and before the first service data is all multiplexed to the target transmission channel, determining that second service data of the target service reaches the target logical channel. In this case, when the second service data arrives, the terminal device starts to time the occupied time length.
When the first service data are all multiplexed to the target transmission channel, the terminal equipment stops timing the occupied time; and starting to multiplex the second service data to the target transmission channel by the following steps:
initializing the remaining data volume of the second service data to be the total data volume of the second service data, and initializing the second remaining transmission time of the second service data to be a second target transmission time length; wherein the second target transmission duration is a difference between the transmission delay of the target service and the occupied duration;
and determining a second PBR corresponding to the target service according to the residual data volume of the second service data and the second residual transmission time.
Then, similar to S603-S604, the terminal device may increase a 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.
In short, the terminal device may refer to S601-S607, dynamically update the second PBR according to the remaining data amount of the second service data and the second remaining transmission time, and multiplex the second service data to the target transmission channel according to the dynamically updated second PBR, which is not described herein again.
In a scenario where the terminal device employs scheme two, if the second service data reaches the target logical channel after the first service data is all multiplexed to the target transmission channel, the terminal device 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 to be the total data volume of the second service data, and initializing the second remaining transmission time of the second service data to be a second target transmission time length; wherein, the second target transmission duration may be equal to the transmission delay of the target service;
and determining a second PBR corresponding to the target service according to the residual data volume of the second service data and the second residual transmission time.
Then, 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.
Finally, it should be understood that the above terminal device executing the MAC layer scheduling process may be specifically executed by the MAC layer of the terminal device, or executed by other protocol layers, which is not limited in this application.
The embodiment of the application provides a communication method, in the method, a terminal device can dynamically determine a PBR corresponding to a target service according to the residual data volume and the residual transmission time of service data of the target service, so as to transmit the service data according to the PBR; the remaining transmission time is a difference between a target transmission time length determined according to the transmission delay of the target service and a time length for transmitting the service data. Since the PBR of the target service is dynamically changed according to the requirement of the transmission rate of the service data, as shown in fig. 6B, the method can improve the probability of transmitting all service data within the transmission delay of the specified target service as much as possible, compared with the PBR static allocation manner. In a word, the method can ensure the transmission delay of the service data of the terminal equipment and improve the user experience of the service.
The embodiment of the present application provides another communication method, which may be applied to a downlink direction in a mobile communication system including a terminal device and a network device (i.e., the network device sends service data to the terminal device). In the method, after the network device establishes the wireless connection with the terminal device, the transmission delay of the target service is determined, and specific procedures may refer to descriptions in S600a and S600b in fig. 6A, and are not described herein again.
Then, the MAC layer of the network device may dynamically determine, according to the steps in S601-S607, the PBR corresponding to the target service according to the remaining data amount and the remaining transmission time of the first service data of the target service, so as to transmit the first service data according to the PBR; the remaining transmission time is a difference value between a target transmission time length determined according to the transmission delay of the target service and a time length for transmitting the first service data. This process may be described in detail with respect to the corresponding steps in the embodiment shown in fig. 6A, and will not be described further herein.
The embodiment of the application also provides another communication method which can be applied to a sidelink communication system consisting of a plurality of terminal devices. In the method, after two terminal devices establish sidelink connection, an MAC layer of a first terminal device (sending device) determines a transmission delay of a target service, and sends service data of the target service to a second terminal device (receiving device) by using steps in S601-S607, where a specific process may refer to specific description in the embodiment shown in fig. 6A and is not described herein again.
It should be noted that, the first terminal device may determine the transmission delay of the target service by, but is not limited to, the following manners:
the method I comprises the following steps: 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.
The second method comprises the following steps: when the transmission mode adopted by the sidelink system is mode2, the RRC layer or the PDCP layer of the first terminal device may determine that the transmission delay of the target service is later, and configure the transmission delay to the MAC layer of the first terminal device; or the first terminal device stores the transmission time delays of a plurality of services, and determines the transmission time delay of the target service after the target service is started; or the second terminal device sends indication information to the first terminal device, wherein the indication information is used for indicating the transmission delay of the target service.
Based on the embodiment shown in fig. 6A, the present application further provides an example of a communication method, where the example takes a mobile communication system including a terminal device and a base station as an example, and takes MAC layer scheduling performed by the terminal device in the process of transmitting XR service data to the base station as an example, and the description is made with reference to the flowchart shown in fig. 7.
S700: and after the base station establishes wireless connection with the terminal equipment, the base station distributes transmission time delay of the XR service for the terminal equipment.
Optionally, the base station may establish an RRC connection with the terminal device through the description in S600a in the embodiment shown in fig. 6A, and establish a data bearer for the XR service based on the RRC connection. In the process of establishing the data bearer, the MAC layers of the base station and the terminal device establish a target logical channel corresponding to the data bearer.
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 may 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: the MAC layer of the terminal device initializes a token number Bxr of a token bucket corresponding to a target logical channel, where the target logical channel is a logical channel corresponding to an XR service and is used to transmit service data of the XR service.
In this embodiment, token number Bxr of the token bucket corresponding to the target logical channel may also be referred to as token number Bxr corresponding to the target logical channel.
In this example, the token data Bxr corresponding to the target logical channel is initialized to 0, but it should be noted that the initial value of the number of tokens is not limited in this example, and may be another value.
S702: when one or more RLC SDUs carrying the Vth XR service data reach a MAC layer target logical channel of the terminal equipment (the Vth XR service data are not multiplexed yet), the MAC layer of the terminal equipment initializes the residual transmission time D of the Vth XR service data as the transmission delay of the XR service; and initializing the data volume Sv of the remaining data of the vth service data as the total data volume of the vth service data.
The vth service data may be any XR service data.
Each XR service data can be a frame image, a set frame image or a plurality of frame images; or a frame image, a set frame image, or a slice of a plurality of frame images, which is not limited in this application.
For example, the vth service data may be a vth frame image, or vth image slice.
The data volume carried by each RLC SDU carrying the V-th XR service data is determined by the terminal device, and this is not described in detail herein.
In addition, it should be further noted that the present example does not limit the format of the data packet carrying the XR service data, and the present example only takes the RLC SDU as an example, and in other communication systems or application scenarios, the data packet carrying the service data may also be a data packet in other formats.
In this example, the MAC layer of the terminal device may sequentially multiplex, according to a set sequence, a plurality of RLC SDUs carrying the vth service data into a target transport channel, where the target transport channel is a transport channel corresponding to the target logical channel.
S703: the MAC layer of the terminal equipment calculates the PBR of the target logical channel according to the data volume Sv of the residual data of the Vth XR service data and the residual transmission time D; and updating the token quantity Bxr of the token bucket corresponding to the target logical channel according to the PBR.
Since PBR represents the increasing speed of tokens in the token bucket, which can represent the transmission speed of XR traffic data, the increasing speed of tokens in the token bucket for the remaining time D can be determined with the data amount Sv of the remaining data of the vth-th XR traffic data and the remaining transmission time D known. Exemplarily, when PBR is expressed by an increased amount of data (e.g., a number of bits) per unit time, PBR ═ Sv/D; when PBR is expressed by the number of tokens increasing per unit time, PBR ═ Sv/q)/D, where each token is used to transmit data of a fixed data amount q. The unit time may be a standard time unit such as seconds (seconds) or milliseconds (milliseconds).
The following description will be given only by taking the example in which PBR is expressed as the number of tokens increased per unit time.
In S703, the MAC layer of the terminal device may update Bxr according to the PBR, i.e., in each token increment interval T, Bxr increments Bxr '(i.e., Bxr ═ Bxr + Bxr'). Where Bxr 'is the token increment in T time, i.e., the product of PBR and T, i.e., Bxr' ═ PBR × T. The token increment time interval T is an update period of Bxr, and a value thereof may be the same as or different from a transmission time interval TTI, which is not limited in the present application.
It should be noted that, when the RRC layer of the base station further configures a token bucket depth BSD (a threshold of the number of tokens used for indicating a token bucket) for the target logical channel of the terminal device, the MAC layer of the terminal device needs to ensure that Bxr is less than or equal to the threshold of the number of tokens indicated by the BSD in the process of updating Bxr according to the PBR.
S704: at each transmission moment, the MAC layer of the terminal device multiplexes target data with a data volume Z in the remaining data of the V-th XR service data into the MAC PDU according to the number Bxr of tokens in the current token bucket, the data volume K of the remaining data in the RLC SDU to be transmitted in the target logical channel, and the amount M of idle resources in the MAC PDU of the target transmission channel (i.e., the amount M of data that can be carried by the idle resources in the MAC PDU), and updates the token number Bxr of the token bucket according to the data volume Z of the target data.
The RLC SDU to be transmitted is as follows: and in the process of sequentially transmitting a plurality of RLC SDUs carrying the V-th XR service data by the MAC layer, the carried data are not transmitted into the RLC SDUs. Of course, the remaining data in the RLC SDU to be transmitted is included in the remaining data of the V-th XR service data.
The amount of idle resources M in a MAC PDU is the total amount of data that can be carried in the MAC PDU — the total amount of data that has been multiplexed into the MAC PDU.
At one transmission timing, when it is determined Bxr that it is greater than 0, the MAC layer of the terminal device can multiplex data of the data amount M into the MAC PDU at most. According to the difference between the data volume K of the remaining data in the RLC SDU to be transmitted and the size relationship between the idle resource volume M in the MAC PDU, the value of the data volume Z of the target data multiplexed this time is also different, which can be specifically classified into the following cases:
the first condition is as follows: and if the data volume K of the remaining data in the RLC SDU to be transmitted is larger than or equal to the idle resource volume M in the MAC PDU, the data volume Z of the target data is M, namely the target data is the data with the data volume M in the RLC SDU to be transmitted. In this case, the MAC layer may determine that N is Z/q, which is the number of tokens consumed by scheduling the target data this time, and may update the token number of the token bucket to Bxr, Bxr-N is Bxr-Z/q.
And a second condition: if the data amount K of the remaining data in the RLC SDU to be transmitted is less than the idle resource amount M in the MAC PDU, the MAC layer needs to further compare the data amount K of the remaining data in the RLC SDU to be transmitted with a total data amount L (L q Bxr) of data that can be transmitted by the token with the token number Bxr:
if K is larger than or equal to L, the MAC layer multiplexes all the RLC SDUs to be transmitted into the MAC PDU, namely the target data are all the rest data in the RLC SDUs to be transmitted. In this case, the MAC layer may determine that the target data amount Z is K, the number of consumed tokens N is Z/q, and may update the number of tokens of the token bucket to Bxr Bxr-N is Bxr-Z/q.
If K is less than L, the MAC layer may determine that the target data volume Z is K in multiplexing this time, multiplex all RLC SDUs to be transmitted into the MAC PDU, update the token number of the token bucket to Bxr to Bxr-Z/q, and update the idle resource volume M in the MAC PDU to M-K. Then, the MAC layer further needs to multiplex 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 data amount K of the remaining data in the updated RLC SDU to be transmitted needs to be continuously compared with the idle resource amount M in the updated MAC PDU, and part or all of the data in the updated RLC SDU to be transmitted is multiplexed into the MAC PDU according to the comparison result until any one of the following stop conditions is met:
all RLC SDUs in the target logic channel are multiplexed to the MAC PDU; token bucket has token data amount Bxr less than or equal to 0; there are no more idle resources in the MAC PDU (i.e., the amount of idle resources M in the MAC PDU is 0).
For example, it is assumed that RLC SDUs carrying the V-th XR service data in the target logical channel are RLC SDU0 and RLC SDU1, and the RLC SDU to be currently transmitted is RLC SDU 0. Then the data amount K of the remaining data in the RLC SDU0 is smaller than the amount of idle resources M in the MAC PDU, and K < the total data amount L (L — q × Bxr) of data that can be transmitted by the token of the current token number Bxr, the MAC layer multiplexes all the remaining data in the RLC SDU0 into the MAC SDU, updates the token number of the token bucket to Bxr — Bxr-K/q, and updates the amount of idle resources M in the MAC PDU to M — M. Then, taking the RLC SDU1 as a new RLC SDU to be transmitted (at this time, the data volume K of the remaining data in the RLC SDU to be transmitted is equal to the data volume of RLC SDU 1), and continuing to multiplex the data in the RLC SDU1 into the MAC SDU until the above-mentioned stop condition is met: if Bxr is >0 and K is < M, the MAC layer multiplexes all RLC SDUs 1 into the MAC PDU (since only one RLC SDU is left, the total data amount of data which can be transmitted by Bxr does not need to be considered, the token data amount of the token bucket is updated to Bxr-Bxr-K/q, if Bxr is >0 and K is larger than M, the MAC layer multiplexes data with the data amount of M in RLC SDU1 into the MAC PDU (at the moment, the MAC PDU is full, no idle resources exist any more), and the token data amount of the token bucket is updated to Bxr-Bxr-M/q.
It should be noted that since the MAC layer needs to avoid segmenting the RLC SDU as much as possible during multiplexing, the updated Bxr value may be smaller than 0. When 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 PBR × TTI tokens are added, the MAC layer does not multiplex the remaining data in the vth service data in the target logical channel until Bxr of the target logical channel is greater than 0.
It should be noted that, when multiplexing the target transport channel by a plurality of logical channels including the target logical channel, the RRC layer of the base station needs to configure the priorities of the plurality of logical channels. The priority parameter of any logical channel determines the order in which the logical channel multiplexes the target transport channel among a plurality of logical channels, i.e., RLC SDUs in logical channels with higher priorities are preferentially multiplexed into MAC PDUs.
Continuing with the example of fig. 3, assume that logical channel 2 is the target logical channel corresponding to the XR service, and B2 is Bxr. After the MAC layer of the terminal device multiplexes data in the 3 logical channels to the MAC PDU in sequence according to the parameters such as the number of tokens of each logical channel (i.e., the MAC layer performs the above S704 for the parameters such as the number of tokens of each logical channel), if the MAC PDU still has idle resources, the MAC layer of the terminal device may perform an additional multiplexing process, and continue to multiplex the remaining data in the logical channels to the MAC PDU in sequence according to the priorities of the logical channels. Referring to fig. 8, an additional multiplexing process includes:
1. the MAC layer of the terminal equipment multiplexes RLC SDU1-1 in logical channel 1, RLC SDU2-1 in logical channel 2 and RLC SDU3-1 in logical channel 3 to MAC PDU according to parameters such as token data amount of each logical channel. That is, the MAC layer performs the above-described S704 for parameters such as the number of tokens per logical channel, thereby multiplexing RLC SDU1-1 in logical channel 1, RLC SDU2-1 in logical channel 2, and RLC SDU3-1 in logical channel 3 to MAC PDUs, respectively.
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 in logical channel 1 (i.e., RLC SDU1-2) into the MAC PDU, as shown in fig. 8.
3. After step 2, since there is free resource (the amount of data that can be carried is X) in the MAC PDU, the MAC layer continues to multiplex the data with the amount of X in the remaining data (RLC SDU2-2 and RLC SDU2-3) in logical channel 2 (i.e., the target logical channel) to the MAC PDU. For example, when X is larger than the data amount of the total data in the RLC SDU2-2 and smaller than the data amount of the total data in the RLC SDU2-2 and the data amount of the total data in the RLC SDU2-3, the MAC layer multiplexes the total data in the RLC SDU2-2 and a part of the data in the RLC SDU2-2 into the MAC PDU.
It should be noted that after completing a round of multiplexing process for a plurality of logical channels according to the number of tokens, the number of tokens of the multiplexed logical channel will not be spent (consumed) because of the additional multiplexing process that the MAC PDU may still have free resources. Therefore, no matter whether the target logical channel has the additional multiplexing process or not, the number of tokens consumed for multiplexing the target data this time is equal to Z/q.
S705: after each transmission time, the MAC layer of the terminal device updates the data amount Sv of the remaining data of the V-th XR service data and the remaining transmission time D.
In one embodiment, in S705, after the MAC layer of the terminal device completes one round of multiplexing process for multiple logical channels according to parameters such as the number of tokens for each logical channel, the MAC PDU has no idle resources, or the idle resources of the MAC PDU are occupied by data of other logical channels with priority higher than that of the target logical channel, then in S705, the MAC layer multiplexes only target data with data amount 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 V-th XR service data to Sv-Z.
In another embodiment, in S705, after the MAC layer of the terminal device completes a round of multiplexing process on multiple logical channels according to parameters such as the number of tokens of each logical channel, idle resources still exist in the MAC PDU, and the MAC layer continues to perform an additional multiplexing process. And in the additional multiplexing process, the free resources are not filled with data with priority higher than that of the target logical channel, and the MAC layer continues to multiplex data with data quantity Z in the remaining data of the vth service data in the target logical channel into the MAC PDU, as shown in fig. 8. In this case, the MAC layer updates the data amount of the remaining data of the V-th XR service data to Sv ═ Sv- (Z + X).
In addition, the MAC layer updates the remaining transmission time D ═ D-TTI.
Through the step, the MAC layer can continuously 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 service data XR is less than or equal to 0, if yes, then S707 is executed; otherwise, according to the updated Sv and D in S705, S703 is continuously performed, so that the remaining data in the vth service data can be continuously multiplexed into the MAC PDU in the target transport channel.
In this example, the determination threshold of the remaining transmission time D is only set to 0 as an example, but the determination threshold is not limited thereto.
The transmission delay requirements of the XR service for each XR service data are the same, and when the remaining transmission time D of a certain XR service data is less than or equal to 0, it indicates that the transmission duration of the XR service data fails to meet the requirement of the XR service transmission delay, and at this time, if the XR service data continues to be transmitted, the transmission delay of the XR service data that arrives subsequently may continue to be affected. Therefore, in one embodiment in this example, in S706, when the MAC layer of the terminal device determines that the remaining transmission time D of the vth service data is less than or equal to 0, the remaining data of the vth service data in the target logical channel is discarded (i.e., all RLC SDUs carrying the remaining data in the vth service data are discarded in the target logical channel). In this way, the MAC layer does not multiplex the RLC SDU carrying the remaining data of the V-th XR service data, so that the RLC SDU carrying the next XR service data can be multiplexed to the target transmission channel.
As shown in fig. 7, S707 is a first possible implementation manner provided in the embodiment of the present application.
In the second embodiment, after the MAC layer of the terminal device determines that the remaining transmission time D of the vth service data is less than or equal to 0, the MAC layer of the terminal device may select to continue multiplexing the remaining data in the vth service data in the target logical channel. In this process, the MAC layer can continue to use the last PBR update Bxr calculated before, since the PBR cannot continue to be updated by the remaining transmission time D. Since the actual transmission duration of the vth service exceeds the transmission delay of the XR service, there may be a case where the remaining data of the vth service data is not transmitted and at least one RLC SDU carrying the V +1 th service data reaches the target logical channel. At this time, in order not to affect the transmission delay of the next XR service data (i.e., the V +1 th XR service data), the MAC layer may correspondingly deduct the occupation duration of the V th XR service data when initializing the remaining transmission time of the V +1 th XR service data.
For example, after determining that the remaining transmission time D of the V-th XR service data is less than or equal to 0, the MAC layer continues to use the last PBR update Bxr calculated before, and continues to multiplex the remaining data of the V-th XR service data to the MAC PDU at each transmission time through the embodiment described in S704; in the process of continuing to transmit the remaining data in the vth service data, after at least one RLC SDU carrying the V +1 th service data reaches the target logical channel, the MAC layer may time the occupation duration of the vth service data. When the transmission of the V-th XR service data is completed, the MAC layer stops timing the occupied time, and then transmits the V + 1-th XR service data through S702 to S707. In S702, the MAC layer initializes the remaining transmission time D of the new V +1 th XR service data to be the transmission delay-occupation duration of the XR service. The process of timing the occupied time period in the present embodiment is described in detail in the following S708.
S707: and the MAC layer of the terminal equipment discards the residual data of the V-th XR service data, namely, the RLC SDU carrying the residual data of the V-th service data in the target logical channel is discarded.
S708: after one or more RLC SDUs carrying V +1 XR service data reach the target logical channel, the MAC layer of the terminal device updates V to V +1, and repeatedly executes S702 to S707, so that the RLC SDUs carrying the new XR service data are continuously multiplexed into the MAC PDU through dynamic PBR.
It should be noted that this step may occur at any time during the transmission of the V-th XR service data, or after the transmission of the V-th XR service data is finished.
In the first embodiment, during the transmission of the V-th XR service data by the MAC layer of the terminal device, one or more RLC SDUs carrying V +1 XR service data reach the target logical channel, and then when the MAC layer determines that the V-th XR service data is overtime (i.e., the remaining transmission time D of the V-th XR service data is less than or equal to 0), the MAC layer may discard the RLC SDUs carrying the remaining data of the V-th service data, so as to transmit the V + 1-th XR service data as soon as possible. In this way, the transmission delay of each VR service data in the XR service can be ensured.
In the second embodiment, during the transmission of the V XR service data by the MAC layer of the terminal device, one or more RLC SDUs carrying V +1 XR service data reach the target logical channel, and when the MAC layer determines that the V XR service data is out of time (i.e. the remaining transmission time D of the V XR service data is less than or equal to 0), the MAC layer may continue to use the last PBR update Bxr calculated before, and reuse the remaining data in the V XR service data to the MAC PDU at each transmission time by using the embodiment described in S704. In this mode, the following two cases can occur:
if the V +1 th XR service data arrives before the V service data is overtime, the MAC layer starts to time the occupation duration of the V service data at the moment when the V service data is determined to be overtime, and stops timing the occupation duration when the V service data is transmitted.
If the V +1 th XR service data arrives after the V +1 th XR service data is overtime, the MAC layer starts to time the occupation duration of the V +1 th XR service data at the V +1 th service data arrival moment, and stops timing the occupation duration when the V +1 th XR service data is completely transmitted.
After the MAC layer finishes transmitting the V-th XR service data, the V + 1-th XR service data is transmitted through S702 to S707. In S702, the MAC layer initializes the remaining transmission time D of the new V +1 th XR service data, which is the transmission delay of the XR service — the occupied duration of the V th XR service data.
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 likely to time out. If the remaining transmission time D of the V +1 th XR service data is less than or equal to 0, and there is still remaining data that is not transmitted, the MAC layer may continue to occupy the transmission time of the V +2 th XR service data, as shown in the description in the second embodiment, which is not described herein again.
Based on the embodiment shown in fig. 6A and the example shown in fig. 7, the present application further provides another example of a communication method, and the example continues to take the mobile communication system as an example, and takes the example of performing MAC layer scheduling in the process of implementing XR service by the terminal device as an example, where the example includes the following steps:
taking fig. 8 as an example, there are 3 logical channels 1,2,3 existing in the MAC layer of the terminal device, and the priorities of the logical channels are sequentially decreased, that is, logical channel 1 is configured with the highest priority by the RRC layer of the base station, and logical channel 3 is configured with the lowest priority by the RRC layer of the base station, where XR traffic is transmitted on logical channel 2. In this example, the PBR of logical channel 1 or logical channel 2 can be allocated with static PBR for the RRC layer of the base station, i.e. the MAC layer multiplexes RLC SDUs in logical channel 1 and logical channel 2 in a conventional manner. The logical channel 2 is a target logical channel, and the PBR updates the token using the method described in fig. 6A or fig. 7 and a dynamic PBR.
This example takes XR service data as an example of one frame of image data. And take the example that each token is used to multiplex/transmit 1bit data, that is, q is 1 bit/token.
A1: after the base station establishes wireless connection with the terminal equipment, the base station distributes service time delay of XR service for the terminal equipment. And the terminal equipment determines that the transmission delay D of the XR service is 10ms according to the service delay of the XR service. The terminal device initializes an XR logical channel for transmitting the XR service, and initializes a number Bxr of tokens in a token bucket corresponding to the XR logical channel to 0.
In the mobile communication system, the transmission time interval (scheduling period, transmission period) TTI and the token increment time interval T of the terminal device are both 1ms, that is, T is TTI and 1 ms.
A2: when the RLC SDU carrying the V-th frame picture data reaches the XR logical channel, the MAC layer of the terminal device initializes a remaining transmission time D of the V-th frame picture data to 10ms, and initializes a data amount Sv of the remaining data of the V-th frame picture to 1Mbits, which is a total data amount of the V-th frame picture (i.e., a total data amount of the V-th frame picture data). The V-th frame image data is divided into 20 RLC SDUs, which are { SDU0, …, SDU19}, respectively, and SDU 0-SDU 1-SDU … -SDU 19-50 kbits. The MAC layer of the terminal device may determine the PBR of the XR logical channel based on Sv and D. The PBR is a dynamic PBR, which in this example is expressed in terms of an increasing amount of data per unit time. In this example, the dynamic PBR can be represented by Pxr, v, which can be Pxr, Sv/D100 Mbps, depending on Sv and D.
A3: the first TTI:
(1) at this time, the MAC layer of the terminal device updates the number Bxr of tokens in the token bucket corresponding to the XR logical channel according to the PBR, that is, Bxr ═ Bxr + Bxr ═ 100kbits, where Bxr ═ Pxr, and vxt ═ 100 kbits.
(2) And if the idle resource amount M of the MAC PDU is 327kbits at the transmission time, and the priority of the logical channel 1 is the highest, if the MAC layer multiplexes the data with the data amount B1 of 155kbits in the logical channel 1 into the MAC PDU at this time, the idle resource amount M of the MAC PDU is 327kbits-155kbits of 272 kbits.
(3) The MAC layer of the terminal device multiplexes the image data of the V-th frame in the logical channel 2 into the MAC PDU by using the embodiment described in S704 in the embodiment shown in fig. 7. In this scheduling, the amount of idle resources M of the MAC PDU is greater than Bxr and greater than RLC SDU0, so RLC SDU0 does not need to be segmented. At this time, data of RLC SDU0 is multiplexed into MAC PDU, and Bxr is updated to Bxr — 50kbits of data size in RLC SDU 0. Bxr >0 still remains at this time, and the amount of free resources M for the MAC PDU is greater than RLC SDU1, so RLC SDU1 also does not need to be segmented. When the MAC layer completes multiplexing of RLC SDU1 into MAC PDU, Bxr ═ Bxr — data size 50kbits ═ 0 in RLC SDU1, the MAC layer no longer multiplexes data in logical channel 2.
(4) Referring to fig. 8, after the multiplexing of the logical channels 1 and 2 is completed, the idle resource M of the MAC PDU is 327kbits-155kbits-100 kbits-172 kbits. Assuming that 50kbits of data in the logical channel 3 are 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 multiplexing will be performed again according to the logical channel priority order:
if the logical channel 1 has 60kbits of remaining data, multiplexing all the 60kbits of data into the MAC PDU, where the amount of idle resources M of the MAC PDU is 62kbits, and these idle resources can be used to multiplex data in the logical channel 2, that is, the MAC layer multiplexes all data of SDU2 and the first 12kbits of SDU3 in the logical channel 2 into the MAC PDU. Then, the MAC layer stops multiplexing all logical channels because the MAC PDU has no idle resources. SDU3 in logical channel 2 still has 38kbits to be transmitted.
(5) And after the scheduling, updating Sv of the MAC layer of the terminal equipment to 1Mbits-100kbits-62kbits to 838kbits, and updating D to 10ms-1ms to 9 ms.
(6) After the scheduling, the MAC layer of the terminal device updates the dynamic PBR, i.e., Pxr, Sv/D838 kbits/9ms 94 kbps.
A4: the second TTI:
(1) at this time, the MAC layer of the terminal device updates the number Bxr of tokens in the token bucket corresponding to the XR logical channel according to the new PBR, that is, Bxr ═ Bxr + Bxr ═ 94kbits, wherein, is rounded up. The calculation of Bxr 'is not limited in this application, and for example Bxr' may be calculated by rounding down.
(2) And the MAC layer of the terminal equipment determines that the idle resource quantity M in the MAC PDU is 234 kbits. Note that the MAC PDU involved in this step is not the same MAC PDU as the MAC PDU involved in step a 3. At this time, the MAC layer multiplexes the data volume of 147kbits in the logical channel 1 into the MAC PDU, and at this time, the idle resource volume M of the MAC PDU is 234kbits-147kbits 87 kbits.
(3) After the logical channel 1 completes multiplexing, at this time, the MAC PDU still has idle resources, so the MAC layer can perform multiplexing of the 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 image data of the vth frame in the logical channel 2 is multiplexed into the MAC PDU. In this call, the free resource amount M of the MAC PDU is greater than Bxr and greater than the remaining data amount 38kbits of the RLC SDU3, so 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 token number, at this time, Bxr-Bxr-MAC SDU3 with the remaining data amount 94kbits-38 kbits-56 kbits, and M-87-38 kbits-49kbits of the MAC PDU with the free resource amount M. Since Bxr >0 and the MAC PDU still has free resources, the MAC layer can continue to multiplex RLC SDU4 of logical channel 2 into the MAC PDU. And because RLC SDU4 >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 data of logical channel 3 into the MAC p PDU. After the scheduling, the token number Bxr of the logical channel 2 is 56kbits-49kbits is 7 kbits.
(4) And after the scheduling, no idle resource exists in the MAC PDU.
(5) And after the scheduling, updating Sv of the MAC layer of the terminal equipment to 838kbits-87 kbits-751 kbits, and updating D to 9ms-1 ms-8 ms.
(6) And after the scheduling, the MAC layer of the terminal equipment continuously updates the dynamic PBR, namely Pxr, and v is 751 kbits/D, 8ms is 94 kbits.
A5: in each subsequent TTI, the MAC layer of the terminal device may continue to multiplex the data in the logical channel into the MAC PDUs of the transport channel by repeating steps A3 or a 4.
A6: in the first embodiment, if the remaining transmission time D for updating the V-th frame image data by the MAC layer of the terminal device after a certain scheduling is less than or equal to 0, the data amount Sv of the remaining data in the V-th frame image data is >0, which indicates that the V-th frame image data is not transmitted within the transmission delay of the specified XR service. In order to ensure the transmission delay of the subsequent image frame, the MAC layer of the terminal device may discard the remaining data with the data volume Sv of the V-th image frame, so that when the RLC SDU carrying the V + 1-th image data reaches the XR logical channel, the MAC layer may schedule the RLC SDU carrying the V + 1-th image data as soon as possible.
In the second embodiment, if the remaining transmission time D for updating the V-th frame image data by the MAC layer of the terminal device after a certain scheduling is less than or equal to 0, and the data volume Sv of the remaining data of the V-th frame image data is greater than 0, the MAC layer of the terminal device may select to continue multiplexing the remaining data in the V-th frame image data, that is, continue to repeat step A3 or a 4; wherein in A3 and a4, the MAC layer does not update the PBR corresponding to the logical channel any more and uses the last PBR update Bxr calculated before.
A7: in the first embodiment, when the RLC SDU carrying the V +1 th frame image data reaches the XR logical channel, if the V th frame image data is not completely transmitted, the MAC layer of the terminal device may discard the remaining data of the V th frame image data when the remaining transmission time D of the V th frame image data is less than or equal to 0, that is, the first embodiment in a 6; and the MAC layer continuously repeats the steps A2-A6 for the RLC SDU carrying the V +1 frame image data, so that the V +1 frame image data is completely multiplexed into the MAC PDU as much as possible within the specified transmission delay of the XR service.
In the second embodiment, when the RLC SDU carrying the V +1 th frame image data reaches the XR logical channel, if the V th frame image data is not completely transmitted, the MAC layer of the terminal device may continue to repeat steps A3 or a4 to multiplex the remaining data in the V th frame image data. If after a certain scheduling, the MAC layer of the terminal device determines that the image data of the V-th frame is overtime, the image data of the V-th frame still has residual data and is not transmitted, and the MAC layer of the terminal device can select to continue multiplexing the residual data in the image data of the V-th frame, that is, continue to repeat the step A3 or a 4; where in A3 and a4, the MAC layer may use the last previously calculated PBR update Bxr. If the V +1 th frame of image data arrives before the V frame of image data is overtime, the MAC layer starts to time the occupation duration of the V frame of image data at the moment of determining the overtime of the V frame of image data. And if the V +1 frame image data arrives after the V frame image data is overtime, the MAC layer starts to time the occupation duration of the V frame image data at the V +1 frame image data arrival time. And when the V +1 frame image data is completely transmitted, stopping timing of the arrival time of the V +1 frame image data by the MAC layer, and executing the steps A2-A6 aiming at the RLC SDU carrying the V +1 frame image data. In step a2, the MAC layer initializes the remaining transmission time D of the V +1 th frame image data to 10ms — the occupation time of the V th frame image data.
It should be noted that the XR service is used as an example for the description of the present embodiment, however, the present embodiment does not limit the service applicable to the method provided in the present embodiment. In addition, the number of logical channels in the terminal device is plural, and the MAC layer of the terminal device may perform the above-described communication method on part or all of the plural 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 part or all of the logical channels, which is not limited in this application.
In addition, in the above example, the TTI is 1ms, but actually, the value of the TTI may be other time lengths, for example, 1.5ms, 2ms, and the like. And in the process of carrying out MAC layer scheduling, the time length of TTI can also be changed. For example, the TTI between the first transmission time and the second, adjacent transmission time is 1ms, and the TTI between the second transmission time and the third, adjacent transmission time is 1.5 ms.
Finally, it should be further noted that the communication method provided in this embodiment is suitable for initial transmission of service data, and retransmission of some service data may not be suitable due to different retransmission mechanisms of the service data.
In addition, in some scenarios, for example, in a 5G communication system, a logical channel may be associated with a transmission time, and at the transmission time, other logical channels may not be allowed to multiplex the transmission channel corresponding to the logical channel. For example, in a case where a plurality of logical channels of the communication apparatus can multiplex the same transport channel, the first transmission time is associated with the first logical channel, and then at the first transmission time, the MAC layer of the communication apparatus can multiplex only the traffic data in the first logical channel to the transport channel, and does not multiplex the traffic data in other logical channels to the transport channel. Although the embodiments and examples provided in the embodiments of the present application do not consider the association relationship between the logical channel and the transmission time, this does not constitute a limitation of the communication method provided in the embodiments of the present application.
Based on the same technical concept, the embodiment of the present application further provides a communication device, which may be applied in a 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 also be a terminal device in a sidelink communication system, which is not limited in this application. The communication device is capable of implementing 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.
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, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 9, but that does not indicate only one bus or one type of bus.
The transceiver 901 is used for receiving and transmitting signals to realize communication with other devices. The transceiver 901 may be connected to an antenna to enable signal transmission.
The processor 902 is configured to implement the communication method provided in the above embodiments or examples, and specific functions may refer to the description in the above embodiments, which are not described herein again.
The processor 902 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of the CPU and the NP. The processor 902 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof. When the above functions are implemented by the processor 902, the functions may be implemented by hardware, or may be implemented by hardware executing corresponding software.
A memory 903 for storing program instructions and the like. In particular, the program instructions may include program code comprising computer operational instructions. The memory 903 may include a Random Access Memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. 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 present application also provides a computer program, which when running on a computer, causes the computer to execute the method provided by the above embodiments.
Based on the above embodiments, the present application also provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a computer, the computer program causes the computer to execute the method provided by the above embodiments.
Storage media may be any available media that can be accessed by a computer. Take this as an example but not limiting: computer-readable media can include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
Based on the above embodiments, the embodiments of the present application further provide a chip, where the chip is used to read a computer program stored in a memory, and implement the method provided by the above embodiments.
Based on the foregoing embodiments, the present application provides a chip system, where the chip system includes a processor, and is used to support a computer device to implement the functions related to the communication device in the foregoing embodiments. In one possible design, the system-on-chip further includes a memory for storing programs and data necessary for the computer device. The chip system may be constituted by a chip, or may include a chip and other discrete devices.
In summary, the embodiments of the present application provide a communication method and device. In the method, the communication device can dynamically determine the PBR corresponding to the target service according to the residual data volume and the residual transmission time of the service data of the target service, so as to transmit the service data according to the PBR; the remaining transmission time is a difference between a target transmission time length determined according to the transmission delay of the target service and a time length for transmitting the service data. The PBR of the target service is dynamically changed according to the requirement of the transmission rate of the service data, so the method can improve the probability of transmitting all the 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 equipment and improve the user experience of the service.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or 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, and so forth) 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 application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the scope of the application. Thus, if such 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 intended to include such modifications and variations as well.
Claims (14)
1. A communication method is applied to terminal equipment and is characterized by comprising the following steps:
determining the residual data volume of first service data of a target service and the first residual transmission time of the first service data;
determining a first priority bit rate PBR corresponding to the target service according to the residual data volume and the first residual transmission time; wherein the first remaining transmission time is a difference between the first target transmission time and a time period for transmitting the first service data; the first target transmission duration is determined according to the transmission delay of the target service.
2. The method of claim 1, wherein the method further comprises:
and receiving indication information from network equipment, wherein the indication information is used for indicating the transmission delay of the target service.
3. The method of claim 1 or 2, wherein after determining the first PBR corresponding to the target service, the method further comprises:
increasing the value of a first variable according to the first PBR, wherein the first variable corresponds to a target logic channel; wherein, the target logic channel is a logic channel corresponding to the target service;
multiplexing the residual data of the first service data to a target transmission channel according to the value of the first variable; and the target transmission channel is a transmission channel corresponding to the target logical channel.
4. The method of claim 3, wherein after multiplexing the remaining data of the first traffic data to a target transmission channel, the method further comprises:
determining a total size of the first traffic data multiplexed to the target transport channel;
and reducing the value of the first variable according to the total size of the first service data multiplexed to the target transmission channel.
5. The method of claim 4, wherein multiplexing the remaining data of the first service data to a target transmission channel according to the value of the first variable comprises:
multiplexing part of data in the remaining data of the first service data to the target transmission channel according to the value of the first variable;
after multiplexing the remaining data of the first traffic data to a target transmission channel, the method further includes:
reducing the residual data volume of the first service data according to the total size of the partial data; and reducing the first remaining transmission time according to the time consumed by multiplexing the partial data to the target transmission channel;
and when the first residual transmission time is greater than 0, determining a second PBR corresponding to the target service according to the updated residual data volume of the first service data and the first residual transmission time.
6. The method of claim 5, wherein when the first remaining transmission time is less than or equal to 0, the method further comprises: and discarding the remaining data of the first service data.
7. The method of claim 5, wherein when the first remaining transmission time is less than or equal to 0, the method further comprises:
and increasing the value of the first variable according to the first PBR.
8. The method of claim 7, wherein the method further comprises:
determining that second service data of the target service arrives at the target logical channel before the first remaining transmission time is less than or equal to 0; when the first residual transmission time is less than or equal to 0, starting to time the occupied time length; or
After the first residual transmission time is less than or equal to 0 and before the first service data is all multiplexed to the target transmission channel, determining that second service data of the target service reaches the target logical channel; when the second service data arrives, starting to time the occupied time;
when the first service data are all multiplexed to the target transmission channel, stopping timing the occupied time length;
initializing the remaining data volume of the second service data to be the total data volume of the second service data, and initializing the second remaining transmission time of the second service data to be a second target transmission time length; wherein the second target transmission duration is a difference between the transmission delay of the target service and the occupied duration;
and determining a third PBR corresponding to the target service according to the residual data volume of the second service data and the second residual transmission time.
9. A communication method applied to a network device is characterized by comprising the following steps:
determining the transmission delay of a target service;
and sending indication information to terminal equipment, wherein the indication information is used for indicating the transmission delay of the target service.
10. A terminal device, comprising:
a transceiver for receiving and transmitting signals;
a memory for storing program instructions and data;
a processor for reading program instructions and data in the memory, implementing the method of any one of claims 1-8 by the transceiver.
11. A network device, comprising:
a transceiver for receiving and transmitting signals;
a memory for storing program instructions and data;
a processor for reading program instructions and data in the memory, implementing the method of claim 9 by the transceiver.
12. A communication system, comprising:
a terminal device according to claim 10, and a network device according to claim 11.
13. A computer-readable storage medium, in which a computer program is stored which, when run on a computer, causes the computer to carry out the method of any one of claims 1 to 9.
14. A chip, wherein the chip is coupled to a memory, wherein the chip reads a computer program stored in the memory and executes the method of any one of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2022/078991 WO2022188686A1 (en) | 2021-03-08 | 2022-03-03 | Communication method and device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110250199 | 2021-03-08 | ||
CN2021102501993 | 2021-03-08 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115038126A true CN115038126A (en) | 2022-09-09 |
Family
ID=83118501
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110655744.7A Pending CN115038126A (en) | 2021-03-08 | 2021-06-11 | Communication method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115038126A (en) |
WO (1) | WO2022188686A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023098799A1 (en) * | 2021-12-03 | 2023-06-08 | 维沃移动通信有限公司 | Information transmission method and apparatus, terminal, and network side device |
WO2024092619A1 (en) * | 2022-11-03 | 2024-05-10 | 富士通株式会社 | Method and apparatus for reporting delay information |
CN118283800A (en) * | 2022-12-29 | 2024-07-02 | 荣耀终端有限公司 | Time delay information management method and related device |
WO2024152327A1 (en) * | 2023-01-19 | 2024-07-25 | 上海移远通信技术股份有限公司 | Method and apparatus for communication |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8638815B2 (en) * | 2010-01-08 | 2014-01-28 | Blackberry Limited | Method and apparatus for logical channel prioritization for uplink carrier aggregation |
CN110167066B (en) * | 2018-02-14 | 2022-09-02 | 华为技术有限公司 | Data transmission method and device |
CN110324902B (en) * | 2018-03-30 | 2023-06-27 | 华为技术有限公司 | Communication method, communication device and communication system |
CN110636554B (en) * | 2019-09-17 | 2021-06-29 | 华为技术有限公司 | Data transmission method and device |
-
2021
- 2021-06-11 CN CN202110655744.7A patent/CN115038126A/en active Pending
-
2022
- 2022-03-03 WO PCT/CN2022/078991 patent/WO2022188686A1/en active Application Filing
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023098799A1 (en) * | 2021-12-03 | 2023-06-08 | 维沃移动通信有限公司 | Information transmission method and apparatus, terminal, and network side device |
WO2024092619A1 (en) * | 2022-11-03 | 2024-05-10 | 富士通株式会社 | Method and apparatus for reporting delay information |
CN118283800A (en) * | 2022-12-29 | 2024-07-02 | 荣耀终端有限公司 | Time delay information management method and related device |
WO2024139382A1 (en) * | 2022-12-29 | 2024-07-04 | 荣耀终端有限公司 | Delay information management method and related apparatus |
WO2024152327A1 (en) * | 2023-01-19 | 2024-07-25 | 上海移远通信技术股份有限公司 | Method and apparatus for communication |
Also Published As
Publication number | Publication date |
---|---|
WO2022188686A1 (en) | 2022-09-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022188686A1 (en) | Communication method and device | |
CN109863801B (en) | Uplink data scheduling system and method for license-free transmission | |
WO2016082220A1 (en) | Method and device for transmitting multiple video streams | |
CN108667573B (en) | Data processing method and device and related equipment | |
WO2024169506A1 (en) | Communication method and device | |
KR20210065098A (en) | Communication device, infrastructure equipment and methods | |
CN116965044A (en) | Media data transmission method and communication device | |
CN117527154A (en) | Improved data packet transmission efficiency | |
EP4260624B1 (en) | Method and apparatus for use in a data pulling operation | |
WO2022151492A1 (en) | Scheduling transmission method and apparatus | |
CN115699969A (en) | Method and apparatus for small data transmission | |
EP4366440A1 (en) | Method of logical channel prioritization and device thereof | |
US20240284241A1 (en) | Data burst volume indication for tsc | |
CN113507726B (en) | Data transmission method and device in separated bearing mode and terminal equipment | |
CN110831211B (en) | Data uploading method and device, storage medium and user terminal | |
EP4346273A1 (en) | Data transmission method and apparatus, device, and storage medium | |
CN111385883B (en) | Data transmission method and device, storage medium and terminal | |
WO2024073878A1 (en) | Wireless communication devices and integrated scheduling methods for xr service | |
EP4274354A1 (en) | Method, apparatus and computer program | |
EP4340314A1 (en) | Data transmission method and apparatus, device, and storage medium | |
CN118509137A (en) | Method and device for sending uplink control information | |
CN116602038A (en) | Scheduling transmission method and device | |
CN116867000A (en) | Data transmission method and communication device | |
CN116156576A (en) | Quality of service (QoS) management method and device | |
CN117998649A (en) | Communication method and related equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |