Flow control method, electronic device, and computer readable medium
By setting thresholds in the 5GNR communication system and performing message flow control, the problem of cache overflow of PDCP layer and RLC layer is solved, which stabilizes the system performance and avoids system instability.
Patent Information
- Application Number
- PCT/CN2023/136283
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-25
- Filing Date
- 2023-12-05
- Publication Date
- 2024-11-28
AI Technical Summary
In the 5GNR communication system, when the cache modes of the PDCP layer and the RLC layer are inconsistent or the air interface bandwidth is insufficient, the packets are discarded in the PDCP layer and the RLC layer, resulting in system instability and flow velocity jitter.
By setting thresholds in the RLC cache and PDCP retransmission cache, we can determine whether the number of messages to be sent exceeds the threshold. If it exceeds, the message will be discarded to avoid cache overflow; after processing the messages in the PDCP layer, it will be sent to the RLC layer. Ensure message flow control to prevent cache accumulation.
It effectively reduces cache overflow and accumulation, stabilizes inlet and outlet traffic, avoids system instability, and improves the overall performance of the communication system.
Smart Images

Figure CN2023136283_28112024_PF_FP_ABST
Abstract
Description
Flow control method, electronic device, and computer-readable medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application CN 202310601091.3, entitled “Flow Control Method, Electronic Device, Computer-Readable Medium,” filed on May 25, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] 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
[0004] The 5GNR air interface protocol consists of two sides and three layers. The two sides include the control plane and the user plane. The control plane is mainly used to complete the control of radio access bearer, while the user plane is mainly used to complete the transmission of user data; the three layers include the physical layer (PHY) (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 is then 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.
[0005] When the UE or base station acts as the transmitter, there are two levels of cache in the user plane: the PDCP retransmission buffer (PDCP_RETRAN) at the PDCP layer and the RLC buffer (RLC_BUFF) at the RLC layer. As shown in Figure 1, both levels of cache may overflow, causing data packets to be discarded at the PDCP layer or RLC layer, resulting in system instability.
[0006] Summary of the Invention
[0007] Embodiments of the present application provide a flow control method, an electronic device, and a computer-readable medium.
[0008] 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 an 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 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; and caching the second message in the RLC cache at the RLC layer.
[0009] An embodiment of the present application provides an electronic device, comprising: at least one processor; a memory, wherein at least one computer program is stored in the memory, and when the at least one computer program is executed by the at least one processor, the at least one processor implements a flow control method according to an embodiment of the present application.
[0010] An embodiment of the present application provides a computer-readable medium having a computer program stored thereon. When the computer program is executed by a processor, the processor implements the flow control method according to the embodiment of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] FIG1 is a schematic diagram of a two-level cache in the related art;
[0012] FIG2 is a schematic diagram of data transmission interaction in the RLC AM mode according to an embodiment of the present application;
[0013] FIG3 is a flow chart of a flow control method according to an embodiment of the present application;
[0014] FIG4 is a schematic diagram of message flow in an example according to an embodiment of the present application;
[0015] FIG5 is another flow chart of a flow control method according to an embodiment of the present application;
[0016] FIG6 is a block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0017] 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 in the present application are described in detail below with reference to the accompanying drawings.
[0018] Hereinafter, example embodiments will be described more fully 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. These examples are provided so that this application will be thorough and complete and will fully enable those skilled in the art to understand the scope of this application.
[0019] In the absence of conflict, the various embodiments of the present application and the various features therein may be combined with each other.
[0020] As used herein, the term "and / or" includes any and all combinations of at least one of the associated listed items.
[0021] The terms used herein are used only to describe specific embodiments and are not intended to limit this 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 group thereof is not excluded.
[0022] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those skilled 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 expressly defined as such herein.
[0023] When user data increases, if the buffering modes configured for the PDCP and RLC layers are inconsistent—for example, if the PDCP layer's buffering mode is configured to 18 bits and the RLC layer's buffering mode is configured to 12 bits—then the larger PDCP layer will send a large amount of user data to the smaller RLC layer. If the air interface bandwidth of the communication system cannot meet user needs, the RLC layer will be unable to accommodate the large number of messages sent from the PDCP layer, and the excess messages will be discarded by the RLC layer.
[0024] 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 packets will be discarded at the RLC layer.
[0025] Currently, most 5GNR service models use the RLC Acknowledgement Mode (AM), which requires that each message sent by the transmitter receive a status report acknowledgment packet (ACK) from the receiver to ensure that the message sent by the transmitter has been successfully received by the other end. Otherwise, the transmitter will retransmit the message, as shown in Figure 2. If the air interface quality is poor and the message sent by the transmitter cannot reach the receiver, the transmitter will receive a status report negative acknowledgment packet (NACK) from the receiver in reply. As a result, the messages in the PDCP retransmission buffer at the transmitter cannot be released due to the need for retransmission, and thus accumulate in the PDCP retransmission buffer. When the PDCP retransmission buffer is full, message congestion will occur, and the excess messages will be discarded at the PDCP layer.
[0026] 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.
[0027] FIG3 is a flow chart of a flow control method according to an embodiment of the present application.
[0028] 3 , an embodiment of the present application provides a flow control method, which can be applied to a UE or a base station. The method includes the following steps 300 to 302 .
[0029] In step 300, a first message is received and the number of to-be-sent messages in the RLC buffer is determined.
[0030] 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. In other words, the first message is a message before entering the SDAP layer.
[0031] 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 processed by the SDAP layer and before entering the PDCP layer.
[0032] In some exemplary embodiments, the number of packets to be sent in the RLC buffer may be obtained from the RLC layer.
[0033] In step 301, it is determined 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, the first message is sent to the PDCP layer.
[0034] 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.
[0035] 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.
[0036] In some exemplary embodiments, the method further includes: discarding the first message when the number of to-be-sent messages in the RLC buffer is greater than or equal to a first preset threshold.
[0037] In some exemplary embodiments, the first preset threshold is less than or equal to a quotient obtained by dividing the size of the RLC buffer by the size of each message.
[0038] 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. 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, 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.
[0039] In step 302, the PDCP layer buffers the first message into the PDCP retransmission buffer, and sends a second message obtained by processing the first message in the PDCP retransmission buffer to the RLC layer.
[0040] In some exemplary embodiments, after the PDCP layer caches the first message in the PDCP retransmission buffer, 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 immediately processed accordingly, but rather 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 PDCP layer caches the first message in the PDCP retransmission buffer, 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.
[0041] In some exemplary embodiments, before the PDCP layer caches the first message into the PDCP retransmission cache, the method further 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; and 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.
[0042] In some exemplary embodiments, the method further includes: discarding the first message at the PDCP layer when the message data in the PDCP retransmission buffer is greater than or equal to a second preset threshold.
[0043] In some exemplary embodiments, the second preset threshold is less than or equal to a quotient obtained by dividing the size of the PDCP retransmission buffer by the size of each message.
[0044] In an embodiment of the present application, whether a large number of messages are accumulated and not released in the PDCP retransmission cache is determined 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, no new messages can be received; if the air interface quality is good, the PDCP retransmission cache will be updated in a timely manner to achieve the purpose of speed limiting.
[0045] 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.
[0046] In step 303, the second message is buffered in the RLC buffer at the RLC layer.
[0047] In some exemplary embodiments, after the RLC 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; sending a deletion indication for the first message to the PDCP layer at the RLC layer when the RLC layer receives a status report confirmation packet for the second message; and deleting the first message in the PDCP retransmission cache at the PDCP layer.
[0048] In some exemplary embodiments, after the RLC 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; when 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 sending the second message obtained after re-processing the first message in the PDCP retransmission cache to the RLC layer at the PDCP layer.
[0049] In some exemplary embodiments, after the RLC layer sends the second message in the RLC buffer through the air interface, the method further includes: deleting the second message from the RLC buffer at the RLC layer.
[0050] In some exemplary embodiments, sending the second message in the RLC cache through the air interface at the RLC layer includes: sending a third message obtained by correspondingly processing the second message in the RLC cache to the MAC layer at the RLC layer, sending a fourth message obtained by correspondingly processing the third message to the PHY layer at the MAC layer, and sending the fourth message through the air interface at the PHY layer.
[0051] According to the flow control method provided in the embodiment of the present application, before the message enters the PDCP layer, it is determined 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 number of messages to be sent in the RLC cache is less than the first preset threshold value, the message is allowed to enter the PDCP layer. The flow control of the traffic entering the PDCP layer is performed based on the number of messages to be sent in the RLC cache, thereby reducing the possibility of cache overflow in the RLC cache, making the egress and ingress traffic stable, and ensuring the stability of the system.
[0052] 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 traffic in 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 traffic, and ensuring the stability of the system.
[0053] In some exemplary embodiments, after the second message obtained after processing the 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. This avoids message blocking in the PDCP retransmission cache due to poor air interface quality, further stabilizes the egress and ingress traffic, and ensures the stability of the system.
[0054] In order to better describe the specific implementation process of the flow control method of the embodiment of the present application, an example is given below for detailed explanation. The example given is not used to limit the protection scope of the embodiment of the present application.
[0055] As shown in FIG4 , 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.
[0056] As shown in FIG5 , the flow control method includes the following steps 500 to 515 .
[0057] In step 500 , with respect to 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.
[0058] In step 501, the first flow control module obtains the number of to-be-sent messages in the RLC buffer from the RLC layer.
[0059] 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, step 503 is executed; if the number of messages to be sent in the RLC cache is less than the first preset threshold, step 504 is executed.
[0060] In step 503, the first flow control module discards the first message.
[0061] In step 504, the first flow control module sends the first message to the second flow control module in the PDCP layer.
[0062] In 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; if the number of messages in the PDCP retransmission buffer is greater than or equal to the second preset threshold, step 506 is executed; if the number of messages in the PDCP retransmission buffer is less than the second preset threshold, step 507 is executed.
[0063] In step 506, the second flow control module in the PDCP layer discards the first message.
[0064] In step 507, the second flow control module in the PDCP layer buffers the first message into the PDCP retransmission buffer.
[0065] In 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.
[0066] In step 509, the second message is buffered in the RLC buffer at the RLC layer.
[0067] In step 510, the RLC layer processes the second message in the RLC cache to obtain a third message, which is sent to the MAC layer. The MAC layer processes the third message to obtain a fourth message, which is sent to the PHY layer. The PHY layer sends the fourth message through the air interface.
[0068] In step 511, a status report confirmation packet for the fourth message is received at the PHY layer through the air interface.
[0069] In step 512, the PHY layer processes the status report confirmation packet for the fourth message, thereby obtaining a status report confirmation packet for the third message and sends it to the MAC layer.
[0070] In step 513, the MAC layer processes the status report confirmation packet for the third message, thereby obtaining a status report confirmation packet for the second message and sends it to the RLC layer.
[0071] In step 514, the RLC layer sends a deletion indication for the first message to the PDCP layer.
[0072] In step 515, the first message in the PDCP retransmission buffer is deleted at the PDCP layer.
[0073] 6 , another embodiment of the present application provides an electronic device, comprising: at least one processor 601; a memory 602, wherein the memory 602 stores at least one computer program. When the at least one computer program is executed by the at least one processor 601, the at least one processor 601 implements the flow control method according to each embodiment of the present application.
[0074] 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 exchange between the processor 601 and the memory 602 .
[0075] 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), and 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 exchange between the processor 601 and the memory 602, including but not limited to a data bus (Bus), etc.
[0076] 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.
[0077] Another embodiment of the present application provides a computer-readable medium having a computer program stored thereon. When the computer program is executed by a processor, the processor implements the flow control method according to each embodiment of the present application.
[0078] 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 is well 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 includes, but is 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 tape, 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, as is well known to those skilled in the art, communication media typically embodies 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.
[0079] 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 purposes of limitation. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly indicated, 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, it will be understood by those skilled in the art 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 to-be-sent messages in the RLC buffer is greater than or equal to a first preset threshold, and if the number of to-be-sent messages 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, wherein: Before the PDCP layer caches the first message in a PDCP retransmission buffer, the method further includes: 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, a step of caching the first message in the PDCP retransmission buffer at the PDCP layer is performed.
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, wherein: After sending a second message obtained by processing the first message in the PDCP retransmission buffer to the RLC layer, the method further includes: the PDCP layer does not delete the first message from the PDCP retransmission buffer.
5. The flow control method according to claim 4, wherein: After the RLC layer caches the second message in the RLC cache, the method further includes: 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 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, wherein: After the RLC layer caches the second message in the RLC cache, the method further includes: 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, wherein: After the RLC layer sends the second message in the RLC buffer through the air interface, the method further includes: 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 7, 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 having at least one computer program stored therein, wherein when the at least one computer program is executed by the at least one processor, the at least one processor The device implements the flow control method described in any one of claims 1 to 8.
10. A computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor implements the flow control method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Method and device for improving LTE-based TCP downward data transmission rate
CN107343296A
Data caching method and related device
CN112399471A
Method and apparatus for flow control between RLC and PDCP in a communication
US20110188377A1
Determining data available for transmission
US20180352556A1
Methods and apparatus for efficient packet transmission
WO2021134106A2
