CN113395239A - Data transmission method, device, related equipment and storage medium - Google Patents

Data transmission method, device, related equipment and storage medium Download PDF

Info

Publication number
CN113395239A
CN113395239A CN202010172667.5A CN202010172667A CN113395239A CN 113395239 A CN113395239 A CN 113395239A CN 202010172667 A CN202010172667 A CN 202010172667A CN 113395239 A CN113395239 A CN 113395239A
Authority
CN
China
Prior art keywords
protocol layer
pdu
layer
header
protocol
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.)
Pending
Application number
CN202010172667.5A
Other languages
Chinese (zh)
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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010172667.5A priority Critical patent/CN113395239A/en
Priority to PCT/CN2021/079759 priority patent/WO2021180075A1/en
Publication of CN113395239A publication Critical patent/CN113395239A/en
Pending legal-status Critical Current

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/22Parsing or analysis of headers

Landscapes

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

Abstract

The application discloses a data transmission method, a data transmission device, sending end equipment, receiving end equipment and a storage medium. The method comprises the following steps: sending end equipment sends a data packet; in a transmitted data packet, in a first protocol layer of the transmitting end device, a header of a Protocol Data Unit (PDU) is in a first position; the first position is other positions except for the starting position of a Service Data Unit (SDU) received from an upper protocol layer; the first protocol layer includes a protocol layer located below an internet protocol (IP layer) and above a protocol layer using an IP PDU header; the starting position includes the position of the header of the IP PDU in the SDU.

Description

