A millimeter wave base station RLC layer data transmission method and device
By setting up multiple cyclic buffers in parallel cache data packets in the millimeter wave base station RLC layer, and copying the data packets at one time when allocating transmission blocks in the MAC layer, the problem of excessive data copying is solved, and data transmission efficiency and service stability are improved.
Patent Information
- Application Number
- CN202011410650.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-03
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2040-12-03
AI Technical Summary
In the 5G millimeter wave communication system, the base station RLC layer copies data packets to the transmission block too many times, resulting in low data transmission efficiency and failure to complete data multiplexing within the time limit, affecting service transmission.
By setting a plurality of pre-set cyclic buffers in the millimeter wave base station RLC layer, PDCP packets are cached in parallel, and when the MAC layer allocates the transmission block, the target cyclic buffer is determined from the multiple cyclic buffers, and multiple PDCP packets are copied to the transmission block at one time.
It reduces the number of data copies, reduces time consumption, improves the RLC layer data transmission efficiency, and ensures the integrity of data transmission and service stability.
Smart Images

Figure CN114666830B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a millimeter wave base station RLC layer data transmission method and device. Background Art
[0002] In 5G millimeter wave communication systems, due to the larger transmission bandwidth, shorter time slot length and the use of large-scale wireless technology, the peak transmission speed of a single base station has reached the order of 20G bps. In order to achieve such a high transmission rate, the size of the transmission block allocated by the base station MAC (Medium Access Control) layer to the terminal at a time has been greatly increased to more than 100,000 bytes, while the data multiplexing time has to be shortened to less than 0.125ms, which requires the data processing speed of the base station and the terminal to be greatly improved than before.
[0003] The traditional data processing flow of a base station is that the RLC (Radio Link Control) layer stores the data packet into a cache queue every time it receives a PDCP (Packet Data Convergence Protocol) data packet. Then the RLC layer reports the total number of bytes of data in the current cache to the MAC layer. The MAC layer allocates resources according to the requested number of bytes and determines the size of the transmission block allocated by scheduling. Then the RLC multiplexes data according to the size of the transmission block, adds a subheader to each cached PDCP data packet and copies it to the memory of the transmission block in sequence. A transmission block may contain multiple PDCP packets or packet segments, and each packet needs to be copied once. When the transmission block is very large, a large number of data packets need to be copied to the same transmission block to fill the entire transmission block. In this way, the number of data copies will be greatly increased, which consumes more time. The data multiplexing process is time-limited in the base station processing process. If the specified processing time is exceeded, an incomplete transmission block will be transmitted, so that the allocated resources cannot be fully utilized, the rate is reduced, and it may also cause the receiving end to receive erroneous data, affecting service transmission. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a millimeter wave base station RLC layer data transmission method and device to reduce the number of times the RLC layer copies data packets to transmission blocks and improve the RLC layer data transmission efficiency.
[0005] The specific technical solutions are as follows:
[0006] To achieve the above object, an embodiment of the present invention provides a millimeter wave base station RLC layer data transmission method, which is applied to the radio link control RLC layer. The method includes:
[0007] Receiving PDCP data packets of each radio bearer sent by a packet data convergence protocol PDCP layer;
[0008] For the received PDCP data packets, a packet header is added according to the radio bearer to which the PDCP data packets belong, and the PDCP data packets with the added packet header are cached in parallel in a plurality of pre-set circular buffers;
[0009] In response to the media access control MAC layer allocating a transmission block, a target circular buffer is determined from the multiple circular buffers, and multiple PDCP data packets are obtained from the target circular buffer and copied to the transmission block, wherein the data volume of the obtained PDCP data packets is less than or equal to the capacity of the transmission block.
[0010] Optionally, storing the PDCP data packet with the added header in parallel in a plurality of pre-set circular buffers includes:
[0011] According to the preset correspondence between the radio bearer and the circular buffer, the PDCP data packet with the added header is stored in the circular buffer corresponding to the radio bearer to which the PDCP data packet belongs.
[0012] Optionally, storing the PDCP data packet with the added header in parallel in a plurality of pre-set circular buffers includes:
[0013] The PDCP data packet with the added header is stored in the circular buffer currently in the primary selection state, wherein when the PDCP data packets cached in the circular buffer in the primary selection state reaches a maximum capacity, the primary selection state of the circular buffer is transferred to another circular buffer.
[0014] Optionally, also include:
[0015] If the remaining capacity of the circular buffer currently in the primary selected state is insufficient to store the first PDCP data packet, the first PDCP data packet is stored in the circular buffer in the secondary selected state.
[0016] Optionally, also include:
[0017] If the storage amount of the PDCP data packets in the circular buffer currently in the primary selection state reaches a preset threshold, a transport block request is sent to the MAC layer, where the transport block request is used to instruct the MAC layer to allocate a transport block.
[0018] Optionally, determining a target circular buffer from the multiple circular buffers includes:
[0019] A circular buffer with the largest storage capacity of PDCP data packets is determined as the target circular buffer.
[0020] Optionally, the number of pre-set circular buffers is 2.
[0021] To achieve the above object, an embodiment of the present invention further provides a millimeter wave base station RLC layer data transmission device, which is applied to the radio link control RLC layer, and the device includes:
[0022] A receiving module, used for receiving PDCP data packets of each radio bearer sent by a packet data convergence protocol PDCP layer;
[0023] A cache module, used for adding a packet header to a received PDCP packet according to a radio bearer to which the PDCP packet belongs, and caching the PDCP packet with the added packet header in parallel into a plurality of pre-set circular buffers;
[0024] A copy module is used to determine a target circular buffer from the multiple circular buffers in response to the media access control MAC layer allocating a transmission block, and obtain multiple PDCP data packets from the target circular buffer and copy them to the transmission block, wherein the data volume of the obtained PDCP data packets is less than or equal to the capacity of the transmission block.
[0025] Optionally, the cache module is specifically used to:
[0026] The PDCP data packet with the added header is stored in the circular buffer currently in the primary selection state, wherein when the PDCP data packets cached in the circular buffer in the primary selection state reaches a maximum capacity, the primary selection state of the circular buffer is transferred to another circular buffer.
[0027] To achieve the above object, an embodiment of the present invention further provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0028] Memory, used to store computer programs;
[0029] The processor is used to implement any of the above method steps when executing the program stored in the memory.
[0030] To achieve the above objectives, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the above method steps is implemented.
[0031] Beneficial effects of the embodiments of the present invention:
[0032] The millimeter wave base station RLC layer data transmission method and device provided by the embodiment of the present invention receives the PDCP data packets of each wireless bearer sent by the PDCP layer; for the received PDCP data packets, a packet header is added according to the wireless bearer to which the PDCP data packet belongs, and is stored in parallel in multiple pre-set circular buffers according to the preset cache rules; in response to the MAC layer allocating a transmission block, a target circular buffer is determined from multiple circular buffers, and multiple data packets are obtained from the target circular buffer and copied to the transmission block, wherein the data volume of the obtained data packets is less than or equal to the capacity of the transmission block. It can be seen that by setting multiple circular buffers, PDCP data packets of multiple wireless bearers can be cached in parallel, which optimizes the storage of PDCP data packets. In addition, after the MAC layer allocates the transmission block, more PDCP data packets in the circular buffer can be copied to the transmission block at one time, which can greatly reduce the number of data copies, thereby reducing time consumption and improving the data transmission efficiency of the RLC layer.
[0033] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0035] Figure 1 A schematic diagram of a flow chart of a millimeter wave base station RLC layer data transmission method provided by an embodiment of the present invention;
[0036] Figure 2 Another schematic diagram of a flow chart of a millimeter wave base station RLC layer data transmission method provided by an embodiment of the present invention;
[0037] FIG3(a) is a first schematic diagram of a millimeter wave base station RLC layer data transmission method provided in an embodiment of the present invention; FIG3(b) is a second schematic diagram of a millimeter wave base station RLC layer data transmission method provided in an embodiment of the present invention; FIG3(c) is a third schematic diagram of a millimeter wave base station RLC layer data transmission method provided in an embodiment of the present invention;
[0038] Figure 4 A schematic diagram of the structure of a millimeter wave base station RLC layer data transmission device provided by an embodiment of the present invention;
[0039] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In the embodiments of the present invention, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0041] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0043] The technical solution provided in the embodiment of the present application can be applicable to a variety of systems, especially 5G systems. For example, the applicable system can be a global system of mobile communication (GSM) system, a code division multiple access (CDMA) system, a wideband code division multiple access (WCDMA) general packet radio service (GPRS) system, a long term evolution (LTE) system, a LTE frequency division duplex (FDD) system, a LTE time division duplex (TDD) system, an advanced long term evolution (LTE-A) system, a universal mobile telecommunication system (UMTS), a world-wide interoperability for microwave access (WiMAX) system, a 5G new air interface (NR) system, etc. These various systems include terminal equipment and network equipment. The system may also include a core network part, such as an evolved packet system (EPS), a 5G system (5GS), etc.
[0044] In order to solve the technical problem that in the existing communication system, when the RLC layer copies data packets to the transmission block, data copies are repeated many times, which consumes a lot of time and leads to low data transmission efficiency, an embodiment of the present invention provides a millimeter wave base station RLC layer data transmission method and device.
[0045] See also Figure 1 , Figure 1 A flow chart of a method for transmitting data at the RLC layer of a millimeter wave base station provided in an embodiment of the present invention, the method may include the following steps:
[0046] S101: Receive PDCP data packets of each radio bearer sent by the PDCP layer.
[0047] To facilitate understanding, the application scenarios of the embodiments of the present invention are briefly introduced below.
[0048] The millimeter wave base station RLC layer data transmission method provided in the embodiment of the present invention can be applied to the RLC layer in the LTE (Long Term Evolution) system.
[0049] The RLC layer is located between the PDCP layer and the MAC layer, where the PDCP layer is the upper layer of the RLC layer and the MAC layer is the lower layer of the RLC layer. The RLC layer communicates with the PDCP layer through the service access point SAP (Service Access Port) and communicates with the MAC layer through the logical channel. The RLC layer receives the PDCP data packet sent by the PDCP layer, encapsulates it, and then copies it to the transport block allocated by the MAC layer.
[0050] The transport block is TB, which is well known to those skilled in the art, and its full English name is Transport Block.
[0051] In the existing scheme, when the RLC layer copies data packets to the transmission block, the number of data copies is large, which consumes a lot of time and leads to low data transmission efficiency. In order to reduce the number of data copies and improve data transmission efficiency, the millimeter wave base station RLC layer data transmission method provided in the embodiment of the present invention can be adopted.
[0052] In step S101, the RLC layer may receive PDCP data packets of each radio bearer sent by the PDCP layer.
[0053] Those skilled in the art can understand that the radio bearer may be a channel between the RRC (Radio Resource Control) layer and the PDCP layer for carrying data transmission.
[0054] In the LTE system, multiple radio bearers can be allocated. For each radio bearer, the PDCP layer can send a large number of PDCP data packets. Radio bearers can correspond to service flows, such as radio bearer RB. 1 Corresponding to a certain voice service flow, etc.
[0055] S102: adding a packet header to the received PDCP data packet according to the radio bearer to which the PDCP data packet belongs, and caching the PDCP data packet with the packet header added in parallel into a plurality of pre-set circular buffers.
[0056] In the embodiment of the present invention, a plurality of circular buffers are preset, for example, two circular buffers or three circular buffers.
[0057] Each circular buffer is a continuous memory that can store a certain amount of data. The storage space of the circular buffer can be set according to actual needs.
[0058] In addition, those skilled in the art can understand that a circular buffer is a storage space that supports simultaneous read and write operations. Specifically, a read-end pointer and a write-end pointer are defined in the circular buffer. When the write-end writes to the boundary of the circular buffer, it will jump to the other boundary to continue writing data. If the amount of data to be written is large, the write-end pointer and the read-end pointer will overlap, and the circular buffer can no longer write data; conversely, if the amount of data to be read is large, the read-end pointer and the write-end pointer will overlap, and the circular buffer can no longer read data.
[0059] When the amount of data to be read is roughly equal to the amount of data to be written, the circular buffer can perform read and write operations simultaneously without affecting each other, thus achieving higher space utilization.
[0060] For the received PDCP data packet, a packet header is added according to the radio bearer to which the PDCP data packet belongs. After the packet header is added, the PDCP data packet with the added packet header is stored in parallel in a plurality of pre-set circular buffers.
[0061] The purpose of adding a header to the PDCP data packet is to identify the relationship between the PDCP data packet and the radio bearer, so that the radio bearer to which the PDCP data packet belongs and the corresponding service flow can be confirmed in the subsequent processing flow.
[0062] The embodiment of the present invention does not limit the specific implementation method of adding a header to a PDCP data packet according to a radio bearer.
[0063] In the embodiment of the present invention, the subsequent data transmission steps are all performed on the PDCP data packet after the packet header is added.
[0064] Specifically, in the embodiment of the present invention, since a plurality of circular buffers are pre-set, it is possible to implement parallel storage of PDCP data packets of multiple radio bearers.
[0065] In an embodiment of the present invention, the correspondence between the radio bearer and the cyclic buffer may be preset. For example, if the radio bearer includes the first radio bearer RB 1 , Second radio bearer RB 2 , the third radio bearer RB 3 and the fourth radio bearer RB 4 , where each radio bearer can be a channel between the RRC layer and the PDCP layer for carrying data transmission, and each radio bearer corresponds to a service flow. If the cyclic buffer includes cyclic buffer A and cyclic buffer B, as an example, RB can be set 1 and RB 2 Corresponding to circular buffer A, RB 3 and RB 4 Corresponding to the circular buffer B. Then, the PDCP data packet with the added header is stored in the circular buffer corresponding to the radio bearer to which the PDCP data packet belongs, that is, RB 1 and RB 2 The PDCP data packet with the header added is stored in the circular buffer A, that is, RB 3 and RB 4 The PDCP data packet with the header added is stored in circular buffer B.
[0066] In addition, if RB is received at the same time 1 and RB 3 PDCP data packets, you can respectively 1 The PDCP data packet with the header added is stored in the circular buffer A, and the RB 3 The PDCP data packet after adding the packet header is stored in the circular buffer B, so that parallel processing of multiple PDCP data packets is realized.
[0067] It can be seen that since multiple circular buffers are pre-set, parallel storage of PDCP data packets of multiple radio bearers can be achieved. Compared with the serial storage method of a single circular buffer, the waiting time can be reduced and the data transmission efficiency can be improved.
[0068] In an embodiment of the present invention, the correspondence between the radio bearer and the circular buffer may not be set.
[0069] In the above step S102: caching the PDCP data packet with the added header in parallel into a plurality of pre-set circular buffers may specifically be:
[0070] The PDCP data packet with the added header is stored in the circular buffer currently in the primary selection state, wherein when the PDCP data packets cached in the circular buffer in the primary selection state reaches a maximum capacity, the primary selection state of the circular buffer is transferred to another circular buffer.
[0071] Specifically, in an embodiment of the present invention, PDCP data packets with added headers can be preferentially stored in a circular buffer in a primary selection state, wherein, among multiple circular buffers, only one circular buffer is in a primary selection state at the same time, and the other circular buffers are in a secondary selection state, and the primary selection state is not fixed. When the PDCP data packets cached by the circular buffer in the primary selection state reaches the maximum capacity, the primary selection state of the circular buffer is transferred to another circular buffer, that is, the circular buffer is converted from the primary selection state to the secondary selection state, and the above-mentioned other circular buffer is converted from the secondary selection state to the primary selection state.
[0072] Among them, the PDCP data packets cached by the circular buffer in the main selection state reach the maximum capacity, which can be understood as: the capacity of the circular buffer in the main selection state is all occupied by PDCP data packets, that is, there is no remaining capacity; or, the remaining capacity of the circular buffer in the main selection state is small enough and is not enough to store any PDCP data packet.
[0073] The method for determining the circular buffer that is converted from the secondary state to the primary state can be set according to actual needs. For example, it can be determined randomly or in a preset order. In addition, the circular buffer with the largest current storage capacity of PDCP data packets can be selected from the circular buffers in the secondary state as the circular buffer to be converted, and then when the PDCP data packets cached by the circular buffer in the primary state reach the maximum capacity, the circular buffer to be converted is converted from the secondary state to the primary state.
[0074] In the embodiment of the present invention, the received PDCP data packets of each radio bearer may be preferentially stored in the circular buffer in the primary selection state.
[0075] In particular, if the remaining capacity of the circular buffer currently in the primary selected state is insufficient to store the first PDCP data packet, the first PDCP data packet is stored in the circular buffer in the secondary selected state.
[0076] The first PDCP data packet represents any PDCP data packet. If the first PDCP data packet has a large data volume and the remaining capacity of the circular buffer currently in the primary state is insufficient to store the first PDCP data packet, the first PDCP data packet is stored in any circular buffer that can accommodate the first PDCP data packet and is in the secondary state. In addition, in order to further improve data transmission efficiency, the first PDCP data packet can be stored in the circular buffer that is in the secondary state, can accommodate the first PDCP data packet, and has the largest current PDCP data packet storage capacity.
[0077] See also Figure 2 In one embodiment of the present invention, after step S102 and before step S103, the following may also be included:
[0078] S201: If the storage amount of PDCP data packets in the circular buffer currently in the primary selection state reaches a preset threshold, a transport block request is sent to the MAC layer, where the transport block request is used to instruct the MAC layer to allocate a transport block.
[0079] The preset threshold value may be set according to actual requirements, for example, it may be set to 90% of the total capacity of the circular buffer, or the preset threshold value may be set to the total capacity of the circular buffer.
[0080] If the storage amount of PDCP data packets in the circular buffer currently in the master selection state reaches a preset threshold, a transmission block request is sent to the MAC layer. After receiving the transmission block request, the MAC layer allocates a transmission block.
[0081] It can be seen that in the embodiment of the present invention, a transmission block request is sent to the MAC layer only after the storage capacity of the PDCP data packets cached by the circular buffer in the main selection state reaches a larger value. Compared with the method of sending a transmission block request as soon as a PDCP data packet is received, the number of times a transmission block request is initiated can be reduced, and each time a transmission block request is initiated, a large number of PDCP data packets can be copied, which greatly reduces the number of data copies.
[0082] The size of the transport block allocated by the MAC layer may also be set according to requirements. For example, the size of the transport block allocated by the MAC layer may be set to be fixed and equal to the total capacity of the circular buffer.
[0083] S103: In response to the MAC layer allocating a transport block, determining a target circular buffer from a plurality of circular buffers, and obtaining a plurality of PDCP data packets from the target circular buffer and copying them to the transport block, wherein the data volume of the obtained PDCP data packets is less than or equal to the capacity of the transport block.
[0084] In the embodiment of the present invention, after the MAC layer allocates the transport block, it can inform the RLC layer, and the RLC layer determines a target circular buffer from multiple circular buffers. Preferably, a target circular buffer can be determined from multiple circular buffers.
[0085] In an embodiment of the present invention, a circular buffer with the largest storage capacity of PDCP data packets may be selected as the target circular buffer.
[0086] Specifically, when the correspondence between the wireless bearer and the circular buffer is pre-set, the circular buffer in the primary state and the secondary state are not distinguished, and each circular buffer only caches the PDCP data packets of the wireless bearer corresponding to the circular buffer. Then, after the MAC layer allocates the transmission block, the RLC layer can select the circular buffer with the largest data volume of the PDCP data packets currently stored as the target circular buffer, and obtain multiple PDCP data packets from the target circular buffer and copy them to the transmission block.
[0087] Without pre-setting the correspondence between the wireless bearer and the circular buffer, since the PDCP data packets are preferentially stored in the circular buffer in the main selection state, in this case, the circular buffer in the main selection state can be directly determined as the target circular buffer, and multiple PDCP data packets can be obtained from the target circular buffer and copied to the transmission block.
[0088] In the embodiment of the present invention, the capacity of each circular buffer may be equal to the capacity of the transport block allocated by the MAC layer, and may accommodate multiple PDCP data packets, for example, 100 or 1000.
[0089] It can be seen that by setting up multiple circular buffers, a large number of PDCP data packets of wireless bearers can be cached in parallel. After the transmission block is allocated at the MAC layer, all the PDCP data packets in the target circular buffer can be copied to the transmission block at one time, which can greatly reduce the number of data copies, thereby reducing time consumption and improving the data transmission efficiency of the RLC layer.
[0090] In addition, the number of pre-set circular buffers in the embodiment of the present invention can also be set according to actual needs. According to actual environmental measurements, setting two circular buffers can meet high-concurrency RLC layer data transmission and reduce resource usage.
[0091] For ease of understanding, the millimeter wave base station RLC layer data transmission method provided by an embodiment of the present invention is further introduced and explained by taking two circular buffers as an example.
[0092] See also Figure 3(a)-Figure 3(c), the two circular buffers are circular buffer A and circular buffer B, as shown in FIG3(a), the current circular buffer A is in the primary state, and the circular buffer B is in the secondary state, then the PDCP data packets of each radio bearer are preferentially buffered in the circular buffer A. In particular, when the current remaining capacity of the circular buffer A is insufficient to buffer a certain PDCP data packet, the PDCP data packet is buffered in the circular buffer B. In the embodiment shown in FIG3(a), the PDCP data packet of the radio bearer 4 is large, and the current remaining capacity of the circular buffer A is insufficient to buffer the PDCP data packet, then the PDCP data packet of the radio bearer 4 is buffered in the circular buffer B.
[0093] As shown in Figure 3(b), when the PDCP data packets cached in circular buffer A reach the maximum capacity, a transmission block request can be initiated to the MAC layer, and the MAC layer allocates a transmission block. At the same time, the primary state of circular buffer A is transferred to circular buffer B, that is, circular buffer A becomes the secondary state, and circular buffer B becomes the primary state.
[0094] As shown in Figure 3(c), all PDCP packets in the circular buffer A can be copied to the transmission block at one time. At the same time, the PDCP packets of each radio bearer are cached in the circular buffer B that is currently in the master state. It can be seen that the data copy of the circular buffer A can also be processed in parallel with the pre-caching step of the circular buffer B, and the caching of the PDCP packets is not suspended because of the data copy of the circular buffer A, which improves the data processing efficiency.
[0095] Corresponding to the millimeter wave base station RLC layer data transmission method embodiment provided in the embodiment of the present invention, the embodiment of the present invention also provides a millimeter wave base station RLC layer data transmission device, see Figure 4 , the device may include the following modules:
[0096] The receiving module 401 is used to receive PDCP data packets of each radio bearer sent by the Packet Data Convergence Protocol PDCP layer;
[0097] The buffer module 402 is used to add a header to the received PDCP data packet according to the radio bearer to which the PDCP data packet belongs, and cache the PDCP data packet with the header added in parallel into a plurality of pre-set circular buffers;
[0098] The copy module 403 is used to determine a target circular buffer from multiple circular buffers in response to the media access control MAC layer allocating a transmission block, and obtain multiple PDCP data packets from the target circular buffer and copy them to the transmission block, wherein the data volume of the obtained PDCP data packets is less than or equal to the capacity of the transmission block.
[0099] In one embodiment of the present invention, the cache module 402 may be specifically used for:
[0100] The PDCP data packet with the added header is stored in the circular buffer currently in the primary selection state, wherein when the PDCP data packets cached in the circular buffer in the primary selection state reaches a maximum capacity, the primary selection state of the circular buffer is transferred to another circular buffer.
[0101] The millimeter wave base station RLC layer data transmission device provided by the embodiment of the present invention is used to receive the PDCP data packets of each wireless bearer sent by the PDCP layer; for the received PDCP data packets, a packet header is added according to the wireless bearer to which the PDCP data packet belongs, and the data packets are stored in parallel in multiple pre-set circular buffers according to the preset cache rules; in response to the MAC layer allocating a transmission block, a target circular buffer is determined from multiple circular buffers, and multiple data packets are obtained from the target circular buffer and copied to the transmission block, wherein the data volume of the obtained data packets is less than or equal to the capacity of the transmission block. It can be seen that by setting multiple circular buffers, PDCP data packets of multiple wireless bearers can be cached in parallel. In addition, after the MAC layer allocates the transmission block, more PDCP data packets in the circular buffer can be copied to the transmission block at one time, which can greatly reduce the number of data copies, thereby reducing time consumption and improving the data transmission efficiency of the RLC layer.
[0102] Among them, the method and the device are based on the same application concept. Since the method and the device solve the problem in a similar principle, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.
[0103] The embodiment of the present invention further provides an electronic device, such as Figure 5 As shown, it includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504.
[0104] Memory 503, used for storing computer programs;
[0105] The processor 501 is used to execute the program stored in the memory 503, and implements the following steps:
[0106] Receiving PDCP data packets of each radio bearer sent by a packet data convergence protocol PDCP layer;
[0107] For the received PDCP data packets, a packet header is added according to the radio bearer to which the PDCP data packets belong, and the PDCP data packets with the added packet header are cached in parallel in a plurality of pre-set circular buffers;
[0108] In response to the media access control MAC layer allocating a transmission block, a target circular buffer is determined from multiple circular buffers, and multiple PDCP data packets are obtained from the target circular buffer and copied to the transmission block, wherein the data volume of the obtained PDCP data packets is less than or equal to the capacity of the transmission block.
[0109] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0110] The communication interface is used for communication between the above electronic device and other devices.
[0111] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0112] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0113] The electronic device provided by the embodiment of the present invention receives PDCP data packets of each wireless bearer sent by the PDCP layer; adds a packet header to the received PDCP data packet according to the wireless bearer to which the PDCP data packet belongs, and stores the received PDCP data packets in parallel in multiple pre-set circular buffers according to preset cache rules; in response to the MAC layer allocating a transmission block, determines a target circular buffer from multiple circular buffers, and obtains multiple data packets from the target circular buffer and copies them to the transmission block, wherein the data volume of the obtained data packets is less than or equal to the capacity of the transmission block. It can be seen that by setting multiple circular buffers, PDCP data packets of multiple wireless bearers can be cached in parallel. In addition, after the MAC layer allocates the transmission block, more PDCP data packets in the circular buffer can be copied to the transmission block at one time, which can greatly reduce the number of data copies, thereby reducing time consumption and improving the data transmission efficiency of the RLC layer.
[0114] In another embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the steps of any of the above-mentioned millimeter wave base station RLC layer data transmission methods are implemented.
[0115] In another embodiment provided by the present invention, a computer program product containing instructions is also provided. When the computer is run on the computer, the computer executes the steps of any millimeter wave base station RLC layer data transmission method in the above embodiments.
[0116] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0117] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0118] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the millimeter wave base station RLC layer data transmission device, electronic device, computer readable storage medium and computer program product embodiments, since they are basically similar to the millimeter wave base station RLC layer data transmission method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the millimeter wave base station RLC layer data transmission method embodiment.
[0119] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A millimeter wave base station RLC layer data transmission method, characterized in that: Applied to the radio link control RLC layer, the method comprises: Receiving PDCP data packets of each radio bearer sent by a packet data convergence protocol PDCP layer; For the received PDCP data packets, a packet header is added according to the radio bearer to which the PDCP data packets belong, and the PDCP data packets with the added packet header are cached in parallel in a plurality of pre-set circular buffers; The storing of the PDCP data packets with the added headers in parallel in a plurality of pre-set circular buffers comprises: preferentially storing the PDCP data packets with the added headers in a circular buffer currently in a master selected state, wherein when the PDCP data packets cached in the circular buffer in the master selected state reaches a maximum capacity, the master selected state of the circular buffer is transferred to another circular buffer; In response to the media access control MAC layer allocating a transmission block, a target circular buffer is determined from the multiple circular buffers, and multiple PDCP data packets are obtained from the target circular buffer and copied to the transmission block, wherein the data volume of the obtained PDCP data packets is less than or equal to the capacity of the transmission block.
2. The method according to claim 1, characterized in that The step of storing the PDCP data packets with the added headers in parallel in a plurality of pre-set circular buffers comprises: According to the preset correspondence between the radio bearer and the circular buffer, the PDCP data packet with the added header is stored in the circular buffer corresponding to the radio bearer to which the PDCP data packet belongs.
3. The method according to claim 1, characterized in that Also includes: If the remaining capacity of the circular buffer currently in the primary selected state is insufficient to store the first PDCP data packet, the first PDCP data packet is stored in the circular buffer in the secondary selected state.
4. The method according to claim 1, characterized in that Also includes: If the storage amount of the PDCP data packets in the circular buffer currently in the primary selection state reaches a preset threshold, a transport block request is sent to the MAC layer, where the transport block request is used to instruct the MAC layer to allocate a transport block.
5. The method according to claim 1, characterized in that: The determining a target circular buffer from the plurality of circular buffers comprises: A circular buffer with the largest storage capacity of PDCP data packets is determined as the target circular buffer.
6. The method according to any one of claims 1 to 5, characterized in that: The preset number of circular buffers is 2.
7. A millimeter wave base station RLC layer data transmission device, characterized in that: Applied to a radio link control RLC layer, the device comprises: A receiving module, used for receiving PDCP data packets of each radio bearer sent by a packet data convergence protocol PDCP layer; A cache module, used for adding a packet header to a received PDCP packet according to a radio bearer to which the PDCP packet belongs, and caching the PDCP packet with the added packet header in parallel into a plurality of pre-set circular buffers; The cache module is specifically used to: preferentially store the PDCP data packet with the added header in the circular buffer currently in the main selection state, wherein when the PDCP data packet cached by the circular buffer in the main selection state reaches the maximum capacity, the main selection state of the circular buffer is transferred to another circular buffer; A copy module is used to determine a target circular buffer from the multiple circular buffers in response to the media access control MAC layer allocating a transmission block, and obtain multiple PDCP data packets from the target circular buffer and copy them to the transmission block, wherein the data volume of the obtained PDCP data packets is less than or equal to the capacity of the transmission block.
8. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 6 when executing a program stored in a memory.
9. A processor-readable storage medium, characterized in that: The processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
A wireless link control data processing method and system
CN109936858A