WO2022151105A1 - Compression processing method and apparatus - Google Patents

Compression processing method and apparatus Download PDF

Info

Publication number
WO2022151105A1
WO2022151105A1 PCT/CN2021/071611 CN2021071611W WO2022151105A1 WO 2022151105 A1 WO2022151105 A1 WO 2022151105A1 CN 2021071611 W CN2021071611 W CN 2021071611W WO 2022151105 A1 WO2022151105 A1 WO 2022151105A1
Authority
WO
WIPO (PCT)
Prior art keywords
compression
header
data packet
identifier
packet
Prior art date
Application number
PCT/CN2021/071611
Other languages
French (fr)
Chinese (zh)
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 北京小米移动软件有限公司
Priority to PCT/CN2021/071611 priority Critical patent/WO2022151105A1/en
Priority to CN202180000140.7A priority patent/CN115136571A/en
Publication of WO2022151105A1 publication Critical patent/WO2022151105A1/en

Links

Images

Definitions

  • the present application relates to the field of mobile communications, and in particular, to a compression processing method and device.
  • the network side configures the compression function for the compression end of the user terminal, such as the protocol entity, and instructs the user terminal to rebuild the entity, for the situation that the compression function cannot continue, it is easy to cause the compression end and the decompression end to compress the packet header of the data packet. State comprehension is inconsistent, resulting in packet header decompression failure.
  • the compression processing method and device proposed in the present application are used to solve the problem in the related art that the compression end and the decompression end have inconsistent understanding of the compression state of the packet header of the data packet, which leads to the failure of decompressing the packet header of the data packet.
  • An embodiment of the first aspect of the present application proposes a compression processing method, which is applied to a compression end.
  • the method includes: sending a data packet without header compression according to the first indication information.
  • the embodiment of the second aspect of the present application proposes another compression processing method, which is applied to the decompression end.
  • the method includes: discarding the established compression context according to the second indication information.
  • the embodiment of the third aspect of the present application proposes a compression processing apparatus, which is applied to a compression end.
  • the apparatus includes: a sending module configured to send a data packet without header compression according to the first indication information.
  • the embodiment of the fourth aspect of the present application proposes another compression processing apparatus, which is applied to the decompression end.
  • the apparatus includes: a discarding module configured to discard the established compression context according to the second indication information.
  • Embodiments of the fifth aspect of the present application provide a compression end, including the compression processing apparatus described in the embodiments of the third aspect of the present application.
  • Embodiments of the sixth aspect of the present application provide a decompression end, including the compression processing apparatus described in the embodiments of the fourth aspect of the present application.
  • Embodiments of the seventh aspect of the present application provide an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores data that can be executed by the at least one processor The instruction is executed by the at least one processor, so that the at least one processor can execute the compression processing method described in the embodiment of the first aspect of the present application, or the embodiment of the second aspect of the present application. Compression processing method.
  • An embodiment of the eighth aspect of the present application provides a computer storage medium, wherein the computer storage medium stores computer-executable instructions, and after the computer-executable instructions are executed by a processor, the embodiment of the first aspect of the present application can be implemented The compression processing method described above, or the compression processing method described in the embodiments of the second aspect of the present application.
  • FIG. 1 is a schematic flowchart of a compression processing method provided by an embodiment of the present application.
  • Fig. 2 is the structural representation of the data packet that EHC does not carry out packet header compression
  • FIG. 3 is a schematic flowchart of another compression processing method provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of another compression processing method provided by an embodiment of the present application.
  • Fig. 5 is the structural representation of EHC compressed data packet
  • Fig. 6 is the structural representation of EHC feedback data packet
  • FIG. 7 is a schematic flowchart of another compression processing method provided by an embodiment of the present application.
  • FIG. 8 is a schematic flowchart of another compression processing method provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a compression processing apparatus provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of another compression processing apparatus provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • first, second, third, etc. may be used in embodiments of the present disclosure to describe various pieces of information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.
  • the word "if” as used herein can be interpreted as "at the time of” or "when” or "in response to determining.”
  • the base stations and user terminals involved in the embodiments of the present application are specifically described as follows:
  • the base station is deployed in a wireless access network and provides wireless access functions for user terminals.
  • the base station may wirelessly communicate with the user terminal via one or more antennas.
  • a base station can provide communication coverage for its geographic area.
  • Base stations may include different types such as macro base stations, micro base stations, relay stations, and access points.
  • a base station may be referred to by those skilled in the art as a base station transceiver, wireless base station, access point, wireless transceiver, Basic Service Set (BSS), Extended Service Set (ESS) ), Node B (NodeB), evolved Node B (evolved NodeB, eNB or eNodeB) or some other appropriate term.
  • BSS Basic Service Set
  • ESS Extended Service Set
  • NodeB Node B
  • evolved Node B evolved Node B (evolved NodeB, eNB or eNodeB) or some other appropriate term.
  • a base station in a 5G system, a base station is called a gNB.
  • a base station for convenience of description, in the embodiments of the present application, the above-mentioned apparatuses for providing wireless communication functions for user terminals are collectively referred to as base stations.
  • User terminals may be dispersed throughout the mobile communication system, and each user terminal may be stationary or mobile.
  • a user terminal may also be referred to by those skilled in the art as a mobile station, subscriber station, mobile unit, subscriber unit, wireless unit, remote unit, mobile device, terminal device, wireless device, wireless communication device, remote device, mobile subscriber station, receiver.
  • the user terminal may be a cellular phone, a Personal Digital Assistant (PDA), a wireless modem, a wireless communication device, a handheld device, a tablet computer, a laptop computer, a cordless phone, a Wireless Local Loop (WLL) A station, etc., capable of communicating with a base station in a mobile communication system.
  • PDA Personal Digital Assistant
  • WLL Wireless Local Loop
  • FIG. 1 is a schematic flowchart of a compression processing method provided by an embodiment of the present application, which is executed by a compression end. As shown in FIG. 1 , the compression processing method includes the following steps:
  • S101 according to the first indication information, send a data packet without packet header compression.
  • the compression end and the decompression end may be network entities, such as functional modules in a Packet Data Convergence Protocol (PDCP for short) entity, or independent network entities.
  • PDCP Packet Data Convergence Protocol
  • the compression end and the decompression end can also exist in network devices, such as between routers; between gateways and base stations; between gateways and gateways.
  • the compression end may, according to the agreement of the communication protocol, send the data packet without header compression before establishing a new compression context, instead of sending the compressed data packet with the header compression, so as to avoid the decompression end in the If the compression function cannot be continued, the compression state of the current data packet cannot be obtained, resulting in inconsistent understanding of the compression state of the data packet header with the compression end, resulting in failure to decompress the data packet header.
  • the compression end may, according to the first indication information configured by the network side, for example, the base station, send data packets without header compression, instead of sending compressed data with header compression, before establishing a new compression context
  • the decompression end cannot obtain the compression state of the current data packet, which leads to inconsistent understanding of the compression state of the packet header with the compression end, and then causes the decompression of the packet header to fail.
  • the compression function cannot continue, for example, the user terminal switches from the base station gNB-1 to the base station gNB-2, and the network side entity corresponding to the user terminal changes from gNB-1 to gNB-2, then gNB-1 and gNB-2 Both are configured with the compression function, but since gNB-2 cannot obtain the compression status (including compression context information) of the packet header compression of the gNB-1 entity, gNB-2 cannot continue to use the compression context compressed by the packet header of gNB-1 for decompression. .
  • packet header compression in this embodiment of the present application may specifically include, but is not limited to, Ethernet Header Compression (Ethernet Header Compression, EHC for short) and the like.
  • the first indication information may specifically include, but is not limited to, at least one of the following: information used to instruct the network side to configure the header compression function for the compression end; information used to instruct the terminal device to re-establish the compression end; Information indicating that the network side does not instruct the continuous use of the packet header compression function.
  • the network side can be instructed through ehc-Uplink that the compression end is configured to compress the Ethernet packet header of the uplink data.
  • the terminal device can be instructed to re-establish the PDCP compressor through reestablish PDCP.
  • the packet header of the data packet without packet header compression may specifically include, but is not limited to, a packet header integrity identifier used to identify that the data packet includes a complete packet header, and the like.
  • Figure 2 is a schematic structural diagram of a data packet without header compression by EHC. As shown in Figure 2, the header integrity identifier "F/C" field value in the data packet without header compression by EHC (EHC Compressed Header, referred to as EHC CH) Set to "0" to indicate that the packet includes a complete header, that is, it is not compressed.
  • CID Context Identity
  • the Ethernet header is the Ethernet header, and PAYLOAD(+PAD) is the payload.
  • the compression end sends a data packet without header compression before establishing a new compression context, instead of sending a compressed data packet with header compression, which can prevent the decompression end from being unable to perform the compression function.
  • the compression state of the current data packet cannot be obtained, the compression state of the packet header of the data packet is inconsistently understood by the compression end, and the decompression of the data packet header fails.
  • FIG. 3 is a schematic flowchart of another compression processing method provided by an embodiment of the present application, which is executed by a compression end. As shown in Figure 3, the compression processing method includes the following steps:
  • the compression end and the decompression end may be functional modules in a network entity such as a Packet Data Convergence Protocol (PDCP for short) entity, or an independent network entity.
  • PDCP Packet Data Convergence Protocol
  • the compression end and the decompression end can also exist in network devices, such as between routers; between gateways and base stations; between gateways and gateways.
  • the compression end may discard the previously established compression context before establishing the new compression context according to the agreement of the communication protocol.
  • the compression end may discard the previously established compression context before establishing the new compression context according to the first indication information configured by the network side, for example, the base station.
  • the compressor after discarding the previously established compression context, the compressor sends the data packet without header compression instead of sending the compressed data packet with header compression, so as to avoid the decompression end in the case where the compression function cannot continue, due to The compression state of the current data packet cannot be obtained, resulting in inconsistent understanding of the compression state of the data packet header with the compression end, resulting in failure to decompress the data packet header.
  • the compression function cannot continue, for example, the user terminal switches from the base station gNB-1 to the base station gNB-2, and the network side entity corresponding to the user terminal changes from gNB-1 to gNB-2, then gNB-1 and gNB-2 Both are configured with the compression function, but since gNB-2 cannot obtain the compression status (including compression context information) of the packet header compression of the gNB-1 entity, gNB-2 cannot continue to use the compression context compressed by the packet header of gNB-1 for decompression. .
  • packet header compression in this embodiment of the present application may specifically include, but is not limited to, Ethernet Header Compression (Ethernet Header Compression, EHC for short) and the like.
  • the first indication information may specifically include, but is not limited to, at least one of the following: information used to instruct the network side to configure the header compression function for the compression end; information used to instruct the terminal device to re-establish the compression end; Information indicating that the network side does not instruct the continuous use of the packet header compression function.
  • the network side can be instructed through ehc-Uplink that the compression end is configured to compress the Ethernet packet header of the uplink data.
  • the terminal device can be instructed to re-establish the PDCP compressor through reestablish PDCP.
  • the packet header of the data packet without packet header compression may specifically include, but is not limited to, a packet header integrity identifier used to identify that the data packet includes a complete packet header, and the like.
  • Figure 2 is a schematic structural diagram of a data packet without header compression by EHC. As shown in Figure 2, the header integrity identifier "F/C" field value in the data packet without header compression by EHC (EHC Compressed Header, referred to as EHC CH) Set to "0" to indicate that the packet includes a complete header, that is, it is not compressed.
  • the CID is an identifier for marking a compression context, that is, a compression context identifier.
  • the Ethernet header is the Ethernet header, and PAYLOAD(+PAD) is the payload.
  • the first indication information may further include the first length of the compression context identifier or data stream identifier corresponding to the current compression, and the second length of the compression context identifier or data stream identifier corresponding to the previous compression.
  • the length of the compression context identifier corresponding to the current compression and the previous compression may be indicated by ehc-CID-Length, for example, 7 bits (bit) or 15 bits are used.
  • the above-mentioned step S302 sends a data packet without packet header compression, which may specifically include the following steps S401 or S402 or S403.
  • S401 in response to the difference between the first length and the second length, use a compression context identifier or a data stream identifier of the first length to send a data packet without header compression.
  • the compression context identifier or data stream identifier of the first length is used to send the data packet without header compression, that is, the header of the sent data packet without header compression is used to identify the compression context.
  • the length of the identifier adopts the first length, and the packet header includes a packet header integrity identifier for identifying that the data packet includes a complete packet header.
  • the compression context in the data packet without header compression shown in FIG. 2 is sent.
  • the length of the identification CID is 15 bits, and the "F/C" field value is set to "0".
  • the first length of the compression context identifier or data stream identifier corresponding to the current compression in the first indication information is the same as the second length of the compression context identifier or data stream identifier corresponding to the previous compression, that is, the compression context identifier or data stream identifier If the length of the stream identifier has not changed, the first length and the same compression context identifier or data stream identifier as the compression context identifier or data stream identifier corresponding to the previous compression are still used to send the data packets without header compression, that is, the data packets without header compression are sent.
  • the packet header of the packet header compressed the length of the identifier used to identify the compression context or the data stream adopts the second length, and the identifier used to identify the compression context or the data stream is the compression context or data stream identifier corresponding to the previous compression, And the packet header includes a packet header integrity identifier for identifying that the data packet includes a complete packet header. For example, if the first length of the compression context identifier CID-2 corresponding to this compression is 7 bits, and the second length of the compression context identifier CID-1 corresponding to the previous compression is 7 bits, then the packet header shown in Figure 2 is sent without header compression. The length of the compression context identifier CID-1 in the data packet is 7 bits, and the value of the "F/C" field is set to "0".
  • the decompression end can re-establish the compression context by using the compression context identifier or data stream identifier corresponding to the previous compression to send the data packet without header compression.
  • the first length of the compression context identifier or data stream identifier corresponding to the current compression in the first indication information is the same as the second length of the compression context identifier or data stream identifier corresponding to the previous compression, that is, the compression context identifier or data stream identifier If the length of the stream identifier has not changed, the first length and the compression context or data stream identifier corresponding to the previous compression are used to send the data packet without header compression, that is, the packet is sent without header compression.
  • the length of the identifier used to identify the compression context or the data stream in the header of the compressed data packet adopts the first length, and the identifier used to identify the compression context or the data stream is different from the compression context identifier corresponding to the previous compression, and the header includes: A header integrity flag used to identify that the data packet includes a complete header. For example, if the first length of the compression context identifier CID-2 corresponding to this compression is 7 bits, and the second length of the compression context identifier CID-1 corresponding to the previous compression is 7 bits, then the packet header shown in Figure 2 is sent without header compression. The length of the compression context identifier CID-2 in the data packet is 7 bits, and the compression context identifier is CID-2 instead of CID-1, and the "F/C" field value is set to "0".
  • the compression processing method in this embodiment of the present application may further include the following steps: receiving decompression failure information, where the decompression failure information includes a failure type indication, such as a decompression failure. and the compression context identifier such as CID-1 of the compressed data packet that has undergone header compression that fails to be decompressed.
  • the decompression failure information is used to indicate that the compression end does not send the compressed data packet corresponding to the compression context identifier of the decompression failure.
  • FIG. 5 is a schematic structural diagram of an EHC compressed data packet.
  • the packet header integrity identifier "F/C" field value in the EHC compressed data packet (EHC Full Header, referred to as EHC FH) is set to "1", Used to identify that the data packet includes an incomplete header, that is, it is compressed.
  • the CID is an identifier for marking a compression context, that is, a compression context identifier.
  • PAYLOAD(+PAD) is the payload.
  • the compression end sends an uncompressed Ethernet data packet (that is, an EHC FH packet) without Ethernet header compression to the decompression end.
  • the decompression end receives the "EHC FH packet"
  • a reception confirmation message (as shown in Figure 6 is a schematic diagram of the structure of the EHC feedback data packet, where R is the feedback identifier) to the compression end.
  • the compression end sends the compressed Ethernet data packet (that is, the EHC CH packet) with the Ethernet packet header compressed to the decompression end.
  • a compression context is established between the compression end and the decompression end, and the compression context is marked by a CID.
  • the compression context stores the Ethernet packet header information before and after compression. Then, the compression end sends the compressed Ethernet data packet according to the compression context, and the decompression end restores the compressed Ethernet data packet to the uncompressed Ethernet data packet before compression according to the compression context.
  • the compression end discards the established compression context and sends a data packet without header compression instead of sending a compressed data packet with header compression according to the first indication information. It can avoid that when the compression function cannot continue, the decompression end cannot obtain the compression state of the current data packet, resulting in inconsistent understanding of the compression state of the data packet header with the compression end, resulting in the failure of the decompression of the data packet header.
  • FIG. 7 is a schematic flowchart of another compression processing method provided by an embodiment of the present application, which is executed by a decompression end. As shown in Figure 7, the compression processing method includes the following steps:
  • the compression end and the decompression end may be functional modules in a network entity such as a Packet Data Convergence Protocol (PDCP for short) entity, or an independent network entity.
  • PDCP Packet Data Convergence Protocol
  • the compression end and the decompression end can also exist in network devices, such as between routers; between gateways and base stations; between gateways and gateways.
  • the decompressor can discard the previously established compression context before establishing a new compression context according to the agreement of the communication protocol, so as to successfully receive the uncompressed data sent by the compressor when the compression function cannot continue.
  • the data packet that is compressed by the packet header avoids that the compression state of the current data packet cannot be obtained, which leads to inconsistent understanding of the packet header compression state of the data packet with the compression end, and thus causes the packet header to fail to be decompressed.
  • the decompression end may discard the previously established compression context before establishing a new compression context according to the second indication information configured by the network side such as the base station, so as to successfully receive the compression end when the compression function fails.
  • the data packets without header compression are sent to avoid the inability to obtain the compression state of the current data packet, which will lead to inconsistent understanding of the data packet header compression state with the compression end, which will lead to the failure of packet header decompression.
  • the compression function cannot continue, for example, the user terminal switches from the base station gNB-1 to the base station gNB-2, and the network side entity corresponding to the user terminal changes from gNB-1 to gNB-2, then gNB-1 and gNB-2 Both are configured with the compression function, but since gNB-2 cannot obtain the compression status (including compression context information) of the packet header compression of the gNB-1 entity, gNB-2 cannot continue to use the compression context compressed by the packet header of gNB-1 for decompression. .
  • packet header compression in the embodiments of the present application may specifically include, but is not limited to, Ethernet Header Compression (Ethernet Header Compression, EHC for short), and the like.
  • the second indication information may specifically include but is not limited to at least one of the following: information used to instruct the network side to configure the packet header compression function for the decompression end; information used to instruct the terminal device to re-establish the decompression end; and, Information used to indicate that the network side does not instruct the continuous use of the packet header compression function.
  • ehc-Downlink can be used to instruct the network side to configure the decompression end to compress the Ethernet packet header of the downlink data.
  • the terminal device can be instructed to re-establish the PDCP decompression end through reestablish PDCP.
  • the decompression end discards the established compression context according to the second indication information, so as to successfully receive the data packets without header compression sent by the compression end when the compression function cannot continue, avoiding the The compression state of the current data packet cannot be obtained, resulting in inconsistent understanding of the compression state of the data packet header with the compression end, resulting in failure to decompress the data packet header.
  • FIG. 8 is a schematic flowchart of another compression processing method provided by an embodiment of the present application, which is executed by a decompression end. As shown in Figure 8, the compression processing method includes the following steps:
  • the compression end and the decompression end may be functional modules in a network entity such as a Packet Data Convergence Protocol (PDCP for short) entity, or an independent network entity.
  • PDCP Packet Data Convergence Protocol
  • the compression end and the decompression end can also exist in network devices, such as between routers; between gateways and base stations; between gateways and gateways.
  • the decompressor can discard the previously established compression context before establishing a new compression context according to the agreement of the communication protocol, so as to successfully receive the uncompressed data sent by the compressor when the compression function cannot continue.
  • the data packet that is compressed by the packet header avoids that the compression state of the current data packet cannot be obtained, which leads to inconsistent understanding of the packet header compression state of the data packet with the compression end, and thus causes the packet header to fail to be decompressed.
  • the decompression end may discard the previously established compression context before establishing a new compression context according to the second indication information configured by the network side such as the base station, so as to successfully receive the compression end when the compression function fails.
  • the data packets without header compression are sent to avoid the inability to obtain the compression state of the current data packet, which will lead to inconsistent understanding of the data packet header compression state with the compression end, which will lead to the failure of packet header decompression.
  • the compression function cannot continue, for example, the user terminal switches from the base station gNB-1 to the base station gNB-2, and the network side entity corresponding to the user terminal changes from gNB-1 to gNB-2, then gNB-1 and gNB-2 Both are configured with the compression function, but since gNB-2 cannot obtain the compression status (including compression context information) of the packet header compression of the gNB-1 entity, gNB-2 cannot continue to use the compression context compressed by the packet header of gNB-1 for decompression. .
  • packet header compression in this embodiment of the present application may specifically include, but is not limited to, Ethernet Header Compression (Ethernet Header Compression, EHC for short) and the like.
  • the second indication information may specifically include but is not limited to at least one of the following: information used to instruct the network side to configure the packet header compression function for the decompression end; information used to instruct the terminal device to re-establish the decompression end; and, Information used to indicate that the network side does not instruct the continuous use of the packet header compression function.
  • ehc-Downlink can be used to instruct the network side to configure the decompression end to compress the Ethernet packet header of the downlink data.
  • the terminal device can be instructed to re-establish the PDCP decompression end through reestablish PDCP.
  • S802 Receive the compressed data packet that has undergone header compression, wherein, before receiving the compressed data packet that has undergone header compression, a data packet that is identical to the compression context identifier of the compressed data packet and has not been subjected to header compression has not been received.
  • the decompression end receives the compressed data packet sent by the compression end with header compression, and before receiving the compressed data packet with header compression, it does not receive the same compression context identifier as the compressed data packet. For data packets without header compression, the decompression failure processing operation is performed.
  • the decompressor receives the compressed data packet with the compression context identifier CID-1 sent by the entity, and does not receive the compression context identifier CID-1 before receiving the compressed data packet with the compression context identifier CID-1 If there is no packet header compression, the decompression failure processing operation will be performed.
  • the packet header of the data packet without packet header compression may specifically include, but is not limited to, a packet header integrity identifier used to identify that the data packet includes a complete packet header, and the like.
  • Figure 2 is a schematic structural diagram of a data packet without header compression by EHC. As shown in Figure 2, the header integrity identifier "F/C" field value in the data packet without header compression by EHC (EHC Compressed Header, referred to as EHC CH) Set to "0" to indicate that the packet includes a complete header, that is, it is not compressed.
  • the CID is an identifier for marking a compression context, that is, a compression context identifier.
  • the Ethernet header is the Ethernet header, and PAYLOAD(+PAD) is the payload.
  • FIG. 5 is a schematic structural diagram of an EHC compressed data packet.
  • the packet header integrity identifier "F/C" field value in the EHC compressed data packet (EHC Full Header, referred to as EHC FH) is set to "1", Used to identify that the data packet includes an incomplete header, that is, it is compressed.
  • the CID is an identifier for marking a compression context, that is, a compression context identifier.
  • PAYLOAD(+PAD) is the payload.
  • the compression end sends an uncompressed Ethernet data packet (that is, an EHC FH packet) without Ethernet header compression to the decompression end.
  • the decompression end receives the "EHC FH packet", it feeds back a reception confirmation message (as shown in Figure 6, where R is the feedback identifier) to the compression end.
  • the compression end sends the compressed Ethernet data packet (that is, the EHC CH packet) with the Ethernet packet header compressed to the decompression end.
  • a compression context is established between the compression end and the decompression end, and the compression context is marked by a CID. Wherein, the compression context stores the Ethernet packet header information before and after compression. Then, the compression end sends the compressed Ethernet data packet according to the compression context, and the decompression end restores the compressed Ethernet data packet to the uncompressed Ethernet data packet before compression according to the compression context.
  • performing the decompression failure processing operation in step S803 may specifically include, but is not limited to, at least one of the following: discarding the compressed data packet; and sending decompression failure information, wherein the decompression failure information includes a failure type indication such as decompression failure.
  • the decompression failure information may also include at least one of the following: a compression context identifier of the compressed data packet, such as CID-1; a data flow identifier of the compressed data packet, such as QoS flow-1; and a bearer identifier of the compressed data packet, such as DRB -1.
  • a compression context identifier of the compressed data packet such as CID-1
  • a data flow identifier of the compressed data packet such as QoS flow-1
  • a bearer identifier of the compressed data packet such as DRB -1.
  • the compression processing method in this embodiment of the present application may further include the following steps: receiving third indication information configured by the network side, where the third indication information includes a preset compression context.
  • the packet header of the corresponding packet without packet header compression includes a packet header integrity identifier for identifying that the packet includes a complete packet header; in response to the received packet's compression context identifier being the same as the preset compression context identifier, determine The received packet is a packet without header compression.
  • the decompression end receives third indication information configured by the network side, where the third indication information includes a preset compression context identifier corresponding to the data packet without header compression.
  • the packet header integrity identifier that is, the third indication information is used to indicate that, for the data packet that has not undergone packet header compression with the preset compression context identifier, the packet header is used to indicate that the packet includes the complete packet header through the packet header integrity identifier. If the compression context identifier of the received data packet is the same as the preset compression context identifier, it is determined that the received data packet is a data packet without header compression.
  • the decompression end discards the established compression context according to the second indication information, so as to successfully receive the data packets without header compression sent by the compression end when the compression function cannot continue, avoiding the The compression state of the current data packet cannot be obtained, resulting in inconsistent understanding of the compression state of the data packet header with the compression end, resulting in failure to decompress the data packet header.
  • the present application further provides a compression processing device, which is applied to the compression end.
  • the compression processing method provided in the example corresponds to the compression processing method, so the implementation of the compression processing method is also applicable to the compression processing apparatus provided in this embodiment, and will not be described in detail in this embodiment.
  • FIG. 9 is a schematic structural diagram of a compression processing apparatus provided by an embodiment of the present application.
  • the compression processing apparatus 900 includes: a sending module 910 . in:
  • the sending module 910 is configured to send the data packet without packet header compression according to the first indication information.
  • the packet header is compressed as an Ethernet header.
  • the first indication information includes at least one of the following: information used to instruct the network side to configure the packet header compression function for the compression end; information used to instruct the terminal device to re-establish the compression end; and information used to indicate that the network side does not indicate the packet header Information that the compression function uses continuously.
  • the sending module 910 is further configured to discard the established compression context before sending the data packet without header compression.
  • the packet header of the data packet without packet header compression includes a packet header integrity identifier for identifying that the data packet includes a complete packet header.
  • the first indication information includes the first length of the compression context identifier or data stream identifier corresponding to the current compression and the second length of the compression context identifier or data stream identifier corresponding to the previous compression;
  • the sending module is specifically configured as: In response to the first length being different from the second length, use the compression context identifier or data stream identifier of the first length to send the data packet without header compression; or, in response to the first length being the same as the second length, using the first length And the same compression context identifier or data stream identifier as the compression context identifier or data stream identifier corresponding to the last compression sends the data packet without header compression; or, in response to the first length being the same as the second length, the first length and A compression context identifier or data stream identifier different from the compression context identifier or data stream identifier corresponding to the previous compression sends a data packet without header compression.
  • the sending module 910 is further configured to: before sending the data packet without header compression, receive decompression failure information, wherein the decompression failure information includes a failure type indication and the decompression failed compressed data with header compression. Compression context identifier for the package.
  • the compression end discards the established compression context before establishing a new compression context according to the first indication information, and sends a data packet without header compression instead of sending the compression with header compression.
  • Data packets which can prevent the decompression end from being able to obtain the compression state of the current data packet when the compression function cannot continue, resulting in inconsistent understanding of the compression state of the data packet header with the compression end, resulting in packet header decompression failure.
  • the present application further provides a compression processing apparatus, which is applied to a user terminal.
  • the compression processing method provided in the example corresponds to the compression processing method, so the implementation of the compression processing method is also applicable to the compression processing apparatus provided in this embodiment, and will not be described in detail in this embodiment.
  • FIG. 10 is a schematic structural diagram of a compression processing apparatus provided by an embodiment of the present application.
  • the compression processing apparatus 1000 includes: a discarding module 1010, wherein:
  • the discarding module 1010 is configured to discard the established compression context according to the second indication information.
  • the second indication information includes at least one of the following: information used to instruct the network side to configure the packet header compression function for the decompression end; information used to instruct the terminal device to re-establish the decompression end; and information used to indicate that the network side has not Information indicating the continuous use of the header compression function.
  • the packet header is compressed as an Ethernet header.
  • the compression processing apparatus in the embodiment of the present application may further include: a receiving module configured to receive a compressed data packet with header compression after the discarding module 1010 discards the established compression context, wherein the receiving module 1010 performs header compression.
  • a receiving module configured to receive a compressed data packet with header compression after the discarding module 1010 discards the established compression context, wherein the receiving module 1010 performs header compression.
  • the decompression failure processing operation is performed before the compressed compressed data packet.
  • the receiving module is specifically configured to perform at least one of the following: discarding the compressed data packet; and sending decompression failure information, where the decompression failure information includes a failure type indication.
  • the decompression failure information further includes at least one of the following: a compression context identifier of the compressed data packet; a data flow identifier of the compressed data packet; and a bearer identifier of the compressed data packet.
  • the receiving module is further configured to: before the discarding module 1010 discards the established compression context, receive third indication information configured by the network side, where the third indication information includes the preset compression context identifier corresponding to the uncompressed header.
  • the packet header of the data packet includes a packet header integrity identifier for identifying that the packet includes a complete packet header; in response to the compression context identifier of the received packet being the same as the preset compression context identifier, it is determined that the received packet is unidentified. Header-compressed packets.
  • the decompression end discards the established compression context according to the second indication information, so as to successfully receive the data packet without header compression sent by the compression end when the compression function cannot continue, avoiding the The compression state of the current data packet cannot be obtained, resulting in inconsistent understanding of the compression state of the data packet header with the compression end, resulting in failure to decompress the data packet header.
  • the present application further provides a compression end, including the compression processing apparatus 900 provided by the embodiments of the present application.
  • the compressor in the embodiment of the present application discards the established compression context, and sends a data packet without header compression, instead of sending a compressed data packet with header compression, It can avoid that when the compression function cannot continue, the decompression end cannot obtain the compression state of the current data packet, resulting in inconsistent understanding of the compression state of the data packet header with the compression end, resulting in the failure of the decompression of the data packet header.
  • the present application further provides a decompression terminal, including the compression processing apparatus 1000 provided by the embodiments of the present application.
  • the decompression end in this embodiment of the present application discards the established compression context according to the second indication information, so as to successfully receive the data packet without header compression sent by the compression end when the compression function cannot continue, so as to avoid the failure to obtain the current The compression state of the data packet, which leads to inconsistent understanding of the compression state of the data packet header with the compression end, which in turn causes the packet header decompression failure.
  • the present application further provides an electronic device and a readable storage medium.
  • FIG. 11 it is a block diagram of an electronic device according to an embodiment of the present application.
  • Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers.
  • Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices.
  • the components shown herein, their connections and relationships, and their functions are by way of example only, and are not intended to limit implementations of the application described and/or claimed herein.
  • the electronic device includes: one or more processors 1100, a memory 1200, and interfaces for connecting various components, including a high-speed interface and a low-speed interface.
  • the various components are interconnected using different buses and may be mounted on a common motherboard or otherwise as desired.
  • the processor may process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface.
  • multiple processors and/or multiple buses may be used with multiple memories and multiple memories, if desired.
  • multiple electronic devices may be connected, each providing some of the necessary operations (eg, as a server array, a group of blade servers, or a multiprocessor system).
  • a processor 1100 is taken as an example in FIG. 11 .
  • the memory 1200 is the non-transitory computer-readable storage medium provided by the present application.
  • the memory stores instructions executable by at least one processor, so that the at least one processor executes the compression processing method provided by the present application.
  • the non-transitory computer-readable storage medium of the present application stores computer instructions, and the computer instructions are used to cause the computer to execute the compression processing method provided by the present application.
  • the memory 1200 can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the compression processing methods in the embodiments of the present application (for example, appendix The sending module 910 shown in FIG. 9 ).
  • the processor 1100 executes various functional applications and data processing of the server by running the non-transitory software programs, instructions and modules stored in the memory 1200, ie, implements the compression processing methods in the above method embodiments.
  • the memory 1200 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the positioning electronic device, and the like. Additionally, memory 1200 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. Optionally, the memory 1200 may optionally include memory located remotely from the processor 1100, and these remote memories may be connected to the positioning electronic device through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the electronic device may further include: an input device 1300 and an output device 1400 .
  • the processor 1100 , the memory 1200 , the input device 1300 and the output device 1400 may be connected by a bus or in other ways, and the connection by a bus is taken as an example in FIG. 11 .
  • the input device 1300 can receive input numerical or character information and generate key signal input related to user settings and functional control of the positioning electronic device, such as a touch screen, keypad, mouse, trackpad, touchpad, pointing stick, one or more Input devices such as mouse buttons, trackballs, joysticks, etc.
  • the output device 1400 may include a display device, auxiliary lighting devices (eg, LEDs), haptic feedback devices (eg, vibration motors), and the like.
  • the display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
  • Various implementations of the systems and techniques described herein can be implemented in digital electronic circuitry, integrated circuit systems, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.
  • the processor which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.
  • machine-readable medium and “computer-readable medium” refer to any computer program product, apparatus, and/or apparatus for providing machine instructions and/or data to a programmable processor ( For example, magnetic disks, optical disks, memories, programmable logic devices (PLDs), including machine-readable media that receive machine instructions as machine-readable signals.
  • machine-readable signal refers to any signal used to provide machine instructions and/or data to a programmable processor.
  • the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the computer.
  • a display device eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor
  • a keyboard and pointing device eg, a mouse or trackball
  • Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.
  • the systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system.
  • the components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
  • a computer system can include clients and servers.
  • Clients and servers are generally remote from each other and usually interact through a communication network.
  • the relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other.

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Provided are a compression processing method and apparatus, which relate to the technical field of mobile communications. The solution comprises: according to first indication information, sending a data packet which has not been subjected to header compression. By means of the present application, a compression terminal sends, according to first indication information, a data packet which has not been subjected to header compression, such that the compression terminal and a decompression terminal have the same understanding of the compression status of the header of the data packet, and failure of decompression of the header of the data packet is avoided.

Description

一种压缩处理方法及装置A compression processing method and device 技术领域technical field
本申请涉及移动通信领域,特别是指一种压缩处理方法及装置。The present application relates to the field of mobile communications, and in particular, to a compression processing method and device.
背景技术Background technique
相关技术中,当网络侧为用户终端的压缩端例如协议实体配置了压缩功能,且指示用户终端重建实体时,对于压缩功能无法继续的情况,容易导致压缩端和解压缩端对数据包的包头压缩状态理解不一致,从而导致数据包包头解压缩失败。In the related art, when the network side configures the compression function for the compression end of the user terminal, such as the protocol entity, and instructs the user terminal to rebuild the entity, for the situation that the compression function cannot continue, it is easy to cause the compression end and the decompression end to compress the packet header of the data packet. State comprehension is inconsistent, resulting in packet header decompression failure.
发明内容SUMMARY OF THE INVENTION
本申请提出的压缩处理方法及装置,用于解决相关技术中压缩端和解压缩端对数据包的包头压缩状态理解不一致,从而导致数据包包头解压缩失败的问题。The compression processing method and device proposed in the present application are used to solve the problem in the related art that the compression end and the decompression end have inconsistent understanding of the compression state of the packet header of the data packet, which leads to the failure of decompressing the packet header of the data packet.
本申请第一方面实施例提出了一压缩处理方法,应用于压缩端,所述方法包括:根据第一指示信息,发送未进行包头压缩的数据包。An embodiment of the first aspect of the present application proposes a compression processing method, which is applied to a compression end. The method includes: sending a data packet without header compression according to the first indication information.
本申请第二方面实施例提出了另一压缩处理方法,应用于解压缩端,所述方法包括:根据第二指示信息,丢弃已建立的压缩上下文。The embodiment of the second aspect of the present application proposes another compression processing method, which is applied to the decompression end. The method includes: discarding the established compression context according to the second indication information.
本申请第三方面实施例提出了一压缩处理装置,应用于压缩端,所述装置包括:发送模块,被配置为根据第一指示信息,发送未进行包头压缩的数据包。The embodiment of the third aspect of the present application proposes a compression processing apparatus, which is applied to a compression end. The apparatus includes: a sending module configured to send a data packet without header compression according to the first indication information.
本申请第四方面实施例提出了另一压缩处理装置,应用于解压缩端,所述装置包括:丢弃模块,被配置为根据第二指示信息,丢弃已建立的压缩上下文。The embodiment of the fourth aspect of the present application proposes another compression processing apparatus, which is applied to the decompression end. The apparatus includes: a discarding module configured to discard the established compression context according to the second indication information.
本申请第五方面实施例提供了一压缩端,包括本申请第三方面实施例所述的压缩处理装置。Embodiments of the fifth aspect of the present application provide a compression end, including the compression processing apparatus described in the embodiments of the third aspect of the present application.
本申请第六方面实施例提供了一种解压缩端,包括本申请第四方面实施例所述的压缩处理装置。Embodiments of the sixth aspect of the present application provide a decompression end, including the compression processing apparatus described in the embodiments of the fourth aspect of the present application.
本申请第七方面实施例提供了一种电子设备,包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行本申请第一方面实施例所述的压缩处理方法,或者本申请第二方面实施例所述的压缩处理方法。Embodiments of the seventh aspect of the present application provide an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores data that can be executed by the at least one processor The instruction is executed by the at least one processor, so that the at least one processor can execute the compression processing method described in the embodiment of the first aspect of the present application, or the embodiment of the second aspect of the present application. Compression processing method.
本申请第八方面实施例提供了一种计算机存储介质,其中,所述计算机存储介质存储有计算机可执行指令,所述计算机可执行指令被处理器执行后,能够实现本申请第一方面实施例所述的压缩处理方法,或者本申请第二方面实施例所述的压缩处理方法。An embodiment of the eighth aspect of the present application provides a computer storage medium, wherein the computer storage medium stores computer-executable instructions, and after the computer-executable instructions are executed by a processor, the embodiment of the first aspect of the present application can be implemented The compression processing method described above, or the compression processing method described in the embodiments of the second aspect of the present application.
附图说明Description of drawings
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:
图1为本申请实施例提供的一压缩处理方法的流程示意图;1 is a schematic flowchart of a compression processing method provided by an embodiment of the present application;
图2为EHC未进行包头压缩的数据包的结构示意图;Fig. 2 is the structural representation of the data packet that EHC does not carry out packet header compression;
图3为本申请实施例提供的另一压缩处理方法的流程示意图;3 is a schematic flowchart of another compression processing method provided by an embodiment of the present application;
图4为本申请实施例提供的另一压缩处理方法的流程示意图;FIG. 4 is a schematic flowchart of another compression processing method provided by an embodiment of the present application;
图5为EHC压缩数据包的结构示意图;Fig. 5 is the structural representation of EHC compressed data packet;
图6为EHC反馈数据包的结构示意图;Fig. 6 is the structural representation of EHC feedback data packet;
图7为本申请实施例提供的另一压缩处理方法的流程示意图;FIG. 7 is a schematic flowchart of another compression processing method provided by an embodiment of the present application;
图8为本申请实施例提供的另一压缩处理方法的流程示意图;FIG. 8 is a schematic flowchart of another compression processing method provided by an embodiment of the present application;
图9为本申请实施例提供的一压缩处理装置的结构示意图;FIG. 9 is a schematic structural diagram of a compression processing apparatus provided by an embodiment of the present application;
图10为本申请实施例提供的另一压缩处理装置的结构示意图;FIG. 10 is a schematic structural diagram of another compression processing apparatus provided by an embodiment of the present application;
图11为本申请实施例提供的一种电子设备的结构示意图。FIG. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施例,实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, and are intended to be used to explain the present application, but should not be construed as a limitation to the present application.
在本公开实施例使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开实施例。在本公开实施例和所附权利要求书中所使用的单数形式的“一种”、“”和“该”也旨在包括复数形式,除非上下文 清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in the embodiments of the present disclosure are only for the purpose of describing particular embodiments, and are not intended to limit the embodiments of the present disclosure. As used in the embodiments of the present disclosure and the appended claims, the singular forms "a," "" and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本公开实施例可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开实施例范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in embodiments of the present disclosure to describe various pieces of information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the embodiments of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determining."
本申请实施例中涉及的基站和用户终端具体描述如下:基站部署在无线接入网中,为用户终端提供无线接入功能。基站可以经由一个或多个天线与用户终端进行无线通信。基站可以为其所在地理区域提供通信覆盖。基站可以包括宏基站,微基站,中继站,接入点等不同类型。在一些实施例中,基站可以被本领域技术人员称为基站收发机、无线基站、接入点、无线收发机、基本服务集(Basic Service Set,BSS)、扩展服务集(Extended Service Set,ESS)、节点B(NodeB)、演进的节点B(evolved NodeB,eNB或eNodeB)或者其它一些适当的术语。示例性地,在5G系统中,基站被称为gNB。为方便描述,本申请实施例中,上述为用户终端提供无线通信功能的装置统称为基站。The base stations and user terminals involved in the embodiments of the present application are specifically described as follows: The base station is deployed in a wireless access network and provides wireless access functions for user terminals. The base station may wirelessly communicate with the user terminal via one or more antennas. A base station can provide communication coverage for its geographic area. Base stations may include different types such as macro base stations, micro base stations, relay stations, and access points. In some embodiments, a base station may be referred to by those skilled in the art as a base station transceiver, wireless base station, access point, wireless transceiver, Basic Service Set (BSS), Extended Service Set (ESS) ), Node B (NodeB), evolved Node B (evolved NodeB, eNB or eNodeB) or some other appropriate term. Exemplarily, in a 5G system, a base station is called a gNB. For convenience of description, in the embodiments of the present application, the above-mentioned apparatuses for providing wireless communication functions for user terminals are collectively referred to as base stations.
用户终端可以散布于整个移动通信系统中,并且每个用户终端可以是静止的或者移动的。用户终端还可以被本领域技术人员称为移动站、用户站、移动单元、用户单元、无线单元、远程单元、移动设备、终端设备、无线设备、无线通信设备、远程设备、移动用户站、接入用户设备、移动用户设备、无线用户设备、远程用户设备、手持设备、用户代理、移动客户端、客户端或者一些其它适当的术语。用户终端可以是蜂窝电话、个人数字助理(Personal Digital Assistant,PDA)、无线调制解调器、无线通信设备、手持设备、平板电脑、膝上型计算机、无绳电话、无线本地环路(Wireless Local Loop,WLL)站等,能够与移动通信系统中的基站进行通信。User terminals may be dispersed throughout the mobile communication system, and each user terminal may be stationary or mobile. A user terminal may also be referred to by those skilled in the art as a mobile station, subscriber station, mobile unit, subscriber unit, wireless unit, remote unit, mobile device, terminal device, wireless device, wireless communication device, remote device, mobile subscriber station, receiver. Inbound User Equipment, Mobile User Equipment, Wireless User Equipment, Remote User Equipment, Handheld Device, User Agent, Mobile Client, Client, or some other appropriate term. The user terminal may be a cellular phone, a Personal Digital Assistant (PDA), a wireless modem, a wireless communication device, a handheld device, a tablet computer, a laptop computer, a cordless phone, a Wireless Local Loop (WLL) A station, etc., capable of communicating with a base station in a mobile communication system.
图1为本申请实施例提供的一压缩处理方法的流程示意图,由压缩端执行,如图1所示,该压缩处理方法包括以下步骤:1 is a schematic flowchart of a compression processing method provided by an embodiment of the present application, which is executed by a compression end. As shown in FIG. 1 , the compression processing method includes the following steps:
S101,根据第一指示信息,发送未进行包头压缩的数据包。S101, according to the first indication information, send a data packet without packet header compression.
具体的,压缩端和解压缩端可以为网络实体、例如包数据汇聚协议(Packet Data Convergence Protocol,简称PDCP)实体中的功能模块,或独立的网络实体。且压缩端和解压缩端除存在于基站和终端设备中外,还可存在于网络设备,比如:路由器之间;网关和基站之间;网关和网关之间。Specifically, the compression end and the decompression end may be network entities, such as functional modules in a Packet Data Convergence Protocol (PDCP for short) entity, or independent network entities. In addition to the base station and the terminal device, the compression end and the decompression end can also exist in network devices, such as between routers; between gateways and base stations; between gateways and gateways.
作为一种可行的实施方式,压缩端可以根据通信协议的约定,在建立新的压缩上下文之前发送未进行包头压缩的数据包,而不是发送进行包头压缩的压缩数据包,以避免解压缩端在压缩功能无法继续的情况下,由于无法获取当前数据包的压缩状态,从而导致和压缩端对数据包的包头压缩状态理解不一致,进而导致数据包包头解压缩失败。As a feasible implementation manner, the compression end may, according to the agreement of the communication protocol, send the data packet without header compression before establishing a new compression context, instead of sending the compressed data packet with the header compression, so as to avoid the decompression end in the If the compression function cannot be continued, the compression state of the current data packet cannot be obtained, resulting in inconsistent understanding of the compression state of the data packet header with the compression end, resulting in failure to decompress the data packet header.
作为另一种可行的实施方式,压缩端可以根据网络侧、例如基站配置的第一指示信息,在建立新的压缩上下文之前发送未进行包头压缩的数据包,而不是发送进行包头压缩的压缩数据包,以避免解压缩端在压缩功能无法继续的情况下,由于无法获取当前数据包的压缩状态,从而导致和压缩端对数据包的包头压缩状态理解不一致,进而导致数据包包头解压缩失败。As another feasible implementation manner, the compression end may, according to the first indication information configured by the network side, for example, the base station, send data packets without header compression, instead of sending compressed data with header compression, before establishing a new compression context In order to avoid that when the compression function cannot continue, the decompression end cannot obtain the compression state of the current data packet, which leads to inconsistent understanding of the compression state of the packet header with the compression end, and then causes the decompression of the packet header to fail.
其中,压缩功能无法继续的情况,例如用户终端从基站gNB-1切换至基站gNB-2,该用户终端对应的网络侧实体从gNB-1变更到gNB-2,则gNB-1和gNB-2都配置压缩功能,但是由于gNB-2无法获取到gNB-1的实体的包头压缩的压缩状态(包括压缩上下文信息),则gNB-2无法继续使用gNB-1的包头压缩的压缩上下文进行解压缩。Among them, when the compression function cannot continue, for example, the user terminal switches from the base station gNB-1 to the base station gNB-2, and the network side entity corresponding to the user terminal changes from gNB-1 to gNB-2, then gNB-1 and gNB-2 Both are configured with the compression function, but since gNB-2 cannot obtain the compression status (including compression context information) of the packet header compression of the gNB-1 entity, gNB-2 cannot continue to use the compression context compressed by the packet header of gNB-1 for decompression. .
此处需要说明的是,本申请实施例中的包头压缩具体可包括但不限于以太网头压缩(Ethernet Header Compression,简称EHC)等。It should be noted here that the packet header compression in this embodiment of the present application may specifically include, but is not limited to, Ethernet Header Compression (Ethernet Header Compression, EHC for short) and the like.
可选的,第一指示信息具体可包括但不限于以下至少一种:用于指示网络侧为压缩端配置了包头压缩功能的信息;用于指示终端设备重新建立压缩端的信息;以及,用于指示网络侧未指示包头压缩功能连续使用的信息。Optionally, the first indication information may specifically include, but is not limited to, at least one of the following: information used to instruct the network side to configure the header compression function for the compression end; information used to instruct the terminal device to re-establish the compression end; Information indicating that the network side does not instruct the continuous use of the packet header compression function.
例如,可通过ehc-Uplink指示网络侧为压缩端配置了对上行数据的以太网包头进行压缩。可通过reestablish PDCP指示终端设备重新建立PDCP压缩端。For example, the network side can be instructed through ehc-Uplink that the compression end is configured to compress the Ethernet packet header of the uplink data. The terminal device can be instructed to re-establish the PDCP compressor through reestablish PDCP.
其中,未进行包头压缩的数据包的包头中具体可包括但不限于用于标识该数据包包括完整包头的包头完整性标识等。图2为EHC未进行包头压缩的数据包的结构示意图,如图2所示,EHC未进行包头压缩的数据包(EHC Compressed Header,简称EHC CH)中包头完整性标识“F/C”域值设置为“0”,用于标识该数据包包括完整包头,即未经过压缩。CID(Context Identity)为用于标记压缩上下文的标识,即压缩上下文标识。Ethernet header为以太网包头,PAYLOAD(+PAD)为有效载荷。Wherein, the packet header of the data packet without packet header compression may specifically include, but is not limited to, a packet header integrity identifier used to identify that the data packet includes a complete packet header, and the like. Figure 2 is a schematic structural diagram of a data packet without header compression by EHC. As shown in Figure 2, the header integrity identifier "F/C" field value in the data packet without header compression by EHC (EHC Compressed Header, referred to as EHC CH) Set to "0" to indicate that the packet includes a complete header, that is, it is not compressed. CID (Context Identity) is an identifier used to mark a compression context, that is, a compression context identifier. The Ethernet header is the Ethernet header, and PAYLOAD(+PAD) is the payload.
本申请实施例中,压缩端根据第一指示信息,在建立新的压缩上下文之前发送未进行包头压缩的数据包,而不是发送进行包头压缩的压缩数据包,可避免解压缩端在压缩功能无法继续的情况下,由于无 法获取当前数据包的压缩状态,从而导致和压缩端对数据包的包头压缩状态理解不一致,进而导致数据包包头解压缩失败。In this embodiment of the present application, according to the first indication information, the compression end sends a data packet without header compression before establishing a new compression context, instead of sending a compressed data packet with header compression, which can prevent the decompression end from being unable to perform the compression function. In the case of continuing, because the compression state of the current data packet cannot be obtained, the compression state of the packet header of the data packet is inconsistently understood by the compression end, and the decompression of the data packet header fails.
图3为本申请实施例提供的另一压缩处理方法的流程示意图,由压缩端执行。如图3所示,该压缩处理方法包括以下步骤:FIG. 3 is a schematic flowchart of another compression processing method provided by an embodiment of the present application, which is executed by a compression end. As shown in Figure 3, the compression processing method includes the following steps:
S301,根据第一指示信息,丢弃已建立的压缩上下文。S301, according to the first indication information, discard the established compression context.
具体的,压缩端和解压缩端可以为网络实体例如包数据汇聚协议(Packet Data Convergence Protocol,简称PDCP)实体中的功能模块,或独立的网络实体。且压缩端和解压缩端除存在于基站和终端设备中外,还可存在于网络设备,比如:路由器之间;网关和基站之间;网关和网关之间。Specifically, the compression end and the decompression end may be functional modules in a network entity such as a Packet Data Convergence Protocol (PDCP for short) entity, or an independent network entity. In addition to the base station and the terminal device, the compression end and the decompression end can also exist in network devices, such as between routers; between gateways and base stations; between gateways and gateways.
作为一种可行的实施方式,压缩端可以根据通信协议的约定,在建立新的压缩上下文之前,丢弃之前已建立的压缩上下文。As a feasible implementation manner, the compression end may discard the previously established compression context before establishing the new compression context according to the agreement of the communication protocol.
作为另一种可行的实施方式,压缩端可以根据网络侧、例如基站配置的第一指示信息,在建立新的压缩上下文之前,丢弃之前已建立的压缩上下文。As another feasible implementation manner, the compression end may discard the previously established compression context before establishing the new compression context according to the first indication information configured by the network side, for example, the base station.
S302,发送未进行包头压缩的数据包。S302: Send the data packet without packet header compression.
具体的,压缩端在丢弃之前已建立的压缩上下文之后,发送未进行包头压缩的数据包,而不是发送进行包头压缩的压缩数据包,以避免解压缩端在压缩功能无法继续的情况下,由于无法获取当前数据包的压缩状态,从而导致和压缩端对数据包的包头压缩状态理解不一致,进而导致数据包包头解压缩失败。Specifically, after discarding the previously established compression context, the compressor sends the data packet without header compression instead of sending the compressed data packet with header compression, so as to avoid the decompression end in the case where the compression function cannot continue, due to The compression state of the current data packet cannot be obtained, resulting in inconsistent understanding of the compression state of the data packet header with the compression end, resulting in failure to decompress the data packet header.
其中,压缩功能无法继续的情况,例如用户终端从基站gNB-1切换至基站gNB-2,该用户终端对应的网络侧实体从gNB-1变更到gNB-2,则gNB-1和gNB-2都配置压缩功能,但是由于gNB-2无法获取到gNB-1的实体的包头压缩的压缩状态(包括压缩上下文信息),则gNB-2无法继续使用gNB-1的包头压缩的压缩上下文进行解压缩。Among them, when the compression function cannot continue, for example, the user terminal switches from the base station gNB-1 to the base station gNB-2, and the network side entity corresponding to the user terminal changes from gNB-1 to gNB-2, then gNB-1 and gNB-2 Both are configured with the compression function, but since gNB-2 cannot obtain the compression status (including compression context information) of the packet header compression of the gNB-1 entity, gNB-2 cannot continue to use the compression context compressed by the packet header of gNB-1 for decompression. .
此处需要说明的是,本申请实施例中的包头压缩具体可包括但不限于以太网头压缩(Ethernet Header Compression,简称EHC)等。It should be noted here that the packet header compression in this embodiment of the present application may specifically include, but is not limited to, Ethernet Header Compression (Ethernet Header Compression, EHC for short) and the like.
可选的,第一指示信息具体可包括但不限于以下至少一种:用于指示网络侧为压缩端配置了包头压缩功能的信息;用于指示终端设备重新建立压缩端的信息;以及,用于指示网络侧未指示包头压缩功能连续使用的信息。Optionally, the first indication information may specifically include, but is not limited to, at least one of the following: information used to instruct the network side to configure the header compression function for the compression end; information used to instruct the terminal device to re-establish the compression end; Information indicating that the network side does not instruct the continuous use of the packet header compression function.
例如,可通过ehc-Uplink指示网络侧为压缩端配置了对上行数据的以太网包头进行压缩。可通过reestablish PDCP指示终端设备重新建立PDCP压缩端。For example, the network side can be instructed through ehc-Uplink that the compression end is configured to compress the Ethernet packet header of the uplink data. The terminal device can be instructed to re-establish the PDCP compressor through reestablish PDCP.
其中,未进行包头压缩的数据包的包头中具体可包括但不限于用于标识该数据包包括完整包头的包头完整性标识等。图2为EHC未进行包头压缩的数据包的结构示意图,如图2所示,EHC未进行包头压缩的数据包(EHC Compressed Header,简称EHC CH)中包头完整性标识“F/C”域值设置为“0”,用于标识该数据包包括完整包头,即未经过压缩。CID为用于标记压缩上下文的标识,即压缩上下文标识。Ethernet header为以太网包头,PAYLOAD(+PAD)为有效载荷。Wherein, the packet header of the data packet without packet header compression may specifically include, but is not limited to, a packet header integrity identifier used to identify that the data packet includes a complete packet header, and the like. Figure 2 is a schematic structural diagram of a data packet without header compression by EHC. As shown in Figure 2, the header integrity identifier "F/C" field value in the data packet without header compression by EHC (EHC Compressed Header, referred to as EHC CH) Set to "0" to indicate that the packet includes a complete header, that is, it is not compressed. The CID is an identifier for marking a compression context, that is, a compression context identifier. The Ethernet header is the Ethernet header, and PAYLOAD(+PAD) is the payload.
可选的,第一指示信息中还可包括本次压缩对应的压缩上下文标识或数据流标识的第一长度、和上一次压缩对应的压缩上下文标识或数据流标识的第二长度。例如,可通过ehc-CID-Length指示本次压缩和上一次压缩对应的压缩上下文标识的长度,例如采用7比特(bit)或15bit。Optionally, the first indication information may further include the first length of the compression context identifier or data stream identifier corresponding to the current compression, and the second length of the compression context identifier or data stream identifier corresponding to the previous compression. For example, the length of the compression context identifier corresponding to the current compression and the previous compression may be indicated by ehc-CID-Length, for example, 7 bits (bit) or 15 bits are used.
如图4所示,上述步骤S302发送未进行包头压缩的数据包,具体可包括以下步骤S401或者S402或者S403。As shown in FIG. 4 , the above-mentioned step S302 sends a data packet without packet header compression, which may specifically include the following steps S401 or S402 or S403.
S401,响应于第一长度与第二长度不相同,采用第一长度的压缩上下文标识或数据流标识发送未进行包头压缩的数据包。S401, in response to the difference between the first length and the second length, use a compression context identifier or a data stream identifier of the first length to send a data packet without header compression.
具体的,如果第一指示信息中本次压缩对应的压缩上下文标识或数据流标识的第一长度与上一次压缩对应的压缩上下文标识或数据流标识的第二长度不相同,即压缩上下文标识或数据流标识的长度发生了变更,则采用第一长度的压缩上下文标识或数据流标识发送未进行包头压缩的数据包,即发送的未进行包头压缩的数据包的包头中用于标识压缩上下文的标识的长度采用第一长度,且包头中包括用于标识该数据包包括完整包头的包头完整性标识。例如,本次压缩对应的压缩上下文标识的第一长度为15bit,上一次压缩对应的压缩上下文标识的第二长度为7bit,则发送的图2所示的未进行包头压缩的数据包中压缩上下文标识CID的长度为15bit,且“F/C”域值设置为“0”。Specifically, if the first length of the compression context identifier or data stream identifier corresponding to the current compression in the first indication information is different from the second length of the compression context identifier or data stream identifier corresponding to the previous compression, that is, the compression context identifier or If the length of the data stream identifier is changed, the compression context identifier or data stream identifier of the first length is used to send the data packet without header compression, that is, the header of the sent data packet without header compression is used to identify the compression context. The length of the identifier adopts the first length, and the packet header includes a packet header integrity identifier for identifying that the data packet includes a complete packet header. For example, if the first length of the compression context identifier corresponding to this compression is 15 bits, and the second length of the compression context identifier corresponding to the previous compression is 7 bits, then the compression context in the data packet without header compression shown in FIG. 2 is sent. The length of the identification CID is 15 bits, and the "F/C" field value is set to "0".
S402,响应于第一长度与第二长度相同,采用第一长度且与上一次压缩对应的压缩上下文标识或数据流标识相同的压缩上下文标识或数据流标识发送未进行包头压缩的数据包。S402, in response to the first length being the same as the second length, use the first length and the same compression context identifier or data stream identifier as the compression context identifier or data stream identifier corresponding to the previous compression to send the data packet without header compression.
具体的,如果第一指示信息中本次压缩对应的压缩上下文标识或数据流标识的第一长度与上一次压缩对应的压缩上下文标识或数据流标识的第二长度相同,即压缩上下文标识或数据流标识的长度未发生变更,则仍采用第一长度且与上一次压缩对应的压缩上下文标识或数据流标识相同的压缩上下文标识或 数据流标识发送未进行包头压缩的数据包,即发送的未进行包头压缩的数据包的包头中用于标识压缩上下文或数据流的标识的长度采用第二长度,且用于标识压缩上下文或数据流的标识为上一次压缩对应的压缩上下文或数据流标识,且包头中包括用于标识该数据包包括完整包头的包头完整性标识。例如,本次压缩对应的压缩上下文标识CID-2的第一长度为7bit,上一次压缩对应的压缩上下文标识CID-1的第二长度为7bit,则发送的图2所示的未进行包头压缩的数据包中压缩上下文标识CID-1的长度为7bit,且“F/C”域值设置为“0”。Specifically, if the first length of the compression context identifier or data stream identifier corresponding to the current compression in the first indication information is the same as the second length of the compression context identifier or data stream identifier corresponding to the previous compression, that is, the compression context identifier or data stream identifier If the length of the stream identifier has not changed, the first length and the same compression context identifier or data stream identifier as the compression context identifier or data stream identifier corresponding to the previous compression are still used to send the data packets without header compression, that is, the data packets without header compression are sent. In the packet header of the packet header compressed, the length of the identifier used to identify the compression context or the data stream adopts the second length, and the identifier used to identify the compression context or the data stream is the compression context or data stream identifier corresponding to the previous compression, And the packet header includes a packet header integrity identifier for identifying that the data packet includes a complete packet header. For example, if the first length of the compression context identifier CID-2 corresponding to this compression is 7 bits, and the second length of the compression context identifier CID-1 corresponding to the previous compression is 7 bits, then the packet header shown in Figure 2 is sent without header compression. The length of the compression context identifier CID-1 in the data packet is 7 bits, and the value of the "F/C" field is set to "0".
对于解压缩端未丢弃压缩上下文的情况,压缩端通过采用上一次压缩对应的压缩上下文标识或数据流标识发送未进行包头压缩的数据包,可以使得解压缩端重新建立压缩上下文。In the case where the decompression end does not discard the compression context, the decompression end can re-establish the compression context by using the compression context identifier or data stream identifier corresponding to the previous compression to send the data packet without header compression.
S403,响应于第一长度与第二长度相同,采用第一长度且与上一次压缩对应的压缩上下文标识或数据流标识不同的压缩上下文标识或数据流标识发送未进行包头压缩的数据包。S403, in response to the first length being the same as the second length, use a compression context identifier or data stream identifier of the first length that is different from the compression context identifier or data stream identifier corresponding to the previous compression to send the data packet without header compression.
具体的,如果第一指示信息中本次压缩对应的压缩上下文标识或数据流标识的第一长度与上一次压缩对应的压缩上下文标识或数据流标识的第二长度相同,即压缩上下文标识或数据流标识的长度未发生变更,则采用第一长度且与上一次压缩对应的压缩上下文标识或数据流标识不同的压缩上下文或数据流标识发送未进行包头压缩的数据包,即发送的未进行包头压缩的数据包的包头中用于标识压缩上下文或数据流的标识的长度采用第一长度,且用于标识压缩上下文或数据流的标识与上一次压缩对应的压缩上下文标识不同,且包头中包括用于标识该数据包包括完整包头的包头完整性标识。例如,本次压缩对应的压缩上下文标识CID-2的第一长度为7bit,上一次压缩对应的压缩上下文标识CID-1的第二长度为7bit,则发送的图2所示的未进行包头压缩的数据包中压缩上下文标识CID-2的长度为7bit,且压缩上下文标识为CID-2而不再是CID-1,且“F/C”域值设置为“0”。Specifically, if the first length of the compression context identifier or data stream identifier corresponding to the current compression in the first indication information is the same as the second length of the compression context identifier or data stream identifier corresponding to the previous compression, that is, the compression context identifier or data stream identifier If the length of the stream identifier has not changed, the first length and the compression context or data stream identifier corresponding to the previous compression are used to send the data packet without header compression, that is, the packet is sent without header compression. The length of the identifier used to identify the compression context or the data stream in the header of the compressed data packet adopts the first length, and the identifier used to identify the compression context or the data stream is different from the compression context identifier corresponding to the previous compression, and the header includes: A header integrity flag used to identify that the data packet includes a complete header. For example, if the first length of the compression context identifier CID-2 corresponding to this compression is 7 bits, and the second length of the compression context identifier CID-1 corresponding to the previous compression is 7 bits, then the packet header shown in Figure 2 is sent without header compression. The length of the compression context identifier CID-2 in the data packet is 7 bits, and the compression context identifier is CID-2 instead of CID-1, and the "F/C" field value is set to "0".
可选的,步骤S302发送未进行包头压缩的数据包之前,本申请实施例的压缩处理方法还可以包括以下步骤:接收解压缩失败信息,其中,解压缩失败信息包括失败类型指示例如解压缩失败和解压缩失败的进行了包头压缩的压缩数据包的压缩上下文标识例如CID-1。解压缩失败信息用于指示压缩端不发送解压缩失败的压缩上下文标识对应的压缩数据包。Optionally, before sending the data packet without header compression in step S302, the compression processing method in this embodiment of the present application may further include the following steps: receiving decompression failure information, where the decompression failure information includes a failure type indication, such as a decompression failure. and the compression context identifier such as CID-1 of the compressed data packet that has undergone header compression that fails to be decompressed. The decompression failure information is used to indicate that the compression end does not send the compressed data packet corresponding to the compression context identifier of the decompression failure.
其中,图5为EHC压缩数据包的结构示意图,如图5所示,EHC压缩数据包(EHC Full Header,简称EHC FH)中包头完整性标识“F/C”域值设置为“1”,用于标识该数据包包括非完整包头,即经过压缩。CID为用于标记压缩上下文的标识,即压缩上下文标识。PAYLOAD(+PAD)为有效载荷。Among them, Figure 5 is a schematic structural diagram of an EHC compressed data packet. As shown in Figure 5, the packet header integrity identifier "F/C" field value in the EHC compressed data packet (EHC Full Header, referred to as EHC FH) is set to "1", Used to identify that the data packet includes an incomplete header, that is, it is compressed. The CID is an identifier for marking a compression context, that is, a compression context identifier. PAYLOAD(+PAD) is the payload.
本领域技术人员可以理解,EHC压缩上下文的建立过程如下:压缩端给解压缩端发送未进行以太网包头压缩的非压缩以太网数据包(即EHC FH包)。解压缩端接收到该“EHC FH包”后,反馈接收确认消息(如图6所示为EHC反馈数据包的结构示意图,其中R为反馈标识)给压缩端。压缩端给解压缩端发送进行了以太网包头压缩的压缩以太网数据包(即EHC CH包)。进而在压缩端和解压缩端之间建立了压缩上下文,该压缩上下文通过CID标记。其中,该压缩上下文存储的为压缩前和压缩后的以太网包头信息。则压缩端根据该压缩上下文发送压缩以太网数据包,解压缩端根据该压缩上下文将压缩以太网数据包恢复成压缩前的非压缩以太网数据包。Those skilled in the art can understand that the establishment process of the EHC compression context is as follows: the compression end sends an uncompressed Ethernet data packet (that is, an EHC FH packet) without Ethernet header compression to the decompression end. After the decompression end receives the "EHC FH packet", it feeds back a reception confirmation message (as shown in Figure 6 is a schematic diagram of the structure of the EHC feedback data packet, where R is the feedback identifier) to the compression end. The compression end sends the compressed Ethernet data packet (that is, the EHC CH packet) with the Ethernet packet header compressed to the decompression end. Further, a compression context is established between the compression end and the decompression end, and the compression context is marked by a CID. Wherein, the compression context stores the Ethernet packet header information before and after compression. Then, the compression end sends the compressed Ethernet data packet according to the compression context, and the decompression end restores the compressed Ethernet data packet to the uncompressed Ethernet data packet before compression according to the compression context.
本申请实施例中,压缩端根据第一指示信息,在建立新的压缩上下文之前,丢弃已建立的压缩上下文,并发送未进行包头压缩的数据包,而不是发送进行包头压缩的压缩数据包,可避免解压缩端在压缩功能无法继续的情况下,由于无法获取当前数据包的压缩状态,从而导致和压缩端对数据包的包头压缩状态理解不一致,进而导致数据包包头解压缩失败。In this embodiment of the present application, before establishing a new compression context, the compression end discards the established compression context and sends a data packet without header compression instead of sending a compressed data packet with header compression according to the first indication information. It can avoid that when the compression function cannot continue, the decompression end cannot obtain the compression state of the current data packet, resulting in inconsistent understanding of the compression state of the data packet header with the compression end, resulting in the failure of the decompression of the data packet header.
图7为本申请实施例提供的另一压缩处理方法的流程示意图,由解压缩端执行。如图7所示,该压缩处理方法包括以下步骤:FIG. 7 is a schematic flowchart of another compression processing method provided by an embodiment of the present application, which is executed by a decompression end. As shown in Figure 7, the compression processing method includes the following steps:
S701,根据第二指示信息,丢弃已建立的压缩上下文。S701, according to the second indication information, discard the established compression context.
具体的,压缩端和解压缩端可以为网络实体例如包数据汇聚协议(Packet Data Convergence Protocol,简称PDCP)实体中的功能模块,或独立的网络实体。且压缩端和解压缩端除存在于基站和终端设备中外,还可存在于网络设备,比如:路由器之间;网关和基站之间;网关和网关之间。Specifically, the compression end and the decompression end may be functional modules in a network entity such as a Packet Data Convergence Protocol (PDCP for short) entity, or an independent network entity. In addition to the base station and the terminal device, the compression end and the decompression end can also exist in network devices, such as between routers; between gateways and base stations; between gateways and gateways.
作为一种可行的实施方式,解压缩端可以根据通信协议的约定,在建立新的压缩上下文之前,丢弃之前已建立的压缩上下文,以成功接收压缩端在压缩功能无法继续的情况下发送的未进行包头压缩的数据包,避免由于无法获取当前数据包的压缩状态,从而导致和压缩端对数据包的包头压缩状态理解不一致,进而导致数据包包头解压缩失败。As a feasible implementation manner, the decompressor can discard the previously established compression context before establishing a new compression context according to the agreement of the communication protocol, so as to successfully receive the uncompressed data sent by the compressor when the compression function cannot continue. The data packet that is compressed by the packet header avoids that the compression state of the current data packet cannot be obtained, which leads to inconsistent understanding of the packet header compression state of the data packet with the compression end, and thus causes the packet header to fail to be decompressed.
作为另一种可行的实施方式,解压缩端可以根据网络侧例如基站配置的第二指示信息,在建立新的压缩上下文之前,丢弃之前已建立的压缩上下文,以成功接收压缩端在压缩功能无法继续的情况下发送的未进行包头压缩的数据包,避免由于无法获取当前数据包的压缩状态,从而导致和压缩端对数据包的包头压缩状态理解不一致,进而导致数据包包头解压缩失败。As another feasible implementation manner, the decompression end may discard the previously established compression context before establishing a new compression context according to the second indication information configured by the network side such as the base station, so as to successfully receive the compression end when the compression function fails. In the case of continuing, the data packets without header compression are sent to avoid the inability to obtain the compression state of the current data packet, which will lead to inconsistent understanding of the data packet header compression state with the compression end, which will lead to the failure of packet header decompression.
其中,压缩功能无法继续的情况,例如用户终端从基站gNB-1切换至基站gNB-2,该用户终端对应的网络侧实体从gNB-1变更到gNB-2,则gNB-1和gNB-2都配置压缩功能,但是由于gNB-2无法获取到gNB-1的实体的包头压缩的压缩状态(包括压缩上下文信息),则gNB-2无法继续使用gNB-1的包头压缩的压缩上下文进行解压缩。Among them, when the compression function cannot continue, for example, the user terminal switches from the base station gNB-1 to the base station gNB-2, and the network side entity corresponding to the user terminal changes from gNB-1 to gNB-2, then gNB-1 and gNB-2 Both are configured with the compression function, but since gNB-2 cannot obtain the compression status (including compression context information) of the packet header compression of the gNB-1 entity, gNB-2 cannot continue to use the compression context compressed by the packet header of gNB-1 for decompression. .
此处需要说明的是,本申请实施例中的包头压缩具体可包括但不限于以太网头压缩(Ethernet Header Compression,简称EHC)等。It should be noted here that the packet header compression in the embodiments of the present application may specifically include, but is not limited to, Ethernet Header Compression (Ethernet Header Compression, EHC for short), and the like.
可选的,第二指示信息具体可包括但不限于以下至少一种:用于指示网络侧为解压缩端配置了包头压缩功能的信息;用于指示终端设备重新建立解压缩端的信息;以及,用于指示网络侧未指示包头压缩功能连续使用的信息。Optionally, the second indication information may specifically include but is not limited to at least one of the following: information used to instruct the network side to configure the packet header compression function for the decompression end; information used to instruct the terminal device to re-establish the decompression end; and, Information used to indicate that the network side does not instruct the continuous use of the packet header compression function.
例如,可通过ehc-Downlink指示网络侧为解压缩端配置了对下行数据的以太网包头进行压缩。可通过reestablish PDCP指示终端设备重新建立PDCP解压缩端。For example, ehc-Downlink can be used to instruct the network side to configure the decompression end to compress the Ethernet packet header of the downlink data. The terminal device can be instructed to re-establish the PDCP decompression end through reestablish PDCP.
本申请实施例的压缩处理方法,解压缩端根据第二指示信息,丢弃已建立的压缩上下文,以成功接收压缩端在压缩功能无法继续的情况下发送的未进行包头压缩的数据包,避免由于无法获取当前数据包的压缩状态,从而导致和压缩端对数据包的包头压缩状态理解不一致,进而导致数据包包头解压缩失败。In the compression processing method of this embodiment of the present application, the decompression end discards the established compression context according to the second indication information, so as to successfully receive the data packets without header compression sent by the compression end when the compression function cannot continue, avoiding the The compression state of the current data packet cannot be obtained, resulting in inconsistent understanding of the compression state of the data packet header with the compression end, resulting in failure to decompress the data packet header.
图8为本申请实施例提供的另一压缩处理方法的流程示意图,由解压缩端执行。如图8所示,该压缩处理方法包括以下步骤:FIG. 8 is a schematic flowchart of another compression processing method provided by an embodiment of the present application, which is executed by a decompression end. As shown in Figure 8, the compression processing method includes the following steps:
S801,根据第二指示信息,丢弃已建立的压缩上下文。S801, according to the second indication information, discard the established compression context.
具体的,压缩端和解压缩端可以为网络实体例如包数据汇聚协议(Packet Data Convergence Protocol,简称PDCP)实体中的功能模块,或独立的网络实体。且压缩端和解压缩端除存在于基站和终端设备中外,还可存在于网络设备,比如:路由器之间;网关和基站之间;网关和网关之间。Specifically, the compression end and the decompression end may be functional modules in a network entity such as a Packet Data Convergence Protocol (PDCP for short) entity, or an independent network entity. In addition to the base station and the terminal device, the compression end and the decompression end can also exist in network devices, such as between routers; between gateways and base stations; between gateways and gateways.
作为一种可行的实施方式,解压缩端可以根据通信协议的约定,在建立新的压缩上下文之前,丢弃之前已建立的压缩上下文,以成功接收压缩端在压缩功能无法继续的情况下发送的未进行包头压缩的数据包,避免由于无法获取当前数据包的压缩状态,从而导致和压缩端对数据包的包头压缩状态理解不一致,进而导致数据包包头解压缩失败。As a feasible implementation manner, the decompressor can discard the previously established compression context before establishing a new compression context according to the agreement of the communication protocol, so as to successfully receive the uncompressed data sent by the compressor when the compression function cannot continue. The data packet that is compressed by the packet header avoids that the compression state of the current data packet cannot be obtained, which leads to inconsistent understanding of the packet header compression state of the data packet with the compression end, and thus causes the packet header to fail to be decompressed.
作为另一种可行的实施方式,解压缩端可以根据网络侧例如基站配置的第二指示信息,在建立新的压缩上下文之前,丢弃之前已建立的压缩上下文,以成功接收压缩端在压缩功能无法继续的情况下发送的未进行包头压缩的数据包,避免由于无法获取当前数据包的压缩状态,从而导致和压缩端对数据包的包头压缩状态理解不一致,进而导致数据包包头解压缩失败。As another feasible implementation manner, the decompression end may discard the previously established compression context before establishing a new compression context according to the second indication information configured by the network side such as the base station, so as to successfully receive the compression end when the compression function fails. In the case of continuing, the data packets without header compression are sent to avoid the inability to obtain the compression state of the current data packet, which will lead to inconsistent understanding of the data packet header compression state with the compression end, which will lead to the failure of packet header decompression.
其中,压缩功能无法继续的情况,例如用户终端从基站gNB-1切换至基站gNB-2,该用户终端对应的网络侧实体从gNB-1变更到gNB-2,则gNB-1和gNB-2都配置压缩功能,但是由于gNB-2无法获取到gNB-1的实体的包头压缩的压缩状态(包括压缩上下文信息),则gNB-2无法继续使用gNB-1的包头压缩的压缩上下文进行解压缩。Among them, when the compression function cannot continue, for example, the user terminal switches from the base station gNB-1 to the base station gNB-2, and the network side entity corresponding to the user terminal changes from gNB-1 to gNB-2, then gNB-1 and gNB-2 Both are configured with the compression function, but since gNB-2 cannot obtain the compression status (including compression context information) of the packet header compression of the gNB-1 entity, gNB-2 cannot continue to use the compression context compressed by the packet header of gNB-1 for decompression. .
此处需要说明的是,本申请实施例中的包头压缩具体可包括但不限于以太网头压缩(Ethernet Header Compression,简称EHC)等。It should be noted here that the packet header compression in this embodiment of the present application may specifically include, but is not limited to, Ethernet Header Compression (Ethernet Header Compression, EHC for short) and the like.
可选的,第二指示信息具体可包括但不限于以下至少一种:用于指示网络侧为解压缩端配置了包头压缩功能的信息;用于指示终端设备重新建立解压缩端的信息;以及,用于指示网络侧未指示包头压缩功能连续使用的信息。Optionally, the second indication information may specifically include but is not limited to at least one of the following: information used to instruct the network side to configure the packet header compression function for the decompression end; information used to instruct the terminal device to re-establish the decompression end; and, Information used to indicate that the network side does not instruct the continuous use of the packet header compression function.
例如,可通过ehc-Downlink指示网络侧为解压缩端配置了对下行数据的以太网包头进行压缩。可通过reestablish PDCP指示终端设备重新建立PDCP解压缩端。For example, ehc-Downlink can be used to instruct the network side to configure the decompression end to compress the Ethernet packet header of the downlink data. The terminal device can be instructed to re-establish the PDCP decompression end through reestablish PDCP.
S802,接收进行了包头压缩的压缩数据包,其中,接收进行了包头压缩的压缩数据包之前,未接收到与压缩数据包的压缩上下文标识相同的未进行包头压缩的数据包。S802: Receive the compressed data packet that has undergone header compression, wherein, before receiving the compressed data packet that has undergone header compression, a data packet that is identical to the compression context identifier of the compressed data packet and has not been subjected to header compression has not been received.
S803,执行解压缩失败处理操作。S803: Execute a decompression failure processing operation.
具体的,如果解压缩端接收到了压缩端发送的进行了包头压缩的压缩数据包,且在接收该进行了包头压缩的压缩数据包之前,未接收到与该压缩数据包的压缩上下文标识相同的未进行包头压缩的数据包,则执行解压缩失败处理操作。Specifically, if the decompression end receives the compressed data packet sent by the compression end with header compression, and before receiving the compressed data packet with header compression, it does not receive the same compression context identifier as the compressed data packet. For data packets without header compression, the decompression failure processing operation is performed.
例如,解压缩端接收到了实体发送的压缩上下文标识为CID-1的压缩数据包,且在接收到该压缩上下文标识为CID-1的压缩数据包之前,未接收到压缩上下文标识为CID-1的未进行包头压缩的数据包,则执行解压缩失败处理操作。For example, the decompressor receives the compressed data packet with the compression context identifier CID-1 sent by the entity, and does not receive the compression context identifier CID-1 before receiving the compressed data packet with the compression context identifier CID-1 If there is no packet header compression, the decompression failure processing operation will be performed.
其中,未进行包头压缩的数据包的包头中具体可包括但不限于用于标识该数据包包括完整包头的包头完整性标识等。图2为EHC未进行包头压缩的数据包的结构示意图,如图2所示,EHC未进行包头压缩的数据包(EHC Compressed Header,简称EHC CH)中包头完整性标识“F/C”域值设置为“0”,用于标 识该数据包包括完整包头,即未经过压缩。CID为用于标记压缩上下文的标识,即压缩上下文标识。Ethernet header为以太网包头,PAYLOAD(+PAD)为有效载荷。Wherein, the packet header of the data packet without packet header compression may specifically include, but is not limited to, a packet header integrity identifier used to identify that the data packet includes a complete packet header, and the like. Figure 2 is a schematic structural diagram of a data packet without header compression by EHC. As shown in Figure 2, the header integrity identifier "F/C" field value in the data packet without header compression by EHC (EHC Compressed Header, referred to as EHC CH) Set to "0" to indicate that the packet includes a complete header, that is, it is not compressed. The CID is an identifier for marking a compression context, that is, a compression context identifier. The Ethernet header is the Ethernet header, and PAYLOAD(+PAD) is the payload.
其中,图5为EHC压缩数据包的结构示意图,如图5所示,EHC压缩数据包(EHC Full Header,简称EHC FH)中包头完整性标识“F/C”域值设置为“1”,用于标识该数据包包括非完整包头,即经过压缩。CID为用于标记压缩上下文的标识,即压缩上下文标识。PAYLOAD(+PAD)为有效载荷。Among them, Figure 5 is a schematic structural diagram of an EHC compressed data packet. As shown in Figure 5, the packet header integrity identifier "F/C" field value in the EHC compressed data packet (EHC Full Header, referred to as EHC FH) is set to "1", Used to identify that the data packet includes an incomplete header, that is, it is compressed. The CID is an identifier for marking a compression context, that is, a compression context identifier. PAYLOAD(+PAD) is the payload.
本领域技术人员可以理解,EHC压缩上下文的建立过程如下:压缩端给解压缩端发送未进行以太网包头压缩的非压缩以太网数据包(即EHC FH包)。解压缩端接收到该“EHC FH包”后,反馈接收确认消息(如图6所示,其中R为反馈标识)给压缩端。压缩端给解压缩端发送进行了以太网包头压缩的压缩以太网数据包(即EHC CH包)。进而在压缩端和解压缩端之间建立了压缩上下文,该压缩上下文通过CID标记。其中,该压缩上下文存储的为压缩前和压缩后的以太网包头信息。则压缩端根据该压缩上下文发送压缩以太网数据包,解压缩端根据该压缩上下文将压缩以太网数据包恢复成压缩前的非压缩以太网数据包。Those skilled in the art can understand that the establishment process of the EHC compression context is as follows: the compression end sends an uncompressed Ethernet data packet (that is, an EHC FH packet) without Ethernet header compression to the decompression end. After the decompression end receives the "EHC FH packet", it feeds back a reception confirmation message (as shown in Figure 6, where R is the feedback identifier) to the compression end. The compression end sends the compressed Ethernet data packet (that is, the EHC CH packet) with the Ethernet packet header compressed to the decompression end. Further, a compression context is established between the compression end and the decompression end, and the compression context is marked by a CID. Wherein, the compression context stores the Ethernet packet header information before and after compression. Then, the compression end sends the compressed Ethernet data packet according to the compression context, and the decompression end restores the compressed Ethernet data packet to the uncompressed Ethernet data packet before compression according to the compression context.
其中,步骤S803执行解压缩失败处理操作具体可包括但不限于以下至少一种:丢弃压缩数据包;以及发送解压缩失败信息,其中,解压缩失败信息包括失败类型指示例如解压缩失败。Wherein, performing the decompression failure processing operation in step S803 may specifically include, but is not limited to, at least one of the following: discarding the compressed data packet; and sending decompression failure information, wherein the decompression failure information includes a failure type indication such as decompression failure.
可选的,解压缩失败信息还可包括以下至少一种:压缩数据包的压缩上下文标识例如CID-1;压缩数据包的数据流标识例如QoS flow-1;以及压缩数据包的承载标识例如DRB-1。Optionally, the decompression failure information may also include at least one of the following: a compression context identifier of the compressed data packet, such as CID-1; a data flow identifier of the compressed data packet, such as QoS flow-1; and a bearer identifier of the compressed data packet, such as DRB -1.
可选的,步骤S801中的丢弃已建立的压缩上下文之前,本申请实施例的压缩处理方法还可以包括以下步骤:接收网络侧配置的第三指示信息,第三指示信息包括预设的压缩上下文标识对应的未进行包头压缩的数据包的包头中包括用于标识该数据包包括完整包头的包头完整性标识;响应于接收到的数据包的压缩上下文标识和预设的压缩上下文标识相同,确定接收到的数据包为未进行包头压缩的数据包。Optionally, before discarding the established compression context in step S801, the compression processing method in this embodiment of the present application may further include the following steps: receiving third indication information configured by the network side, where the third indication information includes a preset compression context. The packet header of the corresponding packet without packet header compression includes a packet header integrity identifier for identifying that the packet includes a complete packet header; in response to the received packet's compression context identifier being the same as the preset compression context identifier, determine The received packet is a packet without header compression.
具体的,解压缩端接收网络侧配置的第三指示信息,第三指示信息包括预设的压缩上下文标识对应的未进行包头压缩的数据包的包头中包括用于标识该数据包包括完整包头的包头完整性标识,即第三指示信息用于指示,对于预设的压缩上下文标识的未进行包头压缩的数据包,在其包头中通过包头完整性标识指示该数据包包括完整包头,如果接收到的数据包的压缩上下文标识和预设的压缩上下文标识相同,则确定接收到的数据包为未进行包头压缩的数据包。Specifically, the decompression end receives third indication information configured by the network side, where the third indication information includes a preset compression context identifier corresponding to the data packet without header compression. The packet header integrity identifier, that is, the third indication information is used to indicate that, for the data packet that has not undergone packet header compression with the preset compression context identifier, the packet header is used to indicate that the packet includes the complete packet header through the packet header integrity identifier. If the compression context identifier of the received data packet is the same as the preset compression context identifier, it is determined that the received data packet is a data packet without header compression.
本申请实施例的压缩处理方法,解压缩端根据第二指示信息,丢弃已建立的压缩上下文,以成功接收压缩端在压缩功能无法继续的情况下发送的未进行包头压缩的数据包,避免由于无法获取当前数据包的压缩状态,从而导致和压缩端对数据包的包头压缩状态理解不一致,进而导致数据包包头解压缩失败。In the compression processing method of this embodiment of the present application, the decompression end discards the established compression context according to the second indication information, so as to successfully receive the data packets without header compression sent by the compression end when the compression function cannot continue, avoiding the The compression state of the current data packet cannot be obtained, resulting in inconsistent understanding of the compression state of the data packet header with the compression end, resulting in failure to decompress the data packet header.
与上述几种实施例提供的压缩处理方法相对应,本申请还提供一种压缩处理装置,压缩处理装置应用于压缩端,由于本申请实施例提供的压缩处理装置与上述图1-图4实施例提供的压缩处理方法相对应,因此压缩处理方法的实施方式也适用于本实施例提供的压缩处理装置,在本实施例中不再详细描述。Corresponding to the compression processing methods provided by the above-mentioned embodiments, the present application further provides a compression processing device, which is applied to the compression end. The compression processing method provided in the example corresponds to the compression processing method, so the implementation of the compression processing method is also applicable to the compression processing apparatus provided in this embodiment, and will not be described in detail in this embodiment.
图9为本申请实施例提供的压缩处理装置的结构示意图。FIG. 9 is a schematic structural diagram of a compression processing apparatus provided by an embodiment of the present application.
如图9所示,该压缩处理装置900,包括:发送模块910。其中:As shown in FIG. 9 , the compression processing apparatus 900 includes: a sending module 910 . in:
发送模块910,被配置为根据第一指示信息,发送未进行包头压缩的数据包。The sending module 910 is configured to send the data packet without packet header compression according to the first indication information.
可选的,包头压缩为以太网头压缩。Optionally, the packet header is compressed as an Ethernet header.
可选的,第一指示信息包括以下至少一种:用于指示网络侧为压缩端配置了包头压缩功能的信息;用于指示终端设备重新建立压缩端的信息;以及用于指示网络侧未指示包头压缩功能连续使用的信息。Optionally, the first indication information includes at least one of the following: information used to instruct the network side to configure the packet header compression function for the compression end; information used to instruct the terminal device to re-establish the compression end; and information used to indicate that the network side does not indicate the packet header Information that the compression function uses continuously.
可选的,发送模块910还被配置为:在发送未进行包头压缩的数据包之前,丢弃已建立的压缩上下文。Optionally, the sending module 910 is further configured to discard the established compression context before sending the data packet without header compression.
可选的,未进行包头压缩的数据包的包头中包括用于标识该数据包包括完整包头的包头完整性标识。Optionally, the packet header of the data packet without packet header compression includes a packet header integrity identifier for identifying that the data packet includes a complete packet header.
可选的,第一指示信息包括本次压缩对应的压缩上下文标识或数据流标识的第一长度和上一次压缩对应的压缩上下文标识或数据流标识的第二长度;发送模块具体被配置为:响应于第一长度与第二长度不相同,采用第一长度的压缩上下文标识或数据流标识发送未进行包头压缩的数据包;或者,响应于第一长度与第二长度相同,采用第一长度且与上一次压缩对应的压缩上下文标识或数据流标识相同的压缩上下文标识或数据流标识发送未进行包头压缩的数据包;或者,响应于第一长度与第二长度相同,采用第一长度且与上一次压缩对应的压缩上下文标识或数据流标识不同的压缩上下文标识或数据流标识发送未进行包头压缩的数据包。Optionally, the first indication information includes the first length of the compression context identifier or data stream identifier corresponding to the current compression and the second length of the compression context identifier or data stream identifier corresponding to the previous compression; the sending module is specifically configured as: In response to the first length being different from the second length, use the compression context identifier or data stream identifier of the first length to send the data packet without header compression; or, in response to the first length being the same as the second length, using the first length And the same compression context identifier or data stream identifier as the compression context identifier or data stream identifier corresponding to the last compression sends the data packet without header compression; or, in response to the first length being the same as the second length, the first length and A compression context identifier or data stream identifier different from the compression context identifier or data stream identifier corresponding to the previous compression sends a data packet without header compression.
可选的,发送模块910还被配置为:在发送未进行包头压缩的数据包之前,接收解压缩失败信息,其中,解压缩失败信息包括失败类型指示和解压缩失败的进行了包头压缩的压缩数据包的压缩上下文标识。Optionally, the sending module 910 is further configured to: before sending the data packet without header compression, receive decompression failure information, wherein the decompression failure information includes a failure type indication and the decompression failed compressed data with header compression. Compression context identifier for the package.
本申请实施例的压缩处理装置,压缩端根据第一指示信息,在建立新的压缩上下文之前,丢弃已建 立的压缩上下文,并发送未进行包头压缩的数据包,而不是发送进行包头压缩的压缩数据包,可避免解压缩端在压缩功能无法继续的情况下,由于无法获取当前数据包的压缩状态,从而导致和压缩端对数据包的包头压缩状态理解不一致,进而导致数据包包头解压缩失败。In the compression processing apparatus of this embodiment of the present application, the compression end discards the established compression context before establishing a new compression context according to the first indication information, and sends a data packet without header compression instead of sending the compression with header compression. Data packets, which can prevent the decompression end from being able to obtain the compression state of the current data packet when the compression function cannot continue, resulting in inconsistent understanding of the compression state of the data packet header with the compression end, resulting in packet header decompression failure. .
与上述几种实施例提供的压缩处理方法相对应,本申请还提供一种压缩处理装置,压缩处理装置应用于用户终端,由于本申请实施例提供的压缩处理装置与上述图7-图8实施例提供的压缩处理方法相对应,因此压缩处理方法的实施方式也适用于本实施例提供的压缩处理装置,在本实施例中不再详细描述。Corresponding to the compression processing methods provided by the above-mentioned embodiments, the present application further provides a compression processing apparatus, which is applied to a user terminal. The compression processing method provided in the example corresponds to the compression processing method, so the implementation of the compression processing method is also applicable to the compression processing apparatus provided in this embodiment, and will not be described in detail in this embodiment.
图10为本申请实施例提供的压缩处理装置的结构示意图。FIG. 10 is a schematic structural diagram of a compression processing apparatus provided by an embodiment of the present application.
如图10所示,该压缩处理装置1000,包括:丢弃模块1010,其中:As shown in FIG. 10, the compression processing apparatus 1000 includes: a discarding module 1010, wherein:
丢弃模块1010,被配置为根据第二指示信息,丢弃已建立的压缩上下文。The discarding module 1010 is configured to discard the established compression context according to the second indication information.
可选的,第二指示信息包括以下至少一种:用于指示网络侧为解压缩端配置了包头压缩功能的信息;用于指示终端设备重新建立解压缩端的信息;以及用于指示网络侧未指示包头压缩功能连续使用的信息。Optionally, the second indication information includes at least one of the following: information used to instruct the network side to configure the packet header compression function for the decompression end; information used to instruct the terminal device to re-establish the decompression end; and information used to indicate that the network side has not Information indicating the continuous use of the header compression function.
可选的,包头压缩为以太网头压缩。Optionally, the packet header is compressed as an Ethernet header.
可选的,本申请实施例的压缩处理装置还可包括:接收模块,被配置为在丢弃模块1010丢弃已建立的压缩上下文之后,接收进行了包头压缩的压缩数据包,其中,接收进行了包头压缩的压缩数据包之前,未接收到与压缩数据包的压缩上下文标识相同的未进行包头压缩的数据包;执行解压缩失败处理操作。Optionally, the compression processing apparatus in the embodiment of the present application may further include: a receiving module configured to receive a compressed data packet with header compression after the discarding module 1010 discards the established compression context, wherein the receiving module 1010 performs header compression. Before the compressed compressed data packet, a data packet with the same compression context identifier as the compressed data packet without header compression has not been received; the decompression failure processing operation is performed.
可选的,接收模块具体被配置为执行以下至少一种:丢弃压缩数据包;以及发送解压缩失败信息,其中,解压缩失败信息包括失败类型指示。Optionally, the receiving module is specifically configured to perform at least one of the following: discarding the compressed data packet; and sending decompression failure information, where the decompression failure information includes a failure type indication.
可选的,解压缩失败信息还包括以下至少一种:压缩数据包的压缩上下文标识;压缩数据包的数据流标识;以及压缩数据包的承载标识。Optionally, the decompression failure information further includes at least one of the following: a compression context identifier of the compressed data packet; a data flow identifier of the compressed data packet; and a bearer identifier of the compressed data packet.
可选的,接收模块还被配置为:在丢弃模块1010丢弃已建立的压缩上下文之前,接收网络侧配置的第三指示信息,第三指示信息包括预设的压缩上下文标识对应的未进行包头压缩的数据包的包头中包括用于标识该数据包包括完整包头的包头完整性标识;响应于接收到的数据包的压缩上下文标识和预设的压缩上下文标识相同,确定接收到的数据包为未进行包头压缩的数据包。Optionally, the receiving module is further configured to: before the discarding module 1010 discards the established compression context, receive third indication information configured by the network side, where the third indication information includes the preset compression context identifier corresponding to the uncompressed header. The packet header of the data packet includes a packet header integrity identifier for identifying that the packet includes a complete packet header; in response to the compression context identifier of the received packet being the same as the preset compression context identifier, it is determined that the received packet is unidentified. Header-compressed packets.
本申请实施例的压缩处理装置,解压缩端根据第二指示信息,丢弃已建立的压缩上下文,以成功接收压缩端在压缩功能无法继续的情况下发送的未进行包头压缩的数据包,避免由于无法获取当前数据包的压缩状态,从而导致和压缩端对数据包的包头压缩状态理解不一致,进而导致数据包包头解压缩失败。In the compression processing apparatus of the embodiment of the present application, the decompression end discards the established compression context according to the second indication information, so as to successfully receive the data packet without header compression sent by the compression end when the compression function cannot continue, avoiding the The compression state of the current data packet cannot be obtained, resulting in inconsistent understanding of the compression state of the data packet header with the compression end, resulting in failure to decompress the data packet header.
根据本申请的实施例,本申请还提供了一压缩端,包括本申请实施例提供的压缩处理装置900。According to the embodiments of the present application, the present application further provides a compression end, including the compression processing apparatus 900 provided by the embodiments of the present application.
本申请实施例的压缩端,根据第一指示信息,在建立新的压缩上下文之前,丢弃已建立的压缩上下文,并发送未进行包头压缩的数据包,而不是发送进行包头压缩的压缩数据包,可避免解压缩端在压缩功能无法继续的情况下,由于无法获取当前数据包的压缩状态,从而导致和压缩端对数据包的包头压缩状态理解不一致,进而导致数据包包头解压缩失败。The compressor in the embodiment of the present application, according to the first indication information, before establishing a new compression context, discards the established compression context, and sends a data packet without header compression, instead of sending a compressed data packet with header compression, It can avoid that when the compression function cannot continue, the decompression end cannot obtain the compression state of the current data packet, resulting in inconsistent understanding of the compression state of the data packet header with the compression end, resulting in the failure of the decompression of the data packet header.
根据本申请的实施例,本申请还提供了一解压缩端,包括本申请实施例提供的压缩处理装置1000。According to the embodiments of the present application, the present application further provides a decompression terminal, including the compression processing apparatus 1000 provided by the embodiments of the present application.
本申请实施例的解压缩端,根据第二指示信息,丢弃已建立的压缩上下文,以成功接收压缩端在压缩功能无法继续的情况下发送的未进行包头压缩的数据包,避免由于无法获取当前数据包的压缩状态,从而导致和压缩端对数据包的包头压缩状态理解不一致,进而导致数据包包头解压缩失败。The decompression end in this embodiment of the present application discards the established compression context according to the second indication information, so as to successfully receive the data packet without header compression sent by the compression end when the compression function cannot continue, so as to avoid the failure to obtain the current The compression state of the data packet, which leads to inconsistent understanding of the compression state of the data packet header with the compression end, which in turn causes the packet header decompression failure.
根据本申请的实施例,本申请还提供了一电子设备和一可读存储介质。According to the embodiments of the present application, the present application further provides an electronic device and a readable storage medium.
如图11所示,是根据本申请实施例的电子设备的框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本申请的实现。As shown in FIG. 11 , it is a block diagram of an electronic device according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are by way of example only, and are not intended to limit implementations of the application described and/or claimed herein.
如图11所示,该电子设备包括:一个或多个处理器1100、存储器1200,以及用于连接各部件的接口,包括高速接口和低速接口。各个部件利用不同的总线互相连接,并且可以被安装在公共主板上或者根据需要以其它方式安装。处理器可以对在电子设备内执行的指令进行处理,包括存储在存储器中或者存储器上以在外部输入/输出装置(诸如,耦合至接口的显示设备)上显示GUI的图形信息的指令。在其它实施方式中,若需要,可以将多个处理器和/或多条总线与多个存储器和多个存储器一起使用。同样,可以连接多个电子设备,各个设备提供部分必要的操作(例如,作为服务器阵列、一组刀片式服务器、或者多处理器系统)。图11中以一个处理器1100为例。As shown in FIG. 11, the electronic device includes: one or more processors 1100, a memory 1200, and interfaces for connecting various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or otherwise as desired. The processor may process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used with multiple memories and multiple memories, if desired. Likewise, multiple electronic devices may be connected, each providing some of the necessary operations (eg, as a server array, a group of blade servers, or a multiprocessor system). A processor 1100 is taken as an example in FIG. 11 .
存储器1200即为本申请所提供的非瞬时计算机可读存储介质。其中,存储器存储有可由至少一个处 理器执行的指令,以使至少一个处理器执行本申请所提供的压缩处理方法。本申请的非瞬时计算机可读存储介质存储计算机指令,该计算机指令用于使计算机执行本申请所提供的压缩处理方法。The memory 1200 is the non-transitory computer-readable storage medium provided by the present application. The memory stores instructions executable by at least one processor, so that the at least one processor executes the compression processing method provided by the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, and the computer instructions are used to cause the computer to execute the compression processing method provided by the present application.
存储器1200作为一种非瞬时计算机可读存储介质,可用于存储非瞬时软件程序、非瞬时计算机可执行程序以及模块,如本申请实施例中的压缩处理方法对应的程序指令/模块(例如,附图9所示的发送模块910)。处理器1100通过运行存储在存储器1200中的非瞬时软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例中的压缩处理方法。As a non-transitory computer-readable storage medium, the memory 1200 can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the compression processing methods in the embodiments of the present application (for example, appendix The sending module 910 shown in FIG. 9 ). The processor 1100 executes various functional applications and data processing of the server by running the non-transitory software programs, instructions and modules stored in the memory 1200, ie, implements the compression processing methods in the above method embodiments.
存储器1200可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据定位电子设备的使用所创建的数据等。此外,存储器1200可以包括高速随机存取存储器,还可以包括非瞬时存储器,例如至少一个磁盘存储器件、闪存器件、或其他非瞬时固态存储器件。可选地,存储器1200可选包括相对于处理器1100远程设置的存储器,这些远程存储器可以通过网络连接至定位电子设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 1200 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the positioning electronic device, and the like. Additionally, memory 1200 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. Optionally, the memory 1200 may optionally include memory located remotely from the processor 1100, and these remote memories may be connected to the positioning electronic device through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
电子设备还可以包括:输入装置1300和输出装置1400。处理器1100、存储器1200、输入装置1300和输出装置1400可以通过总线或者其他方式连接,图11中以通过总线连接为例。The electronic device may further include: an input device 1300 and an output device 1400 . The processor 1100 , the memory 1200 , the input device 1300 and the output device 1400 may be connected by a bus or in other ways, and the connection by a bus is taken as an example in FIG. 11 .
输入装置1300可接收输入的数字或字符信息,以及产生与定位电子设备的用户设置以及功能控制有关的键信号输入,例如触摸屏、小键盘、鼠标、轨迹板、触摸板、指示杆、一个或者多个鼠标按钮、轨迹球、操纵杆等输入装置。输出装置1400可以包括显示设备、辅助照明装置(例如,LED)和触觉反馈装置(例如,振动电机)等。该显示设备可以包括但不限于,液晶显示器(LCD)、发光二极管(LED)显示器和等离子体显示器。在一些实施方式中,显示设备可以是触摸屏。The input device 1300 can receive input numerical or character information and generate key signal input related to user settings and functional control of the positioning electronic device, such as a touch screen, keypad, mouse, trackpad, touchpad, pointing stick, one or more Input devices such as mouse buttons, trackballs, joysticks, etc. The output device 1400 may include a display device, auxiliary lighting devices (eg, LEDs), haptic feedback devices (eg, vibration motors), and the like. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
此处描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、专用ASIC(专用集成电路)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein can be implemented in digital electronic circuitry, integrated circuit systems, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.
这些计算程序(也称作程序、软件、软件应用、或者代码)包括可编程处理器的机器指令,并且可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。如本文使用的,术语“机器可读介质”和“计算机可读介质”指的是用于将机器指令和/或数据提供给可编程处理器的任何计算机程序产品、设备、和/或装置(例如,磁盘、光盘、存储器、可编程逻辑装置(PLD)),包括,接收作为机器可读信号的机器指令的机器可读介质。术语“机器可读信号”指的是用于将机器指令和/或数据提供给可编程处理器的任何信号。These computational programs (also referred to as programs, software, software applications, or codes) include machine instructions for programmable processors, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages calculation program. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or apparatus for providing machine instructions and/or data to a programmable processor ( For example, magnetic disks, optical disks, memories, programmable logic devices (PLDs), including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。A computer system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发申请中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本申请公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, the steps described in the present application can be performed in parallel, sequentially or in different orders, and as long as the desired results of the technical solutions disclosed in the present application can be achieved, no limitation is imposed herein.

Claims (26)

  1. 一种压缩处理方法,其特征在于,应用于压缩端,所述方法包括:A compression processing method, characterized in that, applied to a compression end, the method comprising:
    根据第一指示信息,发送未进行包头压缩的数据包。According to the first indication information, a data packet without packet header compression is sent.
  2. 根据权利要求1所述的方法,其特征在于,所述包头压缩为以太网头压缩。The method according to claim 1, wherein the packet header compression is Ethernet header compression.
  3. 根据权利要求1或2任一项所述的方法,其特征在于,所述第一指示信息包括以下至少一种:The method according to any one of claims 1 or 2, wherein the first indication information comprises at least one of the following:
    用于指示所述网络侧为所述压缩端配置了包头压缩功能的信息;Information used to indicate that the network side configures the header compression function for the compression end;
    用于指示终端设备重新建立所述压缩端的信息;以及information for instructing the terminal device to re-establish the compressor; and
    用于指示所述网络侧未指示所述包头压缩功能连续使用的信息。Information used to indicate that the network side does not instruct the continuous use of the packet header compression function.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述发送未进行包头压缩的数据包之前,还包括:The method according to any one of claims 1-3, wherein before the sending the data packet without packet header compression, the method further comprises:
    丢弃已建立的压缩上下文。The established compression context is discarded.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述未进行包头压缩的数据包的包头中包括用于标识该数据包包括完整包头的包头完整性标识。The method according to any one of claims 1-4, wherein the packet header of the data packet without packet header compression includes a packet header integrity identifier for identifying that the data packet includes a complete packet header.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述第一指示信息包括本次压缩对应的压缩上下文标识或数据流标识的第一长度、和上一次压缩对应的压缩上下文标识或数据流标识的第二长度;所述发送未进行包头压缩的数据包,包括:The method according to any one of claims 1-5, wherein the first indication information includes the compression context identifier or the first length of the data stream identifier corresponding to the current compression, and the compression context corresponding to the previous compression The second length of the identifier or the data stream identifier; the sending of the data packet without header compression includes:
    响应于所述第一长度与所述第二长度不相同,采用所述第一长度的压缩上下文标识或数据流标识发送所述未进行包头压缩的数据包;或者,In response to the first length being different from the second length, use the compression context identifier or data flow identifier of the first length to send the data packet without header compression; or,
    响应于所述第一长度与所述第二长度相同,采用所述第一长度且与所述上一次压缩对应的压缩上下文标识或数据流标识相同的压缩上下文标识或数据流标识发送所述未进行包头压缩的数据包;或者,In response to the first length being the same as the second length, using the first length and the same compression context identifier or data stream identifier as the compression context identifier or data stream identifier corresponding to the last compression to send the unreported data stream. Packets with header compression; or,
    响应于所述第一长度与所述第二长度相同,采用所述第一长度且与所述上一次压缩对应的压缩上下文标识或数据流标识不同的压缩上下文标识或数据流标识发送所述未进行包头压缩的数据包。In response to the first length being the same as the second length, a compression context identifier or data stream identifier of the first length that is different from the compression context identifier or data stream identifier corresponding to the last compression is used to send the unreported data stream. Header-compressed packets.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述发送未进行包头压缩的数据包之前,还包括:The method according to any one of claims 1-6, wherein before the sending the data packet without packet header compression, the method further comprises:
    接收解压缩失败信息,其中,所述解压缩失败信息包括失败类型指示和解压缩失败的进行了包头压缩的压缩数据包的压缩上下文标识。Decompression failure information is received, wherein the decompression failure information includes a failure type indication and a compression context identifier of the header-compressed compressed data packet that fails to be decompressed.
  8. 一种压缩处理方法,其特征在于,应用于解压缩端,所述方法包括:A compression processing method, characterized in that, applied to a decompression end, the method comprising:
    根据第二指示信息,丢弃已建立的压缩上下文。According to the second indication information, the established compression context is discarded.
  9. 根据权利要求8所述的方法,其特征在于,所述第二指示信息包括以下至少一种:The method according to claim 8, wherein the second indication information comprises at least one of the following:
    用于指示所述网络侧为所述解压缩端配置了包头压缩功能的信息;Information used to instruct the network side to configure the packet header compression function for the decompression end;
    用于指示终端设备重新建立所述解压缩端的信息;以及information for instructing the terminal device to re-establish the decompression end; and
    用于指示所述网络侧未指示所述包头压缩功能连续使用的信息。Information used to indicate that the network side does not instruct the continuous use of the packet header compression function.
  10. 根据权利要求9所述的方法,其特征在于,所述包头压缩为以太网头压缩。The method according to claim 9, wherein the packet header compression is Ethernet header compression.
  11. 根据权利要求8-10任一项所述的方法,其特征在于,所述丢弃已建立的压缩上下文之后,所述方法还包括:The method according to any one of claims 8-10, wherein after discarding the established compression context, the method further comprises:
    接收进行了包头压缩的压缩数据包,其中,所述接收进行了包头压缩的压缩数据包之前,未接收到与所述压缩数据包的压缩上下文标识相同的未进行包头压缩的数据包;receiving a compressed data packet with header compression, wherein before receiving the compressed data packet with header compression, a data packet without header compression that is identical to the compression context identifier of the compressed data packet is not received;
    执行解压缩失败处理操作。Perform decompression failure handling operations.
  12. 根据权利要求11所述的方法,其特征在于,所述执行解压缩失败处理操作,包括以下至少一种:The method according to claim 11, wherein the performing an operation of processing a decompression failure comprises at least one of the following:
    丢弃所述压缩数据包;以及discarding the compressed data packet; and
    发送解压缩失败信息,其中,所述解压缩失败信息包括失败类型指示。Decompression failure information is sent, wherein the decompression failure information includes a failure type indication.
  13. 根据权利要求12所述的方法,其特征在于,所述解压缩失败信息还包括以下至少一种:The method according to claim 12, wherein the decompression failure information further comprises at least one of the following:
    所述压缩数据包的压缩上下文标识;the compression context identifier of the compressed data packet;
    所述压缩数据包的数据流标识;以及a data flow identification of the compressed data packet; and
    所述压缩数据包的承载标识。The bearer identifier of the compressed data packet.
  14. 根据权利要求8-13任一项所述的方法,其特征在于,所述丢弃已建立的压缩上下文之前,所述方法还包括:The method according to any one of claims 8-13, characterized in that before discarding the established compression context, the method further comprises:
    接收所述网络侧配置的第三指示信息,所述第三指示信息包括预设的压缩上下文标识对应的所述未进行包头压缩的数据包的包头中包括用于标识该数据包包括完整包头的包头完整性标识;Receive third indication information configured by the network side, where the third indication information includes a preset compression context identifier corresponding to the packet header of the data packet without header compression including a packet header for identifying that the data packet includes a complete packet header. Packet header integrity identification;
    响应于接收到的数据包的压缩上下文标识和所述预设的压缩上下文标识相同,确定所述接收到的数据包为所述未进行包头压缩的数据包。In response to the compression context identifier of the received data packet being the same as the preset compression context identifier, it is determined that the received data packet is the data packet without header compression.
  15. 一种压缩处理装置,其特征在于,应用于压缩端,所述装置包括:A compression processing device, characterized in that, applied to a compression end, the device comprising:
    发送模块,被配置为根据第一指示信息,发送未进行包头压缩的数据包。The sending module is configured to send the data packet without packet header compression according to the first indication information.
  16. 根据权利要求15所述的装置,其特征在于,所述发送模块还被配置为:The apparatus according to claim 15, wherein the sending module is further configured to:
    在所述发送未进行包头压缩的数据包之前,丢弃已建立的压缩上下文。Before the sending of the data packet without header compression, the established compression context is discarded.
  17. 根据权利要求15或16所述的装置,其特征在于,所述第一指示信息包括本次压缩对应的压缩上下文标识或数据流标识的第一长度、和上一次压缩对应的压缩上下文标识或数据流标识的第二长度;所述发送模块具体被配置为:The apparatus according to claim 15 or 16, wherein the first indication information comprises the first length of the compression context identifier or data stream identifier corresponding to the current compression, and the compression context identifier or data corresponding to the previous compression The second length of the stream identifier; the sending module is specifically configured as:
    响应于所述第一长度与所述第二长度不相同,采用所述第一长度的压缩上下文标识或数据流标识发送所述未进行包头压缩的数据包;或者,In response to the first length being different from the second length, use the compression context identifier or data flow identifier of the first length to send the data packet without header compression; or,
    响应于所述第一长度与所述第二长度相同,采用所述第一长度且与所述上一次压缩对应的压缩上下文标识或数据流标识相同的压缩上下文标识或数据流标识发送所述未进行包头压缩的数据包;或者,In response to the first length being the same as the second length, using the first length and the same compression context identifier or data stream identifier as the compression context identifier or data stream identifier corresponding to the last compression to send the unreported data stream. Packets with header compression; or,
    响应于所述第一长度与所述第二长度相同,采用所述第一长度且与所述上一次压缩对应的压缩上下文标识或数据流标识不同的压缩上下文标识或数据流标识发送所述未进行包头压缩的数据包。In response to the first length being the same as the second length, a compression context identifier or data stream identifier of the first length that is different from the compression context identifier or data stream identifier corresponding to the last compression is used to send the unreported data stream. Header-compressed packets.
  18. 根据权利要求15-17任一项所述的装置,其特征在于,所述发送模块还被配置为:The device according to any one of claims 15-17, wherein the sending module is further configured to:
    在所述发送未进行包头压缩的数据包之前,接收解压缩失败信息,其中,所述解压缩失败信息包括失败类型指示和解压缩失败的进行了包头压缩的压缩数据包的压缩上下文标识。Before the sending of the data packet without header compression, the decompression failure information is received, wherein the decompression failure information includes a failure type indication and a compression context identifier of the compressed data packet with header compression that fails to be decompressed.
  19. 一种压缩处理装置,其特征在于,应用于解压缩端,所述装置包括:A compression processing device, characterized in that, applied to a decompression end, the device comprising:
    丢弃模块,被配置为根据第二指示信息,丢弃已建立的压缩上下文。The discarding module is configured to discard the established compression context according to the second indication information.
  20. 根据权利要求19所述的装置,其特征在于,还包括:The apparatus of claim 19, further comprising:
    接收模块,被配置为在所述丢弃模块丢弃所述已建立的压缩上下文之后,接收进行了包头压缩的压缩数据包,其中,所述接收进行了包头压缩的压缩数据包之前,未接收到与所述压缩数据包的压缩上下文标识相同的数据包未进行包头压缩的数据包;执行解压缩失败处理操作。The receiving module is configured to receive the compressed data packet with header compression after the discarding module discards the established compression context, wherein before receiving the compressed data packet with header compression The compression context of the compressed data packets identifies the same data packets without header compression; and a decompression failure processing operation is performed.
  21. 根据权利要求20所述的装置,其特征在于,所述接收模块具体被配置为执行以下至少一种:The apparatus according to claim 20, wherein the receiving module is specifically configured to perform at least one of the following:
    丢弃所述压缩数据包;以及discarding the compressed data packet; and
    发送解压缩失败信息,其中,所述解压缩失败信息包括失败类型指示。Decompression failure information is sent, wherein the decompression failure information includes a failure type indication.
  22. 根据权利要求19-21任一项所述的装置,其特征在于,所述接收模块还被配置为:The device according to any one of claims 19-21, wherein the receiving module is further configured to:
    在所述丢弃模块丢弃所述已建立的压缩上下文之前,接收所述网络侧配置的第三指示信息,所述第三指示信息包括预设的压缩上下文标识对应的所述数据包的包头中包括用于标识该数据包包括完整包头的包头完整性标识;响应于接收到的数据包的压缩上下文标识和所述预设的压缩上下文标识相同,确定所述接收到的数据包为所述数据包。Before the discarding module discards the established compression context, receive third indication information configured by the network side, where the third indication information includes a preset compression context identifier corresponding to the packet header of the data packet including for identifying that the data packet includes a header integrity identifier of a complete header; in response to the received data packet having the same compression context identifier as the preset compression context identifier, determine that the received data packet is the data packet .
  23. 一种压缩端,其特征在于,包括:如权利要求15-18任一项所述的压缩处理装置,或者如权利要求19-22任一项所述的数据包包头压缩处理装置。A compression end, characterized by comprising: the compression processing apparatus according to any one of claims 15-18, or the data packet header compression processing apparatus according to any one of claims 19-22.
  24. 一种解压缩端,其特征在于,包括:如权利要求15-18任一项所述的数据包包头压缩处理装置,或者如权利要求19-22任一项所述的压缩处理装置。A decompression end, characterized by comprising: the data packet header compression processing device according to any one of claims 15-18, or the compression processing device according to any one of claims 19-22.
  25. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    至少一个处理器;以及at least one processor; and
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1-7中任一项所述的压缩处理方法,或者如权利要求8-14中任一项所述的压缩处理方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the execution of any of claims 1-7 The compression processing method described above, or the compression processing method according to any one of claims 8-14.
  26. 一种存储有计算机指令的计算机可读存储介质,其特征在于,所述计算机指令用于使所述计算机执行如权利要求1-7中任一项所述的压缩处理方法,或者如权利要求8-14中任一项所述的压缩处理方法。A computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the compression processing method according to any one of claims 1-7, or the compression processing method as claimed in claim 8 The compression processing method described in any one of -14.
PCT/CN2021/071611 2021-01-13 2021-01-13 Compression processing method and apparatus WO2022151105A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2021/071611 WO2022151105A1 (en) 2021-01-13 2021-01-13 Compression processing method and apparatus
CN202180000140.7A CN115136571A (en) 2021-01-13 2021-01-13 Compression processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/071611 WO2022151105A1 (en) 2021-01-13 2021-01-13 Compression processing method and apparatus

Publications (1)

Publication Number Publication Date
WO2022151105A1 true WO2022151105A1 (en) 2022-07-21

Family

ID=82446583

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/071611 WO2022151105A1 (en) 2021-01-13 2021-01-13 Compression processing method and apparatus

Country Status (2)

Country Link
CN (1) CN115136571A (en)
WO (1) WO2022151105A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632229A (en) * 2017-03-24 2018-10-09 电信科学技术研究院 Head compression method, solution head compression method in a kind of multi-connection and device
WO2019218354A1 (en) * 2018-05-18 2019-11-21 Apple Inc. Fast synchronization of compressor state and decompression state in marginal wireless coverage
CN110891287A (en) * 2018-09-07 2020-03-17 维沃移动通信有限公司 Ethernet packet header compression method, decompression method and equipment
WO2020198966A1 (en) * 2019-03-29 2020-10-08 Oppo广东移动通信有限公司 Wireless communication method and device
WO2020199030A1 (en) * 2019-03-29 2020-10-08 Oppo广东移动通信有限公司 Compression processing method, decompression processing method and related devices

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100440869C (en) * 2006-04-11 2008-12-03 华为技术有限公司 UDP message header compression activation method
CN106302245A (en) * 2015-06-08 2017-01-04 中国移动通信集团公司 The compression method of packet and device in a kind of LTE system
CN110958646B (en) * 2018-09-27 2023-03-31 华为技术有限公司 Communication method and device
CN111507072A (en) * 2019-01-31 2020-08-07 瑞昱半导体股份有限公司 Compression end and decompression end based on robust header compression and data processing method thereof
TWI788627B (en) * 2019-02-14 2023-01-01 聯發科技股份有限公司 Method for transmitting packet, method for receiving packet and related device
CN111918335B (en) * 2019-05-08 2022-07-22 华为技术有限公司 Method and device for processing data packet

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632229A (en) * 2017-03-24 2018-10-09 电信科学技术研究院 Head compression method, solution head compression method in a kind of multi-connection and device
WO2019218354A1 (en) * 2018-05-18 2019-11-21 Apple Inc. Fast synchronization of compressor state and decompression state in marginal wireless coverage
CN110891287A (en) * 2018-09-07 2020-03-17 维沃移动通信有限公司 Ethernet packet header compression method, decompression method and equipment
WO2020198966A1 (en) * 2019-03-29 2020-10-08 Oppo广东移动通信有限公司 Wireless communication method and device
WO2020199030A1 (en) * 2019-03-29 2020-10-08 Oppo广东移动通信有限公司 Compression processing method, decompression processing method and related devices

Also Published As

Publication number Publication date
CN115136571A (en) 2022-09-30

Similar Documents

Publication Publication Date Title
US11824959B2 (en) ROHC header compression for MPTCP
US8488553B2 (en) Method for providing seamless transition between networks following different protocols
TWI644581B (en) Method for packet header compression and communication device thereof
CN111385268B (en) Data packet header compression confirmation method and communication equipment
EP3707875B1 (en) Transmitting device, receiving device, and methods performed therein for handling uplink data compression
WO2020119718A1 (en) Data packet decompression method and device
US20220159100A1 (en) Communication Method And Apparatus
WO2022111365A1 (en) Data transmission method and apparatus, device, storage medium, and program product
CN111385263B (en) Method for maintaining data packet header compression information and communication equipment
WO2022151105A1 (en) Compression processing method and apparatus
CN112868213A (en) Joint use of Ethernet header compression and robust header compression
KR20160035953A (en) Method and apparatus of performing of call using long-term evolution system
WO2016154831A1 (en) Method and device for realizing transmission control protocol (tcp) transmission
EP4311300A1 (en) Data transmission method and apparatus
US20220053369A1 (en) Data processing method, and communication apparatus and system
US20240080729A1 (en) Communication Method and Apparatus
JP2015156524A (en) communication device, and context control method
WO2021097686A1 (en) Method for transmitting compressed ethernet packet, and apparatus
CN112399477B (en) Communication method and device
WO2013102336A1 (en) Rohc channel configuration method and device
CN110958647A (en) Data transmission method and device
CN112333047B (en) Data transmission method, device and equipment
WO2024140801A1 (en) Data transmission method, apparatus and system
CN107509218A (en) A kind of information transferring method, device and wireless communication system
CN113678501B (en) Ethernet data packet header compression method, processing method and device thereof

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21918320

Country of ref document: EP

Kind code of ref document: A1