Data transmission method, device, related equipment and storage medium
Technical Field
The present application relates to the field of wireless communications, and in particular, to a data transmission method, apparatus, related device, and storage medium.
Background
Fig. 1 shows a process flow of a Data Packet in layer 2, and as can be seen from fig. 1, in the related art, the Data Packet undergoes processing by four sublayers, namely, Service Data Adaptation Protocol (SDAP), Packet Data Convergence Protocol (PDCP), Radio Link Control (RLC), and Media Access Control (MAC), at layer 2, to obtain a MAC Protocol Data Unit (PDU) sent to an air interface.
When a plurality of lower Protocol layers are defined under an Internet Protocol (IP) layer, a new PDU is generated every time a lower Protocol layer passes through, and a PDU header is correspondingly generated. However, in the related art, for a lower protocol layer using IP PDUs below an IP layer, when performing corresponding processing based on PDUs of a protocol layer in an upper protocol layer, the corresponding processing cannot be performed correctly.
Disclosure of Invention
In order to solve the related technical problems, embodiments of the present application provide a data transmission method, an apparatus, related devices, and a storage medium.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a data transmission method, which is applied to sending end equipment and comprises the following steps:
sending a data packet; wherein the content of the first and second substances,
in the transmitted data packet, in a first protocol layer of the transmitting end device, a packet header of the PDU is at a first position; the first position is the other position except the initial position of the Service Data Unit (SDU) received from the upper protocol layer; the first protocol layer at least comprises a protocol layer which is positioned below the IP layer and is positioned above the protocol layer using the IP PDU header; the starting position includes the position of the header of the IP PDU in the SDU.
In the above solution, the first position includes one of the following positions:
a tail of the SDU;
a position in said SDU.
In the above solution, the first protocol layer includes at least one of the following protocol layers:
a protocol layer of layer 3 below the IP layer;
protocol layers of layer 2.
In the above solution, the protocol layer of the layer 2 includes at least one of the following protocol layers:
an SDAP layer;
a PDCP layer;
an RLC layer;
and a MAC layer.
In the above scheme, the length of the header of the PDU in the first protocol layer is fixed or variable.
In the above scheme, the length of the header of the PDU of the first protocol layer is variable; and the sent data packet carries the length information of the packet header of the PDU of the first protocol layer.
In the foregoing solution, in the sent data packet, the length information of the header of the PDU in the first protocol layer is located at the tail of the header of the PDU in the first protocol layer, or located at the tail of the SDU.
In the above scheme, the length of the header of the PDU of the first protocol layer exceeds one byte; and the start byte of the packet header of the PDU of the first protocol layer is positioned at the high address bit end or positioned at the low address bit end.
In the above solution, the first protocol layer further includes at least one of the following protocol layers:
a protocol layer using an IP PDU header;
a protocol layer below the protocol layer of the header of the IP PDU is used.
The embodiment of the present application further provides a data transmission method, which is applied to a receiving end device, and includes:
receiving a data packet; in the received data packet, in a first protocol layer of the sending end device, a packet header of the PDU is at a first position; the first position is other positions except the initial position of SDU received by an upper protocol layer; the first protocol layer at least comprises a protocol layer which is positioned below the IP layer and is positioned above the protocol layer using the IP PDU header; the starting position comprises the position of the packet head of the IP PDU in the SDU;
at a first protocol layer of the receiving end device, parsing is started from a first position in the received PDU.
In the above solution, the first position includes one of the following positions:
a tail of the SDU;
a position in said SDU.
In the above solution, the first protocol layer includes at least one of the following protocol layers:
a protocol layer of layer 3 below the IP layer;
protocol layers of layer 2.
In the above solution, the protocol layer of the layer 2 includes at least one of the following protocol layers:
an SDAP layer;
a PDCP layer;
an RLC layer;
and a MAC layer.
In the above scheme, the length of the header of the PDU in the first protocol layer is fixed or variable.
In the above scheme, the length of the header of the PDU of the first protocol layer is variable; and the sent data packet carries the length information of the packet header of the PDU of the first protocol layer.
In the above scheme, the method further comprises:
analyzing the second position of the first protocol layer PDU to obtain the length information of the packet header of the first protocol layer PDU; the second position comprises one of:
a tail part of a packet header of the PDU of the first protocol layer;
a tail of the SDU.
In the above scheme, the length of the header of the PDU of the first protocol layer exceeds one byte; the resolution starts from the high address bit end or the low address bit end.
In the above solution, the first protocol layer further includes at least one of the following protocol layers:
a protocol layer using an IP PDU header;
a protocol layer below the protocol layer of the header of the IP PDU is used.
The embodiment of the present application further provides a data transmission apparatus, which is arranged on the sending end device, and includes:
a transmitting unit for transmitting a data packet; wherein the content of the first and second substances,
in the transmitted data packet, in a first protocol layer of the transmitting end device, a packet header of the PDU is at a first position; the first position is other positions except the initial position of SDU received from an upper protocol layer; the first protocol layer at least comprises a protocol layer which is positioned below the IP layer and is positioned above the protocol layer using the IP PDU header; the starting position includes the position of the header of the IP PDU in the SDU.
The embodiment of the present application further provides a data transmission apparatus, which is arranged on the receiving end device, and includes:
a receiving unit for receiving a data packet; in the received data packet, at a first protocol layer of an IP layer of the sending end equipment, a packet header of the PDU is at a first position; the first position is other positions except the initial position of SDU received by an upper protocol layer; the first protocol layer at least comprises a protocol layer which is positioned below the IP layer and is positioned above the protocol layer using the IP PDU header; the starting position comprises the position of the packet head of the IP PDU in the SDU;
and the second processing unit is used for starting to analyze from the first position in the received PDU at the first protocol layer of the receiving terminal equipment.
The embodiment of the present application further provides a sending end device, including: a first communication interface and a first processor; in (1),
the first communication interface is used for sending data packets; wherein the content of the first and second substances,
in the transmitted data packet, in a first protocol layer of the transmitting end device, a packet header of the PDU is at a first position; the first position is other positions except the initial position of SDU received from an upper protocol layer; the first protocol layer at least comprises a protocol layer which is positioned below the IP layer and is positioned above the protocol layer using the IP PDU header; the starting position includes the position of the header of the IP PDU in the SDU.
The embodiment of the present application further provides a receiving end device, including:
a second communication interface for receiving a data packet; in the received data packet, in a first protocol layer of the sending end device, a packet header of the PDU is at a first position; the first position is other positions except the initial position of SDU received by an upper protocol layer; the first protocol layer at least comprises a protocol layer which is positioned below the IP layer and is positioned above the protocol layer using the IP PDU header; the starting position comprises the position of the packet head of the IP PDU in the SDU;
a second processor, configured to, at a first protocol layer of the receiving end device, start parsing from a first position in the received PDU.
The embodiment of the present application further provides a sending end device, including: a first processor and a first memory for storing a computer program capable of running on the processor,
wherein the first processor is configured to execute the steps of any one of the methods at the transmitting end device side when the computer program is executed.
The embodiment of the present application further provides a receiving end device, which includes: a second processor and a second memory for storing a computer program capable of running on the processor,
wherein the second processor is configured to execute the steps of any one of the methods of the receiving end device side when the computer program is executed.
An embodiment of the present application further provides a storage medium, where a computer program is stored, and when executed by a processor, the computer program implements the steps of any method on the transmitting-end device side, or implements the steps of any method on the receiving-end device side.
According to the data transmission method, the data transmission device, the related equipment and the storage medium, the sending end equipment sends the data packet; in the transmitted data packet, in a first protocol layer of the transmitting end device, a packet header of the PDU is at a first position; the first position is other positions except the initial position of SDU received from an upper protocol layer; the first protocol layer at least comprises a protocol layer which is positioned below the IP layer and is positioned above the protocol layer using the IP PDU header; the starting position comprises the position of the packet head of the IP PDU in the SDU; after receiving end equipment receives a data packet, at a first protocol layer of the receiving end equipment, analyzing is started from a first position in the received PDU, and for a certain lower protocol layer needing to use the IP PDU under an IP layer, the packet header of the PDU of an upper protocol layer is not at the initial position of the PDU, but the position of the IP PDU is unchanged, so that the packet header of the IP PDU can be accurately obtained, and the processing can be correctly carried out based on the IP PDU.
Drawings
FIG. 1 is a flow chart illustrating a process of data packet processing in layer 2 according to the related art;
FIG. 2 is a diagram illustrating a format of a downlink SDAP PDU according to the related art;
FIG. 3 is a diagram illustrating a format of an uplink SDAP PDU according to the related art;
FIG. 4 is a diagram illustrating a format of a PDCP PDU applied to a signaling radio bearer in the related art;
fig. 5 is a flowchart illustrating a method for data transmission according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating another data transmission method according to an embodiment of the present application;
fig. 7 is a schematic diagram of a PDU format in which a PDU header is disposed at the end of an SDU according to an embodiment of the present application;
fig. 8 is a schematic diagram of an SDAP PDU format in which an SDAP PDU header is disposed at an SDU tail according to an embodiment of the present application;
FIG. 9 is a diagram illustrating a PDCP PDU format in which a PDCP PDU header is disposed at a tail of an SDU according to an embodiment of the present application;
FIG. 10 is a schematic structural diagram of a data transmission device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of another data transmission apparatus according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a sending end device according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a receiving end device according to an embodiment of the present application;
fig. 14 is a schematic structure of a data transmission system according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples.
In the related art, as shown in fig. 2 and 3, the header of the PDU of the SDAP precedes the packet; as shown in fig. 4, the header of the PDU of the PDCP is also in front of the data packet, that is, the header of the PDU is at the beginning (also understood as the beginning) of the PDU, which has a problem: when a plurality of lower protocol layers are defined below an IP layer, each time a lower protocol layer is added for processing, a new PDU is generated, that is, a PDU header is generated, that is, for an IP PDU (i.e., a PDU built by the IP layer), each time the lower protocol layer is processed, a new PDU is generated, and a PDU header is correspondingly generated, and the header of each PDU is at the beginning of the PDU of the upper protocol layer, which may cause a problem that the IP PDU header cannot be correctly found when the lower protocol layer performs various functional processes based on the IP PDU. For example, at present, the header compression function of the PDCP layer is for the IP PDU header, and since the SDAP PDU (i.e. the PDU header constructed by the SDAP layer) is added to the SDAP layer and the SDAP PDU header is located at the start position of the IP PDU, the PDCP layer cannot compress the IP PDU header. For this problem, the related art is designed to skip one byte (if the signaling configuration shows that the SDAP PDU header exists, and the length of the SDAP PDU header is defined as one byte) to solve the problem. However, this approach is equivalent to the PDCP layer operating under the premise of the known processing of the SDAP layer. If the PDCP layer does not know the processing of the SDAP PDU header added by the SDAP layer, the PDCP layer cannot correctly perform the compression function of the IP PDU header.
That is, in the related art, for a lower protocol layer using IP PDUs below an IP layer, when performing corresponding processing based on PDUs of a protocol layer in an upper protocol layer, the corresponding processing cannot be correctly performed.
Based on this, in various embodiments of the present application, in the first protocol layer, a header of the PDU is in a first position; the first position is the position except the initial position of the SDU received from the upper protocol layer, namely the head of the PDU of the upper protocol layer is not at the initial position of the PDU; the first protocol layer at least comprises a protocol layer which is positioned below the IP layer and is positioned above the protocol layer using the IP PDU header; the starting position includes the position of the header of the IP PDU in the SDU.
The embodiment of the application provides a data transmission method, which is applied to sending end equipment and comprises the following steps:
sending a data packet; wherein the content of the first and second substances,
in the transmitted data packet, in a first protocol layer of the transmitting end device, a packet header of the PDU is at a first position; the first position is other positions except the initial position of SDU received from an upper protocol layer; the first protocol layer at least comprises a protocol layer which is positioned below the IP layer and is positioned above the protocol layer using the IP PDU header; the starting position includes the position of the header of the IP PDU in the SDU.
Here, in practical application, the sending end device may be a network device, such as a base station; the receiving end equipment can be a terminal; of course, the sending end device may also be a terminal, and the receiving end device may be a network device.
The protocol layer using the IP PDU header means: in the corresponding protocol layer, processing of some function, such as compressing the IP PDU header, is required based on the IP PDU header.
In the User Plane (UP, User Plane), each additional data processing protocol layer basically adds a header of the protocol layer to a data packet, that is, for a data processing protocol layer (for example, the first protocol layer), SDU is input, and PDU is output.
In practical applications, in a case that the starting position includes a position of a header of an IP PDU in an SDU, the other position should be a position other than the header of the IP PDU in the SDU, that is, the header of the PDU in the first protocol layer should not be set at a position in the header of the IP PDU, but should be set at a position in the SDU other than the header of the IP PDU.
In one embodiment, the first position comprises one of:
a tail of the SDU;
a position in said SDU.
Here, one position in the SDU means: one position of the SDU except for the starting position and the tail part.
In one embodiment, the first protocol layer includes at least one of the following protocol layers:
a protocol layer of layer 3 (i.e., a network layer) below the IP layer;
the protocol layer of layer 2 (i.e., the data link layer).
Wherein, the protocol layer of layer 3 below the IP layer is as follows: the layer 3 protocol layer below the IP layer, for example, a new layer 3 protocol layer below the IP layer, where the new layer 3 protocol layer performs related processing such as sending and receiving on the data packet. In practical applications, the protocol layer of layer 3 may include: a Radio Resource Control (RRC) layer.
In one embodiment, the protocol layer of layer 2 may comprise at least one of the following protocol layers:
an SDAP layer;
a PDCP layer;
an RLC layer;
and a MAC layer.
Here, it should be noted that, in practical applications, the layer 2 protocol layer of the embodiment of the present application may include an additional layer 2 protocol layer in addition to the above protocol layer.
Meanwhile, in the embodiment of the present application, the protocol layer of layer 3 and the protocol layer of layer 2 below the IP layer refer to the protocol layers belonging to the Access Stratum (AS), that is, refer to: the protocol layers are deployed at the base station and terminal sides rather than at the core network.
For the first protocol layer, it is assumed that at the L2 layer, the process of the data packet adopts the flow shown in fig. 1, and the protocol layer immediately below the IP layer is an SDAP layer, and the PDCP layer below the IP layer needs to use the header of the IP PDU, so the first protocol layer at least includes the SDAP layer; for another example, if the MAC layer below the IP layer needs to use the header of the IP PDU, the first protocol layer at least includes the SDAP layer and the PDCP layer.
In practical application, the first protocol layer further comprises at least one of the following protocol layers:
a protocol layer using an IP PDU header;
the lower protocol layer of the protocol layer using the header of the IP PDU.
Wherein, the lower protocol layer of the protocol layer using the IP PDU header refers to: and the protocol layer is positioned below the protocol layer of the IP PDU header. Illustratively, as shown in the flow of fig. 1, when the PDCP layer needs to use the header of the IP PDU, the lower protocol layer of the protocol layer using the header of the IP PDU may include an RLC layer and/or a MAC layer.
In practical applications, when the scheme of the embodiment of the present application is adopted in each of the plurality of lower protocol layers located below the IP layer, the first location may be the same location for each of the plurality of lower protocol layers, for example, the first location is a tail of the corresponding SDU, or the first location may be a different location, for example, in the SDAP layer, the first location is a tail of the corresponding SDU, and in the PDCP layer, the first location is one of the corresponding SDUs. Of course, for convenience of use, for each of the plurality of lower protocol layers, the first position is a tail of the corresponding SDU.
In practical applications, the length of the PDU header of the first protocol layer may be fixed, that is, the length of the PDU header of the first protocol layer is fixed, and of course, the length of the PDU header of the first protocol layer may also be variable, that is, the length of the PDU header of the first protocol layer may be variable.
Here, in practical applications, when the length of the header of the PDU in the first protocol layer is variable, a length indication of the header needs to be carried, and the header of the PDU in the first protocol layer can be completely obtained through the length indication.
Based on this, in an embodiment, the sent data packet carries length information of a header of the PDU of the first protocol layer.
Specifically, the length information of the header of the PDU in the first protocol layer may be located at the tail of the header of the PDU in the first protocol layer, or may be located at the tail of the SDU.
In practical application, if the length of the PDU header of the first protocol layer exceeds one byte, the beginning byte of the PDU header may be at the high address bit end or at the low address bit end, for example, if the memory address of the last data byte of the SDU is: p, the first byte of the header of the PDU may be set at the memory address of p +1, or may be set at the memory address of p + L, where L is the byte length of the header of the PDU.
In practical application, when all the lower protocol layers below the IP layer adopt the scheme of the embodiment of the present application, for an IP PDU, each time a PDU header corresponding to the protocol functional entity needs to be added after being processed by a lower protocol functional entity, the PDU header corresponding to the PDU header is added at the tail of the data packet or other positions except the beginning part, so that after all the lower protocol layers are processed, the IP header is always set at the beginning position of the PDU, that is, the position of the IP header is fixed.
Here, according to the related art, the header compression function of the PDCP layer is directed to the header of the IP PDU, in which case the header of the SDAP PDU constructed by the SDAP layer and the header of the PDCP PDU constructed by the PDCP layer may be disposed at the end of the IP PDU or at a position other than the beginning (i.e., excluding the header of the IP PDU), such as a certain position in the middle. For the RLC layer and the MAC layer, the header of the PDU constructed by the RLC layer and the MAC layer may be placed at the starting position, or may not be placed at the starting position, i.e., at a middle position, or at the end).
Correspondingly, an embodiment of the present application further provides a data transmission method, which is applied to a receiving end device, as shown in fig. 5, the method includes:
step 501: receiving a data packet;
in the received data packet, in a first protocol layer of the sending end device, a packet header of the PDU is at a first position; the first position is other positions except the initial position of SDU received by an upper protocol layer; the first protocol layer comprises a protocol layer which is positioned below the IP layer and is positioned above a protocol layer using an IP PDU header; the starting position includes the position of the header of the IP PDU in the SDU.
Step 502: at a first protocol layer of the receiving end device, parsing is started from a first position in the received PDU.
In one embodiment, the length of the header of the PDU of the first protocol layer is variable; the sent data packet carries the length information of the PDU head.
Here, in an embodiment, the method may further include:
the receiving end equipment analyzes the second position of the first protocol layer PDU to obtain the length information of the packet header of the first protocol layer PDU; the second position comprises one of:
a tail part of a packet header of the PDU of the first protocol layer;
a tail of the SDU.
In one embodiment, the length of the header of the PDU of the first protocol layer exceeds one byte; the receiving end equipment starts to analyze from a high address bit end or a low address bit end.
Here, specifically, when a header start byte of the PDU of the first protocol layer is located at a high address bit end, the receiving end device starts parsing from the high address end; when the start byte of the packet header of the PDU of the first protocol layer is located at the low address bit end, the receiving end device starts parsing from the low address bit end.
An embodiment of the present application provides a data transmission method, as shown in fig. 6, the method includes:
step 601: sending end equipment sends a data packet;
in the transmitted data packet, in a first protocol layer of the transmitting end device, a header of a PDU is in a first position; the first position is other positions except the initial position of SDU received from an upper protocol layer; the first protocol layer comprises a protocol layer which is positioned below the IP layer and is positioned above a protocol layer using an IP PDU header; the starting position includes the position of the header of the IP PDU in the SDU.
Step 602: after receiving the data packet, the receiving end device starts parsing from the first position in the received PDU at the first protocol layer of the receiving end device.
It should be noted that: the specific processing procedures of the sending end device and the receiving end device are described in detail above, and are not described in detail here.
In the data transmission method provided by the embodiment of the application, the sending end equipment sends a data packet; in the transmitted data packet, in a first protocol layer of the transmitting end device, a packet header of the PDU is at a first position; the first position is other positions except the initial position of SDU received from an upper protocol layer; the first protocol layer comprises a protocol layer which is positioned below the IP layer and is positioned above a protocol layer using an IP PDU header; the starting position comprises the position of the packet head of the IP PDU in the SDU; and after receiving end equipment receives the data packet, the receiving end equipment starts to analyze from the first position in the received PDU at the I first protocol layer of the receiving end equipment, and for a certain lower protocol layer needing to use the IP PDU under the IP layer, the packet header of the PDU of an upper protocol layer is not at the initial position of the PDU, but the position of the IP PDU is not changed, so that the packet header of the IP PDU can be accurately obtained, and the processing can be correctly carried out based on the IP PDU.
The present application will be described in further detail with reference to the following application examples.
Application embodiment 1
In this embodiment, the header of the PDU is set at the end of the SDU. Wherein, in practical application, the SDU may be an IP PDU, or a PDU of a lower protocol layer below the IP layer. As shown in fig. 7, the Header of the PDU is disposed at the end of the SDU, and if there are a plurality of bytes, a Length field (Header Length) is added at the end of the PDU packet to indicate the Length of the PDU Header. The first byte of the PDU header may be located next to the SDU or next to the length field.
Application example two
In this application, the head of the SDAP PDU is placed at the end of the SDU. As shown in fig. 8, since the header length of the SDAP PDU is 1 byte, no length field is required. The SDAP SDU is an IP packet, so that the head of the SDAP PDU is added, and the position of the IP head is not influenced. The operation when the PDCP layer performs header compression is exactly the same as the process when there is no SDAP layer.
Application example three
In the embodiment of the present application, the header of the PDCP PDU is placed at the end of the SDU. As shown in FIG. 9, since the header length of the PDCP PDU exceeds one byte, if the start field is placed near the PDCP SDU, the length field of the header needs to be increased. When the SDAP PDU is processed in the SDAP layer by adopting the mode of the second application embodiment, although the IP packet is processed by the packet headers of the SDAP sublayer and the PDCP sublayer, the IP packet is still the IP packet at the initial part of the dead load (Payload). In the PDCP layer, the header of the IP PDU can be accurately obtained, so that the operations such as header compression, integrity protection, ciphering, etc. can be performed exactly the same as the processing performed when the SDAP sublayer does not exist.
As can be seen from the above application embodiments, after the scheme of the embodiment of the present application is adopted, although the PDAP and PDCP layers below the IP layer are processed, the header of the IP PDU (i.e., IP packet) is not covered by the PDU headers of the two protocol layers, and the IP PDU header is still at the start position, so that the header of the IP PDU can be correctly obtained, and the processing can be correctly performed based on the IP PDU.
In order to implement the method according to the embodiment of the present application, an embodiment of the present application further provides a data transmission apparatus, which is arranged on the sending-end device, and as shown in fig. 10, the apparatus includes:
a sending unit 101, configured to send a data packet; wherein the content of the first and second substances,
in the transmitted data packet, in a first protocol layer of the transmitting end device, a packet header of the PDU is at a first position; the first position is other positions except the initial position of SDU received from an upper protocol layer; the first protocol layer comprises a protocol layer which is positioned below the IP layer and is positioned above a protocol layer using an IP PDU header; the starting position includes the position of the header of the IP PDU in the SDU.
In an embodiment, as shown in fig. 10, the apparatus may further include:
the first processing unit 102 is configured to, at a first protocol layer of the sending end device, set a header of a PDU at a first position.
It should be noted that: when the length of the header of the PDU of the first protocol layer is variable, the first processing unit 102 is further configured to set length information of the header of the PDU of the first protocol layer in a data packet.
In practical application, the sending unit 101 may be implemented by a communication interface in a data transmission device; the first processing unit 102 may be implemented by a processor in a data transmission device.
In order to implement the method of the receiving end device side in the embodiment of the present application, an embodiment of the present application further provides a data transmission device, which is disposed on the receiving end device, and as shown in fig. 11, the data transmission device includes:
a receiving unit 111, configured to receive a data packet; in the received data packet, in a first protocol layer of the sending end device, a packet header of the PDU is at a first position; the first position is other positions except the initial position of SDU received by an upper protocol layer; the first protocol layer comprises a protocol layer which is positioned below the IP layer and is positioned above a protocol layer using an IP PDU header; the starting position comprises the position of the packet head of the IP PDU in the SDU;
a second processing unit 112, configured to start parsing from a first position in the received PDU at an I first protocol layer of the receiving end device.
In an embodiment, the length of the header of the PDU of the first protocol layer is variable; and the sent data packet carries the length information of the packet header of the PDU of the first protocol layer.
Here, the second processing unit 112 is further configured to parse a second position of the first protocol layer PDU, and obtain length information of a packet header of the first protocol layer PDU; the second position comprises one of:
a tail part of a packet header of the PDU of the first protocol layer;
a tail of the SDU.
In one embodiment, the length of the header of the PDU of the first protocol layer exceeds one byte; the second processing unit 112 starts parsing from the high address bit side or the low address bit side.
In practical applications, the receiving unit 111 may be implemented by a communication interface in a data transmission device; the second processing unit 112 may be implemented by a processor in a data transmission device.
It should be noted that: in the data transmission device provided in the above embodiment, only the division of the program modules is exemplified when data transmission is performed, and in practical applications, the processing distribution may be completed by different program modules according to needs, that is, the internal structure of the device may be divided into different program modules to complete all or part of the processing described above. In addition, the data transmission device and the data transmission method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Based on the hardware implementation of the program module, and in order to implement the method on the sending-end device side in the embodiment of the present application, an embodiment of the present application further provides a sending-end device, and as shown in fig. 12, the sending-end device 120 includes:
a first communication interface 121, which is capable of performing information interaction with a receiving end device;
the first processor 122 is connected to the first communication interface 121 to implement information interaction with a receiving end device, and is configured to execute a method provided by one or more technical solutions of the sending end device side when running a computer program. And the computer program is stored on the first memory 123.
Specifically, the first communication interface 121 is configured to send a data packet; wherein the content of the first and second substances,
in the transmitted data packet, at the first protocol layer of the sending end device 120, the header of the PDU is at a first position; the first position is other positions except the initial position of SDU received from an upper protocol layer; the first protocol layer comprises a protocol layer which is positioned below the IP layer and is positioned above a protocol layer using an IP PDU header; the starting position includes the position of the header of the IP PDU in the SDU.
In an embodiment, the first processor 122 is configured to set, at a first protocol layer of the sending end device, a header of the PDU at a first position.
In an embodiment, the first processor 122 is further configured to set length information of the header of the PDU of the first protocol layer in a data packet when the length of the header of the PDU of the first protocol layer is variable.
It should be noted that: the specific processes of the first processor 122 and the first communication interface 121 can be understood with reference to the above-described methods.
Of course, in practice, the various components in the initiator device 120 are coupled together by a bus system 124. It will be appreciated that the bus system 124 is used to enable communications among the components. The bus system 124 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 124 in fig. 12.
The first memory 123 in the embodiment of the present application is used to store various types of data to support the operation of the transmitting end device 120. Examples of such data include: any computer program for operation on the sender device 120.
The method disclosed in the embodiment of the present application may be applied to the first processor 122, or implemented by the first processor 122. The first processor 122 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the first processor 122. The first Processor 122 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The first processor 122 may implement or perform the methods, steps and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium located in the first memory 123, and the first processor 122 reads the information in the first memory 123, and completes the steps of the foregoing method in combination with its hardware.
In an exemplary embodiment, the sender Device 120 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the aforementioned methods.
Based on the hardware implementation of the program module, and in order to implement the method on the receiving end device side in the embodiment of the present application, an embodiment of the present application further provides a receiving end device, as shown in fig. 13, the receiving end device 130 includes:
a second communication interface 131, which can perform information interaction with the sending-end device;
the second processor 132 is connected to the second communication interface 131 to implement information interaction with the sending end device, and is configured to execute a method provided by one or more technical solutions of the receiving end device side when running a computer program. And the computer program is stored on the second memory 133.
Specifically, the second communication interface 131 is configured to receive a data packet; in the received data packet, in a first protocol layer of the sending end device, a packet header of the PDU is at a first position; the first position is other positions except the initial position of SDU received by an upper protocol layer; the first protocol layer comprises a protocol layer which is positioned below the IP layer and is positioned above a protocol layer using an IP PDU header; the starting position comprises the position of the packet head of the IP PDU in the SDU;
a second processor 132, configured to start parsing from a first position in the received PDU at the first protocol layer of the receiving end device.
In an embodiment, the length of the header of the PDU of the first protocol layer is variable; and the sent data packet carries the length information of the packet header of the PDU of the first protocol layer.
Here, the second processor 132 is further configured to parse a second position of the first protocol layer PDU, and obtain length information of a packet header of the first protocol layer PDU; the second position comprises one of:
a tail part of a packet header of the PDU of the first protocol layer;
a tail of the SDU.
In one embodiment, the length of the header of the PDU of the first protocol layer exceeds one byte; the second processor 132 starts parsing from the high address bit end or the low address bit end.
It should be noted that: the specific processes of the second processor 132 and the second communication interface 131 can be understood with reference to the above-described methods.
Of course, in practice, the various components in the sink device 130 are coupled together by the bus system 134. It will be appreciated that the bus system 134 is used to enable communications among the components. The bus system 134 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 134 in FIG. 13.
The second memory 133 in the embodiment of the present application is used for storing various types of data to support the receiving end device 130 to operate. Examples of such data include: any computer program for operating on the sink device 130.
The method disclosed in the embodiment of the present application may be applied to the second processor 132, or implemented by the second processor 132. The second processor 132 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the second processor 132. The second processor 132 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The second processor 132 may implement or perform the methods, steps and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium located in the second memory 133, and the second processor 132 reads the information in the second memory 133 and, in combination with its hardware, performs the steps of the foregoing method.
In an exemplary embodiment, the sink device 130 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general-purpose processors, controllers, MCUs, microprocessors, or other electronic components for performing the aforementioned methods.
It is understood that the memories (the first memory 123 and the second memory 133) of the embodiments of the present application may be volatile memories or nonvolatile memories, and may include both volatile and nonvolatile memories. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memories described in the embodiments of the present application are intended to comprise, without being limited to, these and any other suitable types of memory.
In order to implement the method according to the embodiment of the present application, an embodiment of the present application further provides a data transmission system, as shown in fig. 14, where the system includes:
a sending-end device 141, configured to send a data packet; in the transmitted data packet, in a first protocol layer of the transmitting end device, a header of a PDU is in a first position; the first position is other positions except the initial position of SDU received from an upper protocol layer; the first protocol layer comprises a protocol layer which is positioned below the IP layer and is positioned above a protocol layer using an IP PDU header; the starting position comprises the position of the packet head of the IP PDU in the SDU;
a receiving end device 142 for receiving data packets; at the first protocol layer of the receiving end device 142, parsing starts from the first position in the received PDU.
It should be noted that: the specific processing procedures of the initiator device 141 and the sink device 142 are described in detail above, and are not described here again.
In an exemplary embodiment, the present application further provides a storage medium, specifically a computer-readable storage medium, for example, a first memory 123 storing a computer program, where the computer program is executable by the first processor 122 of the transmitting-end device 120 to perform the steps of the side-by-side method of the transmitting-end device. For example, the second memory 133 may store a computer program, which may be executed by the second processor 132 of the receiving device 130 to perform the steps of the receiving device side method. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
It should be noted that: "first," "second," and the like are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The technical means described in the embodiments of the present application may be arbitrarily combined without conflict.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (21)

1. A data transmission method is applied to sending terminal equipment and comprises the following steps:
sending a data packet; wherein the content of the first and second substances,
in a transmitted data packet, in a first protocol layer of the transmitting end device, a packet header of a protocol data unit PDU is at a first position; the first position is the other position except the initial position of the service data unit SDU received from the upper protocol layer; the first protocol layer at least comprises a protocol layer which is positioned below an Internet Protocol (IP) layer and is positioned above a protocol layer using an IP PDU header; the starting position includes the position of the header of the IP PDU in the SDU.
2. The method of claim 1, wherein the first location comprises one of:
a tail of the SDU;
a position in said SDU.
3. The method of claim 1, wherein the first protocol layer comprises at least one of the following protocol layers:
a protocol layer of layer 3 below the IP layer;
protocol layers of layer 2.
4. The method of claim 3, wherein the layer 2 protocol layer comprises at least one of the following protocol layers:
a service data adaptation protocol SDAP layer;
a packet data convergence protocol PDCP layer;
a radio link control, RLC, layer;
a medium access control MAC layer.
5. The method of claim 1, wherein a header of the PDU of the first protocol layer has a variable length; and the sent data packet carries the length information of the packet header of the PDU of the first protocol layer.
6. The method according to claim 5, wherein in the transmitted data packet, the length information of the header of the PDU of the first protocol layer is located at the tail of the header of the PDU of the first protocol layer or at the tail of the SDU.
7. The method according to any of claims 1 to 6, wherein the first protocol layer further comprises at least one of the following protocol layers:
a protocol layer using an IP PDU header;
a protocol layer below the protocol layer of the header of the IP PDU is used.
8. A data transmission method is applied to a receiving end device, and comprises the following steps:
receiving a data packet; in the received data packet, in a first protocol layer of the sending end device, a packet header of the PDU is at a first position; the first position is other positions except the initial position of SDU received by an upper protocol layer; the first protocol layer at least comprises a protocol layer which is positioned below the IP layer and is positioned above the protocol layer using the IP PDU header; the starting position comprises the position of the packet head of the IP PDU in the SDU;
at a first protocol layer of the receiving end device, parsing is started from a first position in the received PDU.
9. The method of claim 8, wherein the first location comprises one of:
a tail of the SDU;
a position in said SDU.
10. The method of claim 8, wherein the first protocol layer comprises at least one of the following protocol layers:
a protocol layer of layer 3 below the IP layer;
protocol layers of layer 2.
11. The method of claim 10, wherein the layer 2 protocol layer comprises at least one of the following protocol layers:
an SDAP layer;
a PDCP layer;
an RLC layer;
and a MAC layer.
12. The method of claim 8, wherein a header of the PDU of the first protocol layer has a variable length; and the sent data packet carries the length information of the packet header of the PDU of the first protocol layer.
13. The method of claim 12, further comprising:
analyzing the second position of the first protocol layer PDU to obtain the length information of the packet header of the first protocol layer PDU; the second position comprises one of:
a tail part of a packet header of the PDU of the first protocol layer;
a tail of the SDU.
14. The method according to any of claims 8 to 13, wherein the first protocol layer further comprises at least one of the following protocol layers:
a protocol layer using an IP PDU header;
a protocol layer below the protocol layer of the header of the IP PDU is used.
15. A data transmission apparatus, provided on a sending-end device, comprising:
a transmitting unit for transmitting a data packet; wherein the content of the first and second substances,
in the transmitted data packet, in a first protocol layer of the transmitting end device, a packet header of the PDU is at a first position; the first position is other positions except the initial position of SDU received from an upper protocol layer; the first protocol layer at least comprises a protocol layer which is positioned below the IP layer and is positioned above the protocol layer using the IP PDU header; the starting position includes the position of the header of the IP PDU in the SDU.
16. A data transmission apparatus, provided on a receiving-end device, comprising:
a receiving unit for receiving a data packet; in the received data packet, at a first protocol layer of an IP layer of the sending end equipment, a packet header of the PDU is at a first position; the first position is other positions except the initial position of SDU received by an upper protocol layer; the first protocol layer at least comprises a protocol layer which is positioned below the IP layer and is positioned above the protocol layer using the IP PDU header; the starting position comprises the position of the packet head of the IP PDU in the SDU;
and the second processing unit is used for starting to analyze from the first position in the received PDU at the first protocol layer of the receiving terminal equipment.
17. A transmitting-end device, comprising: a first communication interface and a first processor; in (1),
the first communication interface is used for sending data packets; wherein the content of the first and second substances,
in the transmitted data packet, in a first protocol layer of the transmitting end device, a packet header of the PDU is at a first position; the first position is other positions except the initial position of SDU received from an upper protocol layer; the first protocol layer at least comprises a protocol layer which is positioned below the IP layer and is positioned above the protocol layer using the IP PDU header; the starting position includes the position of the header of the IP PDU in the SDU.
18. A receiving-end device, comprising:
a second communication interface for receiving a data packet; in the received data packet, in a first protocol layer of the sending end device, a packet header of the PDU is at a first position; the first position is other positions except the initial position of SDU received by an upper protocol layer; the first protocol layer at least comprises a protocol layer which is positioned below the IP layer and is positioned above the protocol layer using the IP PDU header; the starting position comprises the position of the packet head of the IP PDU in the SDU;
a second processor, configured to, at a first protocol layer of the receiving end device, start parsing from a first position in the received PDU.
19. A transmitting-end device, comprising: a first processor and a first memory for storing a computer program capable of running on the processor,
wherein the first processor is adapted to perform the steps of the method of any one of claims 1 to 7 when running the computer program.
20. A receiving-end device, comprising: a second processor and a second memory for storing a computer program capable of running on the processor,
wherein the second processor is adapted to perform the steps of the method of any of claims 8 to 14 when running the computer program.
21. A storage medium having stored thereon a computer program for performing the steps of the method of any one of claims 1 to 7 or the steps of the method of any one of claims 8 to 14 when executed by a processor.
CN202010172667.5A 2020-03-12 2020-03-12 Data transmission method, device, related equipment and storage medium Pending CN113395239A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010172667.5A CN113395239A (en) 2020-03-12 2020-03-12 Data transmission method, device, related equipment and storage medium
PCT/CN2021/079759 WO2021180075A1 (en) 2020-03-12 2021-03-09 Data transmission method and apparatus, related devices, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010172667.5A CN113395239A (en) 2020-03-12 2020-03-12 Data transmission method, device, related equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113395239A true CN113395239A (en) 2021-09-14

