WO2017147754A1 - Compression method and device for data packets - Google Patents

Compression method and device for data packets Download PDF

Info

Publication number
WO2017147754A1
WO2017147754A1 PCT/CN2016/074849 CN2016074849W WO2017147754A1 WO 2017147754 A1 WO2017147754 A1 WO 2017147754A1 CN 2016074849 W CN2016074849 W CN 2016074849W WO 2017147754 A1 WO2017147754 A1 WO 2017147754A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
compression
network side
side device
indication information
Prior art date
Application number
PCT/CN2016/074849
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/CN2016/074849 priority Critical patent/WO2017147754A1/en
Publication of WO2017147754A1 publication Critical patent/WO2017147754A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information

Definitions

  • Embodiments of the present invention relate to data compression technologies, and in particular, to a data packet compression method and apparatus.
  • IP Internet Protocol
  • the packet header of some services such as voice and game is relatively long.
  • the data packet is usually compressed.
  • Table 1 shows the format of a data packet of a voice service.
  • the header of the data packet includes an Internet Protocol Version 4 (IPv4) header and a user datagram.
  • IPv4 Internet Protocol Version 4
  • UDP User Datagram Protocol
  • RTP Real-time Transport Protocol
  • the packet header length is 1.25 times the payload length. To reduce the air interface load, you can The packet is compressed.
  • the compression methods in the existing mobile communication networks are both bidirectional, that is, the uplink and downlink data packets are not compressed, or both the uplink and downlink data packets are compressed.
  • TCP Transmission Control Protocol
  • 90% of the uplink data packets are TCP acknowledgement (ACK) packets, and the ratio of the packet header length to the payload length of the TCP ACK packet. It is relatively large, and the number of TCP ACK packets is large.
  • the upstream and downstream data packets of the TCP service can be compressed.
  • the ratio of the header length to the payload length of some data packets of some services is relatively small. Compressing these short packet headers does not help to save air interface resources, but increases the load on the processor.
  • the embodiment of the invention provides a data packet compression method and device, which not only saves air interface resources, but also improves network capacity, and can also reduce the load of the processor of the UE and the network side device, and prolong the service life of the processor.
  • an embodiment of the present invention provides a data packet compression method, including: a user equipment UE receives a first message sent by a network side device, where the first message includes compression indication information, and the compression indication information is used. Instructing to perform one-side compression on the data packet, where the one-side compression is to compress only uplink data packets sent by the UE to the network side device, or only downlink data packets received by the UE from the network side device. Performing compression; the UE processes the data packet according to the compression indication information.
  • the compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is to compress only the uplink data packet sent by the UE to the network side device, or only the downlink data packet received by the UE from the network side device. It is equivalent to compressing only the data packets that need to be compressed, and avoids unnecessary compression or decompression processing by the UE and the network side device.
  • the one-side compression method not only the air interface resources are saved, the network capacity is increased, and the network capacity can be reduced.
  • the load on the processor of the UE and the network side device extends the service life of the processor.
  • the first message further includes a service identifier information or a data packet type, where the service identifier information is used to indicate that the service data packet corresponding to the service identifier is performed.
  • the data packet type is used to indicate one-side compression of the data packet corresponding to the data packet type.
  • one-side compression of the corresponding service or data packet may be performed according to the service identification information or the data packet type, which may save air interface resources and improve network capacity.
  • the UE processes the data packet according to the compression indication information, including: determining, by the UE The type of the data packet; if the type of the data packet is an uplink transmission control protocol acknowledgement TCP ACK data packet, the UE compresses the uplink TCP ACK data packet. In this embodiment, only the uplink TCP ACK packet is compressed for the UE, which saves air interface resources and reduces the processor load of the UE.
  • the compressing the uplink TCP ACK data packet includes: acquiring, by the UE, the uplink TCP ACK data a change characteristic parameter in the packet to generate a compressed data packet; the change characteristic The parameter is a parameter that the data packet changes during the transmission; the UE sends the compressed data packet to the network side device, so that the network side device reconstructs the uplink TCP ACK according to the change feature parameter. data pack.
  • the UE only needs to change the partially changed information to the network side device for the uplink TCP ACK data packet, and the network side device reconstructs the complete uplink TCP ACK packet according to the changed information, thereby effectively reducing the uplink data transmission amount and reducing the air interface burden. Improve the uplink network capacity.
  • the change characteristic parameter includes a sequence number SN and an acknowledgement sequence number ACK SN.
  • the change feature parameter The link connection identifier is further used to identify a different link connection between the UE and the network side device to ensure the accuracy of reconstructing the uplink TCP ACK packet.
  • the method before the UE receives the first message sent by the network side device, the method further includes: the UE sending a capability report message to the network side device, where the capability report message is used to indicate that the UE supports one-side compression of the data packet.
  • the first message further includes a compression manner indicated by the network side device
  • processing, by the UE, the data packet according to the compression indication information including: the UE processing the data packet by using the indicated compression manner according to the compression indication information, to ensure that the network side device and the UE adopt the same
  • the compression method ensures the accuracy of data transmission.
  • an embodiment of the present invention provides a data packet compression method, including:
  • the network side device sends a first message to the user equipment UE, where the first message includes compression indication information, where the compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is only for the UE.
  • the uplink data packet sent to the network side device is compressed or only the downlink data packet received by the UE from the network side device is compressed; and the network side device processes the data packet according to the compression indication information.
  • the compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is to compress only the uplink data packet sent by the UE to the network side device, or only the downlink data packet received by the UE from the network side device.
  • the first message further includes a service identifier information or a data packet type, where the service identifier information is used to indicate that the service data packet corresponding to the service identifier is performed.
  • the data packet type is used to indicate one-side compression of the data packet corresponding to the data packet type.
  • one-side compression of the corresponding service or data packet may be performed according to the service identification information or the data packet type, which may save air interface resources and improve network capacity.
  • the network side device processes the data packet according to the compression indication information, including: Receiving, by the network side device, the compressed data packet sent by the UE, and parsing the compressed data packet, and acquiring a change feature parameter; the change feature parameter is a parameter that changes a data packet during a transmission process; The change characteristic parameter, the source port number, and the destination port number reconstruct an uplink acknowledgement ACK packet; the source port number and the destination port number are port numbers obtained when the connection is initialized; the network side device is to be reconstructed The uplink ACK packet is sent to the server.
  • the network UE only needs to change the partially changed information to the network side device for the uplink TCP ACK data packet, and the network side device reconstructs the complete uplink TCP ACK packet according to the changed information, thereby effectively reducing the uplink data transmission amount and reducing the air interface. Burden to increase the capacity of the uplink network.
  • the change characteristic parameter includes a sequence number SN and an acknowledgement sequence number ACK SN.
  • the change feature parameter further includes: before the network side device reconstructs the uplink acknowledgement ACK packet according to the change feature parameter, the source port number, and the destination port number, the method further includes: the network side device according to the The LID determines a source port number and a destination port number corresponding to the LID.
  • the link connection identifier is used to indicate different link connections between the UE and the network side device to ensure the accuracy of reconstructing the uplink TCP ACK packet.
  • the method further includes: when the network side device detects the When the UE switches from the source cell to the target cell, the handover request command that carries the change feature parameter is sent to the network side device corresponding to the target cell; or, when the network side device detects the When the UE is handed over from the source cell to the target cell, the cached data carrying the change feature parameter is forwarded to the network side device corresponding to the target cell, and in the handover scenario, the change feature information of the source network side device is carried in the handover request.
  • the command or forwarding data is sent to the target network side device, which not only maintains the continuity of the one-side compression, but also reduces the waste of bandwidth resources caused by separately transmitting the change feature information.
  • the method further includes: the network side device receiving the UE sending capability report message, where the capability report message is used to indicate that the UE supports one-side compression of a data packet.
  • the first message further includes a compression manner indicated by the network side device
  • the network side device processes the data packet according to the compression indication information, and the network side device processes the data packet by using the indicated compression manner according to the compression indication information to ensure the network side device.
  • the same compression method is adopted for the UE to ensure the accuracy of data transmission.
  • an embodiment of the present invention provides a data packet compression apparatus, including:
  • a receiving module configured to receive a first message sent by the network side device, where the first message includes compression indication information, where the compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is only Uplink data packets sent by the user equipment UE to the network side device are compressed or only downlink data packets received by the UE from the network side device are compressed;
  • a processing module configured to process the data packet according to the compression indication information.
  • the first message further includes service identifier information or a data packet type, where the service identifier information is used to indicate that the service data packet corresponding to the service identifier is performed.
  • the data packet type is used to indicate one-side compression of the data packet corresponding to the data packet type.
  • the processing module includes:
  • a compression submodule configured to compress the uplink TCP ACK packet if the type of the data packet is an uplink transmission control protocol acknowledgement TCP ACK packet.
  • the compression sub-module is specifically configured to acquire a change characteristic parameter in the uplink TCP ACK packet to generate a compression Sending the compressed data packet to the network side device, so that the network side device reconstructs the uplink TCP ACK data packet according to the change characteristic parameter, where the change characteristic parameter is a data packet A parameter that changes during transmission.
  • the change characteristic parameter includes a sequence number SN and an acknowledgement sequence number ACK SN.
  • the change feature parameter It also includes a link connection identifier.
  • the device further includes:
  • a sending module configured to send a capability report message to the network side device, where the capability report message is used to indicate that the UE supports one-side compression of the data packet.
  • the first message further includes a compression manner indicated by the network side device
  • the processing module is configured to process the data packet by using the indicated compression manner according to the compression indication information.
  • the device provided in this embodiment is used to implement the technical solution of the method embodiment in any of the first embodiments.
  • the implementation principle and technical effects are similar, and details are not described herein again.
  • an embodiment of the present invention provides a data packet compression apparatus, including:
  • a sending module configured to send a first message to the user equipment UE, where the first message includes compression indication information, where the compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is only
  • the uplink data packet sent by the UE to the network side device is compressed or only the downlink data packet received by the UE from the network side device is compressed;
  • a processing module configured to process the data packet according to the compression indication information.
  • the first message further includes a service identifier information or a data packet type, where the service identifier information is used to indicate that the service data packet corresponding to the service identifier is performed.
  • the data packet type is used to indicate one-side compression of the data packet corresponding to the data packet type.
  • the processing module is configured to receive the compressed data packet sent by the UE, and parse the Compressing the data packet to obtain a change characteristic parameter;
  • the change characteristic parameter is a parameter in which the data packet changes during the transmission; and reconstructing the uplink acknowledgement ACK data packet according to the change characteristic parameter, the source port number, and the destination port number;
  • the source port number and the destination port number are port numbers obtained when the connection is initialized, and the reconstructed uplink ACK data packet is sent to the server by using the sending module.
  • the change characteristic parameter includes a sequence number SN and an acknowledgement sequence number ACK SN.
  • the change feature parameter if there are multiple link connections between the UE and the network side device, the change feature parameter also includes a link connection identifier LID;
  • the processing module is further configured to determine, according to the LID, a source port number and a destination port number corresponding to the LID.
  • the sending module is further configured to: when detecting that the UE is switched from a source cell When the target cell is used, the handover request command that carries the change feature parameter is sent to the network side device corresponding to the target cell;
  • the sending module is further configured to: when the network side device detects that the UE is handed over from the source cell to the target cell, forward the cached data that carries the change feature parameter to the network side device corresponding to the target cell.
  • the device further includes:
  • the receiving module is configured to receive the sending capability report message of the UE, where the capability report message is used to indicate that the UE supports one-side compression of the data packet.
  • the first message further includes a compression manner indicated by the network side device
  • the processing module is specifically configured to adopt the compression of the indication according to the compression indication information. The way to process the packet.
  • the device provided in this embodiment is used to implement the technical solution of the method embodiment in any of the embodiments of the second aspect, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 1 is a schematic diagram of an application scenario of a method for compressing a data packet according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a method for compressing a data packet according to Embodiment 1 of the present invention
  • FIG. 3 is a flowchart of a method for compressing a data packet according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 4 of the present invention.
  • FIG. 6 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 5 of the present invention.
  • FIG. 7 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 6 of the present invention.
  • FIG. 8 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 7 of the present invention.
  • FIG. 9 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 8 of the present invention.
  • FIG. 10 is a schematic structural diagram of a user equipment according to Embodiment 9 of the present invention.
  • FIG. 1 is a schematic diagram of an application scenario of a method for compressing a data packet according to an embodiment of the present invention.
  • the compression method of the data packet of the present invention is applied to a wireless communication system, and can be specifically applied to an Internet of Things, a Universal Terrestrial Radio Access Network (UTRAN), and an evolved universal terrestrial wireless access network ( In a wireless communication system such as Evolved Universal Terrestrial Radio Access Network (E-UTRAN).
  • the system architecture of the scenario includes User Equipment (UE) 1, UE2, UE3, network side device 4, and server 5.
  • the UE may refer to a user equipment in a wireless communication system, and may specifically be various types of terminals, sensors, machine type devices, and the like.
  • the network side device may be an access network device or a core network device, and the network side device may also include an access network device and a core network device, and the network side device may also be any relay device in the process of performing service data transmission, specifically,
  • the network side device may be a control node on the network side such as an Evolved Node B (eNB) or a core network node.
  • eNB Evolved Node B
  • FIG. 2 is a flowchart of a method for compressing a data packet according to Embodiment 1 of the present invention. The method is based on The scenario shown in Figure 1 is performed by the UE and the network side device. As shown in FIG. 2, the method includes the following steps:
  • Step 101 The UE receives the first message sent by the network side device, where the first message includes compression indication information, where the compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is only sent to the network side device by the UE.
  • the uplink data packet is compressed or only the downlink data packet received by the UE from the network side device is compressed.
  • the network side device sends a first message to the UE, indicating that the uplink data packet sent by the UE to the network side device is compressed or only
  • the downlink data packet received by the UE from the network side device is compressed.
  • 90% of the uplink packets are TCP ACK packets, and the ratio of the header to the payload of the TCP ACK packet is large.
  • the uplink data packet is compressed, and the compression indication information in the first message is used to indicate that only the uplink data packet sent by the UE to the network side device is compressed.
  • the uplink data packet is a data packet sent by the UE to the network side device, and the downlink data packet is a data packet sent by the network side device to the UE.
  • the network side device sends the first message to the user equipment UE, where the first message includes the compression indication information, the compression indication information is used to indicate that the data packet is unilaterally compressed, and the one-side compression is only sent to the network side device for the UE.
  • the uplink data packet is compressed or only the downlink data packet received by the UE from the network side device is compressed.
  • the network side device may send the first message to the UE after the connection is established, or may send the first message to the UE under certain triggering conditions, for example, when the network side device performs the capability reporting on the UE, Sending a first message to the UE, or the network side device is updated or sends a first message or the like to the UE according to a preset time interval.
  • the first message may be a public message, such as a system broadcast message.
  • Step 102 The UE processes the data packet according to the compression indication information.
  • the UE responds to the data packet according to the compression indication information. For example, if the compression indication information indicates that only the uplink data packet sent by the UE to the network side device is compressed, the UE sends the information according to the compression indication information pair. The data packet of the network side device is compressed; if the compression indication information indicates that only the downlink data packet received by the UE from the network side device is compressed, the UE decompresses the received data packet.
  • the network side device processes the data packet according to the compression indication information.
  • the network side device decompresses the data packet sent by the UE; if the compression indication information indicates that only the UE is from the network The downlink data packet received by the side device is compressed, and the network side device compresses the data packet sent to the UE.
  • the UE receives the first message that is sent by the network side device and includes the compression indication information, and processes the data packet according to the compression indication information, where the compression indication information is used to indicate that the data packet is
  • the side is compressed, and the one-side compression is to compress only the uplink data packet sent by the UE to the network side device or only the downlink data packet received by the UE from the network side device, which is equivalent to compressing only the data packet that needs to be compressed.
  • the UE and the network side device are prevented from performing unnecessary compression or decompression processing.
  • FIG. 3 is a flowchart of a method for compressing a data packet according to Embodiment 2 of the present invention. As shown in FIG. 3, the method includes the following steps:
  • Step 201 The UE receives the first message sent by the network side device, where the first message includes the compression indication information, if the compression indication information is the uplink compression indication information, step 202 is performed, and if the compression indication information is the downlink compression indication information, the UE performs Step 203.
  • the uplink compression indication information is used to indicate that only the uplink data packet sent by the UE to the network side device is compressed, and the downlink compression indication information is used to indicate that only the downlink data packet received by the UE from the network side device is compressed.
  • the first message may further include a service identifier or a data packet type, where the service identifier information is used to indicate one-side compression of the service data packet corresponding to the service identifier, and the data packet type is used to indicate that the data packet type corresponds to The data packet is compressed on one side.
  • the service corresponding to the service identification information is a video service
  • the UE compresses the video service data packet
  • the data packet type is TCP ACK
  • the UE compresses the TCP ACK data packet.
  • the compression is performed by using the header compression as an example.
  • the network side device sets the IE:PDCP-Config field in the first message sent, and in the IE:PDCP-Config field. Added two fields of ULnotUsed and DLnotUsed in the headerCompression field: when there is a ULnotUsed field under headerCompression, it indicates that the UE does not need uplink packets.
  • Performing header compression means that only the downlink data packet received by the UE from the network side device is header-compressed, that is, the network side device performs header compression on the data packet sent to the UE, and the UE receives the received data from the network side device. The packet is decompressed.
  • the UE when the DLnotUsed field exists in the headerCompression, the UE indicates that the downlink data of the UE is not subjected to header compression, that is, only the uplink data packet sent by the UE to the network side device is header-compressed, and the UE performs header processing on the data packet sent to the network side device. Compressed and does not decompress downstream packets.
  • the compression of the uplink data packet or the compression of the downlink data packet is only an example.
  • the ULnotUsed and the DLnotUsed are also only one possible implementation manner, and other fields may be defined by those skilled in the art.
  • the name stipulates that the uplink data packet is compressed or the downlink data packet is compressed, which is not limited in the present invention.
  • Step 202 The UE compresses the uplink data packet sent by the UE to the network side device according to the uplink compression indication information.
  • the compression indication information is the uplink compression indication information
  • the uplink compression indication information is used to indicate that only the uplink data packet sent by the UE to the network side device is compressed; and the network side device uses the compression indication information to compare the data.
  • the packet is processed, and the network side device decompresses the uplink data packet sent by the UE to the network side device according to the uplink compression indication information.
  • Step 203 The UE decompresses the downlink data packet received by the UE from the network side device according to the downlink compression indication information.
  • the compression indication information is downlink compression indication information
  • the downlink compression indication information is used to indicate that only the downlink data packet received by the UE from the network side device is compressed; and the network side device uses the compression indication information to the data packet.
  • the processing includes: compressing, by the network side device, the downlink data packet sent by the network side device to the UE according to the downlink compression indication information.
  • the UE receives the first message that includes the compression indication information that is sent by the network side device, and if the compression indication information is the uplink compression indication information, the UE sends the UE to the network side device according to the uplink compression indication information.
  • the uplink data packet is compressed. If the compression indication information is the downlink compression indication information, the UE decompresses the downlink data packet received by the UE from the network side device according to the downlink compression indication information, and sets different compression indication information in the first message.
  • the method is simple, easy to implement, saves air interface resources, improves network capacity, and reduces the load on the processor of the UE and the network side device, thereby prolonging the service life of the processor.
  • FIG. 4 is an interaction flowchart of a method for compressing data packets according to Embodiment 3 of the present invention.
  • This implementation mainly provides a method for compressing an uplink data packet. As shown in FIG. 4, the method includes the following steps:
  • Step 301 the UE determines the type of the data packet.
  • the data packet may be classified into different types according to the service identifier, the service type, the role of the data packet, etc., for example, the data packet may be divided into a normal TCP data packet, a TCP ACK data packet, and the like.
  • step 301 includes the following steps:
  • Step 3011 The UE determines the type of the uplink data packet according to the ACK mark value and the data length in the uplink data packet.
  • the Packet Data Convergence Protocol (PDCP) layer or the Radio Link Control (RLC) layer of the UE is parsed when receiving the TCP packet sent by the upper layer TCP.
  • the header part of the TCP packet can obtain the ACK tag value and the data length.
  • Step 3012 If the ACK flag value is 1, and the data length is 0, it is confirmed that the data packet is an uplink TCP ACK data packet.
  • the UE performs the following determination: if the ACK flag value obtained by parsing the data packet header is 1 and the data length is greater than 0, the data packet is a normal TCP data packet, and no processing is performed on the data packet, and the normal delivery is performed. To the lower layer; if the ACK flag obtained by parsing the packet header is set to 1, and the data length is equal to 0, the packet is an uplink TCP ACK packet.
  • the foregoing determining manner is only a feasible determining manner.
  • the UE can also determine whether the SYN, or the timestamp or the option field is valid, and if not, the compression is not performed.
  • Step 302 if the type of the uplink data packet is an uplink TCP ACK data packet, the UE compresses the uplink TCP ACK data packet.
  • step 302 specifically includes the following steps:
  • Step 3021 The UE acquires a change feature parameter in the uplink TCP ACK packet to generate a compressed data packet.
  • the change characteristic parameter is a parameter that the data packet changes during the transmission process.
  • the change feature parameters include a serial number (SN) and an Acknowledgement Serial Number (ACK SN).
  • the change feature parameter further includes a Link Connection Identifier (LID).
  • LID is used to identify different link connections between the UE and the network side device to ensure the accuracy of reconstructing the uplink ACK data packet.
  • the link connection identifier may be a logical channel number, a TCP connection number, or the like, which is not limited herein.
  • the UE may further add compression indication information in a header of the compressed data packet, where the compression indication information is used to indicate that the data packet is a compressed data packet.
  • the network side device reconstructs the uplink TCP ACK data packet before compression according to the compression criterion, including the SN, the ACK SN, the source port number, and the destination port number.
  • the UE may also pre-arrange the uplink data packet as a compressed data packet with the network side device.
  • the network side device receives the compressed data packet including the SN and the ACK SN, the network side device defaults the data packet to the compressed data packet.
  • the data packet reconstructs the uplink ACK packet according to the SN, the ACK SN, the source port number, and the destination port number.
  • Step 3022 The UE sends the compressed data packet to the network side device, so that the network side device reconstructs the uplink ACK data packet according to the change feature parameter.
  • step 303-step 305 is a process in which the network side device decompresses the uplink data packet sent by the UE to the network side device according to the uplink compression indication information.
  • Step 303 The network side device receives the compressed data packet sent by the UE, and parses the compressed data packet to obtain a change feature parameter.
  • the change feature parameter is a parameter that changes the data packet during the transmission process. .
  • Step 304 The network side device reconstructs an uplink acknowledgement ACK packet according to the change feature parameter, the source port number, and the destination port number.
  • the source port number and the destination port number are port numbers obtained when the connection is initialized.
  • Step 305 The network side device sends the reconstructed uplink ACK data packet to the server.
  • the PDCP layer or the RLC layer of the network side device parses the data packet header to obtain the source port number and the destination port number, and reconstructs the uplink ACK. After the data packet, the reconstructed uplink ACK packet is sent to the server.
  • the change feature parameter further includes a link connection identifier LID; and the network side device reconstructs the uplink according to the change feature parameter, the source port number, and the destination port number.
  • the method further includes: the network side device according to the LID, Determine the source port number and destination port number corresponding to the LID.
  • the reserved field or the option field in the synchronous (SYN) data packet or the ACK data packet of the initial three-way handshake establishment TCP connection is added with an LID, and the LID is used to distinguish between the UE and the server (Server).
  • the PDCP or RLC layer parsing packet header of the network side device obtains the source port number, the destination port number, and the LID, and stores the correspondence between the source port number and the destination port number of each TCP connection and the LID.
  • the source port number and the destination port number corresponding to the LID of the data packet are determined according to the correspondence between the source port number and the destination port number and the LID, and then according to the SN.
  • the ACK SN, the source port number, and the destination port number reconstruct the uplink acknowledgement ACK packet.
  • the method may further include: when the network side device detects that the UE is handed over from the source cell to the target cell, sending a handover request command that carries the change feature parameter to the network side device corresponding to the target cell. Or, when the network side device detects that the UE is handed over from the source cell to the target cell, the cached data carrying the change feature parameter is forwarded to the network side device corresponding to the target cell.
  • the network side device may send information such as the SN and the ACK SN corresponding to the source cell in the handover request command (Handover Request).
  • the network side device of the target cell may be sent to the network side device of the target cell by using the information such as the SN and the ACK SN corresponding to the source cell in the forwarding data of the switching process.
  • the information of the SN and the ACK SN of the source network side device is sent to the target network side device, which not only maintains the continuity of the one-side compression, but also reduces the waste of bandwidth resources caused by separately transmitting the change feature information.
  • the UE determines the type of the data packet according to the acknowledgement ACK tag value and the data length of the data packet, and obtains the uplink TCP ACK data packet if the data packet type is an uplink TCP ACK data packet.
  • the characteristic parameter is changed to generate a compressed data packet, and the compressed data packet is sent to the network side device, and the network side device parses the compressed data packet, obtains the change characteristic parameter, and reconstructs according to the change characteristic parameter, the source port number, and the destination port number.
  • the uplink TCP ACK packet is sent to the server by the reconstructed uplink TCP ACK packet.
  • the UE only needs to change the partially changed information to the network side device for the uplink TCP ACK data packet, and the network side device reconstructs the complete uplink TCP ACK packet according to the changed information, thereby effectively reducing the uplink data transmission amount and reducing the air interface burden. Improve the uplink network capacity.
  • the method before the receiving the first message sent by the network side device, the method further includes: the UE sending a capability report message to the network side device, where the capability report message is used to indicate that the UE supports One-sided compression of the packet.
  • the method further includes: the network side device receiving the UE sending capability report message, and the capability reporting message is used to indicate that the UE supports one-side compression of the data packet.
  • the UE sends a capability report message to the network side device to notify the network side device that the UE supports one-side compression, and the network side device sends the first message to the UE according to the capability report message.
  • the first message further includes a compression mode indicated by the network side device, and the UE processes the data packet according to the compression indication information, and the UE processes the data packet by using the indicated compression manner according to the compression indication information.
  • the first message further includes a compression mode indicated by the network side device; the network side device processes the data packet according to the compression indication information, including: the network side device adopts the indicated compression according to the compression indication information. The way to process the packet.
  • the UE may further select a compression mode supported by the UE and the network side device according to the compression mode indicated by the network side device, and process the data packet by using the selected compression mode.
  • the network side device may also select a compression mode supported by the UE and the network side device according to the compression mode indicated by the network side device, and process the data packet by using the selected compression mode.
  • the UE and the network side device may include multiple compression modes.
  • the field related to the compression mode in the first message includes three different compression modes represented by three data: profile0x001, profile0x002, and profile0x006.
  • the compression mode supported by the UE is profile0x003, profile0x004, and profile0x006.
  • the UE and the network side device compress or decompress the data packet in the compression mode corresponding to profile0x006, so that the compression mode of the UE and the network side device are synchronized to ensure data transmission. Reliability.
  • the UE and the network side device negotiate a compression mode, and when the data packet is transmitted, the data packet is directly compressed by using a negotiated compression method.
  • the compression mode supported by the network side device may not be carried in a message, so that the length of the first message is reduced, and the air interface resource is further saved.
  • FIG. 5 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 4 of the present invention.
  • the apparatus includes a receiving module 11 and a processing module 12.
  • the receiving module 11 is configured to receive a network side device
  • the first message to be sent, the first message includes compression indication information
  • the compression indication information is used to indicate one-side compression of the data packet
  • the one-side compression is to compress only the uplink data packet sent by the user equipment UE to the network side device.
  • the processing module 12 is configured to process the data packet according to the compression indication information.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2 or FIG. 3, and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 6 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 5 of the present invention.
  • the processing module 12 includes a determination sub-module 121 and a compression sub-module 122.
  • the determining sub-module 121 is configured to determine the type of the data packet;
  • the compression sub-module 122 is configured to compress the uplink TCP ACK data packet if the type of the data packet is an uplink transmission control protocol acknowledgement TCP ACK data packet.
  • the first message further includes service identifier information or a data packet type, where the service identifier information is used to indicate one-side compression of the service data packet corresponding to the service identifier, and the data packet type is used to indicate the data packet corresponding to the data packet type. Compress.
  • the compression sub-module 122 is configured to acquire a change characteristic parameter in the uplink TCP ACK packet to generate a compressed data packet, and send the compressed data packet to the network side device, so that the network side device is heavy according to the change feature parameter.
  • the uplink TCP ACK packet is configured, and the change characteristic parameter is a parameter in which the data packet changes during transmission.
  • the variation feature parameter includes a sequence number SN and an acknowledgement sequence number ACK SN.
  • the change feature parameter further includes a link connection identifier.
  • the device of the embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 4, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 7 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 6 of the present invention. As shown in FIG. 7, the apparatus further includes a transmitting module 13.
  • the sending module 13 is configured to send a capability report message to the network side device, where the capability report message is used to indicate that the UE supports one-side compression of the data packet.
  • the first message further includes a compression mode indicated by the network side device.
  • the processing module 12 is specifically configured to process the data packet by using the indicated compression manner according to the compression indication information.
  • FIG. 8 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 7 of the present invention.
  • the apparatus includes a transmitting module 21 and a processing module 22.
  • the sending module 21 is configured to send a first message to the user equipment UE, where the first message includes compression indication information, and the compression indication information is used to indicate the pair
  • the data packet is compressed on one side, and the one-side compression is to compress only the uplink data packet sent by the UE to the network side device or only the downlink data packet received by the UE from the network side device.
  • the processing module 22 is configured to use the compression indication information according to the compression indication information. Process the packet.
  • the device of the embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2 or FIG. 3, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • the first message further includes service identifier information or a data packet type, where the service identifier information is used to indicate one-side compression of the service data packet corresponding to the service identifier, and the data packet type is used to indicate the data packet corresponding to the data packet type. Perform one-sided compression.
  • the processing module 22 is specifically configured to receive the compressed data packet sent by the UE, and parse the compressed data packet to obtain a change feature parameter;
  • the change feature parameter is a parameter that changes the data packet during the transmission process; according to the change feature parameter, the source The port number and the destination port number reconstruct the uplink acknowledgement ACK packet; the source port number and the destination port number are port numbers obtained when the connection is established; and the reconstructed uplink ACK packet is sent to the server by the sending module 21.
  • the variation feature parameter includes a sequence number SN and an acknowledgement sequence number ACK SN.
  • the change feature parameter further includes a link connection identifier LID.
  • the processing module 22 is further configured to determine, according to the LID, a source port number corresponding to the LID. Destination port number.
  • the sending module 21 is further configured to: when detecting that the UE is handed over from the source cell to the target cell, send a handover request command that carries the change feature parameter to the network side device corresponding to the target cell; or, the sending module 21 is further used to: When the network side device detects that the UE is handed over from the source cell to the target cell, the cached data carrying the change feature parameter is forwarded to the network side device corresponding to the target cell.
  • FIG. 9 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 8 of the present invention. As shown in FIG. 9, the apparatus further includes a receiving module 23.
  • the receiving module 23 is configured to receive a UE sending capability report message, where the capability report message is used to indicate that the UE supports one-side compression of the data packet.
  • the first message further includes a compression mode indicated by the network side device.
  • the processing module 22 is specifically configured to process the data packet by using the indicated compression manner according to the compression indication information.
  • the device in this embodiment may be used to perform the technical solution of the method embodiment shown in any of FIG. 2 to FIG. 4, and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 10 is a schematic structural diagram of a user equipment according to Embodiment 9 of the present invention.
  • the user equipment includes a receiver 31 and a processor 32, and the user equipment may further include a transmitter 33.
  • the memory 34, the transmitter 33, and the receiver 31 are coupled to the processor 32, respectively.
  • Processor 32 may include one or more multi-core processors and/or memory 34.
  • Processor 32 can be a general purpose processor, an application specific integrated circuit (ASIC), or a digital signal processor (DSP).
  • Memory 34 can be a non-transitory storage medium coupled to processor 32 for storing different types of data.
  • the memory 34 may comprise a read only memory (ROM), a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or may be a disk storage. Memory 34 can be used to store instructions that implement the related methods described in Figures 2 - 4.
  • ROM read only memory
  • RAM random access memory
  • Memory 34 can be used to store instructions that implement the related methods described in Figures 2 - 4.
  • the receiver 31 is configured to receive a first message sent by the network side device, where the first message includes compression indication information, where the compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is only
  • the uplink data packet sent by the user equipment to the network side device is compressed or only the downlink data packet received by the UE from the network side device is compressed;
  • the processor 32 is configured to perform data packet according to the compression indication information. deal with.
  • the first message further includes service identifier information or a data packet type, where the service identifier information is used to indicate that the service data packet corresponding to the service identifier is unilaterally compressed, and the data packet type is used to indicate the data pair.
  • the packet corresponding to the packet type is compressed.
  • the processor 32 is specifically configured to determine a type of the data packet; if the type of the data packet is an uplink transmission control protocol acknowledgement TCP ACK data packet, compressing the uplink TCP ACK data packet.
  • the processor 32 compresses the uplink TCP ACK packet, including: the processor 32 acquires a change feature parameter in the uplink TCP ACK packet to generate a compressed data packet; and the change feature parameter is data. Transmitting the compressed data packet to the network side device, so that the network side device reconstructs the uplink TCP ACK data packet according to the change characteristic parameter.
  • the change characteristic parameter includes a sequence number SN and an acknowledgement sequence number ACK SN.
  • the change feature parameter further includes a link connection identifier.
  • the transmitter 33 is configured to send a capability report message to the network side device, where the capability report message is used to indicate that the UE supports one-side compression of the data packet.
  • the first message further includes a compression manner indicated by the network side device; the processor The method is specifically configured to process the data packet by using the compressed manner of the indication according to the compression indication information.
  • the user equipment in this embodiment may be used to perform the technical solution of the method embodiment shown in any of FIG. 2 to FIG. 4, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the embodiment of the present invention further provides a network side device, and the structure of the network side device is the same as that of the device shown in FIG. 10.
  • the transmitter is configured to send a first message to the user equipment UE, where
  • the first message includes compression indication information, where the compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is to compress only the uplink data packet sent by the UE to the network side device, or only The downlink data packet received by the UE from the network side device is compressed;
  • the processor is configured to process the data packet according to the compression indication information.
  • the first message further includes service identifier information or a data packet type, where the service identifier information is used to indicate that the service data packet corresponding to the service identifier is unilaterally compressed, and the data packet type is used to indicate the data pair.
  • the packet corresponding to the packet type is unilaterally compressed.
  • the processor is specifically configured to receive, by using a receiver, a compressed data packet sent by the UE, where the processor parses the compressed data packet to obtain a change feature parameter; and the change feature parameter is that the data packet is transmitted. a parameter that changes during the process; and reconstructs an uplink acknowledgement ACK packet according to the change characteristic parameter, the source port number, and the destination port number; the source port number and the destination port number are port numbers obtained when the connection is initialized. Transmitting the reconstructed uplink ACK packet to the server through the transmitter.
  • the change characteristic parameter includes a sequence number SN and an acknowledgement sequence number ACK SN.
  • the change feature parameter further includes a link connection identifier LID; and the processor is further configured to determine, according to the LID, The source port number and the destination port number corresponding to the LID.
  • the transmitter is further configured to, when detecting that the UE is handed over from the source cell to the target cell, send a handover request command that carries the change feature parameter to the network side device corresponding to the target cell; or When the UE is detected to be handed over from the source cell to the target cell, the cached data carrying the change feature parameter is forwarded to the network side device corresponding to the target cell.
  • the receiver is configured to receive the UE sending capability report message, where the capability report message is used to indicate that the UE supports one-side compression of the data packet.
  • the first message further includes a compression manner indicated by the network side device; the processor Specifically, the data packet is processed according to the compression indication information according to the compression indication manner.
  • the device in this embodiment may be used to perform the technical solution of the method embodiment shown in any of FIG. 2 to FIG. 4, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the steps of the foregoing method embodiments are performed; and the foregoing storage medium includes: Read-Only Memory (ROM), Random Access Memory (RAM), and Magnetic A variety of media that can store program code, such as a disc or a disc.

Abstract

The present invention provides a compression method and device for data packets. The method comprises: a UE receives a first message transmitted from a network-side apparatus, wherein the first message comprises compression instruction information for performing unilateral compression on data packets, wherein the unilateral compression is performed only on uplink data packets that the UE transmits to the network-side apparatus or only on downlink data packets that the UE receives from the network-side apparatus; and the UE, according to the compression instruction information, processes the data packets. By implementing unilateral compression, the method of the present invention not only saves resources of idle ports and increases network capacity, but also reduces loads of processors of the UE and the network-side apparatus and prolongs lifespan of the processors.

Description

数据包的压缩方法和装置Data packet compression method and device 技术领域Technical field
本发明实施例涉及数据压缩技术,尤其涉及一种数据包的压缩方法和装置。Embodiments of the present invention relate to data compression technologies, and in particular, to a data packet compression method and apparatus.
背景技术Background technique
随着网络时代的到来,互联网协议(Internet Protocol,简称IP)技术的应用越来越广泛。With the advent of the Internet age, the application of Internet Protocol (IP) technology has become more and more widespread.
当将IP技术应用在无线网络小区环境时,语音、游戏等部分业务的数据包的包头比较长,为了节省空口资源,通常需要对数据包进行压缩。表1示出了一种语音业务的数据包的格式,如表1所示,该数据包的包头包括互联网协议第4版本(Internet Protocol Version 4,简称IPv4)头部(header)、用户数据报协议(User Datagram Protocol,简称UDP)header和实时传输协议(Real-time Transport Protocol,简称RTP)header,可见,该数据包的包头长度为净负荷长度的1.25倍,为了减少空口负荷,可以对该数据包进行压缩。When the IP technology is applied to the wireless network cell environment, the packet header of some services such as voice and game is relatively long. In order to save the air interface resources, the data packet is usually compressed. Table 1 shows the format of a data packet of a voice service. As shown in Table 1, the header of the data packet includes an Internet Protocol Version 4 (IPv4) header and a user datagram. The User Datagram Protocol (UDP) header and the Real-time Transport Protocol (RTP) header can be seen. The packet header length is 1.25 times the payload length. To reduce the air interface load, you can The packet is compressed.
表1Table 1
Figure PCTCN2016074849-appb-000001
Figure PCTCN2016074849-appb-000001
现有移动通信网络中的压缩方式都是双向的,即对上、下行数据包都不进行压缩,或者,对上、下行数据包都进行压缩。例如,对于传输控制协议(Transmission Control Protocol,简称TCP)业务而言,其上行数据包的90%为TCP确认(Acknowledgement,简称ACK)数据包,TCP ACK数据包的包头长度与净负荷长度的比值比较大,而且,TCP ACK数据包数量众多,为了减少空口负荷,可以对TCP业务的上、下行数据包进行压缩。The compression methods in the existing mobile communication networks are both bidirectional, that is, the uplink and downlink data packets are not compressed, or both the uplink and downlink data packets are compressed. For example, for the Transmission Control Protocol (TCP) service, 90% of the uplink data packets are TCP acknowledgement (ACK) packets, and the ratio of the packet header length to the payload length of the TCP ACK packet. It is relatively large, and the number of TCP ACK packets is large. In order to reduce the air interface load, the upstream and downstream data packets of the TCP service can be compressed.
但是,某些业务的部分数据包的包头长度与净负荷长度的比值比较小,对于这些包头很短的数据包进行压缩,不仅对节省空口资源没有帮助,反而增加了处理器的负荷。 However, the ratio of the header length to the payload length of some data packets of some services is relatively small. Compressing these short packet headers does not help to save air interface resources, but increases the load on the processor.
发明内容Summary of the invention
本发明实施例提供一种数据包的压缩方法和装置,不仅节省空口资源,提升网络容量,还可以降低UE和网络侧设备的处理器的负荷,延长了处理器的使用寿命。The embodiment of the invention provides a data packet compression method and device, which not only saves air interface resources, but also improves network capacity, and can also reduce the load of the processor of the UE and the network side device, and prolong the service life of the processor.
第一方面,本发明实施例提供一种数据包的压缩方法,包括:用户设备UE接收网络侧设备发送的第一消息,所述第一消息中包括压缩指示信息,所述压缩指示信息用于指示对数据包进行单侧压缩,所述单侧压缩为只对所述UE发送给所述网络侧设备的上行数据包进行压缩或者只对所述UE从所述网络侧设备接收的下行数据包进行压缩;所述UE根据所述压缩指示信息对数据包进行处理。由于压缩指示信息用于指示对数据包进行单侧压缩,且单侧压缩为只对UE发送给网络侧设备的上行数据包进行压缩或者只对UE从网络侧设备接收的下行数据包进行压缩,相当于仅对需要进行压缩的数据包进行压缩,避免了UE、网络侧设备进行不必要的压缩或解压缩处理,通过实现单侧压缩的方法,不仅节省空口资源,提升网络容量,还可以降低UE和网络侧设备的处理器的负荷,延长了处理器的使用寿命。In a first aspect, an embodiment of the present invention provides a data packet compression method, including: a user equipment UE receives a first message sent by a network side device, where the first message includes compression indication information, and the compression indication information is used. Instructing to perform one-side compression on the data packet, where the one-side compression is to compress only uplink data packets sent by the UE to the network side device, or only downlink data packets received by the UE from the network side device. Performing compression; the UE processes the data packet according to the compression indication information. The compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is to compress only the uplink data packet sent by the UE to the network side device, or only the downlink data packet received by the UE from the network side device. It is equivalent to compressing only the data packets that need to be compressed, and avoids unnecessary compression or decompression processing by the UE and the network side device. By implementing the one-side compression method, not only the air interface resources are saved, the network capacity is increased, and the network capacity can be reduced. The load on the processor of the UE and the network side device extends the service life of the processor.
结合第一方面,在第一方面的第一种可能实现方式中,所述第一消息还包括业务标识信息或数据包类型,所述业务标识信息用于指示对业务标识对应的业务数据包进行单侧压缩,所述数据包类型用于指示对数据包类型对应的数据包进行单侧压缩。本实施例中,可以根据业务标识信息或数据包类型,对相应的业务或数据包进行单侧压缩,可以节省空口资源,提升网络容量。With reference to the first aspect, in a first possible implementation manner of the first aspect, the first message further includes a service identifier information or a data packet type, where the service identifier information is used to indicate that the service data packet corresponding to the service identifier is performed. Single-sided compression, the data packet type is used to indicate one-side compression of the data packet corresponding to the data packet type. In this embodiment, one-side compression of the corresponding service or data packet may be performed according to the service identification information or the data packet type, which may save air interface resources and improve network capacity.
结合第一方面或第一方面的第一种可能实现方式,在第一方面的第二种可能实现方式中,所述UE根据所述压缩指示信息对数据包进行处理,包括:所述UE确定所述数据包的类型;若所述数据包的类型为上行传输控制协议确认TCP ACK数据包,则所述UE对所述上行TCP ACK数据包进行压缩。本实施例中,对UE仅对上行TCP ACK数据包进行压缩,节省空口资源,降低了UE的处理器负荷。With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the UE processes the data packet according to the compression indication information, including: determining, by the UE The type of the data packet; if the type of the data packet is an uplink transmission control protocol acknowledgement TCP ACK data packet, the UE compresses the uplink TCP ACK data packet. In this embodiment, only the uplink TCP ACK packet is compressed for the UE, which saves air interface resources and reduces the processor load of the UE.
结合第一方面的第二种可能实现方式,在第一方面的第三种可能实现方式中,所述对所述上行TCP ACK数据包进行压缩,包括:所述UE获取所述上行TCP ACK数据包中的变化特征参数,以生成压缩数据包;所述变化特征 参数为数据包在传输过程中发生变化的参数;所述UE将所述压缩数据包发送给所述网络侧设备,以使所述网络侧设备根据所述变化特征参数重构所述上行TCP ACK数据包。UE对于上行TCP ACK数据包只需将部分发生变化的信息给网络侧设备,由网络侧设备根据这些变化的信息重新构造完整的上行TCP ACK包,有效减了少上行数据传输量,减少空口负担,提升上行网络容量。In conjunction with the second possible implementation of the first aspect, in a third possible implementation manner of the first aspect, the compressing the uplink TCP ACK data packet includes: acquiring, by the UE, the uplink TCP ACK data a change characteristic parameter in the packet to generate a compressed data packet; the change characteristic The parameter is a parameter that the data packet changes during the transmission; the UE sends the compressed data packet to the network side device, so that the network side device reconstructs the uplink TCP ACK according to the change feature parameter. data pack. The UE only needs to change the partially changed information to the network side device for the uplink TCP ACK data packet, and the network side device reconstructs the complete uplink TCP ACK packet according to the changed information, thereby effectively reducing the uplink data transmission amount and reducing the air interface burden. Improve the uplink network capacity.
结合第一方面的第三种可能实现方式,在第一方面的第四种可能实现方式中,所述变化特征参数包括序列号SN和确认序列号ACK SN。In conjunction with the third possible implementation of the first aspect, in a fourth possible implementation of the first aspect, the change characteristic parameter includes a sequence number SN and an acknowledgement sequence number ACK SN.
结合第一方面的第四种可能实现方式,在第一方面的第五种可能实现方式中,若所述UE与所述网络侧设备之间存在多条链路连接,则所述变化特征参数还包括链路连接标识,链路连接标识用于标识UE与网络侧设备之间的不同链路连接,以保证重构上行TCP ACK数据包的准确性。With reference to the fourth possible implementation manner of the foregoing aspect, in a fifth possible implementation manner of the first aspect, if a plurality of link connections exist between the UE and the network side device, the change feature parameter The link connection identifier is further used to identify a different link connection between the UE and the network side device to ensure the accuracy of reconstructing the uplink TCP ACK packet.
结合第一方面的第一种至第五种中的任一种可能实现方式,在第一方面的第六种可能实现方式中,所述UE接收网络侧设备发送的第一消息之前,所述方法还包括:所述UE向所述网络侧设备发送能力上报消息,所述能力上报消息用于表示所述UE支持数据包的单侧压缩。With reference to any one of the first to fifth possible implementations of the first aspect, in a sixth possible implementation manner of the first aspect, before the UE receives the first message sent by the network side device, The method further includes: the UE sending a capability report message to the network side device, where the capability report message is used to indicate that the UE supports one-side compression of the data packet.
结合第一方面的第一种至第六种中的任一种可能实现方式,在第一方面的第七种可能实现方式中,所述第一消息还包括所述网络侧设备指示的压缩方式;所述UE根据所述压缩指示信息对数据包进行处理,包括:所述UE根据所述压缩指示信息,采用所述指示的压缩方式对数据包进行处理,以确保网络侧设备和UE采用相同的压缩方式,保证数据传输的准确性。With reference to any one of the first to sixth possible implementations of the first aspect, in a seventh possible implementation of the first aspect, the first message further includes a compression manner indicated by the network side device And processing, by the UE, the data packet according to the compression indication information, including: the UE processing the data packet by using the indicated compression manner according to the compression indication information, to ensure that the network side device and the UE adopt the same The compression method ensures the accuracy of data transmission.
第二方面,本发明实施例提供一种数据包的压缩方法,包括:In a second aspect, an embodiment of the present invention provides a data packet compression method, including:
网络侧设备向用户设备UE发送第一消息,所述第一消息中包括压缩指示信息,所述压缩指示信息用于指示对数据包进行单侧压缩,所述单侧压缩为只对所述UE发送给所述网络侧设备的上行数据包进行压缩或者只对所述UE从网络侧设备接收的下行数据包进行压缩;所述网络侧设备根据所述压缩指示信息对数据包进行处理。由于压缩指示信息用于指示对数据包进行单侧压缩,且单侧压缩为只对UE发送给网络侧设备的上行数据包进行压缩或者只对UE从网络侧设备接收的下行数据包进行压缩,相当于仅对需要进行压缩的数据包进行压缩,避免了UE、网络侧设备进行不必要的压缩或解压缩处 理,通过实现单侧压缩的方法,不仅节省空口资源,提升网络容量,还可以降低UE和网络侧设备的处理器的负荷,延长了处理器的使用寿命。The network side device sends a first message to the user equipment UE, where the first message includes compression indication information, where the compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is only for the UE. The uplink data packet sent to the network side device is compressed or only the downlink data packet received by the UE from the network side device is compressed; and the network side device processes the data packet according to the compression indication information. The compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is to compress only the uplink data packet sent by the UE to the network side device, or only the downlink data packet received by the UE from the network side device. It is equivalent to compressing only the data packets that need to be compressed, so as to avoid unnecessary compression or decompression of the UE and the network side device. By implementing the one-side compression method, not only the air interface resources are saved, the network capacity is improved, but also the load of the processor of the UE and the network side device is reduced, and the service life of the processor is prolonged.
结合第二方面,在第二方面的第一种可能实现方式中,所述第一消息还包括业务标识信息或数据包类型,所述业务标识信息用于指示对业务标识对应的业务数据包进行单侧压缩,所述数据包类型用于指示对数据包类型对应的数据包进行单侧压缩。本实施例中,可以根据业务标识信息或数据包类型,对相应的业务或数据包进行单侧压缩,可以节省空口资源,提升网络容量。With reference to the second aspect, in a first possible implementation manner of the second aspect, the first message further includes a service identifier information or a data packet type, where the service identifier information is used to indicate that the service data packet corresponding to the service identifier is performed. Single-sided compression, the data packet type is used to indicate one-side compression of the data packet corresponding to the data packet type. In this embodiment, one-side compression of the corresponding service or data packet may be performed according to the service identification information or the data packet type, which may save air interface resources and improve network capacity.
结合第二方面或第二方面的第一种可能实现方式,在第二方面的第二种可能实现方式中,所述网络侧设备根据所述压缩指示信息对数据包进行处理,包括:所述网络侧设备接收所述UE发送的压缩数据包,并解析所述压缩数据包,获取变化特征参数;所述变化特征参数为数据包在传输过程中发生变化的参数;所述网络侧设备根据所述变化特征参数、源端口号和目的端口号重构上行确认ACK数据包;所述源端口号和所述目的端口号为初始化建立连接时获取的端口号;所述网络侧设备将重构的上行ACK数据包发送给服务器。网络UE对于上行TCP ACK数据包只需将部分发生变化的信息给网络侧设备,由网络侧设备根据这些变化的信息重新构造完整的上行TCP ACK包,有效减了少上行数据传输量,减少空口负担,提升上行网络容量。With the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the network side device processes the data packet according to the compression indication information, including: Receiving, by the network side device, the compressed data packet sent by the UE, and parsing the compressed data packet, and acquiring a change feature parameter; the change feature parameter is a parameter that changes a data packet during a transmission process; The change characteristic parameter, the source port number, and the destination port number reconstruct an uplink acknowledgement ACK packet; the source port number and the destination port number are port numbers obtained when the connection is initialized; the network side device is to be reconstructed The uplink ACK packet is sent to the server. The network UE only needs to change the partially changed information to the network side device for the uplink TCP ACK data packet, and the network side device reconstructs the complete uplink TCP ACK packet according to the changed information, thereby effectively reducing the uplink data transmission amount and reducing the air interface. Burden to increase the capacity of the uplink network.
结合第二方面的第二种可能实现方式,在第二方面的第三种可能实现方式中,所述变化特征参数包括序列号SN和确认序列号ACK SN。In conjunction with the second possible implementation of the second aspect, in a third possible implementation of the second aspect, the change characteristic parameter includes a sequence number SN and an acknowledgement sequence number ACK SN.
结合第二方面的第三种可能实现方式,在第二方面的第四种可能实现方式中,若所述UE与所述网络侧设备之间存在多条链路连接,则所述变化特征参数还包括链路连接标识LID;则所述网络侧设备根据所述变化特征参数、源端口号和目的端口号重构上行确认ACK数据包之前,所述方法还包括:所述网络侧设备根据所述LID,确定与所述LID对应的源端口号和目的端口号。采用链路连接标识表示UE与网络侧设备之间的不同链路连接,以保证重构上行TCP ACK数据包的准确性。With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, if a plurality of link connections exist between the UE and the network side device, the change feature parameter The method further includes: before the network side device reconstructs the uplink acknowledgement ACK packet according to the change feature parameter, the source port number, and the destination port number, the method further includes: the network side device according to the The LID determines a source port number and a destination port number corresponding to the LID. The link connection identifier is used to indicate different link connections between the UE and the network side device to ensure the accuracy of reconstructing the uplink TCP ACK packet.
结合第二方面的第二种至第四种中的任一种可能实现方式,在第二方面的第五种可能实现方式中,所述方法还包括:当所述网络侧设备检测到所述UE从源小区切换到目标小区时,将携带所述变化特征参数的切换请求命令发送给所述目标小区对应的网络侧设备;或者,当所述网络侧设备检测到所述 UE从源小区切换到目标小区时,将携带所述变化特征参数的缓存数据转发给所述目标小区对应的网络侧设备,在切换场景下,将源网络侧设备的变化特征信息携带在切换请求命令或转发数据中发送到目标网络侧设备,不仅可以保持单侧压缩的连续性,还减少单独发送变化特征信息造成的带宽资源的浪费。With reference to the possible implementation of any one of the second to fourth aspects of the second aspect, in a fifth possible implementation manner of the second aspect, the method further includes: when the network side device detects the When the UE switches from the source cell to the target cell, the handover request command that carries the change feature parameter is sent to the network side device corresponding to the target cell; or, when the network side device detects the When the UE is handed over from the source cell to the target cell, the cached data carrying the change feature parameter is forwarded to the network side device corresponding to the target cell, and in the handover scenario, the change feature information of the source network side device is carried in the handover request. The command or forwarding data is sent to the target network side device, which not only maintains the continuity of the one-side compression, but also reduces the waste of bandwidth resources caused by separately transmitting the change feature information.
结合第二方面的第一种至第五种中的任一种可能实现方式,在第二方面的第六种可能实现方式中,所述网络侧设备向用户设备UE发送第一消息之前,所述方法还包括:所述网络侧设备接收所述UE发送能力上报消息,所述能力上报消息用于表示所述UE支持数据包的单侧压缩。With the possible implementation of any one of the first to fifth aspects of the second aspect, in a sixth possible implementation manner of the second aspect, before the network side device sends the first message to the user equipment UE, The method further includes: the network side device receiving the UE sending capability report message, where the capability report message is used to indicate that the UE supports one-side compression of a data packet.
结合第二方面的第一种至第六种中的任一种可能实现方式,在第二方面的第七种可能实现方式中,所述第一消息还包括所述网络侧设备指示的压缩方式;所述网络侧设备根据所述压缩指示信息对数据包进行处理,包括:所述网络侧设备根据所述压缩指示信息,采用所述指示的压缩方式对数据包进行处理,以确保网络侧设备和UE采用相同的压缩方式,保证数据传输的准确性。With the possible implementation of any one of the first to sixth aspects of the second aspect, in a seventh possible implementation manner of the second aspect, the first message further includes a compression manner indicated by the network side device The network side device processes the data packet according to the compression indication information, and the network side device processes the data packet by using the indicated compression manner according to the compression indication information to ensure the network side device. The same compression method is adopted for the UE to ensure the accuracy of data transmission.
第三方面,本发明实施例提供一种数据包的压缩装置,包括:In a third aspect, an embodiment of the present invention provides a data packet compression apparatus, including:
接收模块,用于接收网络侧设备发送的第一消息,所述第一消息中包括压缩指示信息,所述压缩指示信息用于指示对数据包进行单侧压缩,所述单侧压缩为只对用户设备UE发送给所述网络侧设备的上行数据包进行压缩或者只对所述UE从所述网络侧设备接收的下行数据包进行压缩;a receiving module, configured to receive a first message sent by the network side device, where the first message includes compression indication information, where the compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is only Uplink data packets sent by the user equipment UE to the network side device are compressed or only downlink data packets received by the UE from the network side device are compressed;
处理模块,用于根据所述压缩指示信息对数据包进行处理。And a processing module, configured to process the data packet according to the compression indication information.
结合第三方面,在第三方面的第一种可能实现方式中,所述第一消息还包括业务标识信息或数据包类型,所述业务标识信息用于指示对业务标识对应的业务数据包进行单侧压缩,所述数据包类型用于指示对数据包类型对应的数据包进行单侧压缩。With reference to the third aspect, in a first possible implementation manner of the third aspect, the first message further includes service identifier information or a data packet type, where the service identifier information is used to indicate that the service data packet corresponding to the service identifier is performed. Single-sided compression, the data packet type is used to indicate one-side compression of the data packet corresponding to the data packet type.
结合第三方面或第三方面的第一种可能实现方式,在第三方面的第二种可能实现方式中,所述处理模块包括:With reference to the third aspect, or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the processing module includes:
确定子模块,用于确定所述数据包的类型;Determining a submodule for determining a type of the data packet;
压缩子模块,用于若所述数据包的类型为上行传输控制协议确认TCP ACK数据包,则所述UE对所述上行TCP ACK数据包进行压缩。 And a compression submodule, configured to compress the uplink TCP ACK packet if the type of the data packet is an uplink transmission control protocol acknowledgement TCP ACK packet.
结合第三方面的第二种可能实现方式,在第三方面的第三种可能实现方式中,所述压缩子模块具体用于获取所述上行TCP ACK数据包中的变化特征参数,以生成压缩数据包;并将所述压缩数据包发送给所述网络侧设备,以使所述网络侧设备根据所述变化特征参数重构所述上行TCP ACK数据包,所述变化特征参数为数据包在传输过程中发生变化的参数。In conjunction with the second possible implementation of the third aspect, in a third possible implementation manner of the third aspect, the compression sub-module is specifically configured to acquire a change characteristic parameter in the uplink TCP ACK packet to generate a compression Sending the compressed data packet to the network side device, so that the network side device reconstructs the uplink TCP ACK data packet according to the change characteristic parameter, where the change characteristic parameter is a data packet A parameter that changes during transmission.
结合第三方面的第三种可能实现方式,在第三方面的第四种可能实现方式中,所述变化特征参数包括序列号SN和确认序列号ACK SN。In conjunction with the third possible implementation of the third aspect, in a fourth possible implementation manner of the third aspect, the change characteristic parameter includes a sequence number SN and an acknowledgement sequence number ACK SN.
结合第三方面的第四种可能实现方式,在第三方面的第五种可能实现方式中,若所述UE与所述网络侧设备之间存在多条链路连接,则所述变化特征参数还包括链路连接标识。With reference to the fourth possible implementation manner of the third aspect, in a fifth possible implementation manner of the third aspect, if there are multiple link connections between the UE and the network side device, the change feature parameter It also includes a link connection identifier.
结合第三方面的第一种至第五种中的任一种可能实现方式,在第三方面的第六种可能实现方式中,所述装置还包括:With reference to the possible implementation of any one of the first to fifth aspects of the third aspect, in a sixth possible implementation manner of the third aspect, the device further includes:
发送模块,用于向所述网络侧设备发送能力上报消息,所述能力上报消息用于表示所述UE支持数据包的单侧压缩。And a sending module, configured to send a capability report message to the network side device, where the capability report message is used to indicate that the UE supports one-side compression of the data packet.
结合第三方面的第一种至第六种中的任一种可能实现方式,在第三方面的第七种可能实现方式中,所述第一消息还包括所述网络侧设备指示的压缩方式;则所述处理模块具体用于根据所述压缩指示信息,采用所述指示的压缩方式对数据包进行处理。With the possible implementation of any one of the first to sixth aspects of the third aspect, in a seventh possible implementation manner of the third aspect, the first message further includes a compression manner indicated by the network side device And the processing module is configured to process the data packet by using the indicated compression manner according to the compression indication information.
本实施例提供的装置,用于执行第一方面任一实施例所述方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device provided in this embodiment is used to implement the technical solution of the method embodiment in any of the first embodiments. The implementation principle and technical effects are similar, and details are not described herein again.
第四方面,本发明实施例提供一种数据包的压缩装置,包括:In a fourth aspect, an embodiment of the present invention provides a data packet compression apparatus, including:
发送模块,用于向用户设备UE发送第一消息,所述第一消息中包括压缩指示信息,所述压缩指示信息用于指示对数据包进行单侧压缩,所述单侧压缩为只对所述UE发送给网络侧设备的上行数据包进行压缩或者只对所述UE从网络侧设备接收的下行数据包进行压缩;a sending module, configured to send a first message to the user equipment UE, where the first message includes compression indication information, where the compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is only The uplink data packet sent by the UE to the network side device is compressed or only the downlink data packet received by the UE from the network side device is compressed;
处理模块,用于根据所述压缩指示信息对数据包进行处理。And a processing module, configured to process the data packet according to the compression indication information.
结合第四方面,在第四方面的第一种可能实现方式中,所述第一消息还包括业务标识信息或数据包类型,所述业务标识信息用于指示对业务标识对应的业务数据包进行单侧压缩,所述数据包类型用于指示对数据包类型对应的数据包进行单侧压缩。 With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the first message further includes a service identifier information or a data packet type, where the service identifier information is used to indicate that the service data packet corresponding to the service identifier is performed. Single-sided compression, the data packet type is used to indicate one-side compression of the data packet corresponding to the data packet type.
结合第四方面或第四方面的第一种可能实现方式,在第四方面的第二种可能实现方式中,所述处理模块包括具体用于接收所述UE发送的压缩数据包,并解析所述压缩数据包,获取变化特征参数;所述变化特征参数为数据包在传输过程中发生变化的参数;根据所述变化特征参数、源端口号和目的端口号重构上行确认ACK数据包;所述源端口号和所述目的端口号为初始化建立连接时获取的端口号;并通过所述发送模块将重构的上行ACK数据包发送给服务器。With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the processing module is configured to receive the compressed data packet sent by the UE, and parse the Compressing the data packet to obtain a change characteristic parameter; the change characteristic parameter is a parameter in which the data packet changes during the transmission; and reconstructing the uplink acknowledgement ACK data packet according to the change characteristic parameter, the source port number, and the destination port number; The source port number and the destination port number are port numbers obtained when the connection is initialized, and the reconstructed uplink ACK data packet is sent to the server by using the sending module.
结合第四方面的第二种可能实现方式,在第四方面的第三种可能实现方式中,所述变化特征参数包括序列号SN和确认序列号ACK SN。With reference to the second possible implementation manner of the fourth aspect, in a third possible implementation manner of the fourth aspect, the change characteristic parameter includes a sequence number SN and an acknowledgement sequence number ACK SN.
结合第四方面的第三种可能实现方式,在第四方面的第四种可能实现方式中,若所述UE与所述网络侧设备之间存在多条链路连接,则所述变化特征参数还包括链路连接标识LID;With reference to the third possible implementation manner of the fourth aspect, in a fourth possible implementation manner of the fourth aspect, if there are multiple link connections between the UE and the network side device, the change feature parameter Also includes a link connection identifier LID;
则所述处理模块还用于根据所述LID,确定与所述LID对应的源端口号和目的端口号。The processing module is further configured to determine, according to the LID, a source port number and a destination port number corresponding to the LID.
结合第四方面的第二种至第四种的任一种可能实现方式,在第四方面的第五种可能实现方式中,所述发送模块还用于当检测到所述UE从源小区切换到目标小区时,将携带所述变化特征参数的切换请求命令发送给所述目标小区对应的网络侧设备;With the possible implementation of the second to fourth aspects of the fourth aspect, in a fifth possible implementation manner of the fourth aspect, the sending module is further configured to: when detecting that the UE is switched from a source cell When the target cell is used, the handover request command that carries the change feature parameter is sent to the network side device corresponding to the target cell;
或者,or,
所述发送模块还用于当所述网络侧设备检测到所述UE从源小区切换到目标小区时,将携带所述变化特征参数的缓存数据转发给所述目标小区对应的网络侧设备。The sending module is further configured to: when the network side device detects that the UE is handed over from the source cell to the target cell, forward the cached data that carries the change feature parameter to the network side device corresponding to the target cell.
结合第四方面的第一种至第五种的任一种可能实现方式,在第四方面的第六种可能实现方式中,所述装置还包括:With reference to any one of the first to fifth possible implementations of the fourth aspect, in a sixth possible implementation manner of the fourth aspect, the device further includes:
接收模块,用于接收所述UE发送能力上报消息,所述能力上报消息用于表示所述UE支持数据包的单侧压缩。The receiving module is configured to receive the sending capability report message of the UE, where the capability report message is used to indicate that the UE supports one-side compression of the data packet.
结合第四方面的第一种至第六种的任一种可能实现方式,在第四方面的第七种可能实现方式中,所述第一消息还包括所述网络侧设备指示的压缩方式;With reference to any one of the first to sixth possible implementation manners of the fourth aspect, in a seventh possible implementation manner of the fourth aspect, the first message further includes a compression manner indicated by the network side device;
则所述处理模块具体用于根据所述压缩指示信息,采用所述指示的压缩 方式对数据包进行处理。The processing module is specifically configured to adopt the compression of the indication according to the compression indication information. The way to process the packet.
本实施例提供的装置,用于执行第二方面任一实施例所述方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device provided in this embodiment is used to implement the technical solution of the method embodiment in any of the embodiments of the second aspect, and the implementation principle and the technical effect are similar, and details are not described herein again.
附图说明DRAWINGS
图1为本发明实施例提供的数据包的压缩方法的应用场景示意图;FIG. 1 is a schematic diagram of an application scenario of a method for compressing a data packet according to an embodiment of the present disclosure;
图2为本发明实施例一提供的数据包的压缩方法的流程图;2 is a flowchart of a method for compressing a data packet according to Embodiment 1 of the present invention;
图3为本发明实施例二提供的数据包的压缩方法的流程图;3 is a flowchart of a method for compressing a data packet according to Embodiment 2 of the present invention;
图4为本发明实施例三提供的数据包的压缩方法的交互流程图;4 is an interaction flowchart of a method for compressing a data packet according to Embodiment 3 of the present invention;
图5为本发明实施例四提供的数据包的压缩装置结构示意图;FIG. 5 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 4 of the present invention; FIG.
图6为本发明实施例五提供的数据包的压缩装置结构示意图;6 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 5 of the present invention;
图7为本发明实施例六提供的数据包的压缩装置结构示意图;FIG. 7 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 6 of the present invention; FIG.
图8为本发明实施例七提供的数据包的压缩装置结构示意图;8 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 7 of the present invention;
图9为本发明实施例八提供的数据包的压缩装置结构示意图;9 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 8 of the present invention;
图10为本发明实施例九提供的一种用户设备的结构示意图。FIG. 10 is a schematic structural diagram of a user equipment according to Embodiment 9 of the present invention.
具体实施方式detailed description
图1为本发明实施例提供的数据包的压缩方法的应用场景示意图。本发明的数据包的压缩方法应用于无线通信系统中,具体的可以应用于物联网中、通用陆地无线接入网络(Universal Terrestrial Radio Access Network,简称UTRAN)、演进的通用陆地无线接入网络(Evolved Universal Terrestrial Radio Access Network,简称E-UTRAN)等无线通信系统中。如图1所示,该场景的系统架构中包含用户设备(User Equipment,简称UE)1、UE2、UE3、网络侧设备4以及服务器5。UE可以是指无线通信系统中的用户设备,具体的可以是各种类型的终端、传感器、机器类设备等。网络侧设备可以为接入网设备、核心网设备,网络侧设备也可以包括接入网设备和核心网设备,网络侧设备还可以为进行业务数据传递过程中的任意中继设备,具体的,网络侧设备可以为演进型基站(Evolved Node B,简称eNB)、核心网节点等网络侧的控制节点。FIG. 1 is a schematic diagram of an application scenario of a method for compressing a data packet according to an embodiment of the present invention. The compression method of the data packet of the present invention is applied to a wireless communication system, and can be specifically applied to an Internet of Things, a Universal Terrestrial Radio Access Network (UTRAN), and an evolved universal terrestrial wireless access network ( In a wireless communication system such as Evolved Universal Terrestrial Radio Access Network (E-UTRAN). As shown in FIG. 1 , the system architecture of the scenario includes User Equipment (UE) 1, UE2, UE3, network side device 4, and server 5. The UE may refer to a user equipment in a wireless communication system, and may specifically be various types of terminals, sensors, machine type devices, and the like. The network side device may be an access network device or a core network device, and the network side device may also include an access network device and a core network device, and the network side device may also be any relay device in the process of performing service data transmission, specifically, The network side device may be a control node on the network side such as an Evolved Node B (eNB) or a core network node.
图2为本发明实施例一提供的数据包的压缩方法的流程图。该方法基于 图1所示的场景,由UE和网络侧设备交互完成。如图2所示,该方法包括以下步骤:FIG. 2 is a flowchart of a method for compressing a data packet according to Embodiment 1 of the present invention. The method is based on The scenario shown in Figure 1 is performed by the UE and the network side device. As shown in FIG. 2, the method includes the following steps:
步骤101、UE接收网络侧设备发送的第一消息,第一消息中包括压缩指示信息,压缩指示信息用于指示对数据包进行单侧压缩,单侧压缩为只对UE发送给网络侧设备的上行数据包进行压缩或者只对UE从网络侧设备接收的下行数据包进行压缩。Step 101: The UE receives the first message sent by the network side device, where the first message includes compression indication information, where the compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is only sent to the network side device by the UE. The uplink data packet is compressed or only the downlink data packet received by the UE from the network side device is compressed.
在本实施例中,当UE与网络侧设备之间有业务需要传输数据包之前,网络侧设备会向UE下发第一消息,指示对UE发送给网络侧设备的上行数据包进行压缩或者只对UE从网络侧设备接收的下行数据包进行压缩。例如,对于TCP业务而言,其上行数据包的90%为TCP ACK数据包,而TCP ACK包的包头与净负荷的比值较大,为了节省空口资源,可以预先约定仅对基于TCP的业务的上行数据包进行压缩,则该第一消息中的压缩指示信息用于指示只对UE发送给网络侧设备的上行数据包进行压缩。其中,上行数据包为UE发送给网路侧设备的数据包,下行数据包为网络侧设备发送给UE的数据包。In this embodiment, before the service between the UE and the network side device needs to transmit the data packet, the network side device sends a first message to the UE, indicating that the uplink data packet sent by the UE to the network side device is compressed or only The downlink data packet received by the UE from the network side device is compressed. For example, for TCP services, 90% of the uplink packets are TCP ACK packets, and the ratio of the header to the payload of the TCP ACK packet is large. To save air interface resources, it is possible to pre-agreed only for TCP-based services. The uplink data packet is compressed, and the compression indication information in the first message is used to indicate that only the uplink data packet sent by the UE to the network side device is compressed. The uplink data packet is a data packet sent by the UE to the network side device, and the downlink data packet is a data packet sent by the network side device to the UE.
相应的,网络侧设备向用户设备UE发送第一消息,第一消息中包括压缩指示信息,压缩指示信息用于指示对数据包进行单侧压缩,单侧压缩为只对UE发送给网络侧设备的上行数据包进行压缩或者只对UE从网络侧设备接收的下行数据包进行压缩。Correspondingly, the network side device sends the first message to the user equipment UE, where the first message includes the compression indication information, the compression indication information is used to indicate that the data packet is unilaterally compressed, and the one-side compression is only sent to the network side device for the UE. The uplink data packet is compressed or only the downlink data packet received by the UE from the network side device is compressed.
在本实施例中,网络侧设备可以是在连接建立后向UE发送第一消息,也可以是在某些触发条件下向UE发送第一消息,例如,网络侧设备在UE进行能力上报时,向UE发送第一消息,或者是网络侧设备被更新或者按照预设时间间隔向UE发送第一消息等。可选地,该第一消息可以为公共消息,例如系统广播消息。In this embodiment, the network side device may send the first message to the UE after the connection is established, or may send the first message to the UE under certain triggering conditions, for example, when the network side device performs the capability reporting on the UE, Sending a first message to the UE, or the network side device is updated or sends a first message or the like to the UE according to a preset time interval. Optionally, the first message may be a public message, such as a system broadcast message.
步骤102、UE根据压缩指示信息对数据包进行处理。Step 102: The UE processes the data packet according to the compression indication information.
在本实施例中,UE根据压缩指示信息对数据包进行响应的处理,例如,若压缩指示信息指示只对UE发送给网络侧设备的上行数据包进行压缩,则UE根据压缩指示信息对发送给网络侧设备的的数据包进行压缩;若压缩指示信息指示只对UE从网络侧设备接收的下行数据包进行压缩,则UE对接收到的数据包进行解压缩。 In this embodiment, the UE responds to the data packet according to the compression indication information. For example, if the compression indication information indicates that only the uplink data packet sent by the UE to the network side device is compressed, the UE sends the information according to the compression indication information pair. The data packet of the network side device is compressed; if the compression indication information indicates that only the downlink data packet received by the UE from the network side device is compressed, the UE decompresses the received data packet.
相应的,网络侧设备根据压缩指示信息对数据包进行处理。Correspondingly, the network side device processes the data packet according to the compression indication information.
在本实施例中,若压缩指示信息指示只对UE发送给网络侧设备的上行数据包进行压缩,则网络侧设备对UE发送的数据包进行解压缩;若压缩指示信息指示只对UE从网络侧设备接收的下行数据包进行压缩,则网络侧设备对发送给UE的数据包进行压缩。In this embodiment, if the compression indication information indicates that only the uplink data packet sent by the UE to the network side device is compressed, the network side device decompresses the data packet sent by the UE; if the compression indication information indicates that only the UE is from the network The downlink data packet received by the side device is compressed, and the network side device compresses the data packet sent to the UE.
本实施例提供的数据包的压缩方法,UE接收网络侧设备发送的包括压缩指示信息的第一消息,并根据压缩指示信息对数据包进行处理,由于压缩指示信息用于指示对数据包进行单侧压缩,且单侧压缩为只对UE发送给网络侧设备的上行数据包进行压缩或者只对UE从网络侧设备接收的下行数据包进行压缩,相当于仅对需要进行压缩的数据包进行压缩,避免了UE、网络侧设备进行不必要的压缩或解压缩处理,通过实现单侧压缩的方法,不仅节省空口资源,提升网络容量,还可以降低UE和网络侧设备的处理器的负荷,延长了处理器的使用寿命。The method for compressing a data packet provided by the embodiment, the UE receives the first message that is sent by the network side device and includes the compression indication information, and processes the data packet according to the compression indication information, where the compression indication information is used to indicate that the data packet is The side is compressed, and the one-side compression is to compress only the uplink data packet sent by the UE to the network side device or only the downlink data packet received by the UE from the network side device, which is equivalent to compressing only the data packet that needs to be compressed. The UE and the network side device are prevented from performing unnecessary compression or decompression processing. By implementing the one-side compression method, not only the air interface resources are saved, the network capacity is improved, but also the load of the processor of the UE and the network side device is reduced, and the load is extended. The service life of the processor.
图3为本发明实施例二提供的数据包的压缩方法的流程图。如图3所示,该方法包括以下步骤:FIG. 3 is a flowchart of a method for compressing a data packet according to Embodiment 2 of the present invention. As shown in FIG. 3, the method includes the following steps:
步骤201、UE接收网络侧设备发送的第一消息,第一消息中包括压缩指示信息,若压缩指示信息为上行压缩指示信息,则执行步骤202;若压缩指示信息为下行压缩指示信息,则执行步骤203。Step 201: The UE receives the first message sent by the network side device, where the first message includes the compression indication information, if the compression indication information is the uplink compression indication information, step 202 is performed, and if the compression indication information is the downlink compression indication information, the UE performs Step 203.
其中,上行压缩指示信息用于指示只对UE发送给网络侧设备的上行数据包进行压缩,下行压缩指示信息用于指示只对UE从网络侧设备接收的下行数据包进行压缩。The uplink compression indication information is used to indicate that only the uplink data packet sent by the UE to the network side device is compressed, and the downlink compression indication information is used to indicate that only the downlink data packet received by the UE from the network side device is compressed.
进一步地,该第一消息中还可能包含业务标识或者数据包类型,业务标识信息用于指示对业务标识对应的业务数据包进行单侧压缩,所述数据包类型用于指示对数据包类型对应的数据包进行单侧压缩,例如:当业务标识信息对应的业务为视频业务时,UE对视频业务数据包进行压缩,或者,当数据包类型为TCP ACK时,UE对TCP ACK数据包进行压缩。Further, the first message may further include a service identifier or a data packet type, where the service identifier information is used to indicate one-side compression of the service data packet corresponding to the service identifier, and the data packet type is used to indicate that the data packet type corresponds to The data packet is compressed on one side. For example, when the service corresponding to the service identification information is a video service, the UE compresses the video service data packet, or when the data packet type is TCP ACK, the UE compresses the TCP ACK data packet. .
在本实施例中,以TCP业务为例来说,这里的压缩以头压缩为例,网络侧设备在下发的第一消息中设置IE:PDCP-Config字段,并在IE:PDCP-Config字段下的headerCompression字段中增加ULnotUsed和DLnotUsed两个字段:当headerCompression下存在ULnotUsed字段时,指示UE上行数据包不需要 进行头压缩,则说明只对UE从网络侧设备接收的下行数据包进行头压缩,也即由网路侧设备对发送给UE的数据包进行头压缩,UE对从网路侧设备接收到的数据包进行解压缩。或者,当headerCompression下存在DLnotUsed字段时,指示UE下行数据没有进行头压缩,也即只对UE发送给网络侧设备的上行数据包进行头压缩,UE对发送给网路侧设备的数据包进行头压缩,且不对下行数据包进行解压缩。In this embodiment, taking the TCP service as an example, the compression is performed by using the header compression as an example. The network side device sets the IE:PDCP-Config field in the first message sent, and in the IE:PDCP-Config field. Added two fields of ULnotUsed and DLnotUsed in the headerCompression field: when there is a ULnotUsed field under headerCompression, it indicates that the UE does not need uplink packets. Performing header compression means that only the downlink data packet received by the UE from the network side device is header-compressed, that is, the network side device performs header compression on the data packet sent to the UE, and the UE receives the received data from the network side device. The packet is decompressed. Or, when the DLnotUsed field exists in the headerCompression, the UE indicates that the downlink data of the UE is not subjected to header compression, that is, only the uplink data packet sent by the UE to the network side device is header-compressed, and the UE performs header processing on the data packet sent to the network side device. Compressed and does not decompress downstream packets.
需要说明的是,本实施例中对上行数据包进行压缩、或者对下行数据包进行压缩仅是举例说明,ULnotUsed以及DLnotUsed也只是一种可能的实现方式,本领域技术人员也可以定义其它的字段名称来约定对上行数据包进行压缩或者对下行数据包进行压缩,本发明中不加以限制。It should be noted that, in this embodiment, the compression of the uplink data packet or the compression of the downlink data packet is only an example. The ULnotUsed and the DLnotUsed are also only one possible implementation manner, and other fields may be defined by those skilled in the art. The name stipulates that the uplink data packet is compressed or the downlink data packet is compressed, which is not limited in the present invention.
步骤202、UE根据上行压缩指示信息对UE发送给网络侧设备的上行数据包进行压缩。Step 202: The UE compresses the uplink data packet sent by the UE to the network side device according to the uplink compression indication information.
相应的,对于网络侧设备,若压缩指示信息为上行压缩指示信息,上行压缩指示信息用于指示只对UE发送给网络侧设备的上行数据包进行压缩;则网络侧设备根据压缩指示信息对数据包进行处理,包括:网络侧设备根据上行压缩指示信息对UE发送给网络侧设备的上行数据包进行解压缩。Correspondingly, for the network side device, if the compression indication information is the uplink compression indication information, the uplink compression indication information is used to indicate that only the uplink data packet sent by the UE to the network side device is compressed; and the network side device uses the compression indication information to compare the data. The packet is processed, and the network side device decompresses the uplink data packet sent by the UE to the network side device according to the uplink compression indication information.
步骤203、UE根据下行压缩指示信息对UE从网络侧设备接收的下行数据包进行解压缩。Step 203: The UE decompresses the downlink data packet received by the UE from the network side device according to the downlink compression indication information.
相应的,对于网络侧设备,压缩指示信息为下行压缩指示信息,下行压缩指示信息用于指示只对UE从网络侧设备接收的下行数据包进行压缩;则网络侧设备根据压缩指示信息对数据包进行处理,包括:网络侧设备根据下行压缩指示信息对网络侧设备发送给UE的下行数据包进行压缩。Correspondingly, for the network side device, the compression indication information is downlink compression indication information, and the downlink compression indication information is used to indicate that only the downlink data packet received by the UE from the network side device is compressed; and the network side device uses the compression indication information to the data packet. The processing includes: compressing, by the network side device, the downlink data packet sent by the network side device to the UE according to the downlink compression indication information.
本实施例提供的数据包的压缩方法,UE接收网络侧设备发送的包括压缩指示信息的第一消息,若压缩指示信息为上行压缩指示信息,UE根据上行压缩指示信息对UE发送给网络侧设备的上行数据包进行压缩,若压缩指示信息为下行压缩指示信息,UE根据下行压缩指示信息对UE从网络侧设备接收的下行数据包进行解压缩,通过在第一消息中设置不同的压缩指示信息来实现单侧数据包的压缩,方法简单,易于实现,节省空口资源,提升网络容量,还降低了UE和网络侧设备的处理器的负荷,延长了处理器的使用寿命。In the data packet compression method provided by the embodiment, the UE receives the first message that includes the compression indication information that is sent by the network side device, and if the compression indication information is the uplink compression indication information, the UE sends the UE to the network side device according to the uplink compression indication information. The uplink data packet is compressed. If the compression indication information is the downlink compression indication information, the UE decompresses the downlink data packet received by the UE from the network side device according to the downlink compression indication information, and sets different compression indication information in the first message. To achieve single-side data packet compression, the method is simple, easy to implement, saves air interface resources, improves network capacity, and reduces the load on the processor of the UE and the network side device, thereby prolonging the service life of the processor.
图4为本发明实施例三提供的数据包的压缩方法的交互流程图。本实施 例主要提供了一种对上行数据包进行压缩的方法,如图4所示,该方法包括以下步骤:FIG. 4 is an interaction flowchart of a method for compressing data packets according to Embodiment 3 of the present invention. This implementation The example mainly provides a method for compressing an uplink data packet. As shown in FIG. 4, the method includes the following steps:
步骤301(图中未示出)、UE确定数据包的类型。Step 301 (not shown), the UE determines the type of the data packet.
在本实施例中,可以按照业务标识、业务类型、数据包的作用等将数据包划分为不同的类型,例如,数据包可以划分为正常TCP数据包、TCP ACK数据包等。In this embodiment, the data packet may be classified into different types according to the service identifier, the service type, the role of the data packet, etc., for example, the data packet may be divided into a normal TCP data packet, a TCP ACK data packet, and the like.
可选地,步骤301、具体包括以下步骤:Optionally, step 301 includes the following steps:
步骤3011、UE根据上行数据包中的ACK标记值和数据长度确定上行数据包的类型。Step 3011: The UE determines the type of the uplink data packet according to the ACK mark value and the data length in the uplink data packet.
在本实施例中,UE的分组数据汇聚协议(Packet Data Convergence Protocol,简称PDCP)层或者无线链路控制(Radio Link Control,简称RLC)层在收到上层TCP发送过来的TCP数据包时,解析该TCP数据包的包头部分,可以获取ACK标记值和数据长度。In this embodiment, the Packet Data Convergence Protocol (PDCP) layer or the Radio Link Control (RLC) layer of the UE is parsed when receiving the TCP packet sent by the upper layer TCP. The header part of the TCP packet can obtain the ACK tag value and the data length.
步骤3012、若ACK标记值为1,且数据长度为0,则确认该数据包为上行TCP ACK数据包。Step 3012: If the ACK flag value is 1, and the data length is 0, it is confirmed that the data packet is an uplink TCP ACK data packet.
在本实施例中,UE进行如下判断:如果解析数据包头获得的ACK标记值为1,且数据长度大于0,则该数据包是正常TCP数据包,对该数据包不进行任何处理,正常递交到下层;如果解析数据包头获得的ACK标记置为1,且数据长度等于0,则该数据包是上行TCP ACK数据包。In this embodiment, the UE performs the following determination: if the ACK flag value obtained by parsing the data packet header is 1 and the data length is greater than 0, the data packet is a normal TCP data packet, and no processing is performed on the data packet, and the normal delivery is performed. To the lower layer; if the ACK flag obtained by parsing the packet header is set to 1, and the data length is equal to 0, the packet is an uplink TCP ACK packet.
需要说明的是,上述判断方式仅仅为一种可行的判断方式,UE在判断TCP ACK数据包是否可以压缩时还可以判断SYN,或者timestamp或者option域是否有效,如果有效也不进行压缩。It should be noted that the foregoing determining manner is only a feasible determining manner. When determining whether the TCP ACK packet can be compressed, the UE can also determine whether the SYN, or the timestamp or the option field is valid, and if not, the compression is not performed.
步骤302(图中未示出)、若上行数据包的类型为上行TCP ACK数据包,则UE对上行TCP ACK数据包进行压缩。Step 302 (not shown), if the type of the uplink data packet is an uplink TCP ACK data packet, the UE compresses the uplink TCP ACK data packet.
可选地,步骤302具体包括以下步骤:Optionally, step 302 specifically includes the following steps:
步骤3021、UE获取上行TCP ACK数据包中的变化特征参数,以生成压缩数据包。Step 3021: The UE acquires a change feature parameter in the uplink TCP ACK packet to generate a compressed data packet.
其中,变化特征参数为数据包在传输过程中发生变化的参数。The change characteristic parameter is a parameter that the data packet changes during the transmission process.
可选地,变化特征参数包括序列号(Serial Number,简称SN)和(Acknowledgement Serial Number,简称ACK SN)。 Optionally, the change feature parameters include a serial number (SN) and an Acknowledgement Serial Number (ACK SN).
可选地,若UE与网络侧设备之间存在多条链路连接,则变化特征参数还包括链路连接标识(Link Connection Identifier,简称LID)。LID用于标识UE与网络侧设备之间的不同链路连接,以保证重构上行ACK数据包的准确性。可选地,该链路连接标识可以为逻辑信道编号、TCP连接编号等,在此不作限定。Optionally, if there are multiple link connections between the UE and the network side device, the change feature parameter further includes a Link Connection Identifier (LID). The LID is used to identify different link connections between the UE and the network side device to ensure the accuracy of reconstructing the uplink ACK data packet. Optionally, the link connection identifier may be a logical channel number, a TCP connection number, or the like, which is not limited herein.
可选地,UE的还可以在压缩数据包的报头添加压缩指示信息,压缩指示信息用于表示该数据包为经过压缩的数据包。当网络侧设备接收到的压缩数据包中包括压缩指示信息时,网络侧设备根据压缩准则填写SN、ACK SN、源端口号、目的端口号重构出压缩前的上行TCP ACK数据包。Optionally, the UE may further add compression indication information in a header of the compressed data packet, where the compression indication information is used to indicate that the data packet is a compressed data packet. When the compressed data packet received by the network side device includes the compression indication information, the network side device reconstructs the uplink TCP ACK data packet before compression according to the compression criterion, including the SN, the ACK SN, the source port number, and the destination port number.
可选地,UE也可以与网络侧设备可以预先约定上行数据包为压缩数据包,当网络侧设备接收到包括SN和ACK SN的压缩数据包时,网络侧设备默认该数据包为经过压缩的数据包,则根据SN、ACK SN、源端口号和目的端口号重构上行ACK数据包。Optionally, the UE may also pre-arrange the uplink data packet as a compressed data packet with the network side device. When the network side device receives the compressed data packet including the SN and the ACK SN, the network side device defaults the data packet to the compressed data packet. The data packet reconstructs the uplink ACK packet according to the SN, the ACK SN, the source port number, and the destination port number.
步骤3022、UE将压缩数据包发送给网络侧设备,以使网络侧设备根据变化特征参数重构上行ACK数据包。Step 3022: The UE sends the compressed data packet to the network side device, so that the network side device reconstructs the uplink ACK data packet according to the change feature parameter.
在本实施例中,步骤303-步骤305为网络侧设备根据上行压缩指示信息对UE发送给网络侧设备的上行数据包进行解压缩的过程。In this embodiment, step 303-step 305 is a process in which the network side device decompresses the uplink data packet sent by the UE to the network side device according to the uplink compression indication information.
步骤303、网络侧设备接收UE发送的压缩数据包,并解析压缩数据包,获取变化特征参数;变化特征参数为数据包在传输过程中发生变化的参数。。Step 303: The network side device receives the compressed data packet sent by the UE, and parses the compressed data packet to obtain a change feature parameter. The change feature parameter is a parameter that changes the data packet during the transmission process. .
步骤304、网络侧设备根据变化特征参数、源端口号和目的端口号重构上行确认ACK数据包;源端口号和目的端口号为初始化建立连接时获取的端口号。Step 304: The network side device reconstructs an uplink acknowledgement ACK packet according to the change feature parameter, the source port number, and the destination port number. The source port number and the destination port number are port numbers obtained when the connection is initialized.
步骤305、网络侧设备将重构的上行ACK数据包发送给服务器。Step 305: The network side device sends the reconstructed uplink ACK data packet to the server.
在本实施例中,作为一种实施方式,在初始化三次握手建立TCP连接的时候,网络侧设备的PDCP层或者RLC层解析数据包包头获得源端口号和目的端口号,并在重构上行ACK数据包之后,将重构的上行ACK数据包发送给服务器。In this embodiment, as an implementation manner, when the three-way handshake is established to establish a TCP connection, the PDCP layer or the RLC layer of the network side device parses the data packet header to obtain the source port number and the destination port number, and reconstructs the uplink ACK. After the data packet, the reconstructed uplink ACK packet is sent to the server.
可选地,若UE与网络侧设备之间存在多条链路连接,则变化特征参数还包括链路连接标识LID;则网络侧设备根据变化特征参数、源端口号和目的端口号重构上行确认ACK数据包之前,方法还包括:网络侧设备根据LID, 确定与LID对应的源端口号和目的端口号。Optionally, if there are multiple link connections between the UE and the network side device, the change feature parameter further includes a link connection identifier LID; and the network side device reconstructs the uplink according to the change feature parameter, the source port number, and the destination port number. Before confirming the ACK packet, the method further includes: the network side device according to the LID, Determine the source port number and destination port number corresponding to the LID.
在本实施例中,在初始三次握手建立TCP连接的同步(synchronous,简称SYN)数据包或者ACK数据包中的保留字段或者选项字段增加LID,LID用于区分UE和服务器(Server)之间的多条TCP连接,网络侧设备的PDCP或者RLC层解析数据包包头获得该源端口号和目的端口号、LID,并保存每条TCP连接的源端口号和目的端口号与LID之间的对应关系。当网络侧设备接收到UE发送的压缩数据包时,根据源端口号和目的端口号与LID之间的对应关系,确定与该数据包的LID对应的源端口号和目的端口号,再根据SN、ACK SN、源端口号和目的端口号重构上行确认ACK数据包。In this embodiment, the reserved field or the option field in the synchronous (SYN) data packet or the ACK data packet of the initial three-way handshake establishment TCP connection is added with an LID, and the LID is used to distinguish between the UE and the server (Server). Multiple TCP connections, the PDCP or RLC layer parsing packet header of the network side device obtains the source port number, the destination port number, and the LID, and stores the correspondence between the source port number and the destination port number of each TCP connection and the LID. . When the network side device receives the compressed data packet sent by the UE, the source port number and the destination port number corresponding to the LID of the data packet are determined according to the correspondence between the source port number and the destination port number and the LID, and then according to the SN. The ACK SN, the source port number, and the destination port number reconstruct the uplink acknowledgement ACK packet.
可选地,在本实施例中,该方法还可以包括:当网络侧设备检测到UE从源小区切换到目标小区时,将携带变化特征参数的切换请求命令发送给目标小区对应的网络侧设备;或者,当网络侧设备检测到UE从源小区切换到目标小区时,将携带变化特征参数的缓存数据转发给目标小区对应的网络侧设备。Optionally, in this embodiment, the method may further include: when the network side device detects that the UE is handed over from the source cell to the target cell, sending a handover request command that carries the change feature parameter to the network side device corresponding to the target cell. Or, when the network side device detects that the UE is handed over from the source cell to the target cell, the cached data carrying the change feature parameter is forwarded to the network side device corresponding to the target cell.
在本实施例中,当网络侧设备检测到UE从一个小区切换到另一个小区时,网络侧设备可以通过在切换请求命令(Handover Request)中携带源小区对应的SN以及ACK SN等信息发送到目标小区的网络侧设备;或者,可以通过在切换过程中的缓存数据(Forwarding of Data)中携带上源小区对应的SN以及ACK SN等信息发送到目标小区的网络侧设备,在切换场景下,将源网络侧设备的SN以及ACK SN等信息发送到目标网络侧设备,不仅可以保持单侧压缩的连续性,还减少单独发送变化特征信息造成的带宽资源的浪费。In this embodiment, when the network side device detects that the UE is handed over from one cell to another cell, the network side device may send information such as the SN and the ACK SN corresponding to the source cell in the handover request command (Handover Request). The network side device of the target cell may be sent to the network side device of the target cell by using the information such as the SN and the ACK SN corresponding to the source cell in the forwarding data of the switching process. The information of the SN and the ACK SN of the source network side device is sent to the target network side device, which not only maintains the continuity of the one-side compression, but also reduces the waste of bandwidth resources caused by separately transmitting the change feature information.
本实施例提供的数据包的压缩方法,UE根据数据包的确认ACK标记值和数据长度,确定数据包的类型,若数据包的类型为上行TCP ACK数据包,则获取上行TCP ACK数据包中的变化特征参数,以生成压缩数据包,并将压缩数据包发送给网络侧设备,网络侧设备解析压缩数据包,获取变化特征参数,并根据变化特征参数、源端口号和目的端口号重构上行TCP ACK数据包,将重构的上行TCP ACK数据包发送给服务器。UE对于上行TCP ACK数据包只需将部分发生变化的信息给网络侧设备,由网络侧设备根据这些变化的信息重新构造完整的上行TCP ACK包,有效减了少上行数据传输量,减少空口负担,提升上行网络容量。 In the data packet compression method provided by this embodiment, the UE determines the type of the data packet according to the acknowledgement ACK tag value and the data length of the data packet, and obtains the uplink TCP ACK data packet if the data packet type is an uplink TCP ACK data packet. The characteristic parameter is changed to generate a compressed data packet, and the compressed data packet is sent to the network side device, and the network side device parses the compressed data packet, obtains the change characteristic parameter, and reconstructs according to the change characteristic parameter, the source port number, and the destination port number. The uplink TCP ACK packet is sent to the server by the reconstructed uplink TCP ACK packet. The UE only needs to change the partially changed information to the network side device for the uplink TCP ACK data packet, and the network side device reconstructs the complete uplink TCP ACK packet according to the changed information, thereby effectively reducing the uplink data transmission amount and reducing the air interface burden. Improve the uplink network capacity.
可选地,所述UE接收网络侧设备发送的第一消息之前,所述方法还包括:所述UE向所述网络侧设备发送能力上报消息,所述能力上报消息用于表示所述UE支持数据包的单侧压缩。Optionally, before the receiving the first message sent by the network side device, the method further includes: the UE sending a capability report message to the network side device, where the capability report message is used to indicate that the UE supports One-sided compression of the packet.
相应地,在网路侧,网络侧设备向用户设备UE发送第一消息之前,方法还包括:网络侧设备接收UE发送能力上报消息,能力上报消息用于表示UE支持数据包的单侧压缩。Correspondingly, before the network side device sends the first message to the user equipment UE, the method further includes: the network side device receiving the UE sending capability report message, and the capability reporting message is used to indicate that the UE supports one-side compression of the data packet.
在本实施例中,UE向网络侧设备发送能力上报消息,通知网络侧设备该UE支持单侧压缩,网络侧设备根据能力上报消息将第一消息发送给UE。In this embodiment, the UE sends a capability report message to the network side device to notify the network side device that the UE supports one-side compression, and the network side device sends the first message to the UE according to the capability report message.
可选地,第一消息还包括网络侧设备所指示的压缩方式;UE根据压缩指示信息对数据包进行处理,包括:UE根据压缩指示信息,采用指示的压缩方式对数据包进行处理。Optionally, the first message further includes a compression mode indicated by the network side device, and the UE processes the data packet according to the compression indication information, and the UE processes the data packet by using the indicated compression manner according to the compression indication information.
相应地,对于网络侧设备,第一消息还包括网络侧设备所指示的压缩方式;网络侧设备根据压缩指示信息对数据包进行处理,包括:网路侧设备根据压缩指示信息,采用指示的压缩方式对数据包进行处理。Correspondingly, for the network side device, the first message further includes a compression mode indicated by the network side device; the network side device processes the data packet according to the compression indication information, including: the network side device adopts the indicated compression according to the compression indication information. The way to process the packet.
可选地,UE还可以根据网络侧设备指示的压缩方式,选择UE与网络侧设备均支持的压缩方式,并采用选择的压缩方式对数据包进行处理。Optionally, the UE may further select a compression mode supported by the UE and the network side device according to the compression mode indicated by the network side device, and process the data packet by using the selected compression mode.
相应的,网络侧设备也可以根据网络侧设备指示的压缩方式,选择UE与网络侧设备均支持的压缩方式,并采用选择的压缩方式对数据包进行处理。Correspondingly, the network side device may also select a compression mode supported by the UE and the network side device according to the compression mode indicated by the network side device, and process the data packet by using the selected compression mode.
在本实施例中,UE和网络侧设备均可以包括多种压缩方式,例如,第一消息中有关压缩方式的字段中包括profile0x001、profile0x002、profile0x006这三个数据代表的三种不同的压缩方式,UE支持的压缩方式为profile0x003、profile0x004、profile0x006,则UE和网络侧设备均采用profile0x006对应的压缩方式对数据包进行压缩或者解压缩处理,从而使得UE与网络侧设备的压缩方式同步,保证数据传输的可靠性。In this embodiment, the UE and the network side device may include multiple compression modes. For example, the field related to the compression mode in the first message includes three different compression modes represented by three data: profile0x001, profile0x002, and profile0x006. The compression mode supported by the UE is profile0x003, profile0x004, and profile0x006. The UE and the network side device compress or decompress the data packet in the compression mode corresponding to profile0x006, so that the compression mode of the UE and the network side device are synchronized to ensure data transmission. Reliability.
可选地,在本发明实施例中,还可以在建立TCP连接之后,由UE与网络侧设备协商压缩方式,当进行数据包传输时,直接采用协商的压缩方式对数据包进行压缩,则第一消息中可以不携带网路侧设备所支持的压缩方式,使得第一消息的长度变小,进一步节省了空口资源。Optionally, in the embodiment of the present invention, after the TCP connection is established, the UE and the network side device negotiate a compression mode, and when the data packet is transmitted, the data packet is directly compressed by using a negotiated compression method. The compression mode supported by the network side device may not be carried in a message, so that the length of the first message is reduced, and the air interface resource is further saved.
图5为本发明实施例四提供的数据包的压缩装置结构示意图。如图5所示,该装置包括接收模块11和处理模块12。接收模块11用于接收网络侧设 备发送的第一消息,第一消息中包括压缩指示信息,压缩指示信息用于指示对数据包进行单侧压缩,单侧压缩为只对用户设备UE发送给网络侧设备的上行数据包进行压缩或者只对UE从网络侧设备接收的下行数据包进行压缩。处理模块12用于根据压缩指示信息对数据包进行处理。FIG. 5 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 4 of the present invention. As shown in FIG. 5, the apparatus includes a receiving module 11 and a processing module 12. The receiving module 11 is configured to receive a network side device The first message to be sent, the first message includes compression indication information, the compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is to compress only the uplink data packet sent by the user equipment UE to the network side device. Or compress only the downlink data packets received by the UE from the network side device. The processing module 12 is configured to process the data packet according to the compression indication information.
本实施例的装置,可以用于执行图2或图3所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2 or FIG. 3, and the implementation principle and technical effects are similar, and details are not described herein again.
图6为本发明实施例五提供的数据包的压缩装置结构示意图。如图5所示,处理模块12包括确定子模块121和压缩子模块122。确定子模块121用于确定数据包的类型;压缩子模块122用于若数据包的类型为上行传输控制协议确认TCP ACK数据包,则UE对上行TCP ACK数据包进行压缩。FIG. 6 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 5 of the present invention. As shown in FIG. 5, the processing module 12 includes a determination sub-module 121 and a compression sub-module 122. The determining sub-module 121 is configured to determine the type of the data packet; the compression sub-module 122 is configured to compress the uplink TCP ACK data packet if the type of the data packet is an uplink transmission control protocol acknowledgement TCP ACK data packet.
可选地,第一消息还包括业务标识信息或数据包类型,业务标识信息用于指示对业务标识对应的业务数据包进行单侧压缩,数据包类型用于指示对数据包类型对应的数据包进行压缩。Optionally, the first message further includes service identifier information or a data packet type, where the service identifier information is used to indicate one-side compression of the service data packet corresponding to the service identifier, and the data packet type is used to indicate the data packet corresponding to the data packet type. Compress.
可选地,压缩子模块122具体用于获取上行TCP ACK数据包中的变化特征参数,以生成压缩数据包;并将压缩数据包发送给网络侧设备,以使网络侧设备根据变化特征参数重构上行TCP ACK数据包,变化特征参数为数据包在传输过程中发生变化的参数。Optionally, the compression sub-module 122 is configured to acquire a change characteristic parameter in the uplink TCP ACK packet to generate a compressed data packet, and send the compressed data packet to the network side device, so that the network side device is heavy according to the change feature parameter. The uplink TCP ACK packet is configured, and the change characteristic parameter is a parameter in which the data packet changes during transmission.
可选地,变化特征参数包括序列号SN和确认序列号ACK SN。Optionally, the variation feature parameter includes a sequence number SN and an acknowledgement sequence number ACK SN.
可选地,若UE与网络侧设备之间存在多条链路连接,则变化特征参数还包括链路连接标识。Optionally, if there are multiple link connections between the UE and the network side device, the change feature parameter further includes a link connection identifier.
实施例的装置,可以用于执行图4所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of the embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 4, and the implementation principle and the technical effect are similar, and details are not described herein again.
图7为本发明实施例六提供的数据包的压缩装置结构示意图。如图7所示,该装置还包括发送模块13。发送模块13用于向网络侧设备发送能力上报消息,能力上报消息用于表示UE支持数据包的单侧压缩。FIG. 7 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 6 of the present invention. As shown in FIG. 7, the apparatus further includes a transmitting module 13. The sending module 13 is configured to send a capability report message to the network side device, where the capability report message is used to indicate that the UE supports one-side compression of the data packet.
可选地,第一消息还包括网络侧设备指示的压缩方式;则处理模块12具体用于根据压缩指示信息,采用指示的压缩方式对数据包进行处理。Optionally, the first message further includes a compression mode indicated by the network side device. The processing module 12 is specifically configured to process the data packet by using the indicated compression manner according to the compression indication information.
图8为本发明实施例七提供的数据包的压缩装置结构示意图。如图8所示,该装置包括发送模块21和处理模块22。发送模块21用于向用户设备UE发送第一消息,第一消息中包括压缩指示信息,压缩指示信息用于指示对 数据包进行单侧压缩,单侧压缩为只对UE发送给网络侧设备的上行数据包进行压缩或者只对UE从网络侧设备接收的下行数据包进行压缩;处理模块22用于根据压缩指示信息对数据包进行处理。FIG. 8 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 7 of the present invention. As shown in FIG. 8, the apparatus includes a transmitting module 21 and a processing module 22. The sending module 21 is configured to send a first message to the user equipment UE, where the first message includes compression indication information, and the compression indication information is used to indicate the pair The data packet is compressed on one side, and the one-side compression is to compress only the uplink data packet sent by the UE to the network side device or only the downlink data packet received by the UE from the network side device. The processing module 22 is configured to use the compression indication information according to the compression indication information. Process the packet.
实施例的装置,可以用于执行图2或图3所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of the embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2 or FIG. 3, and the implementation principle and the technical effect are similar, and details are not described herein again.
可选地,第一消息还包括业务标识信息或数据包类型,业务标识信息用于指示对业务标识对应的业务数据包进行单侧压缩,数据包类型用于指示对数据包类型对应的数据包进行单侧压缩。Optionally, the first message further includes service identifier information or a data packet type, where the service identifier information is used to indicate one-side compression of the service data packet corresponding to the service identifier, and the data packet type is used to indicate the data packet corresponding to the data packet type. Perform one-sided compression.
可选地,处理模块22具体用于接收UE发送的压缩数据包,并解析压缩数据包,获取变化特征参数;变化特征参数为数据包在传输过程中发生变化的参数;根据变化特征参数、源端口号和目的端口号重构上行确认ACK数据包;源端口号和目的端口号为初始化建立连接时获取的端口号;并通过发送模块21将重构的上行ACK数据包发送给服务器。Optionally, the processing module 22 is specifically configured to receive the compressed data packet sent by the UE, and parse the compressed data packet to obtain a change feature parameter; the change feature parameter is a parameter that changes the data packet during the transmission process; according to the change feature parameter, the source The port number and the destination port number reconstruct the uplink acknowledgement ACK packet; the source port number and the destination port number are port numbers obtained when the connection is established; and the reconstructed uplink ACK packet is sent to the server by the sending module 21.
可选地,变化特征参数包括序列号SN和确认序列号ACK SN。Optionally, the variation feature parameter includes a sequence number SN and an acknowledgement sequence number ACK SN.
可选地,若UE与网络侧设备之间存在多条链路连接,则变化特征参数还包括链路连接标识LID;则处理模块22还用于根据LID,确定与LID对应的源端口号和目的端口号。Optionally, if there are multiple link connections between the UE and the network side device, the change feature parameter further includes a link connection identifier LID. The processing module 22 is further configured to determine, according to the LID, a source port number corresponding to the LID. Destination port number.
可选地,发送模块21还用于当检测到UE从源小区切换到目标小区时,将携带变化特征参数的切换请求命令发送给目标小区对应的网络侧设备;或者,发送模块21还用于当网络侧设备检测到UE从源小区切换到目标小区时,将携带变化特征参数的缓存数据转发给目标小区对应的网络侧设备。Optionally, the sending module 21 is further configured to: when detecting that the UE is handed over from the source cell to the target cell, send a handover request command that carries the change feature parameter to the network side device corresponding to the target cell; or, the sending module 21 is further used to: When the network side device detects that the UE is handed over from the source cell to the target cell, the cached data carrying the change feature parameter is forwarded to the network side device corresponding to the target cell.
图9为本发明实施例八提供的数据包的压缩装置结构示意图。如图9所示,该装置还包括接收模块23。接收模块23用于接收UE发送能力上报消息,能力上报消息用于表示UE支持数据包的单侧压缩。FIG. 9 is a schematic structural diagram of a data packet compression apparatus according to Embodiment 8 of the present invention. As shown in FIG. 9, the apparatus further includes a receiving module 23. The receiving module 23 is configured to receive a UE sending capability report message, where the capability report message is used to indicate that the UE supports one-side compression of the data packet.
可选地,第一消息还包括网络侧设备指示的压缩方式;则处理模块22具体用于根据压缩指示信息,采用指示的压缩方式对数据包进行处理。Optionally, the first message further includes a compression mode indicated by the network side device. The processing module 22 is specifically configured to process the data packet by using the indicated compression manner according to the compression indication information.
本实施例的装置,可以用于执行图2-图4任一所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to perform the technical solution of the method embodiment shown in any of FIG. 2 to FIG. 4, and the implementation principle and technical effects are similar, and details are not described herein again.
图10为本发明实施例九提供的一种用户设备的结构示意图。如图10所示,该用户设备包括接收器31和处理器32,用户设备还可以包括发射器33 和存储器34,发射器33、接收器31分别与处理器32耦合。处理器32可包含一个或多个多核处理器和/或存储器34。处理器32可以是一个通用处理器,专用集成电路(application specific integrated circuit,ASIC),或数字信号处理器(DSP)。存储器34可为非瞬时性的存储介质,与处理器32相耦合,用于保存不同类型的数据。存储器34可包含只读存储器(read only memory,ROM),随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是磁盘存储器。存储器34可用于保存实现图2-图4所述相关方法的指令。FIG. 10 is a schematic structural diagram of a user equipment according to Embodiment 9 of the present invention. As shown in FIG. 10, the user equipment includes a receiver 31 and a processor 32, and the user equipment may further include a transmitter 33. The memory 34, the transmitter 33, and the receiver 31 are coupled to the processor 32, respectively. Processor 32 may include one or more multi-core processors and/or memory 34. Processor 32 can be a general purpose processor, an application specific integrated circuit (ASIC), or a digital signal processor (DSP). Memory 34 can be a non-transitory storage medium coupled to processor 32 for storing different types of data. The memory 34 may comprise a read only memory (ROM), a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or may be a disk storage. Memory 34 can be used to store instructions that implement the related methods described in Figures 2 - 4.
接收器31用于接收网络侧设备发送的第一消息,所述第一消息中包括压缩指示信息,所述压缩指示信息用于指示对数据包进行单侧压缩,所述单侧压缩为只对用户设备发送给所述网络侧设备的上行数据包进行压缩或者只对所述UE从所述网络侧设备接收的下行数据包进行压缩;处理器32用于根据所述压缩指示信息对数据包进行处理。The receiver 31 is configured to receive a first message sent by the network side device, where the first message includes compression indication information, where the compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is only The uplink data packet sent by the user equipment to the network side device is compressed or only the downlink data packet received by the UE from the network side device is compressed; the processor 32 is configured to perform data packet according to the compression indication information. deal with.
可选地,所述第一消息还包括业务标识信息或数据包类型,所述业务标识信息用于指示对业务标识对应的业务数据包进行单侧压缩,所述数据包类型用于指示对数据包类型对应的数据包进行压缩。Optionally, the first message further includes service identifier information or a data packet type, where the service identifier information is used to indicate that the service data packet corresponding to the service identifier is unilaterally compressed, and the data packet type is used to indicate the data pair. The packet corresponding to the packet type is compressed.
可选地,处理器32具体用于确定所述数据包的类型;若所述数据包的类型为上行传输控制协议确认TCP ACK数据包,则对所述上行TCP ACK数据包进行压缩。Optionally, the processor 32 is specifically configured to determine a type of the data packet; if the type of the data packet is an uplink transmission control protocol acknowledgement TCP ACK data packet, compressing the uplink TCP ACK data packet.
可选地,处理器32对所述上行TCP ACK数据包进行压缩,包括:处理器32获取所述上行TCP ACK数据包中的变化特征参数,以生成压缩数据包;所述变化特征参数为数据包在传输过程中发生变化的参数;将所述压缩数据包发送给所述网络侧设备,以使所述网络侧设备根据所述变化特征参数重构所述上行TCP ACK数据包。Optionally, the processor 32 compresses the uplink TCP ACK packet, including: the processor 32 acquires a change feature parameter in the uplink TCP ACK packet to generate a compressed data packet; and the change feature parameter is data. Transmitting the compressed data packet to the network side device, so that the network side device reconstructs the uplink TCP ACK data packet according to the change characteristic parameter.
可选地,所述变化特征参数包括序列号SN和确认序列号ACK SN。Optionally, the change characteristic parameter includes a sequence number SN and an acknowledgement sequence number ACK SN.
可选地,若所述UE与所述网络侧设备之间存在多条链路连接,则所述变化特征参数还包括链路连接标识。Optionally, if there are multiple link connections between the UE and the network side device, the change feature parameter further includes a link connection identifier.
可选地,发射器33用于向所述网络侧设备发送能力上报消息,所述能力上报消息用于表示所述UE支持数据包的单侧压缩。Optionally, the transmitter 33 is configured to send a capability report message to the network side device, where the capability report message is used to indicate that the UE supports one-side compression of the data packet.
可选地,所述第一消息还包括所述网络侧设备指示的压缩方式;处理器 32具体用于根据所述压缩指示信息,采用所述指示的压缩方式对数据包进行处理。Optionally, the first message further includes a compression manner indicated by the network side device; the processor The method is specifically configured to process the data packet by using the compressed manner of the indication according to the compression indication information.
本实施例的用户设备,可以用于执行图2-图4任一所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The user equipment in this embodiment may be used to perform the technical solution of the method embodiment shown in any of FIG. 2 to FIG. 4, and the implementation principle and technical effects are similar, and details are not described herein again.
本发明实施例还提供一种网路侧设备,该网络侧设备的结构与图10所示的设备的结构相同,在本实施例中,发射器用于向用户设备UE发送第一消息,所述第一消息中包括压缩指示信息,所述压缩指示信息用于指示对数据包进行单侧压缩,所述单侧压缩为只对所述UE发送给网络侧设备的上行数据包进行压缩或者只对所述UE从网络侧设备接收的下行数据包进行压缩;处理器用于根据所述压缩指示信息对数据包进行处理。The embodiment of the present invention further provides a network side device, and the structure of the network side device is the same as that of the device shown in FIG. 10. In this embodiment, the transmitter is configured to send a first message to the user equipment UE, where The first message includes compression indication information, where the compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is to compress only the uplink data packet sent by the UE to the network side device, or only The downlink data packet received by the UE from the network side device is compressed; the processor is configured to process the data packet according to the compression indication information.
可选地,所述第一消息还包括业务标识信息或数据包类型,所述业务标识信息用于指示对业务标识对应的业务数据包进行单侧压缩,所述数据包类型用于指示对数据包类型对应的数据包进行单侧压缩。Optionally, the first message further includes service identifier information or a data packet type, where the service identifier information is used to indicate that the service data packet corresponding to the service identifier is unilaterally compressed, and the data packet type is used to indicate the data pair. The packet corresponding to the packet type is unilaterally compressed.
可选地,所述处理器具体用于通过接收器接收所述UE发送的压缩数据包,所述处理器解析所述压缩数据包,获取变化特征参数;所述变化特征参数为数据包在传输过程中发生变化的参数;并根据所述变化特征参数、源端口号和目的端口号重构上行确认ACK数据包;所述源端口号和所述目的端口号为初始化建立连接时获取的端口号;通过发射器将重构的上行ACK数据包发送给服务器。Optionally, the processor is specifically configured to receive, by using a receiver, a compressed data packet sent by the UE, where the processor parses the compressed data packet to obtain a change feature parameter; and the change feature parameter is that the data packet is transmitted. a parameter that changes during the process; and reconstructs an uplink acknowledgement ACK packet according to the change characteristic parameter, the source port number, and the destination port number; the source port number and the destination port number are port numbers obtained when the connection is initialized. Transmitting the reconstructed uplink ACK packet to the server through the transmitter.
可选地,所述变化特征参数包括序列号SN和确认序列号ACK SN。Optionally, the change characteristic parameter includes a sequence number SN and an acknowledgement sequence number ACK SN.
可选地,若所述UE与所述网络侧设备之间存在多条链路连接,则所述变化特征参数还包括链路连接标识LID;则处理器还用于根据所述LID,确定与所述LID对应的源端口号和目的端口号。Optionally, if there is a plurality of link connections between the UE and the network side device, the change feature parameter further includes a link connection identifier LID; and the processor is further configured to determine, according to the LID, The source port number and the destination port number corresponding to the LID.
可选地,发射器还用于当测到所述UE从源小区切换到目标小区时,将携带所述变化特征参数的切换请求命令发送给所述目标小区对应的网络侧设备;或者,当检测到所述UE从源小区切换到目标小区时,将携带所述变化特征参数的缓存数据转发给所述目标小区对应的网络侧设备。Optionally, the transmitter is further configured to, when detecting that the UE is handed over from the source cell to the target cell, send a handover request command that carries the change feature parameter to the network side device corresponding to the target cell; or When the UE is detected to be handed over from the source cell to the target cell, the cached data carrying the change feature parameter is forwarded to the network side device corresponding to the target cell.
可选地,接收器用于接收所述UE发送能力上报消息,所述能力上报消息用于表示所述UE支持数据包的单侧压缩。Optionally, the receiver is configured to receive the UE sending capability report message, where the capability report message is used to indicate that the UE supports one-side compression of the data packet.
可选地,所述第一消息还包括所述网络侧设备指示的压缩方式;处理器 具体用于根据所述压缩指示信息,采用所述指示的压缩方式对数据包进行处理。Optionally, the first message further includes a compression manner indicated by the network side device; the processor Specifically, the data packet is processed according to the compression indication information according to the compression indication manner.
本实施例的装置,可以用于执行图2-图4任一所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to perform the technical solution of the method embodiment shown in any of FIG. 2 to FIG. 4, and the implementation principle and technical effects are similar, and details are not described herein again.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(random access memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。One of ordinary skill in the art will appreciate that all or part of the steps to implement the various method embodiments described above may be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. When the program is executed, the steps of the foregoing method embodiments are performed; and the foregoing storage medium includes: Read-Only Memory (ROM), Random Access Memory (RAM), and Magnetic A variety of media that can store program code, such as a disc or a disc.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims (32)

  1. 一种数据包的压缩方法,其特征在于,包括:A data packet compression method, comprising:
    用户设备UE接收网络侧设备发送的第一消息,所述第一消息中包括压缩指示信息,所述压缩指示信息用于指示对数据包进行单侧压缩,所述单侧压缩为只对所述UE发送给所述网络侧设备的上行数据包进行压缩或者只对所述UE从所述网络侧设备接收的下行数据包进行压缩;The user equipment UE receives the first message sent by the network side device, where the first message includes compression indication information, where the compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is only for the Uplink data packets sent by the UE to the network side device are compressed or only downlink data packets received by the UE from the network side device are compressed;
    所述UE根据所述压缩指示信息对数据包进行处理。The UE processes the data packet according to the compression indication information.
  2. 根据权利要求1所述的方法,其特征在于,所述第一消息还包括业务标识信息或数据包类型,所述业务标识信息用于指示对业务标识对应的业务数据包进行单侧压缩,所述数据包类型用于指示对数据包类型对应的数据包进行单侧压缩。The method according to claim 1, wherein the first message further comprises service identification information or a data packet type, and the service identification information is used to indicate that the service data packet corresponding to the service identifier is unilaterally compressed. The packet type is used to indicate one-sided compression of the packet corresponding to the packet type.
  3. 根据权利要求1或2所述的方法,其特征在于,所述UE根据所述压缩指示信息对数据包进行处理,包括:The method according to claim 1 or 2, wherein the processing, by the UE, the data packet according to the compression indication information comprises:
    所述UE确定所述数据包的类型;The UE determines a type of the data packet;
    若所述数据包的类型为上行传输控制协议确认TCP ACK数据包,则所述UE对所述上行TCP ACK数据包进行压缩。If the type of the data packet is an uplink transmission control protocol acknowledgement TCP ACK data packet, the UE compresses the uplink TCP ACK data packet.
  4. 根据权利要求3所述的方法,其特征在于,所述对所述上行TCP ACK数据包进行压缩,包括:The method according to claim 3, wherein the compressing the uplink TCP ACK packet comprises:
    所述UE获取所述上行TCP ACK数据包中的变化特征参数,以生成压缩数据包;所述变化特征参数为数据包在传输过程中发生变化的参数;Obtaining, by the UE, a change feature parameter in the uplink TCP ACK packet to generate a compressed data packet; the change feature parameter is a parameter that changes a data packet during a transmission process;
    所述UE将所述压缩数据包发送给所述网络侧设备,以使所述网络侧设备根据所述变化特征参数重构所述上行TCP ACK数据包。Sending, by the UE, the compressed data packet to the network side device, so that the network side device reconstructs the uplink TCP ACK data packet according to the change feature parameter.
  5. 根据权利要求4所述的方法,其特征在于,所述变化特征参数包括序列号SN和确认序列号ACK SN。The method of claim 4 wherein said varying characteristic parameters comprise a sequence number SN and a acknowledgment sequence number ACK SN.
  6. 根据权利要求5所述的方法,其特征在于,若所述UE与所述网络侧设备之间存在多条链路连接,则所述变化特征参数还包括链路连接标识。The method according to claim 5, wherein if there is a plurality of link connections between the UE and the network side device, the change feature parameter further includes a link connection identifier.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述UE接收网络侧设备发送的第一消息之前,所述方法还包括:The method according to any one of claims 1-6, wherein before the receiving the first message sent by the network side device, the method further includes:
    所述UE向所述网络侧设备发送能力上报消息,所述能力上报消息用于表示所述UE支持数据包的单侧压缩。 The UE sends a capability report message to the network side device, where the capability report message is used to indicate that the UE supports one-side compression of the data packet.
  8. 根据权利要求1-7任一项所述方法,其特征在于,所述第一消息还包括所述网络侧设备指示的压缩方式;The method according to any one of claims 1 to 7, wherein the first message further comprises a compression mode indicated by the network side device;
    所述UE根据所述压缩指示信息对数据包进行处理,包括:Processing, by the UE, the data packet according to the compression indication information, including:
    所述UE根据所述压缩指示信息,采用所述指示压缩方式对数据包进行处理。The UE processes the data packet by using the indication compression manner according to the compression indication information.
  9. 一种数据包的压缩方法,其特征在于,包括:A data packet compression method, comprising:
    网络侧设备向用户设备UE发送第一消息,所述第一消息中包括压缩指示信息,所述压缩指示信息用于指示对数据包进行单侧压缩,所述单侧压缩为只对所述UE发送给所述网络侧设备的上行数据包进行压缩或者只对所述UE从网络侧设备接收的下行数据包进行压缩;The network side device sends a first message to the user equipment UE, where the first message includes compression indication information, where the compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is only for the UE. Uplink data packets sent to the network side device are compressed or only downlink data packets received by the UE from the network side device are compressed;
    所述网络侧设备根据所述压缩指示信息对数据包进行处理。The network side device processes the data packet according to the compression indication information.
  10. 根据权利要求9所述的方法,其特征在于,所述第一消息还包括业务标识信息或数据包类型,所述业务标识信息用于指示对业务标识对应的业务数据包进行单侧压缩,所述数据包类型用于指示对数据包类型对应的数据包进行单侧压缩。The method according to claim 9, wherein the first message further comprises service identification information or a data packet type, and the service identification information is used to indicate that the service data packet corresponding to the service identifier is unilaterally compressed. The packet type is used to indicate one-sided compression of the packet corresponding to the packet type.
  11. 根据权利要求9或10所述的方法,其特征在于,所述网络侧设备根据所述压缩指示信息对数据包进行处理,包括:The method according to claim 9 or 10, wherein the network side device processes the data packet according to the compression indication information, including:
    所述网络侧设备接收所述UE发送的压缩数据包,并解析所述压缩数据包,获取变化特征参数;所述变化特征参数为数据包在传输过程中发生变化的参数;Receiving, by the network side device, the compressed data packet sent by the UE, and parsing the compressed data packet, and acquiring a change feature parameter; the change feature parameter is a parameter that changes a data packet during a transmission process;
    所述网络侧设备根据所述变化特征参数、源端口号和目的端口号重构上行确认ACK数据包;所述源端口号和所述目的端口号为初始化建立连接时获取的端口号;The network side device reconstructs an uplink acknowledgement ACK packet according to the change characteristic parameter, the source port number, and the destination port number; the source port number and the destination port number are port numbers obtained when the connection is initialized;
    所述网络侧设备将重构的上行ACK数据包发送给服务器。The network side device sends the reconstructed uplink ACK data packet to the server.
  12. 根据权利要求11所述的方法,其特征在于,所述变化特征参数包括序列号SN和确认序列号ACK SN。The method of claim 11 wherein said varying characteristic parameters comprise a sequence number SN and a acknowledgment sequence number ACK SN.
  13. 根据权利要求12所述的方法,其特征在于,若所述UE与所述网络侧设备之间存在多条链路连接,则所述变化特征参数还包括链路连接标识LID;The method according to claim 12, wherein if there is a plurality of link connections between the UE and the network side device, the change feature parameter further includes a link connection identifier LID;
    则所述网络侧设备根据所述变化特征参数、源端口号和目的端口号重构 上行确认ACK数据包之前,所述方法还包括:The network side device is reconstructed according to the change characteristic parameter, the source port number, and the destination port number. Before the uplink acknowledges the ACK packet, the method further includes:
    所述网络侧设备根据所述LID,确定与所述LID对应的源端口号和目的端口号。The network side device determines, according to the LID, a source port number and a destination port number corresponding to the LID.
  14. 根据权利要求11-13任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 11 to 13, wherein the method further comprises:
    当所述网络侧设备检测到所述UE从源小区切换到目标小区时,将携带所述变化特征参数的切换请求命令发送给所述目标小区对应的网络侧设备;When the network side device detects that the UE is handed over from the source cell to the target cell, the handover request command that carries the change feature parameter is sent to the network side device corresponding to the target cell;
    或者,or,
    当所述网络侧设备检测到所述UE从源小区切换到目标小区时,将携带所述变化特征参数的缓存数据转发给所述目标小区对应的网络侧设备。When the network side device detects that the UE is handed over from the source cell to the target cell, the cached data that carries the change feature parameter is forwarded to the network side device corresponding to the target cell.
  15. 根据权利要求9-14任一项所述的方法,其特征在于,所述网络侧设备向用户设备UE发送第一消息之前,所述方法还包括:The method according to any one of claims 9 to 14, wherein before the network side device sends the first message to the user equipment UE, the method further includes:
    所述网络侧设备接收所述UE发送能力上报消息,所述能力上报消息用于表示所述UE支持数据包的单侧压缩。The network side device receives the UE sending capability report message, where the capability report message is used to indicate that the UE supports one-side compression of the data packet.
  16. 根据权利要求9-15任一项所述的方法,其特征在于,所述第一消息还包括所述网络侧设备指示的压缩方式;The method according to any one of claims 9 to 15, wherein the first message further includes a compression mode indicated by the network side device;
    所述网络侧设备根据所述压缩指示信息对数据包进行处理,包括:The network side device processes the data packet according to the compression indication information, and includes:
    所述网络侧设备根据所述压缩指示信息,采用所述指示的压缩方式对数据包进行处理。The network side device processes the data packet according to the compression indication information by using the indicated compression manner.
  17. 一种数据包的压缩装置,其特征在于,包括:A compression device for a data packet, comprising:
    接收模块,用于接收网络侧设备发送的第一消息,所述第一消息中包括压缩指示信息,所述压缩指示信息用于指示对数据包进行单侧压缩,所述单侧压缩为只对用户设备UE发送给所述网络侧设备的上行数据包进行压缩或者只对所述UE从所述网络侧设备接收的下行数据包进行压缩;a receiving module, configured to receive a first message sent by the network side device, where the first message includes compression indication information, where the compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is only Uplink data packets sent by the user equipment UE to the network side device are compressed or only downlink data packets received by the UE from the network side device are compressed;
    处理模块,用于根据所述压缩指示信息对数据包进行处理。And a processing module, configured to process the data packet according to the compression indication information.
  18. 根据权利要求17所述的装置,其特征在于,所述第一消息还包括业务标识信息或数据包类型,所述业务标识信息用于指示对业务标识对应的业务数据包进行单侧压缩,所述数据包类型用于指示对数据包类型对应的数据包进行单侧压缩。The device according to claim 17, wherein the first message further comprises service identification information or a data packet type, and the service identification information is used to indicate that the service data packet corresponding to the service identifier is unilaterally compressed. The packet type is used to indicate one-sided compression of the packet corresponding to the packet type.
  19. 根据权利要求17或18所述的装置,其特征在于,所述处理模块包 括:Apparatus according to claim 17 or 18, wherein said processing module package include:
    确定子模块,用于确定所述数据包的类型;Determining a submodule for determining a type of the data packet;
    压缩子模块,用于若所述数据包的类型为上行传输控制协议确认TCP ACK数据包,则所述UE对所述上行TCP ACK数据包进行压缩。And a compression submodule, configured to compress the uplink TCP ACK packet if the type of the data packet is an uplink transmission control protocol acknowledgement TCP ACK packet.
  20. 根据权利要求19所述的装置,其特征在于,所述压缩子模块具体用于获取所述上行TCP ACK数据包中的变化特征参数,以生成压缩数据包;并将所述压缩数据包发送给所述网络侧设备,以使所述网络侧设备根据所述变化特征参数重构所述上行TCP ACK数据包,所述变化特征参数为数据包在传输过程中发生变化的参数。The apparatus according to claim 19, wherein the compression submodule is specifically configured to acquire a change characteristic parameter in the uplink TCP ACK packet to generate a compressed data packet; and send the compressed data packet to The network side device, so that the network side device reconstructs the uplink TCP ACK data packet according to the change feature parameter, where the change feature parameter is a parameter that changes a data packet during transmission.
  21. 根据权利要求20所述的装置,其特征在于,所述变化特征参数包括序列号SN和确认序列号ACK SN。The apparatus according to claim 20, wherein said variation characteristic parameter comprises a sequence number SN and a confirmation sequence number ACK SN.
  22. 根据权利要求21所述的装置,其特征在于,若所述UE与所述网络侧设备之间存在多条链路连接,则所述变化特征参数还包括链路连接标识。The device according to claim 21, wherein if there is a plurality of link connections between the UE and the network side device, the change feature parameter further includes a link connection identifier.
  23. 根据权利要求17-22任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 17 to 22, wherein the device further comprises:
    发送模块,用于向所述网络侧设备发送能力上报消息,所述能力上报消息用于表示所述UE支持数据包的单侧压缩。And a sending module, configured to send a capability report message to the network side device, where the capability report message is used to indicate that the UE supports one-side compression of the data packet.
  24. 根据权利要求17-23任一项所述的装置,其特征在于,所述第一消息还包括所述网络侧设备指示的压缩方式;则所述处理模块具体用于根据所述压缩指示信息,采用所述指示的压缩方式对数据包进行处理。The device according to any one of claims 17 to 23, wherein the first message further includes a compression mode indicated by the network side device; and the processing module is specifically configured to: according to the compression indication information, The data packet is processed by the compressed manner of the indication.
  25. 一种数据包的压缩装置,其特征在于,包括:A compression device for a data packet, comprising:
    发送模块,用于向用户设备UE发送第一消息,所述第一消息中包括压缩指示信息,所述压缩指示信息用于指示对数据包进行单侧压缩,所述单侧压缩为只对所述UE发送给网络侧设备的上行数据包进行压缩或者只对所述UE从网络侧设备接收的下行数据包进行压缩;a sending module, configured to send a first message to the user equipment UE, where the first message includes compression indication information, where the compression indication information is used to indicate one-side compression of the data packet, and the one-side compression is only The uplink data packet sent by the UE to the network side device is compressed or only the downlink data packet received by the UE from the network side device is compressed;
    处理模块,用于根据所述压缩指示信息对数据包进行处理。And a processing module, configured to process the data packet according to the compression indication information.
  26. 根据权利要求25所述的装置,其特征在于,所述第一消息还包括业务标识信息或数据包类型,所述业务标识信息用于指示对业务标识对应的业务数据包进行单侧压缩,所述数据包类型用于指示对数据包类型对应的数据包进行单侧压缩。 The device according to claim 25, wherein the first message further comprises service identification information or a data packet type, and the service identification information is used to indicate that the service data packet corresponding to the service identifier is unilaterally compressed. The packet type is used to indicate one-sided compression of the packet corresponding to the packet type.
  27. 根据权利要求25或26所述的装置,其特征在于,所述处理模块包括具体用于接收所述UE发送的压缩数据包,并解析所述压缩数据包,获取变化特征参数;所述变化特征参数为数据包在传输过程中发生变化的参数;根据所述变化特征参数、源端口号和目的端口号重构上行确认ACK数据包;所述源端口号和所述目的端口号为初始化建立连接时获取的端口号;并通过所述发送模块将重构的上行ACK数据包发送给服务器。The device according to claim 25 or 26, wherein the processing module comprises: specifically for receiving a compressed data packet sent by the UE, and parsing the compressed data packet to acquire a change characteristic parameter; The parameter is a parameter that the data packet changes during the transmission; the uplink acknowledgement ACK packet is reconstructed according to the change characteristic parameter, the source port number, and the destination port number; and the source port number and the destination port number are initialized to establish a connection. And obtaining the port number; and sending the reconstructed uplink ACK packet to the server by using the sending module.
  28. 根据权利要求27所述的装置,其特征在于,所述变化特征参数包括序列号SN和确认序列号ACK SN。The apparatus according to claim 27, wherein said variation characteristic parameter comprises a sequence number SN and a confirmation sequence number ACK SN.
  29. 根据权利要求28所述的装置,其特征在于,若所述UE与所述网络侧设备之间存在多条链路连接,则所述变化特征参数还包括链路连接标识LID;The apparatus according to claim 28, wherein if there is a plurality of link connections between the UE and the network side device, the change characteristic parameter further includes a link connection identifier LID;
    则所述处理模块还用于根据所述LID,确定与所述LID对应的源端口号和目的端口号。The processing module is further configured to determine, according to the LID, a source port number and a destination port number corresponding to the LID.
  30. 根据权利要求27-29任一项所述的装置,其特征在于,所述发送模块还用于当检测到所述UE从源小区切换到目标小区时,将携带所述变化特征参数的切换请求命令发送给所述目标小区对应的网络侧设备;The apparatus according to any one of claims 27 to 29, wherein the sending module is further configured to: when detecting that the UE switches from a source cell to a target cell, carry a handover request of the change feature parameter Sending a command to the network side device corresponding to the target cell;
    或者,or,
    所述发送模块还用于当所述网络侧设备检测到所述UE从源小区切换到目标小区时,将携带所述变化特征参数的缓存数据转发给所述目标小区对应的网络侧设备。The sending module is further configured to: when the network side device detects that the UE is handed over from the source cell to the target cell, forward the cached data that carries the change feature parameter to the network side device corresponding to the target cell.
  31. 根据权利要求25-30任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 25-30, wherein the device further comprises:
    接收模块,用于接收所述UE发送能力上报消息,所述能力上报消息用于表示所述UE支持数据包的单侧压缩。The receiving module is configured to receive the sending capability report message of the UE, where the capability report message is used to indicate that the UE supports one-side compression of the data packet.
  32. 根据权利要求25-31任一项所述的装置,其特征在于,所述第一消息还包括所述网络侧设备指示的压缩方式;The device according to any one of claims 25 to 31, wherein the first message further comprises a compression mode indicated by the network side device;
    则所述处理模块具体用于根据所述压缩指示信息,采用所述指示的压缩方式对数据包进行处理。 The processing module is specifically configured to process the data packet by using the indicated compression manner according to the compression indication information.
PCT/CN2016/074849 2016-02-29 2016-02-29 Compression method and device for data packets WO2017147754A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/074849 WO2017147754A1 (en) 2016-02-29 2016-02-29 Compression method and device for data packets

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/074849 WO2017147754A1 (en) 2016-02-29 2016-02-29 Compression method and device for data packets

Publications (1)

Publication Number Publication Date
WO2017147754A1 true WO2017147754A1 (en) 2017-09-08

Family

ID=59743347

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/074849 WO2017147754A1 (en) 2016-02-29 2016-02-29 Compression method and device for data packets

Country Status (1)

Country Link
WO (1) WO2017147754A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113133055A (en) * 2019-04-30 2021-07-16 Oppo广东移动通信有限公司 Method and apparatus for wireless communication

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102131234A (en) * 2010-01-18 2011-07-20 华为技术有限公司 Method and device for compressing and uncompressing internet protocol (IP) data packet
CN102413506A (en) * 2010-09-20 2012-04-11 华为技术有限公司 Compression method and device
WO2014110773A1 (en) * 2013-01-17 2014-07-24 华为技术有限公司 Data packet processing method and device
WO2015109527A1 (en) * 2014-01-24 2015-07-30 华为技术有限公司 Header compression device and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102131234A (en) * 2010-01-18 2011-07-20 华为技术有限公司 Method and device for compressing and uncompressing internet protocol (IP) data packet
CN102413506A (en) * 2010-09-20 2012-04-11 华为技术有限公司 Compression method and device
WO2014110773A1 (en) * 2013-01-17 2014-07-24 华为技术有限公司 Data packet processing method and device
WO2015109527A1 (en) * 2014-01-24 2015-07-30 华为技术有限公司 Header compression device and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113133055A (en) * 2019-04-30 2021-07-16 Oppo广东移动通信有限公司 Method and apparatus for wireless communication

Similar Documents

Publication Publication Date Title
KR102629306B1 (en) A method and apparatus of processing by classifying sdap control pdu in a mobile communication system
JP5063781B2 (en) Method for transmitting uplink data and buffer status report in a wireless communication system and wireless device embodying the same
US9635530B2 (en) User equipment (UE) supporting packet-switched emergency calls over IP multimedia subsystem (IMS)
US20170257796A1 (en) Selective Uplink Only Header Compression Mechanism
WO2014110773A1 (en) Data packet processing method and device
US9031041B2 (en) Mobile communication method and base station
JP2012523777A (en) Header compression for IP repeater nodes
WO2017198183A1 (en) Uplink data transmission method and system, user equipment, base station and storage medium
US20210185560A1 (en) Transmitting Device, Receiving Device, and Methods Performed Therein for Handling Uplink Data Compression
WO2016161594A1 (en) Data transmission method and apparatus
US9549371B2 (en) Access point proxy and multi-hop wireless communication
WO2014047936A1 (en) Data transmission method, device, terminal and base station
CN106471847B (en) Method and apparatus for communicating data communication sessions between radio access networks
WO2017107148A1 (en) Method of transmitting data and network equipment
US10171544B2 (en) Radio base station
JP2023105184A (en) Terminal device, communication method, and base station device
WO2017147754A1 (en) Compression method and device for data packets
WO2016154831A1 (en) Method and device for realizing transmission control protocol (tcp) transmission
CN108076481B (en) Method for terminal to access cluster group calling later
US10299162B2 (en) Robust header compression (RoHC) techniques for a dynamically changing extension bit
US20230140866A1 (en) Wireless data link layer compression and decompression
WO2015085741A1 (en) Switching method, source base station, target base station, system and storage medium
CN114710568A (en) Audio and video data communication method, equipment and storage medium
WO2022063187A1 (en) Communication method and apparatus
CN117062257B (en) Multi-channel-based data transmission method, terminal equipment and target gateway

Legal Events

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

Ref country code: DE

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

Ref document number: 16891947

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16891947

Country of ref document: EP

Kind code of ref document: A1