WO2021180075A1 - 数据传输方法、装置、相关设备及存储介质 - Google Patents

数据传输方法、装置、相关设备及存储介质 Download PDF

Info

Publication number
WO2021180075A1
WO2021180075A1 PCT/CN2021/079759 CN2021079759W WO2021180075A1 WO 2021180075 A1 WO2021180075 A1 WO 2021180075A1 CN 2021079759 W CN2021079759 W CN 2021079759W WO 2021180075 A1 WO2021180075 A1 WO 2021180075A1
Authority
WO
WIPO (PCT)
Prior art keywords
protocol layer
pdu
layer
header
protocol
Prior art date
Application number
PCT/CN2021/079759
Other languages
English (en)
French (fr)
Inventor
孙军帅
易芝玲
Original Assignee
中国移动通信有限公司研究院
中国移动通信集团有限公司
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 中国移动通信有限公司研究院, 中国移动通信集团有限公司 filed Critical 中国移动通信有限公司研究院
Publication of WO2021180075A1 publication Critical patent/WO2021180075A1/zh

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

Definitions

  • This application relates to the field of wireless communication, and in particular to a data transmission method, device, related equipment, and storage medium.
  • Figure 1 shows the processing flow of data packets in layer 2.
  • data packets undergo service data adaptation protocol (SDAP, ServiceDataAdaptationProtocol), packet data convergence protocol (PDCP, Packet) in layer 2.
  • SDAP ServiceDataAdaptationProtocol
  • PDCP packet data convergence protocol
  • PDCP Packet
  • Data Convergence Protocol Data Convergence Protocol
  • RLC Radio Link Control
  • MAC Media Access Control
  • PDU Protocol Data Unit
  • IP Internet Protocol
  • IP Internet Protocol
  • each time a lower protocol layer passes through a new PDU is generated, and a PDU header is correspondingly generated at this time.
  • IP Internet Protocol
  • the corresponding processing cannot be performed correctly when the PDU of a certain protocol layer in the upper protocol layer is used for corresponding processing.
  • embodiments of the present application provide a data transmission method, device, related equipment, and storage medium.
  • the embodiment of the present application provides a data transmission method, which is applied to a sender device, and includes:
  • the header of the PDU is in the first position; the first position is the removal of the service data unit (SDU, Service Data Unit) received from the upper protocol layer Locations other than the starting position; the first protocol layer includes at least the protocol layer below the IP layer and above the protocol layer using the IP PDU header; the starting position includes the IP PDU header of the SDU s position.
  • SDU Service Data Unit
  • the first position includes one of the following positions:
  • the first protocol layer includes at least one of the following protocol layers:
  • the protocol layer of layer 2 includes at least one of the following protocol layers:
  • the length of the header of the PDU of the first protocol layer is fixed or variable.
  • the length of the header of the PDU of the first protocol layer is variable; the transmitted data packet carries the length information of the header of the PDU of the first protocol layer.
  • the length information of the header of the PDU of the first protocol layer is located at the end of the header of the PDU of the first protocol layer, or at the end of the SDU.
  • the length of the header of the PDU of the first protocol layer exceeds one byte; the start byte of the header of the PDU of the first protocol layer is located at the end of the high address bit or at the end of the low address bit.
  • the first protocol layer further includes at least one of the following protocol layers:
  • the embodiment of the present application also provides a data transmission method, which is applied to a receiving end device, and includes:
  • the header of the PDU is in the first position; the first position is the SDU received by the upper protocol layer except for the start position Position; the first protocol layer includes at least the protocol layer below the IP layer and above the protocol layer using the IP PDU header; the starting position includes the position of the IP PDU header in the SDU;
  • the analysis starts from the first position in the received PDU.
  • the first position includes one of the following positions:
  • the first protocol layer includes at least one of the following protocol layers:
  • the protocol layer of layer 2 includes at least one of the following protocol layers:
  • the length of the header of the PDU of the first protocol layer is fixed or variable.
  • the length of the header of the PDU of the first protocol layer is variable; the transmitted data packet carries the length information of the header of the PDU of the first protocol layer.
  • the method further includes:
  • the length of the header of the PDU of the first protocol layer exceeds one byte; the analysis starts from the high address bit end or the low address bit end.
  • the first protocol layer further includes at least one of the following protocol layers:
  • the embodiment of the present application also provides a data transmission device, which is set on the sending end device, and includes:
  • the sending unit is configured to send data packets; among them,
  • the header of the PDU is in the first position; the first position is the other position of the SDU received from the upper protocol layer except the start position;
  • the first protocol layer at least includes a protocol layer below the IP layer and above the protocol layer using the IP PDU header; the start position includes the position of the IP PDU header in the SDU.
  • the embodiment of the present application also provides a data transmission device, which is set on the receiving end device, and includes:
  • the receiving unit is configured to receive data packets; among the received data packets, in the first protocol layer of the IP layer of the sending end device, the header of the PDU is in the first position; the first position is the SDU received by the upper protocol layer
  • the first protocol layer includes at least the protocol layer below the IP layer and above the protocol layer using the IP PDU header; the starting position includes the IP PDU in the SDU The position of the Baotou;
  • the second processing unit is configured to start parsing from the first position in the received PDU at the first protocol layer of the receiving end device.
  • An embodiment of the present application also provides a sending end device, including: a first communication interface and a first processor; where,
  • the first communication interface is configured to send data packets; wherein,
  • the header of the PDU is in the first position; the first position is the other position of the SDU received from the upper protocol layer except the start position;
  • the first protocol layer at least includes a protocol layer below the IP layer and above the protocol layer using the IP PDU header; the start position includes the position of the IP PDU header in the SDU.
  • the embodiment of the present application also provides a receiving end device, including:
  • the second communication interface is configured to receive data packets; among the received data packets, in the first protocol layer of the sending end device, the header of the PDU is in the first position; the first position is the SDU received by the upper protocol layer Except for the other positions except the starting position; the first protocol layer includes at least the protocol layer located below the IP layer and above the protocol layer using the IP PDU header; the starting position includes the IP PDU of the SDU Baotou location;
  • the second processor is configured to start parsing from the first position in the received PDU at the first protocol layer of the receiving end device.
  • An embodiment of the present application also provides a sending end device, including: a first processor and a first memory configured to store a computer program that can run on the processor,
  • the first processor is configured to execute the steps of any method on the sending end device side when running the computer program.
  • An embodiment of the present application also provides a receiving end device, including: a second processor and a second memory configured to store a computer program that can run on the processor,
  • the second processor is configured to execute the steps of any method on the receiving end device side when running the computer program.
  • the embodiment of the present application also provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of any method on the sending end device side, or implements any method on the receiving end device side. A step of.
  • the sending end device sends data packets; among the sent data packets, in the first protocol layer of the sending end device, the header of the PDU is in the first position
  • the first position is the SDU received from the upper protocol layer other than the start position;
  • the first protocol layer includes at least the protocol layer located below the IP layer and using the IP PDU header protocol layer Layer;
  • the starting position includes the position of the header of the IP PDU in the SDU; and after the receiving end device receives the data packet, at the first protocol layer of the receiving end device, from the first in the received PDU
  • the position starts to be analyzed.
  • the header of the PDU of the upper protocol layer is not at the beginning of the PDU, and the position of the IP PDU is unchanged, so, The IP PDU header can be accurately obtained, so that it can be processed correctly based on the IP PDU.
  • Figure 1 is a schematic diagram of the processing flow of data packets in layer 2 in the related art
  • FIG. 2 is a schematic diagram of the downlink SDAP PDU format in related technologies
  • FIG. 3 is a schematic diagram of the uplink SDAP PDU format in related technologies
  • Figure 4 is a schematic diagram of the PDCP PDU format applied to the signaling radio bearer in related technologies
  • FIG. 5 is a schematic flowchart of a data transmission method according to an embodiment of this application.
  • FIG. 6 is a schematic flowchart of another data transmission method according to an embodiment of this application.
  • FIG. 7 is a schematic diagram of the PDU format in which the PDU header is set at the tail of the SDU according to the application embodiment of the application;
  • FIG. 8 is a schematic diagram of the SDAP PDU format in which the SDAP PDU header is set at the end of the SDU in an application embodiment of the application;
  • FIG. 9 is a schematic diagram of the PDCP PDU format in which the PDCP PDU header is set at the end of the SDU according to the application embodiment of the application;
  • FIG. 10 is a schematic structural diagram of a data transmission device according to an embodiment of the application.
  • FIG. 11 is a schematic structural diagram of another data transmission device according to an embodiment of the application.
  • FIG. 12 is a schematic diagram of the structure of a transmitting end device according to an embodiment of the application.
  • FIG. 13 is a schematic structural diagram of a receiving end device according to an embodiment of the application.
  • FIG. 14 is a schematic diagram of the structure of a data transmission system according to an embodiment of the application.
  • the header of the SDAP PDU is in front of the data packet; as shown in Figure 4, the header of the PDCP PDU is also in front of the data packet, that is, the header of the PDU is in the front of the data packet.
  • the beginning part of the PDU (can also be understood as the beginning part), this method has a problem: when multiple lower protocol layers are defined under the IP layer, each time a lower protocol layer is added, a class must be generated A new PDU generates a PDU header, that is to say, for an IP PDU (that is, a PDU formed by the IP layer), each time a lower protocol layer is processed, a new PDU will be generated, which corresponds to a PDU header.
  • the header of each PDU is at the beginning of the PDU of the upper protocol layer, which will lead to the problem that the IP PDU header cannot be correctly found when processing various functions based on the IP PDU for the lower protocol layer.
  • the header compression function of the PDCP layer is aimed at the IP PDU header. Since the SDAP PDU (that is, the PDU built by the SDAP layer) header is added to the SDAP layer, and the SDAP PDU header is located at the beginning of the IP PDU, PDCP The layer cannot compress the IP PDU header.
  • the corresponding processing cannot be performed correctly when the corresponding processing is performed based on the PDU of a certain protocol layer in the upper protocol layer.
  • the header of the PDU is at the first position; the first position is the position other than the start position of the SDU received from the upper protocol layer, That is, the header of the PDU of the upper protocol layer is not at the start position of the PDU; the first protocol layer includes at least the protocol layer below the IP layer and above the protocol layer using the IP PDU header; the start position includes all The position of the header of the IP PDU in the SDU.
  • the embodiment of the present application provides a data transmission method, which is applied to a sending end device, and includes:
  • the header of the PDU is in the first position; the first position is the other position of the SDU received from the upper protocol layer except the start position;
  • the first protocol layer at least includes a protocol layer below the IP layer and above the protocol layer using the IP PDU header; the start position includes the position of the IP PDU header in the SDU.
  • the transmitting end device may be a network device, such as a base station; the receiving end device may be a terminal; of course, the transmitting end device may also be a terminal, and the receiving end device may be a network device.
  • the protocol layer that uses the IP PDU header refers to: in the corresponding protocol layer, a certain function needs to be processed based on the IP PDU header, such as compressing the IP PDU header.
  • each additional data processing protocol layer will in principle add a header of the protocol layer to the data packet, that is, for a data processing protocol layer (such as the first protocol layer), enter
  • SDU the output
  • PDU the output
  • the other positions should include positions other than the header of the IP PDU in the SDU, that is, the first position
  • the header of the PDU of a protocol layer should not be set in a position in the header of the IP PDU, but should be set in a position other than the header of the IP PDU in the SDU.
  • the first position includes one of the following positions:
  • a position in the SDU refers to a position in the SDU excluding the start position and the tail.
  • the first protocol layer includes at least one of the following protocol layers:
  • the protocol layer of layer 3 (ie, network layer) below the IP layer;
  • Layer 2 (ie, data link layer) protocol layer.
  • the protocol layer of layer 3 below the IP layer refers to: the layer 3 protocol layer located below the IP layer, such as the newly added layer 3 protocol layer below the IP layer, and the newly added layer 3
  • the protocol layer will send and receive data packets and other related processing.
  • the protocol layer of layer 3 may include: a radio resource control (RRC) layer.
  • RRC radio resource control
  • the protocol layer of layer 2 may include at least one of the following protocol layers:
  • the layer 2 protocol layer in the embodiment of the present application may also include a newly added layer 2 protocol layer.
  • the layer 3 protocol layer and the layer 2 protocol layer below the IP layer refer to the protocol layers belonging to the access layer (AS, Access Stratum), that is, the protocol layers deployed on the base station and terminal side Protocol layer, not the protocol layer deployed in the core network.
  • AS Access Stratum
  • the processing of data packets uses the process shown in Figure 1, and the protocol layer immediately below the IP layer is the SDAP layer, and the PDCP layer below the IP layer needs to use the IP PDU
  • the first protocol layer includes at least SDAP and PDCP layers.
  • the first protocol layer also includes at least one of the following protocol layers:
  • the lower protocol layer of the protocol layer using the IP PDU header refers to the protocol layer below the protocol layer of the IP PDU header.
  • the lower protocol layer of the protocol layer using the IP PDU header may include the RLC layer and/or the MAC layer.
  • the first position may be the same Position, for example, the first position is the tail of the corresponding SDU; the first position can also be a different position, for example, in the SDAP layer, the first position is the tail of the corresponding SDU, and in the PDCP layer, the first position The location is a location in the corresponding SDU.
  • the first position is the tail of the corresponding SDU.
  • the length of the header of the PDU of the first protocol layer may be fixed, that is, the length of the header of the PDU is fixed.
  • the length of the header of the PDU of the first protocol layer It can also be variable, that is, the length of the header of the PDU can be changed.
  • the length indicator of the header needs to be carried, and the header of the PDU of the first protocol layer can be obtained completely through the length indicator.
  • the transmitted data packet carries length information of the header of the PDU of the first protocol layer.
  • the length information of the header of the PDU of the first protocol layer is located at the end of the header of the PDU of the first protocol layer, and may also be located at the end of the SDU.
  • the start byte of the PDU header can be at the high address bit end or the low address bit end, for example, if the last data of the SDU
  • the byte memory address is: p
  • the first byte of the PDU header can be set at the memory address of p+1, or it can be set at the memory address of p+L, where L is the byte length of the header of the PDU.
  • the header compression function of the PDCP layer is for the header of the IP PDU.
  • the header of the SDAP PDU constructed by the SDAP layer and the header of the PDCP PDU constructed by the PDCP layer can be set in the header of the IP PDU.
  • the tail or other positions except the beginning that is, the header of the IP PDU, such as a certain position in the middle.
  • the header of the PDU formed by the RLC layer and the MAC layer can be placed at the start position or not at the start position, that is, a certain position in the middle, or the tail).
  • the embodiment of the present application also provides a data transmission method, which is applied to the receiving end device.
  • the method includes:
  • Step 501 Receive a data packet
  • the header of the PDU is in the first position; the first position is the position other than the start position of the SDU received by the upper protocol layer;
  • the first protocol layer includes the protocol layer below the IP layer and above the protocol layer using the IP PDU header;
  • the start position includes the position of the IP PDU header in the SDU.
  • Step 502 At the first protocol layer of the receiving end device, start parsing from the first position in the received PDU.
  • the length of the header of the PDU of the first protocol layer is variable; the transmitted data packet carries the length information of the header of the PDU.
  • the method may further include:
  • the receiving end device parses the second position of the first protocol layer PDU to obtain the length information of the header of the first protocol layer PDU; the second position includes one of the following:
  • the length of the header of the PDU of the first protocol layer exceeds one byte; the receiving end device starts parsing from the high address bit end or the low address bit end.
  • the receiving end device starts parsing from the high address end; when the header of the PDU of the first protocol layer is When the start byte is at the low address bit end, the receiving end device starts parsing from the low address bit end.
  • the embodiment of the present application provides a data transmission method. As shown in FIG. 6, the method includes:
  • Step 601 The sending end device sends a data packet
  • the header of the PDU is in the first position; the first position is the position other than the start position of the SDU received from the upper protocol layer
  • the first protocol layer includes the protocol layer below the IP layer and above the protocol layer using the IP PDU header; the start position includes the position of the IP PDU header in the SDU.
  • Step 602 After receiving the data packet, the receiving end device starts parsing at the first protocol layer of the receiving end device from the first position in the received PDU.
  • the sending end device sends a data packet; among the sent data packets, in the first protocol layer of the sending end device, the header of the PDU is in the first position; the first position is the slave The position of the SDU received by the upper protocol layer except the start position; the first protocol layer includes the protocol layer below the IP layer and above the protocol layer using the IP PDU header; the start position includes all The position of the packet header of the IP PDU in the SDU; and after the receiving end device receives the data packet, the first protocol layer of the receiving end device starts parsing from the first position in the received PDU.
  • the PDU header of the upper protocol layer is not at the beginning of the PDU, and the position of the IP PDU remains unchanged. In this way, the IP PDU header can be accurately obtained, thus It can be processed correctly based on IP PDU.
  • the header of the PDU is set at the end of the SDU.
  • the SDU may be an IP PDU, or may be a PDU of a lower protocol layer below the IP layer.
  • the header of the PDU is set at the end of the SDU. If there are multiple 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 can be next to the SDU or next to the length field.
  • the head of the SDAP PDU is placed at the tail of the SDU.
  • the header length of the SDAP PDU is 1 byte, the length field is not required.
  • the SDAP SDU is the IP packet, which not only adds the SDAP PDU header, but also has no effect on the position of the IP header.
  • the operation when header compression is performed on the PDCP layer is exactly the same as the processing when there is no SDAP layer.
  • the head of the PDCP PDU is placed at the tail of the SDU.
  • the length field of the header needs to be increased.
  • the SDAP PDU is processed at the SDAP layer using the method of Application Example 2, although the IP packet has been processed by the two sub-layers of SDAP and PDCP, the initial part of the payload is still IP. Bag.
  • the header of the IP PDU can be accurately obtained, so that operations such as header compression, integrity protection, and encryption can still be processed exactly the same as when there is no SDAP sublayer.
  • the header of the IP PDU (that is, the IP packet) is not affected by the two protocol layers. Covered by the PDU header, the IP PDU header is still at the starting position. In this way, the packet header of the IP PDU can be obtained correctly, so that it can be processed correctly based on the IP PDU.
  • the embodiment of the present application also provides a data transmission device, which is set on the sending end device. As shown in FIG. 10, the device includes:
  • the sending unit 101 is configured to send data packets; where,
  • the header of the PDU is in the first position; the first position is the other position of the SDU received from the upper protocol layer except the start position;
  • the first protocol layer includes the protocol layer below the IP layer and above the protocol layer using the IP PDU header;
  • the start position includes the position of the IP PDU header in the SDU.
  • the device may further include:
  • the first processing unit 102 is configured to set the header of the PDU at the first position at the first protocol layer of the sending end device.
  • the first processing unit 102 is further configured to set the length information of the header of the PDU of the first protocol layer in the data packet. .
  • the sending unit 101 can be implemented by a communication interface in a data transmission device; the first processing unit 102 can be implemented by a processor in the data transmission device.
  • the embodiment of the present application also provides a data transmission device, which is set on the receiving end device. As shown in FIG. 11, the device includes:
  • the receiving unit 111 is configured to receive data packets; among the received data packets, in the first protocol layer of the sending end device, the header of the PDU is in the first position; the first position is the removal of the SDU received by the upper protocol layer Other positions other than the starting position; the first protocol layer includes the protocol layer below the IP layer and above the protocol layer using the IP PDU header; the starting position includes the header of the IP PDU in the SDU Location;
  • the second processing unit 112 is configured to start parsing from the first position in the received PDU at the first protocol layer of the receiving end device.
  • the length of the header of the PDU of the first protocol layer is variable; the transmitted data packet carries the length information of the header of the PDU of the first protocol layer.
  • the second processing unit 112 is further configured to parse the second position of the first protocol layer PDU to obtain the length information of the header of the first protocol layer PDU; the second position includes one of the following:
  • 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 end or the low address bit end.
  • the receiving unit 111 can be implemented by a communication interface in a data transmission device; the second processing unit 112 can be implemented by a processor in the data transmission device.
  • the data transmission device provided in the above embodiment performs data transmission
  • only the division of the above-mentioned program modules is used as an example for illustration.
  • the above-mentioned processing can be allocated by different program modules as needed. That is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above.
  • the data transmission device provided in the foregoing embodiment and the data transmission method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
  • the embodiment of the present application also provides a sending end device.
  • the sending end device 120 includes:
  • the first communication interface 121 can exchange information with the receiving end device
  • the first processor 122 is connected to the first communication interface 121 to implement information interaction with the receiving end device, and is configured to execute the method provided by one or more technical solutions on the sending end device side when it is configured to run a computer program.
  • the computer program is stored in the first memory 123.
  • the first communication interface 121 is configured to send data packets; wherein,
  • the header of the PDU is at the first position; the first position is the other position of the SDU received from the upper protocol layer except the start position;
  • the first protocol layer includes the protocol layer below the IP layer and above the protocol layer using the IP PDU header;
  • the start position includes the position of the IP PDU header in the SDU.
  • the first processor 122 is configured to set the header of the PDU at the first position at the first protocol layer of the transmitting end device.
  • the first processor 122 is further configured to set the header of the PDU of the first protocol layer in the data packet when the length of the header of the PDU of the first protocol layer is variable. Length information.
  • the various components in the sending end device 120 are coupled together through the bus system 124.
  • the bus system 124 is configured to implement connection and communication between these components.
  • the bus system 124 also includes a power bus, a control bus, and a status signal bus.
  • various buses are marked as the bus system 124 in FIG. 12.
  • the first memory 123 in the embodiment of the present application is configured to store various types of data to support the operation of the sending end device 120. Examples of such data include: any computer program used to operate on the sending end device 120.
  • the method disclosed in the foregoing 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 with signal processing capability. In the implementation process, the steps of the foregoing method may be completed by an integrated logic circuit of hardware in the first processor 122 or instructions in the form of software.
  • the aforementioned first processor 122 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like.
  • the first processor 122 may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of the present application.
  • the general-purpose processor may be a microprocessor or any conventional processor or the like.
  • the software module may be located in a storage medium, and the storage medium is located in the first memory 123.
  • the first processor 122 reads information in the first memory 123 and completes the steps of the foregoing method in combination with its hardware.
  • the sender device 120 may be configured by one or more application specific integrated circuits (ASIC, Application Specific Integrated Circuit), DSP, programmable logic device (PLD, Programmable Logic Device), and complex programmable logic device (CPLD, Complex Programmable Logic Device, Field-Programmable Gate Array (FPGA, Field-Programmable Gate Array), general-purpose processor, controller, microcontroller (MCU, Micro Controller Unit), microprocessor (Microprocessor), or other Electronic components are implemented to perform the aforementioned methods.
  • ASIC application specific integrated circuits
  • DSP programmable logic device
  • PLD Programmable Logic Device
  • CPLD Complex Programmable Logic Device
  • FPGA Field-Programmable Gate Array
  • MCU microcontroller
  • Microcontroller Micro Controller Unit
  • Microprocessor Microprocessor
  • the embodiment of the present application also provides a receiving end device.
  • the receiving end device 130 includes:
  • the second communication interface 131 can exchange information 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 the method provided by one or more technical solutions on the receiving end device side when it is configured to run a computer program.
  • the computer program is stored in the second memory 133.
  • the second communication interface 131 is configured to receive data packets; among the received data packets, in the first protocol layer of the sending end device, the header of the PDU is in the first position; the first position is the upper layer The position of the SDU received by the protocol layer except the start position; the first protocol layer includes the protocol layer located below the IP layer and above the protocol layer using the IP PDU header; the start position includes the The position of the header of the IP PDU in the SDU;
  • the second processor 132 is configured to start parsing from the first position in the received PDU at the first protocol layer of the receiving end device.
  • the length of the header of the PDU of the first protocol layer is variable; the transmitted data packet carries the length information of the header of the PDU of the first protocol layer.
  • the second processor 132 is further configured to parse the second position of the first protocol layer PDU to obtain the length information of the header of the first protocol layer PDU; the second position includes one of the following:
  • 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.
  • bus system 134 is configured to implement connection and communication between these components.
  • bus system 134 also includes a power bus, a control bus, and a status signal bus.
  • various buses are marked as the bus system 134 in FIG. 13.
  • the second memory 133 in the embodiment of the present application is configured to store various types of data to support the operation of the receiving end device 130. Examples of these data include: any computer program used to operate on the receiving end device 130.
  • the method disclosed in the foregoing 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 with signal processing capability. In the implementation process, the steps of the foregoing method may be completed by an integrated logic circuit of hardware in the second processor 132 or instructions in the form of software.
  • the aforementioned second processor 132 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like.
  • the second processor 132 may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of the present application.
  • the general-purpose processor may be a microprocessor or any conventional processor or the like.
  • the software module may be located in a storage medium, and the storage medium is located in the second memory 133.
  • the second processor 132 reads the information in the second memory 133 and completes the steps of the foregoing method in combination with its hardware.
  • the receiving end 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 foregoing methods.
  • the memory (the first memory 123 and the second memory 133) of the embodiment of the present application may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory.
  • the non-volatile memory can be a read-only memory (ROM, Read Only Memory), a programmable read-only memory (PROM, Programmable Read-Only Memory), an erasable programmable read-only memory (EPROM, Erasable Programmable Read- Only Memory, Electrically Erasable Programmable Read-Only Memory (EEPROM), Ferromagnetic Random Access Memory (FRAM), Flash Memory, Magnetic Surface Memory , CD-ROM, or CD-ROM (Compact Disc Read-Only Memory); magnetic surface memory can be magnetic disk storage or tape storage.
  • Volatile memory can be random access memory (RAM, Random Access Memory), which is used as an external cache.
  • RAM random access memory
  • SRAM static random access memory
  • SSRAM synchronous static random access memory
  • Synchronous Static Random Access Memory Synchronous Static Random Access Memory
  • DRAM Dynamic Random Access Memory
  • SDRAM Synchronous Dynamic Random Access Memory
  • DDRSDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • ESDRAM Enhanced Synchronous Dynamic Random Access Memory
  • SLDRAM synchronous connection dynamic random access memory
  • DRRAM Direct Rambus Random Access Memory
  • the memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.
  • the embodiment of the present application also provides a data transmission system. As shown in FIG. 14, the system includes:
  • the sending end device 141 is configured to send data packets; among the sent data packets, in the first protocol layer of the sending end device, the header of the PDU is in the first position; the first position is the receiving from the upper protocol layer
  • the first protocol layer includes the protocol layer below the IP layer and above the protocol layer using the IP PDU header; the start position includes the IP in the SDU The position of the header of the PDU;
  • the receiving end device 142 is configured to receive data packets; at the first protocol layer of the receiving end device 142, analysis starts from the first position in the received PDU.
  • the embodiment of the present application also provides a storage medium, that is, a computer storage medium, specifically a computer-readable storage medium, such as a first memory 123 storing a computer program, which can be used by the sending end device.
  • the first processor 122 of 120 executes to complete the steps described in the foregoing sending-end device-side method.
  • the second memory 133 storing a computer program is included, and the above-mentioned computer program can be executed by the second processor 132 of the receiving end device 130 to complete the steps described in the foregoing receiving end device-side method.
  • the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.

Landscapes

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

Abstract

本申请公开了一种数据传输方法、装置、发送端设备、接收端设备及存储介质。其中,方法包括:发送端设备发送数据包;其中,发送的数据包中,在所述发送端设备的第一协议层,协议数据单元(PDU)的包头在第一位置;所述第一位置为从上层协议层接收的服务数据单元(SDU)的除去起始位置外的其他位置;所述第一协议层包含位于互联网协议(IP层)之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置。

Description

数据传输方法、装置、相关设备及存储介质
相关申请的交叉引用
本申请基于申请号为202010172667.5、申请日为2020年03月12日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本申请涉及无线通信领域,尤其涉及一种数据传输方法、装置、相关设备及存储介质。
背景技术
图1示出了层2中数据包的处理流程,从图1可以看出,相关技术中,数据包在层2经历服务数据适配协议(SDAP,ServiceDataAdaptationProtocol)、分组数据汇聚协议(PDCP,Packet Data Convergence Protocol)、无线链路控制(RLC,Radio Link Control)和媒体访问控制(MAC,Media Access Control)四个子层的处理,得到发送到空口的MAC协议数据单元(PDU,Protocol Data Unit)。
当在互联网协议(IP,Internet Protocol)层之下定义多个低协议层时,每经过一个低协议层时,就会产生新的PDU,此时就对应产生一个PDU包头。然而,相关技术中,对于IP层之下的某个使用IP PDU的低协议层来说,基于上层协议层中某协议层的PDU进行相应处理时无法正确地进行相应处理。
发明内容
为解决相关技术问题,本申请实施例提供一种数据传输方法、装置、相关设备及存储介质。
本申请实施例的技术方案是这样实现的:
本申请实施例提供了一种数据传输方法,应用于发送端设备,包括:
发送数据包;其中,
发送的数据包中,在所述发送端设备的第一协议层,PDU的包头在第一位置;所述第一位置为从上层协议层接收的服务数据单元(SDU,Service Data Unit)的除去起始位置外的其他位置;所述第一协议层至少包含位于 IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置。
上述方案中,所述第一位置包含以下位置之一:
所述SDU的尾部;
所述SDU中的一个位置。
上述方案中,所述第一协议层包含以下协议层至少之一:
IP层之下的层3的协议层;
层2的协议层。
上述方案中,所述层2的协议层包含以下协议层至少之一:
SDAP层;
PDCP层;
RLC层;
MAC层。
上述方案中,所述第一协议层的PDU的包头的长度固定或者可变。
上述方案中,所述第一协议层的PDU的包头的长度可变;所述发送的数据包中携带所述第一协议层的PDU的包头的长度信息。
上述方案中,在所述发送的数据包中,所述第一协议层的PDU的包头的长度信息位于所述第一协议层的PDU的包头的尾部,或者位于所述SDU的尾部。
上述方案中,所述第一协议层的PDU的包头的长度超过一个字节;所述第一协议层的PDU的包头的开始字节位于高地址位端,或者位于低地址位端。
上述方案中,所述第一协议层还包含以下协议层至少之一:
使用IP PDU包头的协议层;
使用IP PDU包头的协议层之下的协议层。
本申请实施例还提供了一种数据传输方法,应用于接收端设备,包括:
接收数据包;其中,接收的数据包中,在发送端设备的第一协议层,PDU的包头在第一位置;所述第一位置为上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层至少包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置;
在所述接收端设备的第一协议层,从接收到的PDU中的第一位置开始解析。
上述方案中,所述第一位置包含以下位置之一:
所述SDU的尾部;
所述SDU中的一个位置。
上述方案中,所述第一协议层包含以下协议层至少之一:
IP层之下的层3的协议层;
层2的协议层。
上述方案中,所述层2的协议层包含以下协议层至少之一:
SDAP层;
PDCP层;
RLC层;
MAC层。
上述方案中,所述第一协议层的PDU的包头的长度固定或者可变。
上述方案中,所述第一协议层的PDU的包头的长度可变;所述发送的数据包中携带所述第一协议层的PDU的包头的长度信息。
上述方案中,所述方法还包括:
解析所述第一协议层PDU的第二位置,获得所述第一协议层PDU的包头的长度信息;所述第二位置包含以下之一:
所述第一协议层的PDU的包头的尾部;
所述SDU的尾部。
上述方案中,所述第一协议层的PDU的包头的长度超过一个字节;从高地址位端或低地址位端开始解析。
上述方案中,所述第一协议层还包含以下协议层至少之一:
使用IP PDU包头的协议层;
使用IP PDU包头的协议层之下的协议层。
本申请实施例还提供了一种数据传输装置,设置在发送端设备上,包括:
发送单元,配置为发送数据包;其中,
发送的数据包中,在所述发送端设备的第一协议层,PDU的包头在第一位置;所述第一位置为从上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层至少包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置。
本申请实施例还提供了一种数据传输装置,设置在接收端设备上,包括:
接收单元,配置为接收数据包;其中,接收的数据包中,在发送端设备的IP层的第一协议层,PDU的包头在第一位置;所述第一位置为上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层至少包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置;
第二处理单元,配置为在所述接收端设备的第一协议层,从接收到的PDU中的第一位置开始解析。
本申请实施例还提供了一种发送端设备,包括:第一通信接口及第一处理器;中,
所述第一通信接口,配置为发送数据包;其中,
发送的数据包中,在所述发送端设备的第一协议层,PDU的包头在第一位置;所述第一位置为从上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层至少包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置。
本申请实施例还提供了一种接收端设备,包括:
第二通信接口,配置为接收数据包;其中,接收的数据包中,在发送端设备的第一协议层,PDU的包头在第一位置;所述第一位置为上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层至少包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置;
第二处理器,配置为在所述接收端设备的第一协议层,从接收到的PDU中的第一位置开始解析。
本申请实施例还提供了一种发送端设备,包括:第一处理器和配置为存储能够在处理器上运行的计算机程序的第一存储器,
其中,所述第一处理器配置为运行所述计算机程序时,执行上述发送端设备侧任一方法的步骤。
本申请实施例还提供了一种接收端设备,包括:第二处理器和配置为存储能够在处理器上运行的计算机程序的第二存储器,
其中,所述第二处理器配置为运行所述计算机程序时,执行上述接收端设备侧任一方法的步骤。
本申请实施例还提供了一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述发送端设备侧任一方法的步骤,或者实现上述接收端设备侧任一方法的步骤。
本申请实施例提供的数据传输方法、装置、相关设备及存储介质,发送端设备发送数据包;发送的数据包中,在所述发送端设备的第一协议层,PDU的包头在第一位置;所述第一位置为从上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层至少包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置;而接收端设备接收到数据包后,在所述接收端设备的第一协议层,从接收到的PDU中的第一位置开始解析,对于在IP层之下的某个需要使用IP PDU的低协议层来说,上层协议层的PDU的包头不在PDU的起始位置,而IP PDU的位置是不变的,如此,就能够准确获得IP PDU包头,从而能够基于IP PDU正确进行处理。
附图说明
图1为相关技术中在层2中数据包的处理流程示意图;
图2为相关技术中下行SDAP PDU的格式示意图;
图3为相关技术中上行SDAP PDU的格式示意图;
图4为相关技术中应用在信令无线承载的PDCP PDU的格式示意图;
图5为本申请实施例一种数据传输的方法流程示意图;
图6为本申请实施例另一种数据传输的方法流程示意图;
图7为本申请应用实施例PDU头设置在SDU尾部的PDU格式示意图;
图8为本申请应用实施例SDAP PDU头设置在SDU尾部的SDAP PDU格式示意图;
图9为本申请应用实施例PDCP PDU头设置在SDU尾部的PDCP PDU格式示意图;
图10为本申请实施例一种数据传输装置结构示意图;
图11为本申请实施例另一种数据传输装置结构示意图;
图12为本申请实施例发送端设备结构示意图;
图13为本申请实施例接收端设备结构示意图;
图14为本申请实施例数据传输系统结构示意。
具体实施方式
下面结合附图及实施例对本申请再作进一步详细的描述。
相关技术中,如图2和图3所示,SDAP的PDU的包头在数据包的前面;如图4所示,PDCP的PDU的包头也在数据包的前面,也就是说,PDU的包头在PDU的起始部分(也可以理解为开始部分),这种方式存在一个问题:当在IP层之下定义多个低协议层时,每次增加一个低协议层的处理,都要产生一类新的PDU,即产生一个PDU头,也就是说,针对一个IP PDU(即IP层组建的PDU),每经过一个低协议层处理时,就会产生新的PDU,就对应产生一个PDU包头,且每个PDU的包头都在上一层协议层的PDU的起始部分,这样就会导致对于低协议层,基于IP PDU进行各种功能处理时无法正确找到IP PDU头的问题。比如,目前,PDCP层的头压缩功能是针对IP PDU头的,由于在SDAP层增加了SDAP PDU(即SDAP层组建的PDU)头,且SDAP PDU头位于IP PDU的起始位置,所以,PDCP层无法进行IP PDU头的压缩的。对于该问题,相关技术中,是依靠研发设计时跳过一个字节(如果信令配置了SDAP PDU头存在,且定义SDAP PDU头的长度为一个字节)的方式来解决的。但是,这种方式相当于PDCP层在已知SDAP层的处理的前提下进行了操作。如果PDCP层不知道SDAP层的增加SDAP PDU头的处理,则PDCP层无法正确进行IP PDU头的压缩功能。
也就是说,相关技术中,对于IP层之下的某个使用IP PDU的低协议 层来说,基于上层协议层中某协议层的PDU进行相应处理时无法正确地进行相应处理。
基于此,在本申请的各种实施例中,在第一协议层,PDU的包头在第一位置;所述第一位置为从上层协议层接收的SDU的除去起始位置外的其他位置,即上层协议层的PDU的包头不在PDU的起始位置;所述第一协议层至少包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置。
本申请实施例提供一种数据传输方法,应用于发送端设备,包括:
发送数据包;其中,
发送的数据包中,在所述发送端设备的第一协议层,PDU的包头在第一位置;所述第一位置为从上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层至少包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置。
这里,实际应用时,所述发送端设备可以是网络设备,比如基站;接收端设备可以为终端;当然所述发送端设备还可以是终端,接收端设备可以是网络设备。
所述使用IP PDU包头的协议层是指:在相应协议层,需要基于IP PDU包头进行某种功能的处理,比如将IP PDU包头进行压缩等。
在用户面(UP,User Plane)中,每增加一个数据处理协议层原则上都会将数据包增加一个该协议层的头,即对于一个数据处理协议层(比如所述第一协议层),输入的为SDU,输出的为PDU。
实际应用时,在所述起始位置包含SDU中IP PDU的包头的位置的情况下,所述其他位置应当是包含所述SDU中除IP PDU的包头外的位置,也就是说,所述第一协议层的PDU的包头不应当设置在IP PDU的包头中的一个位置,应该设置在所述SDU中除IP PDU的包头外的位置。
在一实施例中,所述第一位置包含以下位置之一:
所述SDU的尾部;
所述SDU中的一个位置。
这里,所述SDU中的一个位置是指:所述SDU中除起始位置和尾部外的中的一个位置。
在一实施例中,所述第一协议层包含以下协议层至少之一:
IP层之下的层3(即网络层)的协议层;
层2(即数据链路层)的协议层。
其中,所述IP层之下的层3的协议层是指:位于IP层之下的层3协议层,比如IP层之下的新增的层3的协议层,所述新增的层3协议层对数据包会进行发送、接收等相关处理等。实际应用时,层3的协议层可以包含:无线资源控制(RRC)层。
在一实施例中,所述层2的协议层可以包含以下协议层至少之一:
SDAP层;
PDCP层;
RLC层;
MAC层。
这里,需要说明的是,实际应用时,除了上述的协议层,本申请实施例的层2协议层还可以包含新增的层2协议层。
同时,本申请实施例中,IP层之下的层3协议层和层2的协议层是指属于接入层(AS,Access Stratum)的协议层,即是指:部署在基站和终端侧的协议层,而不是部署在核心网的协议层。
对于所述第一协议层,假设在L2层,数据包的处理采用图1所示的流程,且IP层下紧接着的协议层为SDAP层,IP层之下的PDCP层需要使用IP PDU的包头,则所述第一协议层至少包含SDAP层;再比如,IP层之下的MAC层需要使用IP PDU的包头,则所述第一协议层至少包含SDAP和PDCP层。
实际应用时,所述第一协议层还包含以下协议层至少之一:
使用IP PDU包头的协议层;
使用IP PDU包头的协议层的低协议层。
其中,所述使用IP PDU包头的协议层的低协议层是指:位于所述IP PDU包头的协议层之下的协议层。示例性地,如图1所示的流程,当PDCP层需要使用IP PDU的包头时,所述使用IP PDU包头的协议层的低协议层可以包含RLC层和/或MAC层。
实际应用时,当在位于IP层之下的多个低协议层均采用本申请实施例的方案时,针对多个低协议层中的每个低协议层,所述第一位置可以是相同的位置,比如第一位置都是相应SDU的尾部;所述第一位置也可以是不同的位置,比如,在SDAP层,所述第一位置是相应SDU的尾部,在PDCP层,所述第一位置是相应SDU中的一个位置。当然,为了方便使用,针对多个低协议层中的每个低协议层,所述第一位置均是相应SDU的尾部。
实际应用时,所述第一协议层的PDU的包头的长度可以是固定的,也就是说,PDU的包头的长度是固定不变的,当然,所述第一协议层的PDU的包头的长度也可以是可变,即PDU的包头的长度是可以变化的。
这里,实际应用时,当所述第一协议层的PDU的包头的长度可变时,则需要携带头的长度指示,通过该长度指示能够完整地获得所述第一协议层的PDU的头。
基于此,在一实施例中,所述发送的数据包中携带所述第一协议层的PDU的包头的长度信息。
具体地,所述第一协议层的PDU的包头的长度信息位于所述第一协议层的PDU的包头的尾部,也可以位于所述SDU的尾部。
实际应用时,如果第一协议层的PDU的头长度超过了一个字节,则PDU的包头的开始字节可以在高地址位端,也可以在低地址位端,比如如果SDU的最后一个数据字节的内存地址为:p,则PDU的头第一个字节可以设置在p+1的内存地址,也可以设置在p+L的内存地址,其中L为PDU的头的字节长度。
实际应用时,当IP层之下的所有低协议层均采用本申请实施例的方案时,则对于一个IP PDU,每经过一个低层协议功能实体处理需要增加该协议功能实体对应的PDU包头时,则在该数据包的尾部或者除去开始部分之外的其它位置增加相应PDU的包头,那么到所有低层协议层处理完后,IP头一直设置在PDU的起始位置,也就是说,IP头的位置是固定不变的。
这里,按照相关技术,PDCP层的头压缩功能是针对IP PDU的包头的,在这种情况下,可以将SDAP层组建的SDAP PDU的包头、PDCP层组建的PDCP PDU的包头设置在IP PDU的尾部或者除去开始部分(即除去IP PDU的包头)之外的其它位置,比如中间的某一个位置。而对于RLC和MAC层,RLC层和MAC层组建的PDU的头可以放在起始位置,也可以不放在起始位置,即中间某个位置,或者尾部)。
对应地,本申请实施例还提供数据传输方法,应用于接收端设备,如图5所示,该方法包括:
步骤501:接收数据包;
其中,接收的数据包中,在发送端设备的第一协议层,PDU的包头在第一位置;所述第一位置为上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置。
步骤502:在所述接收端设备的第一协议层,从接收到的PDU中的第一位置开始解析。
其中,在一实施例中,第一协议层的PDU的包头的长度可变;所述发送的数据包中携带PDU的包头的长度信息。
这里,在一实施例中,该方法还可以包括:
所述接收端设备解析所述第一协议层PDU的第二位置,获得所述第一协议层PDU的包头的长度信息;所述第二位置包含以下之一:
所述第一协议层的PDU的包头的尾部;
所述SDU的尾部。
在一实施例中,所述第一协议层的PDU的包头的长度超过一个字节;所述接收端设备从高地址位端或低地址位端开始解析。
这里,具体地,当所述第一协议层的PDU的包头开始字节位于高地址位端时,所述接收端设备从高地址端开始解析;当所述第一协议层的PDU的包头的开始字节位于低地址位端时,所述接收端设备从低地址位端开始解析。
本申请实施例提供了一种数据传输方法,如图6所示,该方法包括:
步骤601:发送端设备发送数据包;
其中,发送的数据包中,在所述发送端设备的第一协议层,PDU的包头在第一位置;所述第一位置为从上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置。
步骤602:接收端设备接收到数据包后,在所述接收端设备的第一协议层,从接收到的PDU中的第一位置开始解析。
需要说明的是:发送端设备和接收端设备的具体处理过程已在上文详述,这里不再赘述。
本申请实施例提供的数据传输方法,发送端设备发送数据包;发送的数据包中,在所述发送端设备的第一协议层,PDU的包头在第一位置;所述第一位置为从上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置;而接收端设备接收到数据包后,在所述接收端设备的第一协议层,从接收到的PDU中的第一位置开始解析,对于在IP层之下的某个需要使用IP PDU的低协议层来说,上层协议层的PDU的包头不在PDU的起始位置,而IP PDU的位置时不变的,如此,就能够准确获得IP PDU包头,从而能够基于IP PDU正确进行处理。
下面结合应用实施例对本申请再作进一步详细的描述。
应用实施例一
在本应用实施例中,PDU的包头设置在SDU尾部。其中,实际应用时,所述SDU可以是IP PDU,也可以是IP层之下的一个低协议层的PDU。如图7所示,PDU的包头设置在SDU的尾部,如果有多个字节,则在PDU包的最后增加一个长度域(Header Length),指示该PDU头的长度。PDU头的第一个字节可以在紧挨着SDU的位置,也可以在紧挨着长度域的位置。
应用实施例二
在本应用实施例中,SDAP PDU的头放到SDU尾部。如图8所示,由于SDAP PDU的包头长度为1字节,所以,不需要长度域。其中,SDAP SDU即为IP包,这样既是增加了SDAP PDU的头,也对IP头的位置没有任何影响。在PDCP层进行头压缩时的操作与没有SDAP层时的处理完全相同。
应用实施例三
在本应用实施例中,PDCP PDU的头放到SDU尾部。如图9所示,由于PDCP PDU的头部长度超过了一个字节,如果把起始字段放在靠近PDCP SDU的位置,则需要增加头的长度域。当在SDAP层采用应用实施例二的方式对SDAP PDU进行了处理时,尽管IP包经过了SDAP和PDCP两个子 层的加包头处理,但是在静负荷(Payload)的起始部分,仍然是IP包。在PDCP层,能够准确获得IP PDU的包头,从而在进行头压缩、完整性保护、加密等操作时仍然可以与不存在SDAP子层的时候的处理完全相同。
从上述应用实施例可以看出,采用本申请实施例的方案后,虽然经过IP层之下的PDAP和PDCP层的处理,但是IP PDU(即IP包)的包头未被这两个协议层的PDU头所覆盖,IP PDU头仍然在起始位置,如此,能够正确获取IP PDU的包头,从而能够基于IP PDU正确进行处理。
为了实现本申请实施例的方法,本申请实施例还提供了一种数据传输装置,设置在发送端设备上,如图10所示,该装置包括:
发送单元101,配置为发送数据包;其中,
发送的数据包中,在所述发送端设备的第一协议层,PDU的包头在第一位置;所述第一位置为从上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置。
其中,在一实施例中,如图10所示,该装置还可以包括:
第一处理单元102,配置为在所述发送端设备的第一协议层,将PDU的包头设置在第一位置。
需要说明的是:当所述第一协议层的PDU的包头的长度可变时,所述第一处理单元102还配置为在数据包中设置所述第一协议层的PDU的包头的长度信息。
实际应用时,所述发送单元101可由数据传输装置中的通信接口实现;所述第一处理单元102可由数据传输装置中的处理器实现。
为了实现本申请实施例接收端设备侧的方法,本申请实施例还提供了一种数据传输装置,设置在接收端设备上,如图11所示,该装置包括:
接收单元111,配置为接收数据包;其中,接收的数据包中,在发送端设备的第一协议层,PDU的包头在第一位置;所述第一位置为上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置;
第二处理单元112,配置为在所述接收端设备的I第一协议层,从接收到的PDU中的第一位置开始解析。
其中,在一实施例中,所述第一协议层的PDU的包头的长度可变;所述发送的数据包中携带所述第一协议层的PDU的包头的长度信息。
这里,所述第二处理单元112,还配置为解析所述第一协议层PDU的第二位置,获得所述第一协议层PDU的包头的长度信息;所述第二位置包含以下之一:
所述第一协议层的PDU的包头的尾部;
所述SDU的尾部。
在一实施例中,所述第一协议层的PDU的包头的长度超过一个字节;所述第二处理单元112从高地址位端或低地址位端开始解析。
实际应用时,所述接收单元111可由数据传输装置中的通信接口实现;所述第二处理单元112可由数据传输装置中的处理器实现。
需要说明的是:上述实施例提供的数据传输装置在进行数据传输时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将装置的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的数据传输装置与数据传输方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
基于上述程序模块的硬件实现,且为了实现本申请实施例发送端设备侧的方法,本申请实施例还提供了一种发送端设备,如图12所示,该发送端设备120包括:
第一通信接口121,能够与接收端设备进行信息交互;
第一处理器122,与所述第一通信接口121连接,以实现与接收端设备进行信息交互,配置为运行计算机程序时,执行上述发送端设备侧一个或多个技术方案提供的方法。而所述计算机程序存储在第一存储器123上。
具体地,所述第一通信接口121,配置为发送数据包;其中,
发送的数据包中,在所述发送端设备120的第一协议层,PDU的包头在第一位置;所述第一位置为从上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置。
其中,在一实施例中,所述第一处理器122,配置为在所述发送端设备的第一协议层,将PDU的包头设置在第一位置。
在一实施例中,所述第一处理器122,还配置为在所述第一协议层的PDU的包头的长度可变时,在数据包中设置所述第一协议层的PDU的包头的长度信息。
需要说明的是:第一处理器122和第一通信接口121的具体处理过程可参照上述方法理解。
当然,实际应用时,发送端设备120中的各个组件通过总线系统124耦合在一起。可理解,总线系统124配置为实现这些组件之间的连接通信。总线系统124除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图12中将各种总线都标为总线系统124。
本申请实施例中的第一存储器123配置为存储各种类型的数据以支持发送端设备120的操作。这些数据的示例包括:用于在发送端设备120上操作的任何计算机程序。
上述本申请实施例揭示的方法可以应用于所述第一处理器122中,或 者由所述第一处理器122实现。所述第一处理器122可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过所述第一处理器122中的硬件的集成逻辑电路或者软件形式的指令完成。上述的所述第一处理器122可以是通用处理器、数字信号处理器(DSP,Digital Signal Processor),或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。所述第一处理器122可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于第一存储器123,所述第一处理器122读取第一存储器123中的信息,结合其硬件完成前述方法的步骤。
在示例性实施例中,发送端设备120可以被一个或多个应用专用集成电路(ASIC,Application Specific Integrated Circuit)、DSP、可编程逻辑器件(PLD,Programmable Logic Device)、复杂可编程逻辑器件(CPLD,Complex Programmable Logic Device)、现场可编程门阵列(FPGA,Field-Programmable Gate Array)、通用处理器、控制器、微控制器(MCU,Micro Controller Unit)、微处理器(Microprocessor)、或者其他电子元件实现,用于执行前述方法。
基于上述程序模块的硬件实现,且为了实现本申请实施例接收端设备侧的方法,本申请实施例还提供了一种接收端设备,如图13所示,该接收端设备130包括:
第二通信接口131,能够与发送端设备进行信息交互;
第二处理器132,与所述第二通信接口131连接,以实现与发送端设备进行信息交互,配置为运行计算机程序时,执行上述接收端设备侧一个或多个技术方案提供的方法。而所述计算机程序存储在第二存储器133上。
具体地,所述第二通信接口131,配置为接收数据包;其中,接收的数据包中,在发送端设备的第一协议层,PDU的包头在第一位置;所述第一位置为上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置;
第二处理器132,配置为在所述接收端设备的第一协议层,从接收到的PDU中的第一位置开始解析。
其中,在一实施例中,所述第一协议层的PDU的包头的长度可变;所述发送的数据包中携带所述第一协议层的PDU的包头的长度信息。
这里,所述第二处理器132,还配置为解析所述第一协议层PDU的第二位置,获得所述第一协议层PDU的包头的长度信息;所述第二位置包含以下之一:
所述第一协议层的PDU的包头的尾部;
所述SDU的尾部。
在一实施例中,所述第一协议层的PDU的包头的长度超过一个字节;所述第二处理器132从高地址位端或低地址位端开始解析。
需要说明的是:第二处理器132和第二通信接口131的具体处理过程可参照上述方法理解。
当然,实际应用时,接收端设备130中的各个组件通过总线系统134耦合在一起。可理解,总线系统134配置为实现这些组件之间的连接通信。总线系统134除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图13中将各种总线都标为总线系统134。
本申请实施例中的第二存储器133配置为存储各种类型的数据以支持接接收端设备130操作。这些数据的示例包括:用于在接收端设备130上操作的任何计算机程序。
上述本申请实施例揭示的方法可以应用于所述第二处理器132中,或者由所述第二处理器132实现。所述第二处理器132可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过所述第二处理器132中的硬件的集成逻辑电路或者软件形式的指令完成。上述的所述第二处理器132可以是通用处理器、DSP,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。所述第二处理器132可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于第二存储器133,所述第二处理器132读取第二存储器133中的信息,结合其硬件完成前述方法的步骤。
在示例性实施例中,接收端设备130可以被一个或多个ASIC、DSP、PLD、CPLD、FPGA、通用处理器、控制器、MCU、Microprocessor、或其他电子元件实现,用于执行前述方法。
可以理解,本申请实施例的存储器(第一存储器123、第二存储器133)可以是易失性存储器或者非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机 存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本申请实施例描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
为实现本申请实施例的方法,本申请实施例还提供了一种数据传输系统,如图14所示,该系统包括:
发送端设备141,配置为发送数据包;其中,发送的数据包中,在所述发送端设备的第一协议层,PDU的包头在第一位置;所述第一位置为从上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置;
接收端设备142,配置为接收数据包;在所述接收端设备142的第一协议层,从接收到的PDU中的第一位置开始解析。
需要说明的是:发送端设备141和接收端设备142的具体处理过程已在上文详述,这里不再赘述。
在示例性实施例中,本申请实施例还提供了一种存储介质,即计算机存储介质,具体为计算机可读存储介质,例如包括存储计算机程序的第一存储器123,上述计算机程序可由发送端设备120的第一处理器122执行,以完成前述发送端设备侧方法所述步骤。再比如包括存储计算机程序的第二存储器133,上述计算机程序可由接收端设备130的第二处理器132执行,以完成前述接收端设备侧方法所述步骤。计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、Flash Memory、磁表面存储器、光盘、或CD-ROM等存储器。
需要说明的是:“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
另外,本申请实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。
以上所述,仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。

Claims (21)

  1. 一种数据传输方法,应用于发送端设备,包括:
    发送数据包;其中,
    发送的数据包中,在所述发送端设备的第一协议层,协议数据单元PDU的包头在第一位置;所述第一位置为从上层协议层接收的服务数据单元SDU的除去起始位置外的其他位置;所述第一协议层至少包含位于互联网协议IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置。
  2. 根据权利要求1所述的方法,其中,所述第一位置包含以下位置之一:
    所述SDU的尾部;
    所述SDU中的一个位置。
  3. 根据权利要求1所述的方法,其中,所述第一协议层包含以下协议层至少之一:
    IP层之下的层3的协议层;
    层2的协议层。
  4. 根据权利要求3所述的方法,其中,所述层2的协议层包含以下协议层至少之一:
    服务数据适配协议SDAP层;
    分组数据汇聚协议PDCP层;
    无线链路控制RLC层;
    媒体访问控制MAC层。
  5. 根据权利要求1所述的方法,其中,所述第一协议层的PDU的包头的长度可变;所述发送的数据包中携带所述第一协议层的PDU的包头的长度信息。
  6. 根据权利要求5所述的方法,其中,在所述发送的数据包中,所述第一协议层的PDU的包头的长度信息位于所述第一协议层的PDU的包头的尾部,或者位于所述SDU的尾部。
  7. 根据权利要求1至6任一项所述的方法,其中,所述第一协议层还包含以下协议层至少之一:
    使用IP PDU包头的协议层;
    使用IP PDU包头的协议层之下的协议层。
  8. 一种数据传输方法,应用于接收端设备,包括:
    接收数据包;其中,接收的数据包中,在发送端设备的第一协议层,PDU的包头在第一位置;所述第一位置为上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层至少包含位于IP层之下,且使用IP  PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置;
    在所述接收端设备的第一协议层,从接收到的PDU中的第一位置开始解析。
  9. 根据权利要求8所述的方法,其中,所述第一位置包含以下位置之一:
    所述SDU的尾部;
    所述SDU中的一个位置。
  10. 根据权利要求8所述的方法,其中,所述第一协议层包含以下协议层至少之一:
    IP层之下的层3的协议层;
    层2的协议层。
  11. 根据权利要求10所述的方法,其中,所述层2的协议层包含以下协议层至少之一:
    SDAP层;
    PDCP层;
    RLC层;
    MAC层。
  12. 根据权利要求8所述的方法,其中,所述第一协议层的PDU的包头的长度可变;所述发送的数据包中携带所述第一协议层的PDU的包头的长度信息。
  13. 根据权利要求12所述的方法,其中,所述方法还包括:
    解析所述第一协议层PDU的第二位置,获得所述第一协议层PDU的包头的长度信息;所述第二位置包含以下之一:
    所述第一协议层的PDU的包头的尾部;
    所述SDU的尾部。
  14. 根据权利要求8至13任一项所述的方法,其中,所述第一协议层还包含以下协议层至少之一:
    使用IP PDU包头的协议层;
    使用IP PDU包头的协议层之下的协议层。
  15. 一种数据传输装置,设置在发送端设备上,包括:
    发送单元,配置为发送数据包;其中,
    发送的数据包中,在所述发送端设备的第一协议层,PDU的包头在第一位置;所述第一位置为从上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层至少包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置。
  16. 一种数据传输装置,设置在接收端设备上,包括:
    接收单元,配置为接收数据包;其中,接收的数据包中,在发送端设备的IP层的第一协议层,PDU的包头在第一位置;所述第一位置为上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层至少包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置;
    第二处理单元,配置为在所述接收端设备的第一协议层,从接收到的PDU中的第一位置开始解析。
  17. 一种发送端设备,包括:第一通信接口及第一处理器;中,
    所述第一通信接口,配置为发送数据包;其中,
    发送的数据包中,在所述发送端设备的第一协议层,PDU的包头在第一位置;所述第一位置为从上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层至少包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置。
  18. 一种接收端设备,包括:
    第二通信接口,配置为接收数据包;其中,接收的数据包中,在发送端设备的第一协议层,PDU的包头在第一位置;所述第一位置为上层协议层接收的SDU的除去起始位置外的其他位置;所述第一协议层至少包含位于IP层之下,且使用IP PDU包头的协议层之上的协议层;所述起始位置包含所述SDU中IP PDU的包头的位置;
    第二处理器,配置为在所述接收端设备的第一协议层,从接收到的PDU中的第一位置开始解析。
  19. 一种发送端设备,包括:第一处理器和配置为存储能够在处理器上运行的计算机程序的第一存储器,
    其中,所述第一处理器配置为运行所述计算机程序时,执行权利要求1至7任一项所述方法的步骤。
  20. 一种接收端设备,包括:第二处理器和配置为存储能够在处理器上运行的计算机程序的第二存储器,
    其中,所述第二处理器配置为运行所述计算机程序时,执行权利要求8至14任一项所述方法的步骤。
  21. 一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至7任一项所述方法的步骤,或者实现权利要求8至14任一项所述方法的步骤。
PCT/CN2021/079759 2020-03-12 2021-03-09 数据传输方法、装置、相关设备及存储介质 WO2021180075A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010172667.5A CN113395239A (zh) 2020-03-12 2020-03-12 数据传输方法、装置、相关设备及存储介质
CN202010172667.5 2020-03-12

Publications (1)

Publication Number Publication Date
WO2021180075A1 true WO2021180075A1 (zh) 2021-09-16

Family

ID=77616087

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/079759 WO2021180075A1 (zh) 2020-03-12 2021-03-09 数据传输方法、装置、相关设备及存储介质

Country Status (2)

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

Citations (4)

* 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
CN108809584A (zh) * 2017-05-05 2018-11-13 华为技术有限公司 数据传输方法及通信设备
CN109274474A (zh) * 2017-05-05 2019-01-25 华为技术有限公司 一种基于反转服务流特性的通信方法及装置
CN110071935A (zh) * 2019-04-30 2019-07-30 重庆邮电大学 一种5g系统中终端组装sdap头的实现方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105991625B (zh) * 2015-03-06 2020-11-06 电信科学技术研究院 一种进行数据传输的方法和设备

Patent Citations (4)

* 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
CN108809584A (zh) * 2017-05-05 2018-11-13 华为技术有限公司 数据传输方法及通信设备
CN109274474A (zh) * 2017-05-05 2019-01-25 华为技术有限公司 一种基于反转服务流特性的通信方法及装置
CN110071935A (zh) * 2019-04-30 2019-07-30 重庆邮电大学 一种5g系统中终端组装sdap头的实现方法

Also Published As

Publication number Publication date
CN113395239A (zh) 2021-09-14

Similar Documents

Publication Publication Date Title
US7327762B2 (en) Packet data processing apparatus in packet data communication system
JP2010539784A (ja) ヘッダインジケータを利用した効率的なデータブロック送信方法
US11653412B2 (en) Data transmission method and communications apparatus for communication of data from different service types or different destination addresses
US11956667B2 (en) Communication method and device
CN111357322B (zh) 终端装置、基站装置以及方法
WO2019019150A1 (zh) 数据传输的方法、终端设备和网络设备
WO2020048517A1 (zh) 一种rrc连接方法、设备及系统
US20220368782A1 (en) Baseband chip and method for layer 2 downlink data processing
TWI737881B (zh) 資料傳輸方法及發送端
US20230075613A1 (en) Terminal device
WO2019079973A1 (zh) 传输数据的方法、终端设备和网络设备
CN110996346A (zh) 一种下行报文轨迹追踪方法、装置及计算机可读存储介质
CN111385071B (zh) 一种数据传输方法、设备及计算机存储介质
CN114301576A (zh) 用于在ieee 802.15.4网络中生成和发送应答帧的方法及通信装置
EP2296400A1 (en) Communication system
WO2021180075A1 (zh) 数据传输方法、装置、相关设备及存储介质
JP2008131654A (ja) 無線通信システムにおける完全性保護方法及び装置
WO2021152369A1 (en) Dynamic uplink end-to-end data transfer scheme with optimized memory path
CN110769460B (zh) Bsr传输方法、装置、相关设备及存储介质
WO2021012260A1 (zh) 用于传输数据的方法、发送端设备和接收端设备
WO2021098375A1 (zh) 时间信息传输的处理方法、装置及存储介质
CN109041120A (zh) 数据传输方法、装置及计算机可读存储介质
WO2018053685A1 (zh) 数据封装方法、装置以及通信系统
CN115842853A (zh) 网络数据包的传输方法、设备及存储介质
WO2019109260A1 (zh) 接入无线接入网的方法、设备和非授权接入点

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21766866

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21766866

Country of ref document: EP

Kind code of ref document: A1