Family

ID=77616087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010172667.5A Pending CN113395239A (en) 2020-03-12 2020-03-12 Data transmission method, device, related equipment and storage medium

Country Status (2)

Country Link
CN (1) CN113395239A (en)
WO (1) WO2021180075A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180035328A1 (en) * 2015-03-06 2018-02-01 China Academy Of Telecommunications Technology Method and device for data transmission
CN108809584A (en) * 2017-05-05 2018-11-13 华为技术有限公司 Data transmission method and communication equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018144233A1 (en) * 2017-02-03 2018-08-09 Intel Corporation Concatenation of service data units above a packet data convergence protocol layer
CN109274474B (en) * 2017-05-05 2019-11-19 华为技术有限公司 A kind of communication means and device based on reversion service flow properties
CN110071935B (en) * 2019-04-30 2021-03-30 重庆邮电大学 Method for realizing SDAP (software development association protocol) head assembly of terminal in 5G system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180035328A1 (en) * 2015-03-06 2018-02-01 China Academy Of Telecommunications Technology Method and device for data transmission
CN108809584A (en) * 2017-05-05 2018-11-13 华为技术有限公司 Data transmission method and communication equipment

Also Published As

Publication number Publication date
WO2021180075A1 (en) 2021-09-16

Similar Documents

