CN113660189B - Method and device for improving data transmission efficiency of 5G NR system - Google Patents

Method and device for improving data transmission efficiency of 5G NR system Download PDF

Info

Publication number
CN113660189B
CN113660189B CN202010398813.6A CN202010398813A CN113660189B CN 113660189 B CN113660189 B CN 113660189B CN 202010398813 A CN202010398813 A CN 202010398813A CN 113660189 B CN113660189 B CN 113660189B
Authority
CN
China
Prior art keywords
pdu
protocol
size
pdcp
rlc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010398813.6A
Other languages
Chinese (zh)
Other versions
CN113660189A (en
Inventor
罗新波
程岳
王银银
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN202010398813.6A priority Critical patent/CN113660189B/en
Publication of CN113660189A publication Critical patent/CN113660189A/en
Application granted granted Critical
Publication of CN113660189B publication Critical patent/CN113660189B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Communication Control (AREA)

Abstract

The embodiment of the invention provides a method and a device for improving data transmission efficiency of a 5G NR system, wherein the method comprises the following steps: applying for a memory space for the IP PDU to be transmitted, wherein the size of the memory space is the size of a reserved protocol head plus the length of the IP PDU, and storing the IP PDU in the position of the initial address of the memory space plus the size offset of the reserved protocol head; sending IP PDU and informing the data length as the size of memory space and the offset of IP PDU; the PDCP layer and the RLC layer carry out protocol data processing by combining the offset of the IP PDU and the size of each protocol head based on the memory space. The embodiment of the invention reserves the size of the protocol head for the IP PDU, and the IP layer, the PDCP and the RLC share the memory for protocol processing, thereby reducing the copying between data protocol layers and the application and release times of the memory, further reducing the processing time delay, improving the processing efficiency of the protocol layer and simultaneously reducing the load of a processor.

Description

Method and device for improving data transmission efficiency of 5G NR system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for improving data transmission efficiency of a 5G NR system.
Background
The user plane Protocol of 5G (the 5th Generation, fifth Generation mobile communication technology) -NR (New Radio technology) mainly includes PDCP (Packet Data Convergence Protocol), RLC (Radio Link Control), and MAC (Medium Access Control). When transmitting data, the data within the UE flows from an upper protocol layer to a lower protocol layer.
Fig. 1 is a schematic diagram of processing an IP packet at each protocol layer. As shown in fig. 1, the PDCP layer processes data received from a higher Protocol layer (e.g., an IP layer) in the form of a PDCP SDU (Service data unit), adds a PDCP header to each IP packet n, n +1, n +2, and outputs the PDCP PDU in the form of a Protocol data unit (Protocol data unit) and forwards the PDCP PDU to the RLC. The RLC receives the output RLC SDU from the PDCP, and adds an RLC protocol header to form an RLC PDU. During the MAC scheduling, the MAC layer adds an MAC header to each RLC PDU and concatenates a plurality of RLC PDUs to be transmitted and buffered according to the size of a current air interface resource TB (Transport block).
Each protocol layer will generate PDCP, RLC and MAC protocol headers for each IP (or higher) packet in turn, so the processing load (memory or CPU occupancy) of the protocol layer is strongly correlated to the number of IP packets received per unit time. At present, each protocol layer of the UE or the base station is for a piece of data, a PDCP entity adds a PDCP SDU protocol header after receiving a data SDU from an IP layer (or a higher layer), copies the data and stores the copied data in a PDCP SDU transmission queue, the PDCP entity processes the data and sends the processed data to an RLC protocol layer, and the RLC adds the protocol header, copies the data and stores the copied data in an RLC SDU transmission queue to wait for an MAC layer to schedule. The data is copied once on the IP layer, the PDCP layer is copied once, the data is copied once on the RLC layer, the data is copied three times in total, the memory is applied for three times, and the memory is released for three times. Therefore, when multi-user data is transmitted at high speed, data copy is frequent, memory occupation is increased, and frequent application and release are performed, so that the processing performance is reduced.
Disclosure of Invention
In order to solve or at least partially solve the above problems, embodiments of the present invention provide a method and an apparatus for improving data transmission efficiency of a 5G NR system.
In a first aspect, an embodiment of the present invention provides a method for improving data transmission efficiency of a 5G NR system, including:
adding an Internet Protocol (IP) protocol head to data to be transmitted, generating an IP Protocol Data Unit (PDU), applying for a memory space for the IP PDU, wherein the size of the memory space is the size of a reserved protocol head plus the length of the IP PDU, and storing the IP PDU at the position of the initial address of the memory space plus the size deviation of the reserved protocol head;
sending the IP PDU, informing a lower protocol layer that the length of the data to be transmitted is the size of the memory space, and informing the offset of the IP PDU;
the lower protocol layer carries out protocol data processing by combining the offset of the IP PDU and the size of the protocol head of the lower protocol layer based on the memory space;
wherein the lower protocol layers include a packet data convergence protocol, PDCP, layer and a radio Link control, RLC, layer.
Optionally, the lower protocol layer performs protocol data processing based on the memory space by combining the offset of the IP PDU and the size of the protocol header of the lower protocol layer, specifically:
after receiving the IP PDU, the PDCP layer adds a PDCP protocol head according to the offset of the IP PDU and the size of a PCDP protocol head based on the memory space;
after the PDCP layer finishes processing, generating a PDCP PDU, sending the PDCP PDU to an RLC layer, informing the RLC layer that the length of the data to be transmitted is the size of the memory space, and informing the deviation of the PDCP PDU;
after receiving the PDCP PDU, the RLC layer adds an RLC protocol head according to the offset of the PDCP PDU and the size of the RLC protocol head based on the memory space;
and after the RLC layer finishes processing, generating an RLC PDU, sending the RLC PDU to a Medium Access Control (MAC) layer, and waiting for the MAC layer to schedule.
Optionally, before applying for the memory space for the IP PDU, the method further includes:
and determining the size of a reserved protocol header, wherein the size of the reserved protocol header is specifically the sum of the size of a PCDP protocol header and the size of an RLC protocol header.
Optionally, based on the memory space, adding a PDCP protocol header according to the offset of the IP PDU and the size of the PCDP protocol header, specifically:
and adding a PDCP protocol header at a position where the initial address of the memory space is shifted backwards by the offset size of the IP PDU and is shifted forwards by the size of the PDCP protocol header.
Optionally, based on the memory space, adding an RLC protocol header according to the offset of the PDCP PDU and the size of the RLC protocol header, specifically:
and adding an RLC protocol head at a position where the starting address of the memory space is shifted backwards by the offset size of the PDCP PDU and is shifted forwards by the size of the RLC protocol head.
Optionally, applying for a memory space for the IP PDU specifically includes:
and calling a system memory application function to apply for a memory space for the IP PDU, wherein the system memory application function returns the offset address of the IP PDU.
In a second aspect, an embodiment of the present invention provides an apparatus for improving data transmission efficiency of a 5G NR system, including:
the device comprises a memory application module, a data transmission module and a data transmission module, wherein the memory application module is used for adding an Internet Protocol (IP) protocol head to data to be transmitted, generating an IP Protocol Data Unit (PDU), applying a memory space for the IP PDU, storing the IP PDU at a position of a starting address of the memory space plus the size deviation of the reserved protocol head, and adding the length of the IP PDU to the size of the reserved protocol head;
a sending module, configured to send the IP PDU, notify a lower protocol layer that the length of the data to be transmitted is the size of the memory space, and notify an offset of the IP PDU;
a protocol processing module, configured to perform protocol data processing based on the memory space by combining the offset of the IP PDU and the size of the protocol header of each lower protocol layer;
wherein the lower protocol layers include a packet data convergence protocol, PDCP, layer and a radio Link control, RLC, layer.
Optionally, the protocol processing module specifically includes:
the PDCP processing submodule is used for adding a PDCP protocol head based on the memory space and according to the offset of the IP PDU and the size of the PCDP protocol head after receiving the IP PDU;
the PDCP transmitting sub-module is used for generating a PDCP PDU, transmitting the PDCP PDU to an RLC layer, informing the RLC layer that the length of the data to be transmitted is the size of the memory space, and informing the deviation of the PDCP PDU;
the RLC processing submodule is used for adding an RLC protocol head according to the offset of the PDCP PDU and the size of the RLC protocol head based on the memory space after receiving the PDCP PDU;
and the RLC sending submodule is used for generating an RLC PDU, sending the RLC PDU to a Medium Access Control (MAC) layer and waiting for the MAC layer to schedule.
Optionally, the method further comprises:
the device comprises a preprocessing module and a control module, wherein the preprocessing module is used for determining the size of a reserved protocol header, and the size of the reserved protocol header is specifically the sum of the size of a PCDP protocol header and the size of an RLC protocol header.
Optionally, the PDCP processing sub-module is specifically configured to:
and adding a PDCP protocol header at a position where the initial address of the memory space is shifted backwards by the offset size of the IP PDU and is shifted forwards by the size of the PDCP protocol header.
Optionally, the RLC processing sub-module is specifically configured to:
and adding an RLC protocol head at a position where the starting address of the memory space is shifted backwards by the offset size of the PDCP PDU and is shifted forwards by the size of the RLC protocol head.
Optionally, the memory application module is specifically configured to:
and calling a system memory application function to apply for the memory space for the IP PDU, wherein the system memory application function returns the offset address of the IP PDU.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the program to implement the steps of the method for improving the data transmission efficiency of the 5G NR system, provided by the first aspect.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for improving data transmission efficiency of a 5G NR system as provided in the first aspect.
The method and the device for improving the data transmission efficiency of the 5G NR system provided by the embodiment of the invention reserve the protocol heads of the PDCP and the RLC for the IP PDU of the data service to be transmitted, and the IP layer, the PDCP and the RLC share the memory for protocol processing, so that the times of copying and memory application and release between data protocol layers can be reduced, the program processing time delay is further reduced, the processing efficiency of the protocol layer is improved, and the load of a processor is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of processing an IP packet at each protocol layer;
fig. 2 is a schematic flowchart of a method for improving data transmission efficiency of a 5G NR system according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a memory space according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a data packet with PDCP SNs according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a data packet with RLC SN according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for improving data transmission efficiency of a 5G NR system according to an embodiment of the present invention;
fig. 7 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 2 is a schematic flowchart of a method for improving data transmission efficiency of a 5G NR system according to an embodiment of the present invention, and as shown in fig. 2, the method for improving data transmission efficiency of a 5G NR system includes:
step 100, adding an Internet Protocol (IP) protocol header to data to be transmitted, generating an IP Protocol Data Unit (PDU), applying for a memory space for the IP PDU, wherein the size of the memory space is the size of the reserved protocol header plus the length of the IP PDU, and storing the IP PDU in the position of the initial address of the memory space plus the size deviation of the reserved protocol header;
in order to solve the problem that in the current protocol layer processing flow of the 5G NR, for the reason that the CPU load of a processor is in a direct proportion relation with the number of TCP SDUs to be processed during high-speed downloading or uploading service, the IP, PDCP and RLC protocol layers do not share one data memory, the number of times of memory Copy is increased, when a large data packet is frequent, the memory Copy, memory application and memory release are frequent, the CPU load of equipment is increased, the probability of system instability is increased, and further user perception is affected, the embodiment of the invention provides a PDCP \ RLC protocol head reserved for the IP PDU of an application layer, and each protocol layer applies for one shared memory to process protocol data.
Specifically, when the application layer generates one data SDU (i.e., data to be transmitted), the IP layer applies for a memory space, and places an IP PDU corresponding to the data SDU at a location where a starting address of the memory space is offset by adding a size of a reserved protocol header, that is, at a location where the starting address of the memory space is offset by adding a size of a PDCP protocol header and a size of an RLC protocol header.
Fig. 3 is a schematic diagram of a memory space applied in the embodiment of the present invention, an application layer applies for a memory every time an IP PDU is generated, the size of the applied memory space is the size of a reserved protocol header + the length of the IP PDU, as shown in fig. 3, the size of the reserved protocol header is the size of a PDCP protocol header + the size of an RLC protocol header N, the IP PDU is placed at a location of a starting address + an offset (M + N) of the memory space, the location is denoted as PstData, and the PstData is an offset address of the IP PDU.
Step 101, sending the IP PDU, notifying a lower protocol layer that the length of the data to be transmitted is the size of the memory space, and notifying an offset of the IP PDU;
specifically, the IP layer sends the IP PDU to the PDCP layer, and notifies the PDCP layer that the length of the data to be transmitted is the size of the memory space and the data offset, that is, the offset of the IP PDU. Since the IP PDU is placed at the memory space starting address plus the reserved protocol header size offset, the offset of the IP PDU is the reserved protocol header size.
In the embodiment of the present invention, the lower protocol layers include a packet data convergence protocol PDCP layer and a radio link control RLC layer.
And 102, the lower protocol layer performs protocol data processing by combining the offset of the IP PDU and the size of the protocol header of the lower protocol layer based on the memory space.
Specifically, after receiving the IP PDU, the PDCP layer directly combines the offset of the IP PDU and the size of a PDCP protocol header to process protocol data without copying data based on the memory space, and after finishing processing, the PDCP layer sends the PDCP PDU to the RLC layer;
after receiving the PDCP PDU, the RLC layer directly combines the offset of the PDCP PDU and the size of the protocol head of the RLC layer to process protocol data without copying data based on the memory space, and after finishing the processing of the RLC layer, the RLC layer sends the RLC PDU to the MAC layer to wait for the dispatching of the MAC layer.
During MAC scheduling, the MAC layer adds an MAC header to each RLC PDU and connects a plurality of RLC PDUs in a buffer to be transmitted in series according to the size of a current air interface resource TB (Transport block).
The method for improving the data transmission efficiency of the 5G NR system provided by the embodiment of the invention reserves a PDCP protocol head and an RLC protocol head for the IP PDU of the data service to be transmitted, and the IP layer, the PDCP protocol head and the RLC share the memory for protocol processing, so that the times of copying between data protocol layers and memory application and release can be reduced, the program processing time delay is further reduced, the processing efficiency of the protocol layer is improved, and the load of a processor is reduced.
Based on the content of the foregoing embodiment, the lower protocol layer performs protocol data processing based on the memory space by combining the offset of the IP PDU and the size of the protocol header of each lower protocol layer, specifically:
after receiving the IP PDU, the PDCP layer adds a PDCP protocol head according to the offset of the IP PDU and the size of a PCDP protocol head based on the memory space;
after the PDCP layer finishes processing, generating a PDCP PDU, sending the PDCP PDU to an RLC layer, informing the RLC layer that the length of the data to be transmitted is the size of the memory space, and informing the deviation of the PDCP PDU;
after receiving the PDCP PDU, the RLC layer adds an RLC protocol head according to the offset of the PDCP PDU and the size of the RLC protocol head based on the memory space;
and after the RLC layer finishes processing, generating an RLC PDU, sending the RLC PDU to a Medium Access Control (MAC) layer, and waiting for the MAC layer to schedule.
Specifically, after receiving the IP PDU, the PDCP layer restores the IP PDU into a PDCP SDU through decapsulation, then adds a PDCP protocol head to the PDCP SDU, and specifically determines the position of adding the PDCP protocol head according to the offset of the IP PDU and the size of the PCDP protocol head based on the memory space, and then adds the PDCP protocol head without copying data in the process;
after the PDCP layer finishes processing, generating a PDCP PDU, sending the PDCP PDU to an RLC layer, and informing the RLC layer that the data length of the PDCP PDU is the size of the memory space and the offset of the PDCP PDU;
after receiving the PDCP PDU, the RLC layer restores the PDCP PDU into an RLC SDU through decapsulation, then adds an RLC protocol head to the RLC SDU, specifically determines the position of adding the RLC protocol head according to the offset of the PDCP PDU and the size of the RLC protocol head based on the memory space, and then adds the RLC protocol head, and data do not need to be copied in the process;
and after the RLC layer finishes processing, generating an RLC PDU, sending the RLC PDU to a Medium Access Control (MAC) layer, and waiting for the MAC layer to schedule.
According to the method for improving the data transmission efficiency of the 5G NR system, the IP layer, the PDCP and the RLC share the memory to perform protocol processing, and the PDCP layer and the RLC layer do not need to copy data and only need to fill the corresponding protocol header in the offset position when performing related protocol processing, so that the frequent copy of the data can be reduced, the frequent application and release of the memory can be reduced, and the data processing efficiency can be improved.
Based on the content of the foregoing embodiments, before applying for the memory space for the IP PDU, the method further includes:
and determining the size of a reserved protocol header, wherein the size of the reserved protocol header is specifically the sum of the size of a PCDP protocol header and the size of an RLC protocol header.
Specifically, the reserved protocol header size is determined according to the version of the 5G NR system user plane protocol.
The IP layer of the base station receives the data message of the core network 1 packet, and the payload length is 1400 bytes.
For example, the PDCP protocol header length is denoted as M, and according to protocol 38.323, the sequence number of the PDCP SDU: either 12 bits (reserved) or 18 bits are used, if 18 bits are used, the PDCP entity protocol header length, the protocol header reserved 3 bytes, otherwise 2 bytes, i.e. M =3.
The length of the RLC AM protocol head is recorded as N, and the length is calculated according to the maximum length of the RLC AM entity protocol head of a 38.322,5G NR system: 5 bytes, i.e. N =5.
Thus, the IP layer reserves a memory space L of the protocol header size for each IP PDU may represent: l = M + N, i.e. L =8 bytes.
The method for improving the data transmission efficiency of the 5G NR system provided by the embodiment of the invention adopts the method of reserving the PDCP \ RLC protocol header to realize that the IP, PDCP and RLC protocol layers share one memory to store data, thereby effectively improving the data processing efficiency.
Based on the content of the foregoing embodiments, based on the memory space, and according to the offset of the IP PDU and the size of the PCDP protocol header, adding a PDCP protocol header specifically:
and adding a PDCP protocol header at a position where the initial address of the memory space is shifted backwards by the offset size of the IP PDU and is shifted forwards by the size of the PDCP protocol header.
Specifically, the IP layer sends an IP PDU to the PDCP layer, and notifies the PDCP layer that the data length is the size of the memory space and the data offset, that is, the offset of the IP PDU, where the offset of the IP PDU is the size of the reserved protocol header.
If the length of the IP message is 1400, when the IP PDU is sent, the PDCP layer data length is notified to 1408, and the data offset is (1408-1400) =8.
In this embodiment, after receiving the IP PDU, the PDCP entity adds a PDCP header to a position where the starting address of the memory space deviates backward by the size of the reserved PDCP header and then deviates forward by the size of the PDCP header.
FIG. 4 is a diagram of a packet with PDCP SN. As shown in FIG. 4, after the PDCP receives the IP PDU, it is shifted 8 backwards to the PstData position from the starting address, and then the PDCP protocol header size M is shifted forwards, i.e., the PDCP protocol header is added at the PstData-M position.
After PDCP processing, RLC data length is notified to 1408 and data offset is (1408-1403) =5.
The embodiment of the invention provides a specific method for determining the position of adding a PDCP protocol header.
Based on the content of the foregoing embodiment, based on the memory space, and according to the offset of the PDCP PDU and the size of the RLC protocol header, adding the RLC protocol header specifically includes:
and adding an RLC protocol head at a position where the starting address of the memory space is shifted backwards by the offset size of the PDCP PDU and is shifted forwards by the size of the RLC protocol head.
Specifically, the offset of the PDCP PDU is equal to the RLC protocol header size.
After receiving the PDCP PDU, the RLC offsets the offset size of the PDCP PDU backwards at the initial address of the memory space, namely, the protocol head position of the PDCP PDU is found, then the RLC protocol head size is offset forwards, and the RLC protocol head is added at the position.
Fig. 5 is a diagram of a packet with RLC SN. As shown in fig. 5, after receiving the PDCP PDU, the RLC layer shifts the size of the RLC protocol header by 5 backwards, then shifts the size of the RLC protocol header by 5 forwards, starts to add the RLC protocol header, and waits for the MAC layer scheduling after the RLC layer protocol header is processed.
The embodiment of the invention provides a specific method for determining the position of adding an RLC protocol header.
Based on the content of the foregoing embodiment, the applying for the memory space for the IP protocol data unit PDU to be transmitted specifically includes:
and calling a system memory application function to apply for the memory space for the IP PDU, wherein the system memory application function returns the offset address of the IP PDU.
Specifically, the embodiment of the invention applies for the memory space for the IP PDU by calling a system memory application function.
In one embodiment, the memory application is a system memory application function Mem _ Alloc () is called, the size of the memory space applied is data message length + reserved protocol header length (IP message length + L), and the function returns a memory address: pstData, the offset address of the IP PDU, indicates that the IP PDU was stored starting from the PstData location. The memory space is a shared memory of IP, PDCP and RLC protocol layers, PDCP and RLC carry out protocol head adding operation based on the memory space, and RLC executes the final memory release.
The method for improving the data transmission efficiency of the 5G NR system provided by the embodiment of the invention applies for the memory by using the system memory application function, and reserves the protocol header, so that the IP layer, the PDCP and the RLC can share the memory to perform protocol processing.
Fig. 6 is a schematic structural diagram of an apparatus for improving data transmission efficiency of a 5G NR system according to an embodiment of the present invention, including: a memory application module 610, a sending module 620, and a protocol processing module 630, wherein,
the memory application module 610 is configured to add an IP header to data to be transmitted, generate an IP data unit PDU, apply for a memory space for the IP PDU, where the size of the memory space is the size of a reserved protocol header plus the length of the IP PDU, and store the IP PDU at a location where a starting address of the memory space is added to a size offset of the reserved protocol header;
specifically, the memory application module 610 applies for a memory space for an IP protocol data unit PDU to be transmitted when an application layer generates a data SDU, and places the IP PDU corresponding to the data SDU at a location where a starting address of the memory space is added with a size offset of a reserved protocol header, that is, at a location where the starting address of the memory space is added with a size offset of a PDCP protocol header and a size offset of an RLC protocol header.
A sending module 620, configured to send the IP PDU, notify a lower protocol layer that the length of the data to be transmitted is the size of the memory space, and notify an offset of the IP PDU;
specifically, the IP layer sends the IP PDU to the PDCP layer, and notifies the PDCP layer of the data length of the memory space and the data offset, that is, the offset of the IP PDU. Since the IP PDU is placed at the memory space starting address plus the reserved protocol header size offset, the offset of the IP PDU is the reserved protocol header size.
The lower protocol layers include a packet data convergence protocol PDCP layer and a radio link control RLC layer.
A protocol processing module 630, configured to perform protocol data processing based on the memory space by combining the offset of the IP PDU and the size of the protocol header of each lower protocol layer.
In this embodiment, the protocol processing module 630 is specifically configured to:
after receiving the IP PDU, based on the memory space, the data is not required to be copied, the offset of the IP PDU and the size of a PDCP protocol head are directly combined to process the PDCP protocol data, and after the processing is finished, the PDCP PDU is sent to an RLC layer;
after receiving the PDCP PDU, based on the memory space, the data is not required to be copied, the offset of the PDCP PDU and the size of a protocol head of an RLC layer are directly combined to process the PDCP protocol data, after the processing is finished, the RLC PDU is sent to an MAC layer, and the dispatching of the MAC layer is waited.
During MAC scheduling, the MAC layer adds an MAC header to each RLC PDU and connects a plurality of RLC PDUs in a buffer to be transmitted in series according to the size of a current air interface resource TB (Transport block).
The device for improving the data transmission efficiency of the 5G NR system provided by the embodiment of the invention reserves a PDCP protocol head and an RLC protocol head for the IP PDU of the data service to be transmitted, and the IP layer, the PDCP protocol head and the RLC share a memory for protocol processing, so that the times of copying between data protocol layers and memory application and release can be reduced, the program processing time delay is further reduced, the processing efficiency of the protocol layer is improved, and the load of a processor is reduced.
Based on the content of the foregoing embodiment, the protocol processing module specifically includes:
the PDCP processing submodule is used for adding a PDCP protocol head based on the memory space and according to the offset of the IP PDU and the size of the PCDP protocol head after receiving the IP PDU;
the PDCP sending submodule is used for generating a PDCP PDU, sending the PDCP PDU to an RLC layer, informing the RLC layer that the length of the data to be transmitted is the size of the memory space, and informing the deviation of the PDCP PDU;
the RLC processing submodule is used for adding an RLC protocol head according to the offset of the PDCP PDU and the size of the RLC protocol head based on the memory space after receiving the PDCP PDU;
and the RLC sending submodule is used for generating an RLC PDU, sending the RLC PDU to a Medium Access Control (MAC) layer and waiting for the MAC layer to schedule.
Specifically, the PDCP processing sub-module is configured to, after receiving the IP PDU, restore the IP PDU to a PDCP SDU by decapsulation, add a PDCP protocol header to the PDCP SDU, and determine, based on the memory space, a position where the PDCP protocol header is added according to an offset of the IP PDU and a size of the PCDP protocol header, and then add the PDCP protocol header, where data does not need to be copied in this process;
the PDCP sending submodule is used for generating a PDCP PDU after the PDCP processing submodule finishes processing, sending the PDCP PDU to an RLC layer, and informing the RLC layer data length of the memory space size and the deviation of the PDCP PDU;
the RLC processing sub-module is used for recovering the PDCP PDU into an RLC SDU through de-encapsulation after receiving the PDCP PDU, then adding an RLC protocol head to the RLC SDU, specifically determining the position of the added RLC protocol head according to the offset of the PDCP PDU and the size of the RLC protocol head based on the memory space, and then adding the RLC protocol head without copying data in the process;
the RLC transmission submodule is used for generating RLC PDU after the RLC processing submodule finishes processing, transmitting the RLC PDU to a medium access control MAC layer and waiting for the MAC layer to schedule.
According to the device for improving the data transmission efficiency of the 5G NR system, the IP layer, the PDCP and the RLC share the memory to perform protocol processing, and the PDCP layer and the RLC layer do not need to copy data and only need to fill the corresponding protocol header in the offset position when performing related protocol processing, so that the frequent copy of the data can be reduced, the frequent application and release of the memory can be reduced, and the data processing efficiency can be improved.
Based on the content of the above embodiment, the apparatus for improving the data transmission efficiency of the 5G NR system further includes:
and the preprocessing module is used for determining the size of a reserved protocol header, wherein the size of the reserved protocol header is specifically the sum of the size of a PCDP protocol header and the size of an RLC protocol header.
Specifically, the preprocessing module determines the size of the reserved protocol header according to the version of the user plane protocol of the 5G NR system.
The IP layer of the base station receives the data message of the core network 1 packet, and the payload length is 1400 bytes.
For example, the length of the PDCP protocol header is denoted as M, and according to protocol 38.323, the sequence number of the PDCP SDU: either 12 bits (reserved) or 18 bits are used, if 18 bits are used, the PDCP entity protocol header length, the protocol header reserved 3 bytes, otherwise 2 bytes, i.e. M =3.
The length of the RLC AM protocol head is recorded as N, and the length is calculated according to the maximum length of the RLC AM entity protocol head of a 38.322,5G NR system: 5 bytes, i.e. N =5.
Thus, the IP layer reserves a memory space L of the protocol header size for each IP PDU may represent: l = M + N, i.e. L =8 bytes.
The device for improving the data transmission efficiency of the 5G NR system provided by the embodiment of the invention adopts the method of reserving the PDCP \ RLC protocol heads to realize that the IP, PDCP and RLC protocol layers share one memory to store data, thereby effectively improving the data processing efficiency.
Based on the content of the foregoing embodiment, the PDCP processing sub-module is specifically configured to:
and adding a PDCP protocol header at a position where the initial address of the memory space is shifted backwards by the offset size of the IP PDU and is shifted forwards by the size of the PDCP protocol header.
Specifically, the offset of the IP PDU is a reserved protocol header size.
And after receiving the IP PDU, the PDCP processing submodule adds a PDCP protocol head at a position where the initial address of the memory space firstly deviates from the size of the reserved protocol head backwards and then deviates from the size of the PDCP protocol head forwards.
The embodiment of the invention provides a specific function realization of determining the position of adding the PDCP protocol header by the PDCP processing submodule.
Based on the content of the foregoing embodiment, the RLC processing sub-module is specifically configured to:
and adding an RLC protocol head at a position where the starting address of the memory space is shifted backwards by the offset size of the PDCP PDU and is shifted forwards by the size of the RLC protocol head.
Specifically, the offset of the PDCP PDU is equal to the RLC protocol header size.
The RLC processing sub-module is specifically configured to, after receiving the PDCP PDU, offset the size of the RLC protocol header backwards from the starting address of the memory space, that is, find the position of the protocol header of the PDCP PDU, then offset the size of the RLC protocol header forwards, and add the RLC protocol header at this position.
The embodiment of the invention provides a specific function realization that the RLC processing submodule determines the position of adding the RLC protocol header.
Based on the content of the foregoing embodiment, the memory application module is specifically configured to:
and calling a system memory application function to apply for a memory space for the IP PDU, wherein the system memory application function returns the offset address of the IP PDU.
The embodiment of the invention applies for the memory space for the IP PDU by calling the system memory application function.
In one embodiment, the memory application is a system memory application function Mem _ Alloc () is called, the size of the memory space applied is data message length + reserved protocol header length (IP message length + L), and the function returns a memory address: pstData, IP PDUs are stored starting at the PstData location. The memory space is shared by IP, PDCP and RLC protocol layers, the PDCP and RLC carry out protocol head adding operation based on the memory space, and the RLC executes the final memory release.
The device for improving the data transmission efficiency of the 5G NR system provided by the embodiment of the invention applies for the memory by using the system memory application function, and reserves the protocol header, so that the IP layer, the PDCP and the RLC can share the memory to perform protocol processing.
Fig. 7 is a schematic entity structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 7, the electronic device may include: a processor (processor) 710, a communication Interface (Communications Interface) 720, a memory (memory) 730, and a communication bus 740, wherein the processor 710, the communication Interface 720, and the memory 730 communicate with each other via the communication bus 740. The processor 710 may invoke a computer program stored in the memory 730 and executable on the processor 710 to perform the method for improving the data transmission efficiency of the 5G NR system provided by the above method embodiments, for example, the method includes: adding an Internet Protocol (IP) protocol head to data to be transmitted, generating an IP Protocol Data Unit (PDU), applying for a memory space for the IP PDU, wherein the size of the memory space is the size of a reserved protocol head plus the length of the IP PDU, and storing the IP PDU in the initial address of the memory space plus the size offset position of the reserved protocol head; sending the IP PDU, informing a lower protocol layer that the length of the data to be transmitted is the size of the memory space, and informing the offset of the IP PDU; the lower protocol layer performs protocol data processing by combining the offset of the IP PDU and the size of the protocol header of the lower protocol layer based on the memory space; wherein the lower protocol layers include a packet data convergence protocol, PDCP, layer and a radio Link control, RLC, layer.
In addition, the logic instructions in the memory 730 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
An embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for improving data transmission efficiency of a 5G NR system, which is provided in the foregoing method embodiments, and includes: adding an Internet Protocol (IP) protocol head to data to be transmitted, generating an IP Protocol Data Unit (PDU), applying for a memory space for the IP PDU, wherein the size of the memory space is the size of a reserved protocol head plus the length of the IP PDU, and storing the IP PDU at the position of the initial address of the memory space plus the size deviation of the reserved protocol head; sending the IP PDU, informing a lower protocol layer that the length of the data to be transmitted is the size of the memory space, and informing the offset of the IP PDU; the lower protocol layer carries out protocol data processing by combining the offset of the IP PDU and the size of the protocol head of the lower protocol layer based on the memory space; wherein the lower protocol layers include a packet data convergence protocol, PDCP, layer and a radio Link control, RLC, layer.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for improving data transmission efficiency of a 5G NR system is characterized by comprising the following steps:
adding an Internet Protocol (IP) protocol head to data to be transmitted, generating an IP Protocol Data Unit (PDU), applying for a memory space for the IP PDU, wherein the size of the memory space is the size of a reserved protocol head plus the length of the IP PDU, and storing the IP PDU in the initial address of the memory space plus the size offset position of the reserved protocol head;
sending the IP PDU, informing a lower protocol layer that the length of the data to be transmitted is the size of the memory space, and informing the offset of the IP PDU;
the lower protocol layer carries out protocol data processing by combining the offset of the IP PDU and the size of the protocol head of the lower protocol layer based on the memory space;
wherein the lower protocol layer comprises a packet data convergence protocol PDCP layer and a radio link control RLC layer;
before applying for the memory space for the IP PDU, the method further includes:
determining the size of a reserved protocol header, wherein the size of the reserved protocol header is specifically the sum of the size of a PCDP protocol header and the size of an RLC protocol header;
based on the memory space, the lower protocol layer performs protocol data processing by combining the offset of the IP PDU and the size of the protocol header of the lower protocol layer, specifically:
after receiving the IP PDU, the PDCP layer adds a PDCP protocol head according to the offset of the IP PDU and the size of a PCDP protocol head based on the memory space;
after the PDCP layer finishes processing, generating a PDCP PDU, sending the PDCP PDU to an RLC layer, informing the RLC layer that the length of the data to be transmitted is the size of the memory space, and informing the deviation of the PDCP PDU;
after receiving the PDCP PDU, the RLC layer adds an RLC protocol head according to the offset of the PDCP PDU and the size of the RLC protocol head based on the memory space;
and after the RLC layer finishes processing, generating an RLC PDU, sending the RLC PDU to a Medium Access Control (MAC) layer, and waiting for the MAC layer to schedule.
2. The method according to claim 1, wherein based on the memory space, adding a PDCP protocol header according to the offset of the IP PDU and a PCDP protocol header size specifically comprises:
and adding a PDCP protocol header at the position where the initial address of the memory space offsets the offset size of the IP PDU backwards and offsets the PDCP protocol header size forwards.
3. The method according to claim 1, wherein based on the memory space, the RLC protocol header is added according to the offset of the PDCP PDU and the size of the RLC protocol header, specifically:
and adding an RLC protocol head at a position where the starting address of the memory space is shifted backwards by the offset size of the PDCP PDU and is shifted forwards by the size of the RLC protocol head.
4. The method of claim 1, wherein the applying for the memory space for the IP PDU specifically comprises:
and calling a system memory application function to apply for a memory space for the IP PDU, wherein the system memory application function returns the offset address of the IP PDU.
5. An apparatus for improving data transmission efficiency of a 5G NR system, comprising:
the device comprises a memory application module, a data transmission module and a data transmission module, wherein the memory application module is used for adding an Internet Protocol (IP) protocol head to data to be transmitted, generating an IP Protocol Data Unit (PDU), applying a memory space for the IP PDU, storing the IP PDU at a position of a starting address of the memory space plus the size deviation of the reserved protocol head, and adding the length of the IP PDU to the size of the reserved protocol head;
a sending module, configured to send the IP PDU, notify a lower protocol layer that the length of the data to be transmitted is the size of the memory space, and notify an offset of the IP PDU;
a protocol processing module, configured to perform protocol data processing based on the memory space by combining the offset of the IP PDU and the size of the protocol header of each lower protocol layer;
wherein the lower protocol layers include a packet data convergence protocol, PDCP, layer and a radio Link control, RLC, layer;
further comprising:
the device comprises a preprocessing module, a pre-processing module and a control module, wherein the preprocessing module is used for determining the size of a reserved protocol header, and the size of the reserved protocol header is specifically the sum of the size of a PCDP protocol header and the size of an RLC protocol header;
the protocol processing module specifically includes:
the PDCP processing submodule is used for adding a PDCP protocol head based on the memory space and according to the offset of the IP PDU and the size of the PCDP protocol head after receiving the IP PDU;
the PDCP sending submodule is used for generating a PDCP PDU, sending the PDCP PDU to an RLC layer, informing the RLC layer that the length of the data to be transmitted is the size of the memory space, and informing the deviation of the PDCP PDU;
the RLC processing submodule is used for adding an RLC protocol head according to the offset of the PDCP PDU and the size of the RLC protocol head based on the memory space after receiving the PDCP PDU;
and the RLC sending submodule is used for generating an RLC PDU, sending the RLC PDU to a Medium Access Control (MAC) layer and waiting for the MAC layer to schedule.
6. The apparatus according to claim 5, wherein the PDCP processing sub-module is specifically configured to:
and adding a PDCP protocol header at the position where the initial address of the memory space offsets the offset size of the IP PDU backwards and offsets the PDCP protocol header size forwards.
7. The apparatus according to claim 5, wherein the RLC processing sub-module is specifically configured to:
and adding an RLC protocol head at a position where the starting address of the memory space is shifted backwards by the offset size of the PDCP PDU and is shifted forwards by the size of the RLC protocol head.
8. The apparatus according to claim 5, wherein the memory application module is specifically configured to:
and calling a system memory application function to apply for a memory space for the IP PDU, wherein the system memory application function returns the offset address of the IP PDU.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of the method of improving the data transmission efficiency of a 5G NR system as claimed in any one of claims 1 to 4.
10. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor, performs the steps of the method for improving data transmission efficiency of a 5G NR system according to any of claims 1 to 4.
CN202010398813.6A 2020-05-12 2020-05-12 Method and device for improving data transmission efficiency of 5G NR system Active CN113660189B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010398813.6A CN113660189B (en) 2020-05-12 2020-05-12 Method and device for improving data transmission efficiency of 5G NR system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010398813.6A CN113660189B (en) 2020-05-12 2020-05-12 Method and device for improving data transmission efficiency of 5G NR system

Publications (2)

Publication Number Publication Date
CN113660189A CN113660189A (en) 2021-11-16
CN113660189B true CN113660189B (en) 2022-11-15

Family

ID=78488802

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010398813.6A Active CN113660189B (en) 2020-05-12 2020-05-12 Method and device for improving data transmission efficiency of 5G NR system

Country Status (1)

Country Link
CN (1) CN113660189B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009865A (en) * 2007-01-30 2007-08-01 中兴通讯股份有限公司 Data processing method for the packet service transfer link of the wireless communication system of the terminal
CN102316516A (en) * 2010-06-30 2012-01-11 重庆重邮信科通信技术有限公司 LTE uplink data transmission structure and control method
CN107708153A (en) * 2017-09-29 2018-02-16 重庆邮电大学 A kind of radio modem ascending packet data processing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009865A (en) * 2007-01-30 2007-08-01 中兴通讯股份有限公司 Data processing method for the packet service transfer link of the wireless communication system of the terminal
CN102316516A (en) * 2010-06-30 2012-01-11 重庆重邮信科通信技术有限公司 LTE uplink data transmission structure and control method
CN107708153A (en) * 2017-09-29 2018-02-16 重庆邮电大学 A kind of radio modem ascending packet data processing method

Also Published As

Publication number Publication date
CN113660189A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
US9532372B2 (en) Systems and methods for transmitting radio link control (RLC) data blocks
US20190312938A1 (en) Data Transmission Method And Apparatus
CN113014528B (en) Message processing method, processing unit and virtual private network server
CN112003937B (en) Satellite data transmission method, device, computer equipment and storage medium
CN109714134B (en) Receiving window sliding method and device
US20230071243A1 (en) Conserving network resources during transmission of packets of interactive services
CN108847919B (en) Data transmission method, base station and wireless communication equipment
CN111247765A (en) Data in-sequence submission method, network equipment and terminal equipment
CN109688606B (en) Data processing method and device, computer equipment and storage medium
CN112615701B (en) Data processing method and device
CN113660189B (en) Method and device for improving data transmission efficiency of 5G NR system
CN109067506A (en) A kind of lightweight asynchronous message implementation method concurrent based on multi-slide-windows mouth
CN112751775A (en) Data packet processing method and related device
CN107995315B (en) Method and device for synchronizing information between service boards, storage medium and computer equipment
CN112291180A (en) Message load balancing method
WO2019015487A1 (en) Data retransmission method, rlc entity and mac entity
WO2012094901A1 (en) Method, device and system for sending or receiving overlength short message
CN116963175A (en) Data transmission method, device and system
CN107612871A (en) A kind of data transmission processing method, user terminal, the network equipment and system
CN109462591B (en) Data transmission method, receiving method, device and system
CN111064673B (en) User plane data integrity protection method and device, electronic equipment and medium
CN112954405A (en) Data packet recovery method, device and system
CN109688085B (en) Transmission control protocol proxy method, storage medium and server
CN112087778A (en) Wireless data transmission method and system
EP2477365B1 (en) Transmission of encoded data packets

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant