CN113660189A - 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
CN113660189A
CN113660189A CN202010398813.6A CN202010398813A CN113660189A CN 113660189 A CN113660189 A CN 113660189A CN 202010398813 A CN202010398813 A CN 202010398813A CN 113660189 A CN113660189 A CN 113660189A
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.)
Granted
Application number
CN202010398813.6A
Other languages
Chinese (zh)
Other versions
CN113660189B (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 deviation 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, outputs the IP packet in the form of a PDCP PDU (Protocol data unit), and forwards the IP packet 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 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).
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 an IP layer, the PDCP layer is copied once, the data is copied once on an RLC layer, the data is copied three times, 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 problem, 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 the 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 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.
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 a PDCP protocol head and an RLC protocol head for the IP PDU of the data service to be transmitted, and an 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 applying and releasing the memory 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 diagram of IP packet processing at various protocol layers;
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 flow chart 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 a 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 a size of a reserved protocol header, that is, at a location where the starting address of the memory space is offset by 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, 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;
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 reduces the IP PDU into a PDCP SDU by decapsulation, and then adds a PDCP protocol header to the PDCP SDU, and specifically determines the position where the PDCP protocol header is added according to the offset of the IP PDU and the size of the PCDP protocol header based on the memory space, and then adds the PDCP protocol header, without copying data in this 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 the protocol 38.323, the sequence number of the PDCP SDU: either 12 bits (reserved) or 18 bits are used, and if 18 bits are used, the PDCP entity protocol header length is reserved for 3 bytes, otherwise 2 bytes are reserved, i.e. M-3.
The length of the RLC AM protocol header is recorded as N, and the length is calculated according to the protocol 38.322 and the maximum length of the RLC AM entity protocol header of the 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 IP packet length is 1400, when the IP PDU is sent, the PDCP layer is notified that the data length is 1408 and the data offset is (1408-1400) -8.
In this embodiment, after receiving the IP PDU, the PDCP protocol header is added to a position where the starting address of the memory space is shifted backward by the size of the reserved protocol header and then shifted forward by the size of the PDCP protocol header.
FIG. 4 is a diagram of a packet with PDCP SNs. 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 the PDCP processing is finished, the RLC data length is notified to 1408, and the data offset is (1408-.
The embodiment of the invention provides a specific method for determining the position of adding the 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 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.
According to the method for improving the data transmission efficiency of the 5G NR system, provided by the embodiment of the invention, the memory is applied by using the system memory application function, and the protocol header is reserved, 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, and after the processing is finished, the RLC PDU is sent 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 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 submodule is used for recovering the PDCP PDU after receiving the PDCP PDU through de-encapsulation, then adding an RLC protocol head for the RLC SDU, specifically determining 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 adding the RLC protocol head, wherein data do not need to be copied 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:
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.
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 PDCP protocol header length is denoted as M, and according to the protocol 38.323, the sequence number of the PDCP SDU: either 12 bits (reserved) or 18 bits are used, and if 18 bits are used, the PDCP entity protocol header length is reserved for 3 bytes, otherwise 2 bytes are reserved, i.e. M-3.
The length of the RLC AM protocol header is recorded as N, and the length is calculated according to the protocol 38.322 and the maximum length of the RLC AM entity protocol header of the 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 protocol header position 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 the 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 reserves the lower part of the protocol header by applying the memory by using the system memory application function, 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 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.
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 (14)

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 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.
2. The method according to claim 1, wherein 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.
3. The method of claim 1, wherein before applying for memory space for the IP PDU, the method further comprises:
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.
4. The method according to claim 2, 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 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.
5. The method according to claim 2, 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.
6. The method of claim 1, wherein applying for a memory space for the IP PDU specifically comprises:
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.
7. 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.
8. The apparatus for improving data transmission efficiency of a 5G NR system of claim 7, wherein the protocol processing module specifically comprises:
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.
9. The apparatus for improving data transmission efficiency of a 5G NR system according to claim 7, further comprising:
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.
10. The apparatus for improving data transmission efficiency of a 5G NR system of claim 8, wherein 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.
11. The apparatus for improving data transmission efficiency of a 5G NR system of claim 8, 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.
12. The apparatus for improving data transmission efficiency of a 5G NR system of claim 7 wherein 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.
13. 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 6.
14. 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 6.
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 true CN113660189A (en) 2021-11-16
CN113660189B 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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
3GPP工作组: "《3GPP TS 38.300 V15.9.0 》", 31 March 2020 *

Also Published As

Publication number Publication date
CN113660189B (en) 2022-11-15

Similar Documents

Publication Publication Date Title
US9532372B2 (en) Systems and methods for transmitting radio link control (RLC) data blocks
EP1060598B1 (en) Reduced packet header in wireless communications network
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
CN108847919B (en) Data transmission method, base station and wireless communication equipment
CN111247765A (en) Data in-sequence submission method, network equipment and terminal equipment
CN112929455B (en) UDP-based data transmission method, device, equipment and readable storage medium
CN112929431A (en) Message synchronous and asynchronous response conversion method and device based on micro-service framework
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
CN112615701A (en) Data processing method and device
WO2019015487A1 (en) Data retransmission method, rlc entity and mac entity
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
CN112954405A (en) Data packet recovery method, device and system
CN112491903A (en) Account checking method, device and system among multiple systems
CN114584262A (en) Data transmission method and related equipment
CN113207190A (en) Method, device and equipment for processing access layer IP packet
KR101695838B1 (en) Apparatus and method for transmitting/receiving data in communication system
EP2477365B1 (en) Transmission of encoded data packets
CN113141631B (en) Dual-connection data distribution method, device, equipment and storage medium
CN113782028A (en) Voice stream data processing method, device and system
CN115567977A (en) Transmission optimization method, system, electronic equipment and storage medium

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