Publication Publication Date Title
KR102253086B1 (en) Uplink data decompression and compression method and apparatus therefor
WO2016197804A1 (en) Method and device for compressing data packet
KR20060115289A (en) A method and apparatus for efficiently utilizing radio resources of voice over internet protocol using predefined length indicator in a mobile telecommunication system
RU2767321C1 (en) Method and device for wireless communication
JP2013153514A (en) Method and apparatus for packet segmentation and concatenation signaling in communication system
CN110463239B (en) Data transmission method, terminal equipment and network equipment
US11956667B2 (en) Communication method and device
CN110071935B (en) Method for realizing SDAP (software development association protocol) head assembly of terminal in 5G system
KR101330900B1 (en) Apparatus and method for supporting higher data rates on links with variable frame sizes
US20230075613A1 (en) Terminal device
CN111277988A (en) Method for improving Bluetooth transmission speed of WeChat small program
CN114301576A (en) Method and communication device for generating and transmitting acknowledgement frame in IEEE802.15.4 network
EP1944938A1 (en) Methods and apparatuses for performing integrity protection for a concatenated message
CN110474924B (en) Data transmission method and device, computer equipment and storage medium
CN110769460B (en) BSR transmission method, device, related equipment and storage medium
WO2021012260A1 (en) Method for transmitting data, sending end device and receiving end device
CN113115361B (en) Method, device, chip and computer program for compressing Ethernet frame header
CN113395239A (en) Data transmission method, device, related equipment and storage medium
CN108012289B (en) PDU (protocol data Unit) sending method and device and PDU receiving method and device
EP3860209B1 (en) Data transmission method and device
CN115842853A (en) Network data packet transmission method, equipment and storage medium
CN112398627B (en) Information transmission method, device, related equipment and storage medium
CN112039801A (en) Method, system and proxy server for setting IP information
CN114079675B (en) Message processing method, device, terminal equipment and mobile broadband internet surfing equipment
CN108882304B (en) Method and device for encapsulating data packet in data link layer

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210914

RJ01 Rejection of invention patent application after publication