Flow control method, electronic equipment and computer readable medium
By judging the number of messages to be sent in the RLC cache in the 5GNR communication system, the traffic of messages entering the PDCP layer is controlled, the cache overflow problem is solved, and the stable traffic management of the system is realized.
Patent Information
- Application Number
- CN202310601091.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-25
- Publication Date
- 2024-11-26
AI Technical Summary
In 5GNR communication systems, cache overflows of RLC and PDCP layers lead to data packets being discarded, causing system instability, especially in the case of insufficient air interface bandwidth and inconsistent cache mode.
Before the packet enters the PDCP layer, determine whether the number of messages to be sent in the RLC cache is greater than or equal to the preset threshold. If it is less than the threshold, the packet is allowed to enter the PDCP layer, perform traffic control, reduce the possibility of cache overflow, and PDCP retransmission cache processes packets to avoid accumulation.
It effectively reduces the risk of overflow of RLC and PDCP caches, stabilizes inlet and outlet traffic, ensures the stability of the system, and prevents message blockage and flow velocity jitter caused by poor air interface quality.
Smart Images

Figure CN119031407A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a flow control method, an electronic device, and a computer-readable medium. Background Art
[0002] The 5GNR air interface protocol includes two planes and three layers. The two planes are the control plane and the user plane. The control plane is mainly used to complete the control of the wireless access bearer, while the user plane is mainly used to complete the transmission of user data; the three layers are the physical layer (L1), the data link layer (L2), and the network layer (L3). Among them, L2 includes the service data adaptation protocol (SDAP, Service Data Adaptation Protocol) layer, the packet data convergence protocol (PDCP, Packet Data Convergence Protocol) layer, the radio link control protocol (RLC, Radio Link Control) layer and the media range control (MAC, Media Access Control) layer; L3 includes the transmission control protocol (TCP, Transmission Control Protocol) / Internet Protocol (IP, Internet Protocol) layer or the user datagram protocol (UDP, User Datagram Protocol) / IP layer. Taking the above behavior as an example, the transmission of the user plane data flow passes through the SDAP layer, PDCP layer, RLC layer, MAC layer, and PHY layer of the user equipment (UE), and then is sent to the PHY layer of the base station through the air interface, and then passes through the MAC layer, RLC layer, PDCP layer, and SDAP layer of the base station.
[0003] When the UE or base station acts as the transmitting end, there are two levels of cache in the user plane, namely the PDCP retransmission cache of the PDCP layer and the RLC cache of the RLC layer, such as Figure 1 As shown, the two levels of cache may overflow, causing data packets to be discarded at the PDCP layer or the RLC layer, resulting in system instability. Summary of the invention
[0004] Embodiments of the present application provide a flow control method, an electronic device, and a computer-readable medium.
[0005] In the first aspect, an embodiment of the present application provides a flow control method, including: receiving a first message, determining the number of messages to be sent in a radio link control protocol RLC cache; judging whether the number of messages to be sent in the RLC cache is greater than or equal to a first preset threshold; sending the first message to a packet data convergence protocol PDCP layer if the number of messages to be sent in the RLC cache is less than the first preset threshold; caching the first message in a PDCP retransmission cache at the PDCP layer, and sending a second message obtained after processing the first message in the PDCP retransmission cache to the RLC layer; caching the second message in the RLC cache at the RLC layer.
[0006] In a second aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor; a memory, wherein at least one program is stored in the memory, and when the at least one program is executed by the at least one processor, any one of the above-mentioned flow control methods is implemented.
[0007] In a third aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, and when the computer program is executed by a processor, any one of the above-mentioned flow control methods is implemented.
[0008] The flow control method provided in the embodiment of the present application determines whether the number of messages to be sent in the RLC cache is greater than or equal to a first preset threshold before the message enters the PDCP layer. If the number of messages to be sent in the RLC cache is less than the first preset threshold, the message is allowed to enter the PDCP layer. The flow control is performed on the flow entering the PDCP layer based on the number of messages to be sent in the RLC cache, thereby reducing the possibility of cache overflow in the RLC cache, stabilizing the egress and ingress flows, and ensuring the stability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 A schematic diagram of a two-level cache in the related art;
[0010] Figure 2 This is a schematic diagram of data transmission interaction in RLC AM mode in an embodiment of the present application;
[0011] Figure 3 A flow chart of a flow control method provided by one embodiment of the present application;
[0012] Figure 4 This is a schematic diagram of message flow in an example of an embodiment of the present application;
[0013] Figure 5 A flow chart of a flow control method provided for an example of an embodiment of the present application;
[0014] Figure 6 A block diagram of the composition of an electronic device provided in accordance with another embodiment of the present application. DETAILED DESCRIPTION
[0015] In order to enable those skilled in the art to better understand the technical solution of the present application, the flow control method, electronic device, and computer-readable medium provided by the present application are described in detail below in conjunction with the accompanying drawings.
[0016] Example embodiments will be described more fully below with reference to the accompanying drawings, but the example embodiments may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. On the contrary, the purpose of providing these embodiments is to make this application thorough and complete and to enable those skilled in the art to fully understand the scope of this application.
[0017] In the absence of conflict, the embodiments of the present application and the features therein may be combined with each other.
[0018] As used herein, the term "and / or" includes any and all combinations of at least one of the associated listed items.
[0019] The terms used herein are only used to describe specific embodiments and are not intended to limit the present application. As used herein, the singular forms "a", "an" and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "comprising" and / or "made of" are used in this specification, the presence of the features, wholes, steps, operations, elements and / or components is specified, but the presence or addition of at least one other feature, whole, step, operation, element, component and / or its group is not excluded.
[0020] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this application, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined herein.
[0021] In the case of increasing user data, if the cache modes configured in the PDCP layer and the RLC layer are inconsistent, for example, the cache mode of the PDCP layer is configured as 18-bit mode and the cache mode of the RLC layer is configured as 12-bit mode, then the PDCP layer with a larger capacity can send a large amount of user data to the RLC layer with a smaller capacity. If the air interface bandwidth of the communication system cannot meet user needs, the RLC layer cannot accommodate a large number of messages sent from the PDCP layer, and the excess messages will be discarded at the RLC layer.
[0022] If the cache modes configured at the PDCP layer and the RLC layer are consistent, and the air interface bandwidth of the communication system cannot meet user needs, user data will eventually be blocked in the RLC cache waiting for scheduling. Because the system memory is limited and the RLC cache length is limited, it is impossible to cache message data indefinitely. If the RLC cache is full, the excess data messages will be discarded at the RLC layer.
[0023] At present, most of the service models of 5GNR use the RLC confirmation (AM, Acknowledge Mode) mode, which requires that each message sent by the sender needs to receive the status report confirmation packet (ACK, Acknowledgement) fed back by the receiver to ensure that the message sent by the sender has been successfully received by the other end, otherwise the sender will retransmit the message, such as Figure 2 As shown in the figure, if the air interface quality is poor and the message sent by the sender cannot reach the receiver, the receiver will receive a status report non-confirmation packet (NACK, Negative Acknowledgement) in reply. In this way, the messages in the PDCP retransmission buffer of the sender cannot be released because they need to be retransmitted, and thus accumulate in the PDCP retransmission buffer. When the PDCP retransmission buffer is full, it will cause message blocking, and the excess messages will be discarded at the PDCP layer.
[0024] The above-mentioned message being discarded at the PDCP layer and the RLC layer will cause serious jitter in the communication system flow rate, resulting in system instability.
[0025] Figure 3 A flow chart of a flow control method provided for one embodiment of the present application.
[0026] First, refer to Figure 1 The embodiment of the present application provides a flow control method, which can be applied to a user equipment (UE) or a base station, and includes:
[0027] Step 300: receiving a first message, and determining the number of to-be-sent messages in the RLC buffer.
[0028] In some exemplary embodiments, the first message may be received before the SDAP layer, and the number of messages to be sent in the RLC buffer may be determined. That is, the first message is a message before entering the SDAP layer.
[0029] In some exemplary embodiments, the first message may be received after the SDAP layer and before the PDCP layer, and the number of messages to be sent in the RLC buffer may be determined. In other words, the first message is a message after being processed by the SDAP layer and before entering the PDCP layer.
[0030] In some exemplary embodiments, the number of to-be-sent messages in the RLC buffer may be obtained from the RLC layer.
[0031] Step 301, determine whether the number of messages to be sent in the RLC cache is greater than or equal to a first preset threshold; when the number of messages to be sent in the RLC cache is less than the first preset threshold, send a first message to the PDCP layer.
[0032] In some exemplary embodiments, when the first message is received before the SDAP layer and the number of messages to be sent in the RLC cache is determined, the first message is sent to the PDCP layer through the SDAP layer, that is, the first message is sent to the SDAP layer, and then sent to the PDCP layer after corresponding processing by the SDAP layer.
[0033] In some exemplary embodiments, when the first message is received after the SDAP layer and before the PDCP layer, and the number of to-be-sent messages in the RLC buffer is determined, the first message is directly sent to the PDCP layer.
[0034] In some exemplary embodiments, the method further includes: when the number of to-be-sent messages in the RLC buffer is greater than or equal to a first preset threshold, discarding the first message.
[0035] In some exemplary embodiments, the first preset threshold is less than or equal to the size of the RLC buffer.
[0036] In an embodiment of the present application, whether the RLC cache has reached a critical value is determined by judging whether the number of messages to be sent in the RLC cache is greater than or equal to a first preset threshold value. If the RLC cache reaches the critical value, new data can no longer be received until some or all of the messages to be sent are sent from the air interface; if the RLC cache does not reach the critical value, the message will be allowed to enter the system again, and the number of messages to be sent in the RLC cache is used to match the inlet flow rate and the outlet flow rate to achieve the purpose of speed limiting.
[0037] Step 302: Buffer the first message in the PDCP retransmission buffer at the PDCP layer, and send a second message obtained by processing the first message in the PDCP retransmission buffer to the RLC layer.
[0038] In some exemplary embodiments, after the first message is cached in the PDCP retransmission buffer at the PDCP layer, the message in the PDCP retransmission buffer is processed accordingly according to the scheduling. This does not mean that after the first message is cached in the PDCP retransmission buffer, the first message in the PDCP retransmission buffer is processed accordingly immediately, but that the first message in the PDCP retransmission buffer is processed accordingly only when the first message in the PDCP retransmission buffer is scheduled. After the first message is cached in the PDCP retransmission buffer at the PDCP layer, the messages in the PDCP retransmission buffer can be scheduled in sequence according to the scheduling order until the first message is scheduled, and then the first message is processed accordingly.
[0039] In some exemplary embodiments, before the PDCP layer caches the first message into the PDCP retransmission cache, the method also includes: determining at the PDCP layer whether the number of messages in the PDCP retransmission cache is greater than or equal to a second preset threshold; if the number of messages in the PDCP retransmission cache is less than the second preset threshold, continuing to execute the step of caching the first message into the PDCP retransmission cache at the PDCP layer.
[0040] In some exemplary embodiments, the method further includes: when the message data in the PDCP retransmission buffer is greater than or equal to a second preset threshold, discarding the first message at the PDCP layer.
[0041] In some exemplary embodiments, the second preset threshold is less than or equal to the size of the PDCP retransmission buffer.
[0042] In an embodiment of the present application, it is determined whether a large number of messages are accumulated and not released in the PDCP retransmission cache by judging whether the number of messages in the PDCP retransmission cache is greater than or equal to a second preset threshold value. If a large number of messages are accumulated and not released in the PDCP retransmission cache, new messages can no longer be received; if the air interface quality is good, the PDCP retransmission cache is updated in a timely manner to achieve the purpose of speed limiting.
[0043] In some exemplary embodiments, after sending the second message obtained by processing the first message in the PDCP retransmission buffer to the RLC layer, the method further includes: not deleting the first message from the PDCP retransmission buffer at the PDCP layer.
[0044] Step 303: Buffer the second message into the RLC buffer at the RLC layer.
[0045] In some exemplary embodiments, after the RLC layer caches the second message in the RLC cache, the method also includes: sending the second message in the RLC cache through the air interface at the RLC layer; when a status report confirmation packet or a status report non-confirmation packet for the second message is received at the RLC layer, sending a deletion indication for the first message to the PDCP layer at the RLC layer; and deleting the first message in the PDCP retransmission cache at the PDCP layer.
[0046] In some exemplary embodiments, after the PDCP layer caches the second message in the RLC cache, the method further includes: sending the second message in the RLC cache through the air interface at the RLC layer; in a case where the RLC layer receives a status report non-confirmation packet for the second message, sending a retransmission indication for the first message to the PDCP layer at the RLC layer; and re-sending the second message obtained after re-processing the first message in the PDCP retransmission cache to the RLC layer at the PDCP layer.
[0047] In some exemplary embodiments, after the RLC layer sends the second message in the RLC cache through the air interface, the method further includes: deleting the second message from the RLC cache at the RLC layer.
[0048] In some exemplary embodiments, when the RLC layer sends a second message in the RLC cache through the air interface, the RLC layer sends a third message obtained by correspondingly processing the second message in the RLC cache to the MAC layer, the MAC layer sends a fourth message obtained by correspondingly processing the third message to the PHY layer, and the PHY layer sends the fourth message through the air interface.
[0049] The flow control method provided in the embodiment of the present application determines whether the number of messages to be sent in the RLC cache is greater than or equal to a first preset threshold before the message enters the PDCP layer. If the number of messages to be sent in the RLC cache is less than the first preset threshold, the message is allowed to enter the PDCP layer. The flow control is performed on the flow entering the PDCP layer based on the number of messages to be sent in the RLC cache, thereby reducing the possibility of cache overflow in the RLC cache, stabilizing the egress and ingress flows, and ensuring the stability of the system.
[0050] In some exemplary embodiments, it is determined in the PDCP layer whether the number of messages in the PDCP retransmission cache is greater than or equal to a second preset threshold; the first message is cached in the PDCP retransmission cache only when the number of messages in the PDCP retransmission cache is less than the second preset threshold, and flow control is performed on the PDCP layer based on the number of messages in the PDCP retransmission cache, thereby reducing the possibility of cache overflow in the PDCP retransmission cache, further stabilizing the egress and ingress flows and ensuring the stability of the system.
[0051] In some exemplary embodiments, after a second message obtained after processing a first message in the PDCP retransmission cache is sent to the RLC layer, the first message is not deleted from the PDCP retransmission cache. Instead, the first message is deleted from the PDCP retransmission cache when the PDCP layer receives a deletion instruction for the first message sent by the RLC layer, thereby avoiding message blocking in the PDCP retransmission cache due to poor air interface quality, further stabilizing the egress and ingress traffic, and ensuring the stability of the system.
[0052] In order to better describe the specific implementation process of the flow control method of the embodiment of the present application, an example is listed below for detailed explanation. The listed example is not used to limit the protection scope of the embodiment of the present application.
[0053] Example
[0054] like Figure 4 As shown, a first flow control module is set between the SDAP layer and the PDCP layer, and a second flow control module is set in the PDCP layer.
[0055] like Figure 5 As shown, the flow control method includes:
[0056] Step 500: For a first message output from the SDAP layer after being processed by the SDAP layer, the first message is sent to a first flow control module at the SDAP layer.
[0057] Step 501: The first flow control module obtains the number of messages to be sent in the RLC buffer from the RLC layer.
[0058] In step 502, the first flow control module determines whether the number of messages to be sent in the RLC cache is greater than or equal to the first preset threshold; if the number of messages to be sent in the RLC cache is greater than or equal to the first preset threshold, execute step 503; if the number of messages to be sent in the RLC cache is less than the first preset threshold, execute step 504.
[0059] Step 503: The first flow control module discards the first message.
[0060] Step 504: The first flow control module sends the first message to the second flow control module in the PDCP layer.
[0061] Step 505, the second flow control module in the PDCP layer determines whether the number of messages in the PDCP retransmission buffer is greater than or equal to the second preset threshold; when the number of messages in the PDCP retransmission buffer is greater than or equal to the second preset threshold, execute step 506; when the number of messages in the PDCP retransmission buffer is less than the second preset threshold, execute step 507.
[0062] Step 506: The second flow control module in the PDCP layer discards the first message.
[0063] Step 507: The second flow control module in the PDCP layer buffers the first message into the PDCP retransmission buffer.
[0064] Step 508: The PDCP layer sends a second message obtained by processing the first message in the PDCP retransmission buffer to the RLC layer, and the PDCP layer does not delete the first message from the PDCP retransmission buffer.
[0065] Step 509: Buffer the second message into the RLC buffer at the RLC layer.
[0066] Step 510, the RLC layer sends a third message obtained by correspondingly processing the second message in the RLC cache to the MAC layer, the MAC layer sends a fourth message obtained by correspondingly processing the third message to the PHY layer, and the PHY layer sends the fourth message through the air interface.
[0067] Step 511: Receive a status report confirmation packet for the fourth message through the air interface at the PHY layer.
[0068] Step 512: The PHY layer sends the status report confirmation packet for the third message obtained by performing corresponding processing on the status report confirmation packet for the fourth message to the MAC layer.
[0069] Step 513: The MAC layer sends the status report confirmation packet for the second message obtained by performing corresponding processing on the status report confirmation packet for the third message to the RLC layer.
[0070] Step 514: The RLC layer sends a deletion indication for the first message to the PDCP layer.
[0071] Step 515: Delete the first message in the PDCP retransmission buffer at the PDCP layer.
[0072] Second, refer to Figure 6 Another embodiment of the present application provides an electronic device, including: at least one processor 601; a memory 602, wherein at least one program is stored in the memory 602, and when the at least one program is executed by the at least one processor 601, any one of the above-mentioned flow control methods is implemented.
[0073] In some exemplary embodiments, the electronic device further includes: one or more I / O interfaces 603 connected between the processor 601 and the memory 602 , and configured to implement information interaction between the processor 601 and the memory 602 .
[0074] Among them, the processor 601 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 602 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I / O interface (read-write interface) 603 is connected between the processor 601 and the memory 602, and can realize information interaction between the processor 601 and the memory 602, including but not limited to a data bus (Bus), etc.
[0075] In some embodiments, the processor 601 , the memory 602 , and the I / O interface 603 are connected to each other via a bus 604 , and further connected to other components of the computing device.
[0076] In a third aspect, another embodiment of the present application provides a computer-readable medium having a computer program stored thereon, wherein the computer program implements any one of the above-mentioned flow control methods when executed by a processor.
[0077] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0078] Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for limiting purposes. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly noted, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, those skilled in the art will appreciate that various changes in form and detail may be made without departing from the scope of the present application as set forth in the appended claims.
Claims
1. A flow control method, comprising: After receiving the first message, determining the number of messages to be sent in a radio link control protocol RLC buffer; Determine whether the number of messages to be sent in the RLC buffer is greater than or equal to a first preset threshold; if the number of messages to be sent in the RLC buffer is less than the first preset threshold, send the first message to a packet data convergence protocol PDCP layer; Buffering the first message in a PDCP retransmission buffer at the PDCP layer, and sending a second message obtained by processing the first message in the PDCP retransmission buffer to the RLC layer; The second message is cached in the RLC cache at the RLC layer.
2. The flow control method according to claim 1, before the PDCP layer caches the first message in a PDCP retransmission buffer, the method further comprises: Determining, at the PDCP layer, whether the number of messages in the PDCP retransmission buffer is greater than or equal to a second preset threshold; When the number of messages in the PDCP retransmission buffer is less than the second preset threshold, continue to execute the step of caching the first message in the PDCP retransmission buffer at the PDCP layer.
3. The flow control method according to claim 2, further comprising: When the message data in the PDCP retransmission buffer is greater than or equal to the second preset threshold, the first message is discarded at the PDCP layer.
4. The flow control method according to claim 1, after sending the second message obtained by processing the first message in the PDCP retransmission buffer to the RLC layer, the method further comprises: The first message is not deleted from the PDCP retransmission buffer at the PDCP layer.
5. The flow control method according to claim 4, after the RLC layer caches the second message in the RLC cache, the method further comprises: Sending, at the RLC layer, the second message in the RLC buffer through an air interface; When the RLC layer receives a status report confirmation packet ACK or a status report non-confirmation packet NACK for the second message, the RLC layer sends a deletion indication for the first message to the PDCP layer; The first message in the PDCP retransmission buffer is deleted at the PDCP layer.
6. The flow control method according to claim 4, after the RLC layer caches the second message in the RLC cache, the method further comprises: Sending, at the RLC layer, the second message in the RLC buffer through an air interface; When the RLC layer receives a status report non-acknowledgement packet NACK for the second message, the RLC layer sends a retransmission indication for the first message to the PDCP layer; The PDCP layer re-processes the first message in the PDCP retransmission buffer and obtains a second message, which is then sent to the RLC layer.
7. The flow control method according to claim 5 or 6, after the RLC layer sends the second message in the RLC buffer through an air interface, the method further comprises: The second message is deleted from the RLC cache at the RLC layer.
8. The flow control method according to any one of claims 1 to 4, further comprising: When the number of the to-be-sent messages in the RLC buffer is greater than or equal to the first preset threshold, the first message is discarded.
9. An electronic device, comprising: at least one processor; A memory, wherein at least one program is stored in the memory, and when the at least one program is executed by the at least one processor, the flow control method according to any one of claims 1 to 8 is implemented.
10. A computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the flow control method according to any one of claims 1 to 8.
Citation Information
Cited By
Flow control initialization method and apparatus
WO2026138743A1
