WO2023005452A1 - Communication method and apparatus, and device - Google Patents
Communication method and apparatus, and device Download PDFInfo
- Publication number
- WO2023005452A1 WO2023005452A1 PCT/CN2022/098153 CN2022098153W WO2023005452A1 WO 2023005452 A1 WO2023005452 A1 WO 2023005452A1 CN 2022098153 W CN2022098153 W CN 2022098153W WO 2023005452 A1 WO2023005452 A1 WO 2023005452A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- buffer
- data packet
- data
- compression
- communication device
- Prior art date
Links
- 238000004891 communication Methods 0.000 title claims abstract description 877
- 238000000034 method Methods 0.000 title claims abstract description 281
- 239000000872 buffer Substances 0.000 claims abstract description 1804
- 238000007906 compression Methods 0.000 claims abstract description 899
- 230000006835 compression Effects 0.000 claims abstract description 884
- 230000006837 decompression Effects 0.000 claims abstract description 606
- 230000003068 static effect Effects 0.000 claims description 369
- 238000012545 processing Methods 0.000 claims description 53
- 230000008569 process Effects 0.000 claims description 48
- 230000015654 memory Effects 0.000 claims description 37
- 238000003860 storage Methods 0.000 claims description 22
- 238000004590 computer program Methods 0.000 claims description 21
- 230000005540 biological transmission Effects 0.000 abstract description 37
- 238000013144 data compression Methods 0.000 abstract description 32
- 238000013461 design Methods 0.000 description 79
- 230000006870 function Effects 0.000 description 54
- 238000007726 management method Methods 0.000 description 30
- 238000010295 mobile communication Methods 0.000 description 22
- 230000007246 mechanism Effects 0.000 description 21
- 238000010586 diagram Methods 0.000 description 16
- 238000012790 confirmation Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 7
- 230000008859 change Effects 0.000 description 5
- 230000001360 synchronised effect Effects 0.000 description 5
- 230000006978 adaptation Effects 0.000 description 4
- 230000007774 longterm Effects 0.000 description 4
- 102100022734 Acyl carrier protein, mitochondrial Human genes 0.000 description 3
- 101000678845 Homo sapiens Acyl carrier protein, mitochondrial Proteins 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 239000011521 glass Substances 0.000 description 3
- 239000000203 mixture Substances 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- XHSQDZXAVJRBMX-UHFFFAOYSA-N 2-(5,6-dichlorobenzimidazol-1-yl)-5-(hydroxymethyl)oxolane-3,4-diol Chemical compound OC1C(O)C(CO)OC1N1C2=CC(Cl)=C(Cl)C=C2N=C1 XHSQDZXAVJRBMX-UHFFFAOYSA-N 0.000 description 2
- 230000001174 ascending effect Effects 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 239000013256 coordination polymer Substances 0.000 description 2
- 238000013523 data management Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 238000001356 surgical procedure Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 230000010267 cellular communication Effects 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/04—Protocols for data compression, e.g. ROHC
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/06—Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
Definitions
- the present application relates to the technical field of communication, and in particular to a communication method, device and equipment.
- a compression algorithm is usually used to compress the data to be transmitted.
- Uplink data compression UDC
- Robust header compression RoHC
- Ethernet header compression Ethernet header compression
- the UDC mechanism is to use the content stored in the compression buffer (buffer) to compress the data packet, and each time the data packet is compressed by using the compression buffer, the original data packet content will be used to update the compression buffer.
- the RoHC mechanism and the EHC mechanism compress the packet header.
- the current compression mechanism is inflexible and unable to adapt to various complex and changeable situations, thereby affecting the efficiency of data compression.
- the present application provides a communication method, device and equipment, which are used to improve the flexibility of data compression in a communication system, thereby improving the efficiency of data compression.
- the embodiment of the present application provides a communication method, which can be applied to the first communication device as the compression side, and the method includes the following steps:
- the first communication device acquires compression configuration information; wherein the compression configuration information includes: compression mode indication information and compression buffer configuration information, and the compression mode indication information is used to instruct the first communication device to perform compression processing on the data packet
- the target compression method the compression buffer configuration information is used to configure the target compression buffer; after that, the first communication device configures the target compression buffer according to the compression buffer configuration information; after obtaining the first data packet , using the target compression method to compress the first data packet according to the target compression buffer to generate a second data packet; finally, the first communication device sends the second data packet to a second communication device.
- the communication system can configure the target compression mode and the target compression buffer used by the compression side. Therefore, through this method, the communication system can flexibly configure the target compression mode on the compression side and the target compression buffer on the compression side according to the service characteristics and the data characteristics of the data packet, thereby improving the flexibility of data compression in the communication system, and further enabling Improve data compression efficiency, and ultimately improve the data transmission efficiency and resource utilization of the communication system.
- the target compression mode is a compression mode based on a dynamic buffer;
- the target compression buffer is a dynamic buffer; in this case, the first communication device may perform the following steps specifically to the The first packet is compressed to generate the second packet:
- the first communication device compresses the first data packet according to the data content contained in the first data packet and the data content stored in the dynamic compression buffer to generate a second data packet; then according to the The data content contained in the first data packet updates the data content stored in the dynamic buffer.
- the communication system can configure the compression side to use a dynamic buffer-based compression method.
- the compressed buffer configuration information is used to indicate the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer.
- the first communication device can configure the size or initial data content of the dynamic buffer according to the compressed buffer configuration information.
- the target compression method is a compression method based on a static buffer; the target compression buffer is a static buffer; in this case, the first communication device may perform the following steps specifically to the The first packet is compressed to generate the second packet:
- the first communication device compresses the first data packet according to the data content contained in the first data packet and the data content stored in the static buffer to generate a second data packet.
- the communication system can configure the compression side to use a static buffer-based compression method.
- the communication system can configure the data content that appears frequently in the data packet as static data content in the static buffer, so that when the compression side uses the static buffer to compress the data packet, the compression rate of the data packet can be improved.
- the compressed buffer configuration information is used to indicate the size of the static buffer and/or static data content filled into the static buffer.
- the first communication device can configure the size of the static buffer or the static data content according to the compressed buffer configuration information.
- the target compression mode is an enhanced compression mode based on static buffer and dynamic buffer;
- the target compression buffer includes static buffer and dynamic buffer;
- the first communication device may specifically The first data packet is compressed to generate the second data packet through the following implementation methods:
- Implementation mode 1 compress the first field according to the data content contained in the first field in the first data packet and the data content stored in the static buffer, and generate the compressed first field; according to The data content contained in the second field in the first data packet and the data content stored in the dynamic buffer are compressed to generate the compressed second field; wherein, the first The data packet is composed of the first field and the second field; according to the compressed first field and the compressed second field, the second data packet is formed; according to the first data packet The data content contained in the second domain described in the update the data content stored in the dynamic buffer;
- Implementation mode 2 compress the first field according to the data content contained in the first field in the first data packet and the data content stored in the static buffer, and generate the compressed first field; according to The data content contained in the second domain in the first data packet and the data content stored in the combined buffer are compressed to generate the compressed second domain; wherein the combined buffer is composed of the The static buffer and the dynamic buffer are generated in combination, the first data packet is composed of the first field and the second field; according to the compressed first field and the compressed second field, Composing the second data packet; updating the data content stored in the dynamic buffer according to the data content contained in the second field in the first data packet;
- Implementation mode 3 according to the data content contained in the first field in the first data packet and the data content stored in the static buffer, compress the first field to generate the compressed first field; according to Compressing the first data segment containing the data content contained in the first data segment of the second field in the first data packet and the data content stored in the static buffer to generate the compressed first data segment ; According to the data content contained in the second data segment of the second field in the first data packet and the data content stored in the dynamic buffer, compress the second data segment to generate the compressed The second data segment; wherein, the first data packet is composed of the first domain and the second domain, and the second domain is composed of the first data segment and the second data segment; according to the compression The first field after the compression, the first data segment after compression, and the second data segment after compression form the second data packet; according to the second field in the first data packet The data content contained in the second data segment, updating the data content stored in the dynamic buffer;
- Implementation mode 4 according to the data content contained in the first field in the first data packet and the data content stored in the static buffer, compress the first field to generate the compressed first field; according to The data content contained in the second domain in the first data packet and the data content stored in the first buffer are compressed to generate the compressed second domain; wherein the first buffer is the static buffer or the dynamic buffer, the first data packet is composed of the first field and the second field; according to the compressed first field and the compressed second field, Composing the second data packet; when the first compressed buffer is the dynamic buffer, updating the data content stored in the dynamic buffer according to the data content contained in the second field in the first data packet ;
- Implementation 5 According to the data content contained in the first data packet and the data content stored in the combination buffer, the first data packet is compressed to generate a second data packet; wherein, the combination buffer is composed of the The static buffer and the dynamic buffer are combined and generated; according to the data content contained in the first data packet, the data content stored in the dynamic buffer is updated;
- Implementation mode 6 according to the data content contained in the first data packet and the data content stored in the first buffer, compress the first data packet to generate a second data packet; wherein, the first buffer is The static buffer or the dynamic buffer; when the first compression buffer is the dynamic buffer, update the data content stored in the dynamic buffer according to the data content contained in the first data packet;
- the first buffer is The static buffer in the compressed buffer
- the second buffer is the dynamic buffer in the compressed buffer
- the first buffer is the dynamic buffer in the compressed buffer
- the second buffer is the dynamic buffer in the compressed buffer
- the second buffer is the static buffer in the compressed buffer;
- the first data packet is composed of at least two data segments such as the first data segment and the second data segment; according to the compressed first The data segment and the compressed second data segment form a second data packet; when the first buffer is the dynamic buffer, according to the data contained in the first data segment in the first data packet content, updating the data content stored in the dynamic buffer; when the second buffer is the dynamic buffer, updating the dynamic buffer according to the data content contained in the second data segment in the first data packet The data content stored in.
- the communication system can be configured to use the enhanced compression mode on the compression side, specifically using one of the above implementation modes for compression. Therefore, the communication system can flexibly configure the implementation method used by the compression side according to the service characteristics and data characteristics of the data packet, so that the flexibility of data compression in the communication system can be further improved, and the efficiency of data compression can be improved, and finally the communication system can be improved. data transmission efficiency and resource utilization.
- the compression configuration information further includes: first indication information, where the first indication information is used to indicate a first buffer type corresponding to at least one first component in the data packet;
- the first buffer type corresponding to any one of the first components is used to instruct the first communication device to use the buffer belonging to the first buffer type in the target compression buffer to compress the first component;
- a first component is any of the following: data packet, first data segment in data packet, second data segment in data packet, first field in data packet, second field in data packet, data packet The first data segment of the second field in the data packet, and the second data segment of the second field in the data packet.
- the first communication device can determine a specific compression strategy according to the first indication information, thereby realizing the compression of the data packet. That is, the communication system may configure the compression policy of the first communication device (that is, the compression policy in any of the above implementation manners) according to the first indication information.
- the first communication device may also send second indication information to the second communication device, where the second indication is used to indicate at least one second component in the second data packet The corresponding second buffer type;
- the second buffer type corresponding to any one of the second components is used to instruct the second communication device to use the buffer of the second buffer type to decompress the second component; any one of the second components is as follows Any one: the second data packet, the first data segment in the second data packet, the second data segment in the second data packet, the first field in the second data packet, the The second field in the second data packet, the first data segment in the second field in the second data packet, and the second data segment in the second field in the second data packet.
- the first communication device may carry the second indication information in a second data packet.
- the first communication device can notify the second communication device of the decompression policy corresponding to the compression policy, thereby ensuring that the second communication device can successfully decompress the received data packet.
- the first field is a packet header, and the second field is a payload; or the first field is a payload, and the second field is a packet header.
- the compressed buffer configuration information is used to indicate: the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer, and the size of the static buffer and/or filled into Static data content of the static buffer.
- the first communication device can configure the size or static data content of the static buffer and configure the size or initial data content of the dynamic buffer according to the compressed buffer configuration information.
- the first communication device may obtain compression configuration information in the following manner:
- Way 1 receiving the compressed configuration information from the second communication device or the third communication device;
- Method 2 Obtain the stored compression configuration information.
- the communication system can configure the compression mode and compression buffer of the first communication device through the first communication device itself, the second communication device, or the third communication device.
- the first communication device before receiving the compressed configuration information from the second communication device or the third communication device, may also send the compressed configuration information to the second communication device or the third communication device
- the communication device sends compression capability information, where the compression capability information is used to indicate the compression capability of the first communication device.
- the second communication device or the third communication device may also generate the compression configuration information according to the compression capability of the first communication device.
- the compression capability information includes at least one of the following:
- the first communication device may also perform the following steps:
- the communication system can also update (adjust size and/or store content) the target compression buffer in the first communication device, so that the updated target compression buffer can adapt to changing services, thereby ensuring the compression of data packets Rate.
- the first communication device may receive the A stop compression instruction of the second communication device or the third communication device; then according to the stop compression instruction, stop compressing data packets according to the target compression buffer. After updating the target compression buffer, receiving an instruction to start compression from the second communication device or the third communication device, so that the first communication device starts to use the updated target compression buffer to compress the data packet.
- the communication system can instruct the first communication device to stop and start the compression operation by sending the stop compression instruction and the start compression instruction to the first communication device.
- This design can specify the time when the first communication device stops compressing and the time when the updated target compression buffer is used. Therefore, this method can solve the problem of the target compression buffer used by the first communication device when compressing and the time when the second communication device decompresses.
- the target decompression buffer is inconsistent, resulting in the failure to successfully decompress the data packet, which eventually leads to the failure of the data packet transmission.
- the buffer update information further includes: third indication information; the third indication information is used to indicate the data packets compressed using the updated target compression buffer; the third The data packet is the data packet indicated by the third indication information.
- the first communication device may update the target compression buffer when receiving the data packet indicated by the third indication information for the first time, and use the updated target compression buffer to compress subsequent data packets.
- the communication system can instruct the first communication device to update the time of the target compression buffer by specifying the data packet, so that the data packet that the first communication device compresses using the updated target compression buffer can be specified. Therefore, this design can also solve the problem that the target compression buffer used by the first communication device for compression is inconsistent with the target decompression buffer used by the second communication device for decompression, resulting in the inability to successfully decompress the data packet and eventually lead to the failure of data packet transmission.
- the fourth data packet further includes fourth indication information, and the fourth indication information is used to indicate that the fourth data packet uses the updated
- the target compression buffer is generated by compression.
- the first communication device can also indicate the data packets to be compressed using the updated target compression buffer through the fourth indication information.
- the second communication device receives the data packet containing the fourth indication information, it can use the updated target decompression buffer to decompress, thereby solving the problem of the target compression buffer used by the first communication device when compressing and the second communication device
- the target decompression buffer used during decompression is inconsistent.
- the first communication device is a terminal device, and the second communication device is a base station; or
- the first communication device is a base station, and the second communication device is a terminal device; or
- the first communication device and the second communication device are different terminal devices; or
- the first communication device is a terminal device, and the second communication device is a core network device; or
- the first communication device is a core network device, and the second communication device is a terminal device; or
- the first communication device is a base station, and the second communication device is a core network device; or
- the first communication device is a core network device, and the second communication device is a base station;
- the first communication device and the second communication device are different core network devices.
- the first communication device when the first communication device is a base station, and a terminal device accessing the base station switches to a target base station, the first communication device may also send compressed buffer status information to the target base station, The status information of the compression buffer is used to indicate the size and/or stored data content of the current target compression buffer.
- the first communication device can notify the target base station of the state of the compressed buffer maintained by the source base station side, so that the target base station can quickly configure a compressed buffer with the same size and data content locally according to the state information of the buffer, so that Takes over the compression work from the source base station.
- the first communication device when the first communication device is a terminal device and the terminal device is handed over to the target base station, the first communication device may also receive fifth indication information from the target base station, so The fifth instruction information is used to instruct to clear or maintain the target compression buffer, or to adjust the size of the target compression buffer, or to update the data content stored in the target compression buffer.
- the target base station can also decide whether to update, clear or maintain the content of the decompression buffer when configuring the decompression buffer locally according to the obtained buffer state information of the source base station.
- the target base station may also instruct the terminal device to perform the same processing on the compression buffer.
- the embodiment of the present application provides a communication method, which can be applied to a second communication device as the decompression side, and the method includes the following steps:
- the second communication device acquires decompression configuration information; wherein, the decompression configuration information includes: decompression mode indication information and decompression buffer configuration information, wherein the decompression mode indication information is used to instruct the second communication device to perform the decompression on the data packet
- the target decompression method of decompression processing the decompression buffer configuration information is used to configure the target decompression buffer; then, according to the decompression buffer configuration information, configure the target decompression buffer; after receiving the second data from the first communication device After packeting, the second communication device uses the target decompression method to decompress the second data packet according to the target decompression buffer to generate a first data packet; wherein the second data packet is the first
- the communication device compresses the first data packet to generate it.
- the communication system can configure the target decompression method and the target decompression buffer used by the decompression side. Therefore, through this method, the communication system can flexibly configure the target compression mode on the compression side, the target compression buffer on the compression side, and the corresponding target decompression mode on the decompression side, and the target decompression mode on the decompression side according to the service characteristics and data characteristics of the data packet.
- the target decompresses the buffer, so that the flexibility of data compression in the communication system can be improved, and the efficiency of data compression can be improved, and finally the data transmission efficiency and resource utilization of the communication system can be improved.
- the target decompression method is a dynamic buffer-based decompression method
- the target decompression buffer is a dynamic buffer
- the second communication device may perform the following steps to The second data packet is decompressed, and when the first data packet is generated:
- the communication system can configure the decompression side to use a dynamic buffer-based decompression method.
- the decompression buffer configuration information is used to indicate the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer.
- the second communication device can configure the size or initial data content of the dynamic buffer according to the decompression buffer configuration information.
- the target decompression method is a static buffer-based decompression method;
- the target decompression buffer is a static buffer; in this case, the second communication device can perform the following steps to The second data packet is decompressed to generate the first data packet:
- the communication system can configure the decompression side to use a static buffer-based decompression method.
- the decompression buffer configuration information is used to indicate the size of the static buffer and/or static data content filled into the static buffer.
- the second communication device can configure the size of the static buffer or the static data content according to the decompression buffer configuration information.
- the target decompression method is an enhanced decompression method based on static buffer and dynamic buffer;
- the target decompression buffer includes static buffer and dynamic buffer;
- the second communication device may specifically The second data packet is decompressed to generate the first data packet through the following implementation methods:
- Implementation mode 1 according to the data content contained in the first field in the second data packet and the data content stored in the static buffer, decompress the first field to generate the decompressed first field; according to The data content contained in the second domain in the second data packet and the data content stored in the dynamic buffer are decompressed to generate the decompressed second domain; wherein, the second The data packet is composed of the first field and the second field; according to the decompressed first field and the decompressed second field, the first data packet is formed; according to the decompressed first field The data content contained in the second field updates the data content stored in the dynamic buffer;
- Implementation mode 2 according to the data content contained in the first field in the second data packet and the data content stored in the static buffer, decompress the first field to generate the decompressed first field; according to The data content contained in the second field in the second data packet and the data content stored in the combination buffer are decompressed to the second field to generate the decompressed second field; wherein the combination buffer is obtained by the The static buffer and the dynamic buffer are generated in combination, the second data packet is composed of the first field and the second field; according to the decompressed first field and the decompressed second field, Composing the first data packet; updating the data content stored in the dynamic buffer according to the data content contained in the decompressed second domain;
- Implementation mode 3 according to the data content contained in the first field in the second data packet and the data content stored in the static buffer, decompress the first field to generate the decompressed first field; according to The data content contained in the first data segment of the second field in the second data packet and the data content stored in the static buffer are decompressed to the first data segment to generate the decompressed first data segment ; According to the data content contained in the second data segment of the second domain in the second data packet and the data content stored in the dynamic buffer, decompress the second data segment to generate the decompressed The second data segment; wherein, the second data packet is composed of the first domain and the second domain, and the second domain is composed of the first data segment and the second data segment; according to decompression The first domain after decompression, the first data segment after decompression, and the second data segment after decompression form the first data packet; according to the data contained in the second data segment after decompression content, updating the data content stored in the dynamic buffer;
- Implementation mode 4 according to the data content contained in the first field in the second data packet and the data content stored in the static buffer, decompress the first field to generate the decompressed first field; according to The data content contained in the second domain in the second data packet and the data content stored in the first buffer are decompressed to generate the decompressed second domain; wherein the first buffer is the static buffer or the dynamic buffer, the first data packet is composed of the first domain and the second domain; according to the decompressed first domain and the decompressed second domain, Composing the first data packet; when the first buffer is the dynamic buffer, updating the data content stored in the dynamic buffer according to the data content contained in the decompressed second domain;
- Implementation 5 According to the data content contained in the second data packet and the data content stored in the combination buffer, decompress the second data packet to generate the first data packet; wherein, the combination buffer is composed of The static buffer and the dynamic buffer are combined and generated; according to the data content contained in the first data packet, the data content stored in the dynamic buffer is updated;
- Implementation mode 6 according to the data content contained in the second data packet and the data content stored in the first buffer, decompress the second data packet to generate the first data packet; wherein, the first buffer is the static buffer or the dynamic buffer; when the first buffer is the dynamic buffer, updating the data content stored in the dynamic buffer according to the data content contained in the first data packet;
- Implementation mode 7 according to the data content contained in the first data segment in the second data packet and the data content stored in the first buffer, decompress the first data segment to generate the decompressed first data segment; According to the data content contained in the second data segment in the first data packet and the data content stored in the second buffer, decompress the second data segment to generate the decompressed second data segment; wherein, The first buffer is the static buffer in the decompression buffer, the second buffer is the dynamic buffer in the decompression buffer; or the first buffer is the decompression buffer in the Dynamic buffer, the second buffer is the static buffer in the decompression buffer; the second data packet is composed of at least two data segments such as the first data segment and the second data segment; according to decompression The first data segment after decompression and the second data segment after decompression form a second data packet; when the first buffer is the dynamic buffer, according to the first data segment after decompression contains update the data content stored in the dynamic buffer; when the second buffer is the dynamic buffer, update the data content stored in the dynamic buffer according to
- the communication system can be configured to use the enhanced decompression method on the decompression side, and specifically adopt one of the above implementation methods for compression. Therefore, the communication system can flexibly configure the implementation method used by the compression side and the corresponding implementation method used by the decompression side according to the service characteristics and data characteristics of the data packet, thereby further improving the flexibility of data compression in the communication system. Furthermore, the data compression efficiency can be improved, and finally the data transmission efficiency and resource utilization rate of the communication system can be improved.
- the decompression configuration information further includes: sixth indication information, where the sixth indication information is used to indicate a third buffer type corresponding to at least one third component in the data packet;
- the third buffer type corresponding to any third component is used to instruct the second communication device to use the buffer belonging to the third buffer type in the target decompression buffer to decompress the third component;
- a third component is any of the following: a data packet, a first data segment in a data packet, a second data segment in a data packet, a first field in a data packet, a second field in a data packet, a data packet The first data segment of the second field in the data packet, and the second data segment of the second field in the data packet.
- the second communication device can determine a specific decompression strategy according to the sixth indication information, so as to realize decompression of the data packet. That is, the communication system may configure the decompression policy of the second communication device according to the sixth indication information.
- the method further includes: receiving second indication information from the first communication device, where the second indication is used to indicate that at least one second component in the second data packet corresponds to The second buffer type;
- the second buffer type corresponding to any second component is used to instruct the second communication device to use the buffer belonging to the second buffer type in the target decompression buffer to decompress the second component;
- a second component is any of the following: the second data packet, the first data segment in the second data packet, the second data segment in the second data packet, the second data packet The first field in the second data packet, the second field in the second data packet, the first data segment in the second field in the second data packet, and the second data segment in the second field in the second data packet.
- the first communication device can notify the second communication device of the decompression policy corresponding to the compression policy, thereby ensuring that the second communication device can successfully decompress the received data packet.
- the first field is a packet header, and the second field is a payload; or the first field is a payload, and the second field is a packet header.
- the decompression buffer configuration information is used to indicate: the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer, and the size of the static buffer and/or filled into Static data content of the static buffer.
- the second communication device can configure the size or static data content of the static buffer and configure the size or initial data content of the dynamic buffer according to the decompression buffer configuration information.
- the second communication device may obtain the decompression configuration information in the following manner:
- Mode 1 receiving the decompression configuration information from the first communication device or the third communication device; or
- Method 2 Obtain the saved configuration information for decompression.
- the communication system can configure the decompression mode and decompression buffer of the second communication device through the first communication device, the second communication device itself, or the third communication device.
- the second communication device before receiving the second data packet from the first communication device, may also send compression configuration information to the first communication device; wherein the compression configuration information includes : Compression mode indication information and compression cache buffer configuration information, the compression mode indication information is used to indicate the target compression mode for the first communication device to compress the data packet, and the compression buffer configuration information is used to configure the data packet
- the compression configuration information includes : Compression mode indication information and compression cache buffer configuration information
- the compression mode indication information is used to indicate the target compression mode for the first communication device to compress the data packet
- the compression buffer configuration information is used to configure the data packet
- the target compression buffer used for compression the target compression mode corresponds to the target decompression mode, and the configuration of the target compression buffer is the same as that of the target decompression buffer.
- the second communication device can also configure the compression mode and compression buffer of the first communication device.
- the second communication device may also generate the compressed configuration information through the following steps:
- the compression capability information is used to indicate the compression capability of the first communication device; and then generating the compression configuration information according to the compression capability information.
- the second communication device can generate compression configuration information according to the compression capability of the first communication device.
- the compression capability information includes at least one of the following:
- the second communication device may also perform the following steps:
- buffer update information is used to instruct the first communication device to adjust the size of the target compression buffer, and/or update the data content stored in the target compression buffer;
- the fourth data packet After receiving the fourth data packet from the first communication device, using the target decompression method to decompress the fourth data packet according to the updated target decompression buffer to generate a third data packet; wherein, The fourth data packet is generated by the first communication device compressing the third data packet.
- the communication system can also update (resize and/or store content) the target decompression buffer in the second communication device, and in order to realize that the target decompression buffer is completely consistent with the target compression buffer, the second communication device can also instruct The first communication device updates the target compression buffer, so that the updated target compression buffer and target decompression buffer can adapt to changing services, thereby ensuring the compression rate of the data packet.
- the second communication device may also send a stop compression instruction to the first communication device; wherein, the stop compression instruction uses Instructing the first communication device to stop using the target compression buffer to compress data packets.
- the second communication device can instruct the first communication device when to stop compression through the stop compression instruction.
- the buffer update information further includes: third indication information; the third indication information is used to indicate the data packets compressed using the updated target compression buffer; the third The data packet is the data packet indicated by the third indication information.
- the second communication device can indicate the time when the first communication device updates the target compression buffer by specifying the data packet, so that the data packet that the first communication device compresses using the updated target compression buffer can be specified. Therefore, this design can also solve the problem that the target compression buffer used by the first communication device for compression is inconsistent with the target decompression buffer used by the second communication device for decompression, resulting in the inability to successfully decompress the data packet and eventually lead to the failure of data packet transmission.
- the fourth data packet further includes fourth indication information, and the fourth indication information is used to indicate that the fourth data packet uses the updated
- the target compression buffer is generated by compression.
- the first communication device can also indicate the data packets to be compressed using the updated target compression buffer through the fourth indication information.
- the second communication device receives the data packet containing the fourth instruction information, it can use the updated target decompression buffer to decompress, thereby solving the problem of the target compression buffer used by the first communication device when compressing and the second communication device decompressing.
- the first communication device is a terminal device, and the second communication device is a base station; or
- the first communication device is a base station, and the second communication device is a terminal device; or
- the first communication device and the second communication device are different terminal devices; or
- the first communication device is a terminal device, and the second communication device is a core network device; or
- the first communication device is a core network device, and the second communication device is a terminal device; or
- the first communication device is a base station, and the second communication device is a core network device; or
- the first communication device is a core network device, and the second communication device is a base station;
- the first communication device and the second communication device are different core network devices.
- the second communication device when the second communication device is a base station, and the terminal device accessing the base station switches to the target base station, the second communication device may also send the decompression buffer status to the target base station Information, the state information of the decompression buffer is used to indicate the size and/or stored data content of the current target decompression buffer.
- the second communication device can notify the target base station of the state of the decompression buffer maintained by the source base station side, so that the target base station can quickly configure the decompression buffer locally with the same size and data content according to the state information of the buffer, so that Takes over the compression work from the source base station.
- the second communication device when the second communication device is a terminal device and the terminal device is handed over to the target base station, the second communication device may also receive seventh indication information from the target base station, so The seventh instruction information is used to instruct to clear or maintain the target decompression buffer, or adjust the size of the target decompression buffer, or update the data content stored in the target decompression buffer.
- the target base station can also decide whether to update, clear or maintain the contents of the compressed buffer when the compressed buffer is configured locally according to the obtained buffer state information of the source base station.
- the target base station may also instruct the terminal device to perform the same process on the decompressed buffer.
- the embodiment of the present application provides a communication device, including a unit configured to perform each step in any one of the above aspects.
- the embodiment of the present application provides a communication device, including at least one processing element and at least one storage element, wherein the at least one storage element is used to store programs and data, and the at least one processing element is used to read and execute The program and data stored in the storage element enable the method provided by any one of the above aspects of the present application to be realized.
- an embodiment of the present application provides a communication system, including: a first communication device configured to execute the method provided in the first aspect, and a second communication device configured to execute the method provided in the second aspect.
- the embodiment of the present application further provides a computer program, which, when the computer program is run on a computer, causes the computer to execute the method provided in any one of the above aspects.
- the embodiment of the present application also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a computer, the computer executes any one of the above-mentioned method provided.
- the embodiment of the present application further provides a chip, the chip is used to read a computer program stored in a memory, and execute the method provided in any one of the above aspects.
- the embodiment of the present application further provides a chip system, where the chip system includes a processor, configured to support a computer device to implement the method provided in any one of the above aspects.
- the chip system further includes a memory, and the memory is used to store necessary programs and data of the computer device.
- the system-on-a-chip may consist of chips, or may include chips and other discrete devices.
- FIG. 1 is a schematic diagram of a dynamic buffer-based compression/decompression method provided by an embodiment of the present application
- FIG. 2 is a schematic diagram of a static buffer-based compression/decompression method provided by an embodiment of the present application
- FIG. 3A is a schematic diagram of the splicing method of the combined buffer provided in the embodiment of the present application.
- FIG. 3B is a schematic diagram of an uncombined dynamic buffer and a static buffer provided by the embodiment of the present application;
- FIG. 4 is a schematic diagram of an update method of a combined buffer provided in an embodiment of the present application.
- FIG. 5 is a schematic structural diagram of a communication system provided by an embodiment of the present application.
- FIG. 6 is a flowchart of a communication method provided by an embodiment of the present application.
- FIG. 7 is a schematic diagram of updating static data content of a static buffer provided by an embodiment of the present application.
- FIG. 8 is a schematic diagram of updating the size of a static buffer provided by an embodiment of the present application.
- FIG. 9 is a flowchart of a communication example provided by the embodiment of the present application.
- FIG. 10 is a flowchart of another communication example provided by the embodiment of the present application.
- FIG. 11 is a flowchart of another communication example provided by the embodiment of the present application.
- FIG. 12 is a flow chart of another communication example provided by the embodiment of the present application.
- FIG. 13 is a structural diagram of a communication device provided by an embodiment of the present application.
- FIG. 14 is a structural diagram of a communication device provided by an embodiment of the present application.
- the present application provides a communication method, device and equipment, which are used to improve the flexibility of data compression in a communication system, thereby improving the efficiency of data compression.
- the method, device and equipment are based on the same technical conception. Since the principle of solving the problem is similar, the implementation of the device, device and method can be referred to each other, and the repetition will not be repeated.
- Communication equipment generally refers to equipment with communication functions.
- the communication device may be, but not limited to, a terminal device, an access network (access network) device, an access point, a core network device, a server in a data network, and the like.
- the AN device is a device for connecting a terminal device to a wireless network in a mobile communication system.
- the AN device may also be called a base station, a radio access network (radio access network, RAN) node (or device), and an access point (access point, AP).
- radio access network radio access network, RAN
- AP access point
- AN equipment are: new generation Node B (generation Node B, gNB), transmission reception point (transmission reception point, TRP), evolved Node B (evolved Node B, eNB), wireless network controller (radio network controller, RNC), node B (Node B, NB), base station controller (base station controller, BSC), base transceiver station (base transceiver station, BTS), home base station (for example, home evolved NodeB, or home Node B , HNB), or base band unit (base band unit, BBU), etc.
- generation Node B generation Node B
- TRP transmission reception point
- wireless network controller radio network controller
- node B Node B, NB
- base station controller base station controller
- BTS base transceiver station
- home base station for example, home evolved NodeB, or home Node B , HNB
- base band unit base band unit
- the AN device may include a centralized unit (centralized unit, CU) node and a distributed unit (distributed unit, DU) node.
- CU centralized unit
- DU distributed unit
- This structure separates the protocol layers of the eNB in the long term evolution (LTE) system, the functions of some protocol layers are placed in the CU for centralized control, and the remaining part or all of the functions of the protocol layers are distributed in the DU. Centralized control of DUs.
- LTE long term evolution
- a terminal device is a device that provides voice and/or data connectivity to users.
- the terminal equipment may also be called user equipment (user equipment, UE), mobile station (mobile station, MS), mobile terminal (mobile terminal, MT) and so on.
- the terminal device may be a handheld device with a wireless connection function, a vehicle-mounted device, and the like.
- some terminal devices are: mobile phone (mobile phone), tablet computer, notebook computer, palmtop computer, mobile Internet device (mobile internet device, MID), intelligent sales terminal (point of sale, POS), wearable device, Virtual reality (virtual reality, VR) equipment, augmented reality (augmented reality, AR) equipment, wireless terminals in industrial control (industrial control), wireless terminals in self driving (self driving), remote medical surgery (remote medical surgery) Wireless terminals in smart grid, wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, various Smart meters (smart water meters, smart electricity meters, smart gas meters), etc.
- the core network equipment is a network element included in the core network part of the mobile communication system.
- Core network equipment can connect terminal equipment to different data networks, as well as services such as billing, mobility management, session management, and user plane forwarding.
- services such as billing, mobility management, session management, and user plane forwarding.
- the names of core network devices with the same function may be different. However, this embodiment of the present application does not limit the specific name of the core network device having each function.
- the network element responsible for functions such as access control, security control, and signaling coordination is called mobility management.
- Entity Mobile management entity, MME
- the network element serving as the local mobile management anchor point is the serving gateway (serving gateway, S-GW)
- the network element that is the anchor point of the handover of the external data network and responsible for IP address allocation is the packet data Network (packet data network, PDN) gateway (PDN gateway, P-GW)
- PDN gateway, P-GW packet data Network gateway
- PDN gateway, P-GW packet data Network gateway
- the network element that stores user-related data and subscription data is the home subscription server (home subscriber server, HSS)
- the network element responsible for policy and charging functions is called It is a policy and charging rule function (policy and charging rule function, PCRF) network element.
- policy and charging rule function policy and charging rule function
- the core network can be divided into a control plane (control plane, CP) and a user plane (user plane, UP).
- control plane control plane
- user plane user plane
- network elements responsible for control plane functions in the core network may be collectively referred to as control plane network elements
- network elements responsible for user plane functions may be collectively referred to as user plane network elements.
- the network element serving as an interface of the data network and responsible for functions such as user plane data forwarding is a user plane function (user plane function, UPF) network element.
- UPF user plane function
- access and mobility management function access and mobility management function
- SMF session management function
- UDM unified data management
- PCF policy control function
- application function application function
- the size of the buffer is used to measure the storage capacity of the buffer, and its unit can be bit (bit), byte (Byte), kilobyte (KByte), megabyte (MByte), etc.
- a plurality referred to in this application refers to two or more than two. At least one means one or more than one.
- the compression side needs to maintain the compression buffer, and the decompression side needs to maintain the decompression buffer.
- Both the compression buffer and the decompression buffer are dynamic buffers (that is, the data content stored in the buffer will change dynamically as the data packet is compressed/decompressed).
- the compression buffer maintained by the compression side when compressing a data packet needs to keep the same content as the decompression buffer maintained by the decompression side when decompressing the compressed data packet generated by the data packet. That is, the size and stored data content are the same.
- the compression process of the compression side the compression side judges whether the compression buffer and the original data packet contain the same at least one data segment (any data segment) according to the data content contained in the original data packet to be compressed and the data content stored in the compression buffer. The amount of data is greater than 1). If it is judged that there is a target data segment in both the compression buffer and the original data packet, the compression side uses the position information and length information of the target data segment in the compression buffer to replace the target data segment in the original data packet to obtain a compressed data packet. Finally, the compression side sends the compressed data packet to the decompression side.
- the target data segment is extracted from the decompression buffer, thereby finally restoring the original data Bag.
- each time the compression side compresses an original data packet it will use the data content in the original data packet to update the data content stored in the compression buffer. It can be understood as pushing the data content in the original data packet into the compression buffer based on the first-in-first-out (first input first output, FIFO) operation.
- first-in-first-out first input first output, FIFO
- the size of the compressed buffer is fixed, data previously stored in the compressed buffer may be pushed out of the buffer.
- every time the decompression side decompresses a compressed data packet and restores the original data packet it will use the data content in the original data packet to update the data content stored in the decompression buffer.
- the specific update method is the same as that of the compression side. Here No longer.
- the present application does not limit the physical form of the data segment.
- the data segment may be a bit sequence (at least two bits), or a character string (at least two characters).
- the present application does not limit the number of target data segments found in an original data packet, that is, does not limit the number of data segments that can be compressed in the original data packet.
- the length of the target data segment to be searched by the compression side in the compression buffer and the original data packet should be as long as possible. For example, when the compression side finds a target data segment with a data volume of 2 in the compressed buffer and the original data packet, then the compression side continues to search for a target data segment with a data volume of 3 in the compressed buffer and the original data packet; , then the compression side stops searching, and compresses the target data segment with a data volume of 2; if the target data segment with a data volume of 3 is found, the compression side continues to increase the data volume until the compression side checks When the target data segment with the current amount of data is not available, compress the last found target data segment with the largest amount of data.
- the data content stored in the compression buffer on the compression side is "abcdefgh", and the data content contained in the original data packet (packet A) to be compressed arriving at the compression side is "bcd", see (1) in Figure 1 Show.
- the compression side finds the same character string "bcd” according to the data content in the compressed buffer and the original data packet, and the offset of the starting position of the character string in the compressed buffer relative to the starting position of the compressed buffer is 6 (represented by a binary bit sequence, the position information can be expressed as 110), the length of the character string is 3 (expressed by a binary bit sequence, the length information can be expressed as 011), refer to the compression buffer in (1) in Figure 1 The bold string of .
- the "bcd" in the original data can be replaced with the 6-bit bit sequence "110011", that is, the data content contained in the compressed data packet (data packet B) is "110011", as shown in (2) in Figure 1 .
- the compression side pushes the data content in the data packet A into the compression buffer, and the data content stored in the compression buffer is updated to "defghbcd", as shown in (2) in Figure 1.
- the content of the data stored in the compression buffer at the decompression side is “adcdefgh”, and the data packet B containing the compression information “110011” is received, as shown in (3) in FIG. 1 .
- the decompression side according to the position information "110" and length information "011" contained in the compression information "110011” in the data packet B, determines the offset of the starting position of the character string indicated by the compression information relative to the starting position of the decompression buffer. The displacement is 6 and the length is 3. Therefore, the decompression side can find the character string "bcd” from the search in the decompression buffer according to the position information and length information in the compression information, refer to the bold character string in the decompression buffer in (3) in FIG. 1 .
- the compression side can replace the compressed information "110011" in the data packet B with the found string "bcd", and finally the decompression side can restore the data packet A (the data content contained is "bcd"), see Figure 1 Shown in (4) in.
- the decompression side pushes the data content in packet A into the decompression buffer, and the data content stored in the decompression buffer is updated to "defghbcd", as shown in (4) in Figure 1.
- both the compression buffer and the decompression buffer are static buffers (that is, the data content stored in the buffer does not change dynamically with the compression/decompression of each data packet, but can be updated in a certain way).
- the compression buffer maintained by the compression side and the decompression buffer maintained by the decompression side need to be kept the same, that is, the size and storage The data content is the same.
- the compression process on the compression side and the decompression process on the decompression side are similar to the corresponding process in method 1. The difference is that there is no need to update the compression buffer after compressing the original data packet on the compression side, and the compressed data packet on the decompression side. After decompression, there is no need to update the decompression buffer.
- the compression buffer used by the compression side to compress an original data packet, and the decompression buffer used by the decompression side to decompress the corresponding compressed data packet the data content stored in the two must be completely consistent, so as to ensure that the decompression side decompresses correctly. Recover the original data package.
- the same device can configure the data content stored in the compression buffer and decompression buffer.
- the compression side configures its own compression buffer, and configures the decompression buffer on the decompression side.
- the decompression side configures its own decompression buffer, and configures the compression buffer on the compression side.
- the third-party management device configures the compression buffer on the compression side and the decompression buffer on the decompression side respectively. In short, it is necessary to ensure that the size and stored data content of the two must be exactly the same.
- the specific process of this compression/decompression method can be referred to as shown in FIG. 2.
- the difference from the process in FIG. 1 is that, as shown in (2) in FIG.
- the compression buffer is not updated; as shown in (4) in FIG. 2 , the decompression side does not update the decompression buffer after decompressing the data packet B to obtain the data packet A.
- Both the compression buffer and the decompression buffer contain two types of buffers: static buffer and dynamic buffer.
- static buffer and dynamic buffer In order to ensure that the decompression side can successfully decompress the data packet, when compressing a data packet and decompressing the corresponding compressed data packet, the compression buffer maintained by the compression side and the decompression buffer maintained by the decompression side need to be kept the same, that is, the size and storage
- the data content is the same, including: the static buffer in the compressed buffer and the static buffer in the decompressed buffer have the same size and stored data content; the dynamic buffer in the compressed buffer and the dynamic buffer in the decompressed buffer have the same size and stored data content same.
- the specific implementation manners of the compression process on the compression side and the decompression process on the decompression side can be more flexible.
- the original data packet to be compressed is marked as the first data packet
- the compressed data packet is marked as the second data packet as an example.
- the embodiments of the present application can, but are not limited to, realize this mode through the following several implementation modes:
- Implementation method 1 The data packet corresponds to a dynamic buffer and a static buffer.
- the compression side and the decompression side can combine the dynamic buffer and the static buffer to form a composition buffer; and then use the combined buffer to compress/decompress the data packet.
- the compression process on the compression side compresses the first data packet according to the data content contained in the first data packet and the data content stored in the combination buffer to generate a second data packet; wherein, the combination buffer is obtained from the compression buffer The combination of static buffer and dynamic buffer is generated. Finally, the compression side updates the data content stored in the dynamic buffer in the compression buffer according to the data content contained in the first data packet.
- the decompression process of the decompression side after the decompression side receives the second data packet, according to the data content contained in the second data packet and the data content stored in the combination buffer, the second data packet is decompressed to generate the first data packet; , the combined buffer is generated by combining the static buffer and the dynamic buffer in the decompressed buffer. Finally, the decompression side updates the data content stored in the dynamic buffer in the decompression buffer according to the data content contained in the first data packet.
- Implementation mode 2 the data packet consists of two parts: the first domain and the second domain. Each field corresponds to a different type of buffer: the first field corresponds to a static buffer, and the second field corresponds to a dynamic buffer.
- the compression process of the compression side compresses the first field according to the data content contained in the first field in the first data packet and the data content stored in the static buffer in the compression buffer, and generates the compressed first field; according to The data content contained in the second field in the first data packet and the data content stored in the dynamic buffer in the compression buffer are compressed to generate a compressed second field.
- the compression side updates the data content stored in the dynamic buffer in the compression buffer according to the data content contained in the second field in the first data packet.
- the compression side forms the second data packet according to the compressed first field and the compressed second field.
- Compression process on the decompression side After receiving the second data packet, the decompression side decompresses the first field according to the data content contained in the first field in the second data packet and the data content stored in the static buffer in the decompression buffer to generate The decompressed first domain; according to the data content contained in the second domain in the second data packet and the data content stored in the dynamic buffer in the decompression buffer, decompress the second domain to generate the decompressed second domain.
- the decompression side updates the data content stored in the dynamic buffer in the decompression buffer according to the data content contained in the decompressed second field.
- the decompression side forms the first data packet according to the decompressed first domain and the decompressed second domain.
- Implementation mode 3 the data packet consists of two parts: the first domain and the second domain. Each field corresponds to a different type of buffer: the first field corresponds to a static buffer, and the second field corresponds to a dynamic buffer and a static buffer.
- the compression side and the decompression side can combine the dynamic buffer and the static buffer to form a combined buffer; and then use the combined buffer to compress/decompress the second domain.
- the compression process of the compression side the compression side compresses the first field according to the data content contained in the first field in the first data packet and the data content stored in the static buffer in the compression buffer, and generates the compressed first field; according to The data content contained in the second field in the first data packet and the data content stored in the combined buffer are compressed to generate the compressed second field.
- the combined buffer is composed of the static buffer and the dynamic buffer in the compressed buffer. Buffer composition.
- the compression side updates the data content stored in the dynamic buffer in the compression buffer according to the data content contained in the second field in the first data packet.
- the compression side forms the second data packet according to the compressed first field and the compressed second field.
- the decompression side After receiving the second data packet, the decompression side decompresses the first field according to the data content contained in the first field in the second data packet and the data content stored in the static buffer in the decompression buffer to generate The decompressed first domain; according to the data content contained in the second domain in the second data packet and the data content stored in the combined buffer, the second domain is decompressed to generate the decompressed second domain; at this time, the combined buffer It consists of static buffer and dynamic buffer in decompression buffer.
- the decompression side updates the data content stored in the dynamic buffer in the decompression buffer according to the data content contained in the decompressed second field.
- the decompression side forms the first data packet according to the decompressed first domain and the decompressed second domain.
- the compression side can, but not limited to, combine the static buffer and the dynamic buffer in the compression buffer to generate a combined buffer in the following two ways:
- Splicing method 1 Referring to (1) in Figure 3A, the compression side can splice the static buffer in the compressed buffer in front of the dynamic buffer, that is, the end position of the static buffer is spliced to the adjacent position before the start position of the dynamic buffer Location.
- Splicing method 2 Referring to (2) in Figure 3A, the compression side can splice the dynamic buffer in the compressed buffer in front of the static buffer, that is, the end position of the dynamic buffer is spliced to the adjacent position before the start position of the static buffer Location.
- the process of combining the static buffer and the dynamic buffer in the decompression buffer on the decompression side to generate a combined buffer can refer to the above two splicing methods, which will not be repeated here.
- the compression side uses the combination buffer to compress the first component in the original data packet, only the first component in the original data packet is used to update the dynamic buffer in the combination buffer after compression. That is to push the first component of the original data packet into the dynamic buffer. In this case, some data in the dynamic buffer in the combined buffer may be pushed out, but the static compression buffer is not affected, as shown in Figure 4.
- the decompression side uses the combined buffer to decompress a certain component in the compressed data packet, only the decompressed component is used to update the dynamic buffer in the combined buffer after decompression.
- Implementation mode 4 the data packet consists of two parts: a first domain and a second domain. Each field corresponds to a different type of buffer: the first field corresponds to a static buffer, and the second field corresponds to a dynamic buffer and a static buffer. Further, the second domain is composed of at least two data segments such as a first data segment and a second data segment, and the first data segment corresponds to a static buffer, and the second data segment corresponds to a dynamic buffer.
- the buffer type corresponding to each data segment in the second field may be determined by the compression side, or may be pre-configured, which is not limited in this application.
- this application does not limit how the second domain is divided into at least one or more data segments.
- the compression side may also send indication information indicating the buffer type corresponding to each data segment in the data packet to the decompression side.
- the compression side may carry the indication information in each compressed data packet.
- the compression process of the compression side compresses the first field according to the data content contained in the first field in the first data packet and the data content stored in the static buffer in the compression buffer, and generates the compressed first field; according to The data content contained in the first data segment of the second field in the first data packet and the data content stored in the static buffer in the compressed buffer compress the first data segment to generate a compressed first data segment; according to the first The data content contained in the second data segment in the second field of the data packet and the data content stored in the dynamic buffer in the compressed buffer are compressed to generate a compressed second data segment.
- the compression side forms the second data packet according to the compressed first field, the compressed first data segment, and the compressed second data segment.
- the compression side updates the data content stored in the dynamic buffer according to the data content contained in the second data segment of the second field in the first data packet.
- the decompression process on the decompression side after receiving the second data packet, the decompression side decompresses the first field according to the data content contained in the first field in the second data packet and the data content stored in the static buffer in the decompression buffer , to generate the decompressed first domain; according to the data content contained in the first data segment of the second domain in the second data packet and the data content stored in the static buffer in the decompression buffer, the first data segment is decompressed to generate decompression After the first data segment; according to the data content contained in the second data segment of the second field in the second data packet and the data content stored in the dynamic buffer in the decompression buffer, the second data segment is decompressed to generate the decompressed the second data segment.
- the decompression side forms the first data packet according to the decompressed first field, the decompressed first data segment, and the decompressed second data segment. Finally, the decompression side updates the data content stored in the dynamic buffer in the decompression buffer according to the data content contained in the decompressed second data segment.
- Implementation mode 5 the data packet is composed of two parts: a first domain and a second domain. Each field corresponds to a different type of buffer: the first field corresponds to a static buffer, and the second field corresponds to a dynamic buffer and a static buffer. Further, when compressing the second domain, the compression side can select one type of buffer from dynamic buffer and static buffer to compress the second domain, or the second domain can be compressed by the decompression side or a third-party management device The corresponding buffer type is allocated to the compression side.
- the compression side or a third-party management device also needs to configure a buffer type corresponding to the second domain to the decompression side. side, to ensure that the compression side and the decompression side use the same type of buffer to compress and decompress the second domain.
- the compression side may send indication information for indicating the buffer type corresponding to the second domain to the decompression side.
- the compression side may carry the indication information in each compressed data packet.
- the compression side does not need to send the indication information.
- the compression process of the compression side compresses the first field according to the data content contained in the first field in the first data packet and the data content stored in the static buffer in the compression buffer, and generates the compressed first field; according to The data content contained in the second field in the first data packet and the data content stored in the first buffer in the compression buffer are compressed to generate a compressed second field.
- the first buffer is a static buffer or a dynamic buffer in the compression buffer, which can be specifically configured by the compression side, the decompression side, or a third-party management device.
- the compression side forms the second data packet according to the compressed first field and the compressed second field.
- the compression side updates the data content stored in the dynamic buffer in the compression buffer according to the data content contained in the second field in the first data packet.
- the decompression side After receiving the second data packet, the decompression side decompresses the first field according to the data content contained in the first field in the second data packet and the data content stored in the static buffer in the decompression buffer, and generates The decompressed first domain: according to the data content contained in the second domain in the second data packet and the data content stored in the first buffer in the decompression buffer, decompress the second domain to generate the decompressed second domain.
- the first buffer is a static buffer or a dynamic buffer in the decompression buffer, which may be specifically configured by the decompression side, the compression side, or a third-party management device.
- the decompression side forms the first data packet according to the decompressed first domain and the decompressed second domain.
- the first buffer is a dynamic buffer in the decompressed buffer, update the data content stored in the dynamic buffer in the decompressed buffer according to the data content contained in the decompressed second field.
- Implementation method 6 The data packet is regarded as a whole, and the data packet corresponds to a dynamic buffer and a static buffer. Similar to implementation 5, when compressing a data packet, the compression side can choose a type of buffer from dynamic buffer and static buffer to compress the data packet, or it can be managed by the decompression side or a third party The device configures the buffer type corresponding to the data packet (or a type of data packet, or a data packet received within a set time) to the compression side.
- the compression side or the third-party management device when the buffer type corresponding to the data packet on the compression side is not configured on the decompression side, the compression side or the third-party management device also needs to configure a buffer type corresponding to the data packet to the decompression side. side, to ensure that the compression side and the decompression side use the same type of buffer to compress and decompress data packets.
- the compression side may send indication information for indicating the buffer type corresponding to the data packet to the decompression side.
- the compression side may carry the indication information in each compressed data packet.
- the compression side does not need to send the indication information.
- the compression side compresses the first data packet according to the data content contained in the first data packet and the data content stored in the first buffer of the compression buffer to generate a second data packet.
- the first buffer is a static buffer or a dynamic buffer in the compression buffer, which can be specifically configured by the compression side, the decompression side, or a third-party management device.
- the compression side updates the data content stored in the dynamic buffer in the compression buffer according to the data content contained in the first data packet.
- Decompression process on the decompression side After receiving the second data packet, the decompression side decompresses the second data packet according to the data content contained in the second data packet and the data content stored in the first buffer to generate the first data packet.
- the first buffer is a static buffer or a dynamic buffer in the decompression buffer, which can be specifically configured by the decompression side, the compression side or a third-party management device.
- the decompression side updates the data content stored in the dynamic buffer in the decompression buffer according to the data content contained in the first data packet.
- Implementation mode 7 the data packet is composed of at least two data segments such as a first data segment and a second data segment.
- the compression side can select the corresponding buffer type for each data segment by itself, or the decompression side or a third-party management device configures the buffer type corresponding to each data segment to the compression side.
- different data segments can correspond to the same or different buffer types.
- the compression side or the third-party management device also needs to configure the buffer type corresponding to each data segment in the data packet For the decompression side, to ensure that the compression side and the decompression side use the same buffer type to compress and decompress each data segment.
- the compression side can send a message indicating the buffer type corresponding to each data segment in the data packet to the decompression side.
- the compression side may carry the indication information in each compressed data packet.
- the compression side does not need to send the indication information.
- the compression side compresses the first data segment according to the data content contained in the first data segment in the first data packet and the data content stored in the first buffer in the compression buffer, and generates the compressed first data segment A data segment; according to the data content contained in the second data segment in the first data packet and the data content stored in the second buffer in the compression buffer, compress the second data segment to generate a compressed second data segment.
- the compression side composes the second data packet according to the compressed first data segment and the compressed second data segment.
- the compression side updates the data content stored in the dynamic buffer according to the data content contained in the first data segment in the first data packet; when the second buffer is a dynamic buffer, the compression side updates the data content stored in the dynamic buffer according to the first The data content contained in the second data segment in the data packet updates the data content stored in the dynamic buffer.
- the first buffer is a static buffer in the compression buffer
- the second buffer is a dynamic buffer in the compression buffer
- the first buffer is a dynamic buffer in the compression buffer
- the second buffer is a static buffer in the compression buffer.
- the decompression process of the decompression side after the decompression side receives the second data packet, according to the data content contained in the first data segment in the second data packet and the data content stored in the first buffer in the decompression buffer, the first data segment Decompress to generate the decompressed first data segment; according to the data content contained in the second data segment in the second data packet and the data content stored in the second buffer in the decompression buffer, decompress the second data segment to generate The decompressed second data segment.
- the decompression side forms the first data packet according to the decompressed first data segment and the decompressed second data segment.
- the first buffer is a dynamic buffer
- the data content contained in the first data segment decompressed by the decompression side updates the data content stored in the dynamic buffer in the decompression buffer
- the data content contained in the second data segment updates the data content stored in the dynamic buffer in the decompression buffer.
- the first buffer is a static buffer in the decompression buffer
- the second buffer is a dynamic buffer in the decompression buffer
- the first buffer is a dynamic buffer in the decompression buffer
- the second buffer is a static buffer in the decompression buffer.
- first field and second field can be specifically divided according to the format or data characteristics of the data packet.
- the first field may be a packet header
- the second field may be a payload.
- the first field is the payload
- the second field is the header.
- the format of packet header is also different, exemplary, the packet header of data packet can comprise Ethernet frame header, network protocol (internet protocol, IP) header, transmission control protocol (transmission control protocol, TCP) One or more of header, user datagram protocol (user datagram protocol, UDP) header, real-time transport protocol (real-time transport protocol, RTP) header, service data adaptation protocol (service data adaptation protocol, SDAP) header, etc.
- network protocol internet protocol, IP
- transmission control protocol transmission control protocol
- TCP transmission control protocol
- UDP user datagram protocol
- real-time transport protocol real-time transport protocol
- RTP real-time transport protocol
- SDAP service data adaptation protocol
- the static buffer and the dynamic buffer are two separate and independent buffers, as shown in FIG. 3B .
- FIG. 5 shows the architecture of a possible communication system to which the communication method provided by the embodiment of the present application is applicable.
- the communication system includes three parts: a terminal device, a mobile communication system, and a data network (data network, DN).
- the terminal device is an entity capable of receiving and transmitting wireless signals on the user side, and needs to access the network through the AN device in the mobile communication system.
- the terminal device may be various devices that provide voice and/or data connectivity for users.
- the terminal device may be a vehicle-mounted device, VR glasses, a smart phone, and the like.
- the mobile communication network provides access services and end-to-end connection services for terminal devices.
- the terminal equipment can access the DN through the mobile communication network to realize specific services.
- the mobile communication network may further include two parts: an access network (access network, AN) and a core network (core network, CN).
- the access network is mainly responsible for the wireless access function of the terminal equipment.
- the core network is used to connect terminal equipment to the DN, and is responsible for services such as terminal equipment billing, mobility management, session management, and user plane forwarding.
- the specific network equipment deployed in the access network is AN equipment, which can be responsible for wireless access, wireless resource management on the air interface side, quality of service (QoS) management, data compression and encryption, user plane data forwarding and other functions .
- QoS quality of service
- the core network includes multiple core network devices, each of which implements different core network functions.
- the core network deployed by the core network may be different, and the names of core network devices with the same function may also be different.
- the core network can be divided into a control plane (control plane, CP) and a user plane (user plane, UP). Then, network elements responsible for control plane functions in the core network may be collectively referred to as control plane network elements, and network elements responsible for user plane functions may be collectively referred to as user plane network elements.
- control plane network elements network elements responsible for control plane functions in the core network
- user plane network elements may be collectively referred to as user plane network elements.
- the user plane network elements include UPF network elements (abbreviated as UPF).
- the control plane network elements include: AMF network element (referred to as AMF for short), SMF network element (referred to as SMF for short), UDM network element (referred to as UDM for short), PCF network element (referred to as PCF for short), and AF network element (referred to as AF) etc.
- AMF AMF network element
- SMF SMF network element
- UDM UDM network element
- PCF PCF network element
- AF AF network element
- the DN also called packet data network (PDN)
- PDN packet data network
- Multiple services can be deployed in at least one server in the DN to provide services such as data and/or voice for terminal equipment.
- the mobile communication network can access at least one DN, and the same DN can also be accessed by at least one mobile communication network.
- the DN may be a packet data network (packet data network, PDN), such as the Internet (Internet), IP Multi-media Service (IP Multi-media Service, IMS) network, some application-specific data networks (such as Tencent Video's data network), Ethernet, IP local network, etc., which are not limited in this application.
- the communication system shown in FIG. 5 may support a sidelink (sidelink) communication technology.
- the sidelink communication technology is a near-field communication technology that can be directly connected between terminal devices, and is also called a proximity services (Proximity services, ProSe) communication technology, or a D2D communication technology.
- ProSe proximity services
- a plurality of terminal devices that are geographically close and support sidelink communication may form a sidelink communication system (also called a sidelink communication subsystem, a sidelink system, etc.).
- two terminal devices also referred to as sidelink devices
- the sidelink communication technology can support broadcast, multicast, and unicast transmissions within the coverage of AN equipment, outside the coverage of AN equipment, and under partial coverage of AN equipment.
- different sidelink communication systems can be formed for different application scenarios.
- the user's smartphone can form a sidelink communication system with the on-board equipment installed in the car, as shown in the figure.
- the user's smart phone and the VR glasses can form a sidelink communication system, as shown in the figure.
- a sidelink communication system can be formed by on-board devices between different cars, or a sidelink communication system can be formed by mobile phones on different cars.
- each of the above network elements in the mobile communication system or DN may be a network element implemented on dedicated hardware, or a software instance running on dedicated hardware, or a virtualization platform (such as a cloud platform) ) instance of the virtualization function.
- the embodiment of the present application does not limit the distribution form of each network element in the communication system.
- each of the above network elements may be deployed in different physical devices, or multiple network elements may be integrated in the same physical device.
- communication devices in the communication system shown in FIG. 1 can interact with each other through corresponding interfaces, and some network elements can use service interfaces, which is not limited in this application.
- the AN device and the terminal device may be connected through an air interface (that is, a Uu interface), thereby realizing communication between the AN device and the terminal device (this communication may be referred to as Uu communication, or cellular communication).
- Adjacent terminal devices can establish a direct link sidelink connection through a short-distance service communication interface 5 (ProSe communication 5, PC5) interface to form a sidelink communication system.
- ProSe communication 5, PC5 short-distance service communication interface
- both the Uu interface and the PC5 interface include a control plane protocol stack and a user plane protocol stack.
- the user plane protocol stack includes at least the following protocol layers: physical (physical, PHY) layer, MAC layer, radio link control (radio link control, RLC) layer and packet data convergence protocol (packet data convergence protocol, PDCP) layer, service data adaptation protocol (service data adaptation protocol, SDAP) layer;
- the control plane protocol stack includes at least the following protocol layers: physical layer, MAC layer, RLC layer, PDCP layer, radio resource control (radio resource control, RRC) layer.
- Each protocol stack realizes the function of the protocol stack through the corresponding protocol stack entity.
- the communication system shown in FIG. 5 is used as an example, and does not limit the communication system to which the method provided in the embodiment of the present application is applicable.
- the method provided in the embodiment of the present application is applicable to various types and standards of communication systems or application scenarios.
- 4G mobile communication system 5G mobile communication system, 6G mobile communication system, future new generation mobile communication system, wireless fidelity (Wireless-Fidelity, Wi-Fi) system, vehicle to everything (V2X) system, Long-term evolution-LTE-vehicle (LTE-V) system, vehicle-to-vehicle (V2V) system, vehicle-to-vehicle system, Machine Type Communications (MTC) system, Internet of things (Internet of things) , IoT) system, long-term evolution-machine to machine (LTE-machine to machine, LTE-M) system, machine to machine (machine to machine, M2M) system, and various DN networks, distributed storage systems, etc., this application Examples are not limited.
- the data segments that frequently appear in the data packets are fixed in the static buffer, which can significantly improve the compression rate of the data packets.
- the dynamic buffer is used for compression, the compression rate of the data packet can also be improved when the same data segment exists in two adjacent data packets.
- there are differences in data characteristics of data packets transmitted in communication systems in different scenarios and there may also be differences in data characteristics of data packets transmitted in different time periods of the same communication system.
- the headers (header) of the data packets generated by the terminal device for the same collector are basically the same, and the payload (payload) They are also relatively similar; however, the data packets generated by terminal devices for different collectors are quite different.
- the payloads of data packets generated by the compression side during a period of time are basically the same, and the payloads of data packets generated during another period of time are quite different.
- the packet headers of the data packets generated by the compression side when implementing a certain service are basically the same, and the payloads of two adjacent data packets have partially similar data segments.
- the data content in the data packet transmitted between two communication devices establishing a communication connection in the communication system is flexible and changeable. Therefore, if the current UDC mechanism, RoHC mechanism, EHC mechanism and other compression mechanisms are used to compress , may affect the data compression efficiency between the two communication devices, and cannot achieve the effect of improving data transmission efficiency and resource utilization.
- an embodiment of the present application provides a communication method.
- the method can be applied to two communication devices establishing a communication connection in various communication systems including the communication system shown in FIG. 5 .
- the method can be applied to two terminal devices in a sidelink communication system, a terminal device and an AN device, an AN device and a core network device, two core network devices in a core network, a core network device and a server in a DN, or between two servers in the DN.
- the compression side is marked as the first communication device
- the decompression side is marked as the second communication device
- the third-party management device is marked as the third communication device.
- S601a-S604 are the process of configuring compression mode, decompression mode, compression buffer and decompression buffer.
- the first communication device acquires compressed configuration information.
- the compression configuration information includes: compression mode indication information and compression buffer configuration information; the compression mode indication information is used to indicate the target compression mode for the first communication device to compress the data packet, and the compression buffer The configuration information is used to configure the target compression buffer of the first communication device.
- the first communication device configures the target compression buffer according to the compression configuration information.
- the second communication device acquires the decompression configuration information.
- the decompression configuration information includes: decompression mode indication information and decompression buffer configuration information, wherein the decompression mode indication information is used to indicate a target decompression mode for the second communication device to decompress the data packet, the The decompression buffer configuration information is used to configure the target decompression buffer of the second communication device.
- S604 Configure the target decompression buffer according to the decompression buffer configuration information.
- the target compression buffer of the first communication device and the target decompression buffer of the second communication device need to be completely consistent (consistent type, consistent size, and consistent stored data content) . Therefore, in a communication system, the compression buffer and the decompression buffer are generally configured by the same device.
- the target compression buffer and the target decompression buffer may be triggered and configured by the first communication device, the second communication device, or the third communication device, that is, the compression configuration information in S601 .
- the decompression configuration information in S603 may be generated by the first communication device, the second communication device or the third communication device, which is not limited in this application.
- the first communication device or the second communication device may, but not limited to, acquire compressed configuration information or decompressed configuration information through the following several implementation manners.
- a first implementation manner the first communication device configures a target compression buffer and a target decompression buffer.
- the first communication device generates decompression configuration information, and sends the decompression configuration information to the second communication device.
- the first communication device may generate the decompression configuration information according to user configuration, or at least one of the following or any combination thereof: compression capability information of the first communication device, decompression capability information of the second communication device, current waiting
- compression capability information of the first communication device decompression capability information of the second communication device
- decompression capability information of the second communication device current waiting
- the data characteristics, compression requirements, and data transmission efficiency requirements of the compressed data packets are not limited in this application.
- the second communication device may send the decompression capability information of the second communication device to the first communication device through S601b; S601b Receive decompression capability information from the second communication device.
- the first communication device needs to configure a target compression buffer, wherein the size and initial data content of the target compression buffer must be consistent with the size and initial data content of the target decompression buffer configured for the second communication device.
- the second communication device receives the decompression configuration information from the first communication device. In this way, the second communication device can configure the size and initial data content of the target decompression buffer according to the decompression configuration information.
- the second communication device configures a target compression buffer and a target decompression buffer.
- the second communication device generates compressed configuration information, and sends the compressed configuration information to the first communication device.
- the second communication device may generate the compression configuration information according to user configuration, or at least one of the following or any combination thereof: compression capability information of the first communication device, decompression capability information of the second communication device, current pending
- compression capability information of the first communication device decompression capability information of the second communication device
- decompression capability information of the second communication device current pending
- the data characteristics, compression requirements, and data transmission efficiency requirements of the compressed data packets are not limited in this application.
- the first communication device may send the compression capability information of the first communication device to the second communication device through S601a.
- the second communication device may receive the compression capability information from the first communication device through S601a.
- the second communication device needs to configure a target decompression buffer, wherein the size and initial data content of the target decompression buffer need to be consistent with the size and initial data content of the target compression buffer configured for the first communication device.
- the first communication device receives the compressed configuration information from the second communication device. In this way, the first communication device may configure the size and initial data content of the target compression buffer according to the compression configuration information.
- the third communication device configures a target compression buffer and a target decompression buffer.
- the third communication device generates compressed configuration information and decompressed configuration information; then sends the compressed configuration information to the first communication device, and sends the decompressed configuration information to the second communication device.
- the third communication device may generate the compression configuration information and the decompression configuration information according to user configuration, or at least one of the following or any combination thereof: compression capability information of the first communication device, information of the second communication device
- the decompression capability information, data characteristics of the currently to-be-compressed data packet, compression requirements, and data transmission efficiency requirements are not limited in this application.
- the first communication device may send the compression capability information of the first communication device to the third communication device through S601a; the second communication device may send the compression capability information through S601b sending the decompression capability information of the second communication device to the third communication device. Therefore, the third communication device may receive the compression capability information from the first communication device through S601a, and receive the decompression capability information from the second communication device through S601b.
- the first communication device receives the compressed configuration information from the third communication device.
- the second communication device receives the decompression configuration information from the third communication device.
- the compression capability information of the first communication device is used to characterize the compression capability of the first communication device, which may include but not limited to at least one or any combination of the following:
- the decompression capability information of the second communication device is used to characterize the decompression capability of the second communication device, and may include, but is not limited to, at least one or any combination of the following:
- Supported decompression methods data transmission directions that can be decompressed, the number or information of radio bearers that support decompression processing, the total size threshold of the decompression buffer, and the buffer size threshold of each buffer type.
- the first implementation mode a dynamic buffer-based compression/decompression mode.
- the target compression mode indicated by the compression mode indication information in the compression configuration information is a compression mode based on a dynamic buffer; the target compression buffer configured by the compression buffer configuration information is a dynamic buffer.
- the compressed buffer configuration information is used to indicate the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer.
- the initial data content may be empty, or may be a pre-configured data dictionary.
- the compressed buffer configuration information may include the initial data content, or include indication information indicating the initial data content.
- the compressed buffer configuration information may include the size of the dynamic buffer, or include indication information indicating the size of the dynamic buffer.
- the target decompression mode indicated by the decompression mode indication information in the decompression configuration information is a decompression mode based on a dynamic buffer; the target decompression buffer configured in the decompression buffer configuration information is a dynamic buffer.
- the decompression buffer configuration information is used to indicate the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer.
- the decompressed buffer configuration information may include the initial data content, or include indication information indicating the initial data content; the decompressed buffer configuration information may include the size of the dynamic buffer, or include Indication information indicating the size of the dynamic buffer.
- the size of the dynamic buffer indicated by the compression buffer configuration information is the same as the size of the dynamic buffer indicated by the decompression buffer configuration information;
- the initial data content of the dynamic buffer indicated by the buffer configuration information is the same as the initial content of the dynamic buffer indicated by the decompressed buffer configuration information.
- the second implementation mode static buffer-based compression/decompression mode.
- the target compression mode indicated by the compression mode indication information in the compression configuration information is a static buffer-based compression mode; the target compression buffer configured by the compression buffer configuration information is a static buffer.
- the compressed buffer configuration information is used to indicate the size of the static buffer and/or the content of static data filled into the static buffer.
- the static data content is a preconfigured data dictionary.
- the compressed buffer configuration information may include the static data content, or include indication information indicating the static data content.
- the compressed buffer configuration information may include the size of the static buffer, or include indication information indicating the size of the static buffer.
- the target decompression mode indicated by the decompression mode indication information in the decompression configuration information is a decompression mode based on a static buffer; the target decompression buffer configured in the decompression buffer configuration information is a static buffer.
- the decompression buffer configuration information is used to indicate the size of the static buffer and/or the content of static data filled into the static buffer.
- the decompressed buffer configuration information may include the static data content, or include indication information indicating the static data content; the decompressed buffer configuration information may include the size of the static buffer, or include An indication of the size of the static buffer.
- the size of the static buffer indicated by the compression buffer configuration information is the same as the size of the static buffer indicated by the decompression buffer configuration information;
- the static data content of the static buffer indicated by the buffer configuration information is the same as the static data content of the static buffer indicated by the decompressed buffer configuration information.
- the third implementation mode an enhanced compression/decompression mode based on static buffer and dynamic buffer.
- the target compression mode indicated by the compression mode indication information in the compression configuration information is an enhanced compression mode based on static buffer and dynamic buffer; the target compression buffer configured by the compression buffer configuration information includes static buffer and dynamic buffer.
- the compressed buffer configuration information is used to indicate the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer, and the size of the static buffer and/or the static data filled into the static buffer content.
- the initial data content may be empty, or may be a pre-configured data dictionary.
- the static data content may be a preconfigured data dictionary.
- the compressed buffer configuration information may include the initial data content, or include indication information indicating the initial data content.
- the compressed buffer configuration information may include the static data content, or include indication information indicating the static data content.
- the compressed buffer configuration information may include the size of the dynamic buffer, or include indication information indicating the size of the dynamic buffer.
- the compressed buffer configuration information may include the size of the static buffer, or include indication information indicating the size of the static buffer.
- the compressed buffer configuration information may also indicate the size of the dynamic buffer and the size of the static buffer in a size ratio manner, and the specific indication manner is not limited in this embodiment of the present application.
- the compressed buffer configuration information indicates the total buffer size, and the proportion of the dynamic buffer to the total buffer and/or the proportion of the static buffer to the total buffer.
- the compressed buffer configuration information indicates the total buffer size and the size ratio between the dynamic buffer and the static buffer.
- the compressed buffer configuration information indicates the size of a buffer type, and the size ratio between the dynamic buffer and the static buffer.
- the target decompression mode indicated by the decompression mode indication information in the decompression configuration information is an enhanced decompression mode based on static buffer and dynamic buffer; the target decompression buffer configured by the decompression buffer configuration information includes static buffer and dynamic buffer.
- the decompression buffer configuration information is used to indicate the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer, and the size of the static buffer and/or the static data filled into the static buffer content.
- the decompressed buffer configuration information may include the initial data content, or include indication information indicating the initial data content; the decompressed buffer configuration information may include the static data content, or include an indication Indication information of the static data content; the decompression buffer configuration information may include the size of the dynamic buffer, or include indication information indicating the size of the dynamic buffer; the decompression buffer configuration information may include the size of the static buffer, or Contains indication information indicating the size of the static buffer.
- the size of the dynamic buffer indicated by the compression buffer configuration information is the same as the size of the dynamic buffer indicated by the decompression buffer configuration information;
- the initial data content of the dynamic buffer indicated by the buffer configuration information is the same as the initial content of the dynamic buffer indicated by the decompressed buffer configuration information;
- the size of the static buffer indicated by the compressed buffer configuration information is the same as that indicated by the decompressed buffer configuration information.
- the sizes of the indicated static buffers are the same; the static data content of the static buffer indicated by the compressed buffer configuration information is the same as the static content of the static buffer indicated by the decompressed buffer configuration information.
- the compression configuration information and the decompression configuration information may also indicate other information related to compression/decompression.
- the compressed configuration information may also indicate support
- the target radio bearer for compression processing that is, the first communication device compresses the data packets sent through the target radio bearer
- the decompression configuration information may also indicate the target radio bearer that supports decompression processing (that is, the second communication device) The device decompresses the data packet received through the target radio bearer).
- the compression method configured in the compression configuration information and the configured compression buffer The compression capability information needs to be complied with.
- the target compression mode indicated by the compression mode indication information in the compression configuration information belongs to the compression mode supported by the first communication device; the total size of the buffers of all buffer types in the target compression buffer indicated by the compression buffer configuration information is less than or equal to the total size threshold of the compression buffer supported by the first communication device; the size of each buffer type in the target compression buffer indicated by the compression buffer configuration information is less than or equal to the size threshold of the buffer of the buffer type supported by the first communication device ;
- the method for the first communication device to transmit data to the second communication device conforms to the data transmission direction that the first communication device can perform compression processing; bearer.
- the decompression mode configured in the decompression configuration information and the configured decompression buffer need to conform to the Decompression capability information.
- the target decompression mode indicated by the decompression mode indication information in the decompression configuration information belongs to the decompression mode supported by the second communication device; the total size of all buffer types in the target decompression buffer indicated by the decompression buffer configuration information is less than or equal to the total size threshold of the decompression buffer supported by the second communication device; the size of each buffer type in the target decompression buffer indicated by the decompression buffer configuration information is less than or equal to the size threshold of the buffer of the buffer type supported by the second communication device ;
- the method for the first communication device to transmit data to the second communication device conforms to the data transmission direction that the second communication device can perform decompression processing; the target radio bearer indicated by the decompression configuration information belongs to the second communication device that supports configuration decompression bearer.
- the above steps can ensure that the first communication device can configure the target compression buffer, and the second communication device can configure the target decompression buffer, and ensure that the target compression buffer and the target decompression buffer are completely consistent, so that the first communication device and the second communication device can Prepare for the transmission of data packets between them.
- the communication system can configure the data content that appears frequently in the data packet into the static buffer, so that the data compression rate of the data packet can be improved.
- S605-S607 are the process of transmitting data packets.
- the first communication device After acquiring the first data packet, the first communication device compresses the first data packet according to the target compression buffer in the target compression manner to generate a second data packet.
- the first communication device may obtain, but is not limited to, the first data packet in the following manner:
- Mode 1 receiving the first data packet from another communication device
- Mode 2 generating the first data packet
- the first data packet is received from the upper layer entity.
- the first data packet may be sent by the SDAP entity to the PDCP entity.
- S606 The first communication device sends the second data packet to the second communication device.
- the compression configuration information can also indicate a target radio bearer that supports compression processing
- the first data packet is a service data packet of a service corresponding to the target radio bearer
- the second communication The device may send the second data packet to the second communications device through the target radio bearer.
- the second communication device After receiving the second data packet from the first communication device, the second communication device uses the target decompression method to decompress the second data packet according to the target decompression buffer to generate a second data packet. a packet.
- the process of compressing the first data packet by the first communication device can refer to the procedures in the aforementioned several compression methods, and the process of decompressing the second data packet by the second communication device The process can also refer to the processes in the aforementioned several decompression methods, and will not be described here.
- the second communication device uses the enhanced decompression method based on static buffer and dynamic buffer to compress the second data packet.
- decompression since multiple buffer types are involved, it is possible to pre-set which buffer type to use for each component in the data packet for compression/decompression. Based on this, the embodiment of the present application also provides the following implementation modes:
- the compression configuration information may further include first indication information.
- the first indication information indicates the buffer type corresponding to at least one component in the data packet; wherein, the buffer type corresponding to any one component is used to instruct the first communication device to use the target compression buffer that belongs to the buffer type
- the buffer compresses the component; any component is any of the following: (whole) data packet, first data segment in data packet, second data segment in data packet, first field in data packet, The second field in the data packet, the first data segment in the second field in the data packet, and the second data segment in the second field in the data packet.
- the first communication device when performing S605 to compress the first data packet, can determine the buffer type that should be used when compressing each component according to the first instruction information, so that the buffer type can be used Compress the component.
- the decompression configuration information may further include second indication information.
- the second indication information is used to indicate the buffer type corresponding to at least one component in the data packet; wherein, the buffer type corresponding to any one component is used to instruct the second communication device to use the buffer belonging to the target decompression buffer Buffer of type decompresses the component; any component is any of the following: (entire) packet, first segment in packet, second segment in packet, first segment in packet field, the second field in the data packet, the first data segment of the second field in the data packet, and the second data segment of the second field in the data packet.
- the second communication device executes S607 to decompress the second data packet, it can determine the buffer type that should be used when decompressing each component according to the second instruction information, so that the buffer type can be used Unzip the component.
- the third implementation mode which buffer type should be used for each component in the data packet for compression/decompression is pre-negotiated between the first communication device and the second communication device, or is stipulated by the protocol, or is It is configured by the user, which is not limited in this application.
- the fourth implementation mode after the first communication device passes the above first and third implementation modes, or other methods, or determines the buffer type corresponding to each component in the data packet by itself, it can send the second communication device Sending third indication information, the third indication information is used to indicate the buffer type corresponding to at least one component in the data packet (including the second data packet) sent by the first communication device to the second communication device; wherein, any one of the components The buffer type corresponding to the part is used to instruct the second communication device to use the buffer belonging to the buffer type in the target decompression buffer to decompress the component; any component is any of the following: (whole) data packet, The first data segment in the data packet, the second data segment in the data packet, the first field in the data packet, the second field in the data packet, the first data segment in the second field in the data packet, the second field in the data packet The second data segment of the second field.
- the decompression strategy (That is, which buffer type corresponds to each component to be decompressed) is notified to the second communication device through the third indication information.
- the first communication device may send the third indication information to the second communication device before sending the data packet, or after compressing the data packet in the corresponding manner, or after compressing
- the third indication information is carried in the data packet.
- the communication device may carry the third indication information in the second data packet.
- the first communication device When the first communication device carries the third indication information in each data packet, when the second communication device receives each data packet, it may, according to the third indication information contained in the data packet, Each component in is decompressed using the corresponding buffer type. In this way, the first communication device can dynamically adjust the compression strategy for each data packet at the granularity of the data packet (that is, which buffer type is compressed for each component), and can notify the corresponding decompression strategy to the first The second communication device, so as to ensure that the second communication device can successfully decompress the received data packet. Therefore, this embodiment can further realize the flexibility of data compression.
- the compressed buffer configuration information or the decompressed buffer configuration information may indicate that multiple buffers are configured for a dynamic buffer type or a static buffer type.
- the first communication device may flexibly select a buffer from multiple buffers of the buffer type corresponding to the component for compression; and may notify the second communication device that the component specifically adopts Which buffer is compressed (which buffer should be used for decompression).
- the above steps can realize the compression and decompression of the data packets transmitted between the first communication device and the second communication device, so as to ensure the transmission efficiency of the data packets.
- S608-S611 are processes of synchronously updating the target compression buffer and the target decompression buffer.
- the embodiment of the present application can adaptively and synchronously adjust the target compression buffer and the target decompression buffer through the following S608-S611, so as to ensure the compression rate of the data packet, the transmission efficiency of the data packet, and the resource utilization rate.
- S608 The first communication device updates the target compression buffer.
- S608 may specifically include at least one or any combination of the following: adjusting the size of the target compression buffer, and/or updating data content stored in the target compression buffer.
- S609 The second communication device updates the target decompression buffer. Similar to S608, S609 may specifically include at least one or any combination of the following: adjusting the size of the target decompression buffer, and/or updating data content stored in the target decompression buffer.
- the update is generally triggered by the same device.
- the target compression buffer and the target decompression buffer may be triggered and configured by the first communication device, the second communication device, or the third communication device.
- the device that triggers to update the target compression buffer and target decompression buffer and the device that configures the target compression buffer and target decompression buffer may be the same device or different devices, which is not limited in this application.
- the first communication device and the second communication device may, but are not limited to, update the target compression buffer and the target decompression buffer through the following several implementation manners.
- a first implementation manner the second communication device triggers to update the target decompression buffer.
- the second communication device may update the target decompression buffer according to data compression requirements, data characteristics, user configuration, and the like.
- the update operation of the target decompression buffer may include: adjusting the size of the target decompression buffer, and/or updating the data content stored in the target decompression buffer.
- the second communication device may generate first buffer update information according to an update operation of the target decompression buffer. Then the second communication device sends the first buffer update information to the first communication device through S608a, that is, the first communication device can receive the first buffer update information from the second communication device through S608a. In this way, when executing S608, the first communication device may update the target compression buffer according to the first buffer update information.
- the first buffer update information is used to instruct the first communication device to adjust the size of the target compression buffer, and/or update the data content stored in the target compression buffer. It should be noted that the update operation indicated by the first buffer update information should make the updated target compression buffer consistent with the updated target decompression buffer.
- a second implementation manner the first communication device triggers to update the compression buffer.
- the first communication device may update the target compression buffer according to data compression requirements, data characteristics, user configuration, and the like.
- the update operation of the target compression buffer may include: adjusting the size of the target compression buffer, and/or updating the data content stored in the target compression buffer.
- the first communication device may generate second buffer update information according to an update action of the target compressed buffer. Then the first communication device sends the second buffer update information to the second communication device through S609a, that is, the second communication device can receive the second buffer update information from the first communication device through S609a. In this way, when executing S609, the second communication device may update the target decompression buffer according to the second buffer update information.
- the second buffer update information is used to instruct the second communication device to adjust the size of the target decompression buffer, and/or update the data content stored in the target decompression buffer. It should be noted that the update operation indicated by the second buffer update information should make the updated target decompression buffer consistent with the updated target compression buffer.
- a third implementation manner the third communication device triggers to update the compression buffer.
- the third communication device may trigger updating of the target decompression buffer and/or target compression buffer according to data compression requirements, data characteristics, user configuration, etc., that is, generate first cache update information and/or second cache update information . Then, the third communication device sends the first cache update information to the first communication device in S608a, and/or sends the second cache update information to the second communication device in S609a.
- the first buffer update information is used to instruct the first communication device to adjust the size of the target compression buffer, and/or update the data content stored in the target compression buffer.
- the second buffer update information is used to instruct the second communication device to adjust the size of the target decompression buffer, and/or update the data content stored in the target decompression buffer. It should be noted that the update operation indicated by the first buffer update information should be completely consistent with the update operation indicated by the second buffer update information, so that the updated target decompressed buffer is consistent with the updated target compressed buffer.
- the third communication device when the third communication device only sends the first cache update information to the first communication device, after receiving the first cache update information, the first communication device may also operate according to the update operation indicated by the first cache update information , generating second cache update information, and sending the second cache update information to the second communication device in S609a.
- the second communication device may also operate according to the update operation indicated by the second cache update information , generating first cache update information, and sending the first cache update information to the first communication device in S608a.
- the first communication device may receive the first buffer update information from the third communication device or the second communication device through S608a. In this way, when executing S608, the first communication device may update the target compression buffer according to the first buffer update information.
- the second communication device may receive second buffer update information from the third communication device or the first communication device in S609a. In this way, when executing S609, the second communication device may update the target decompression buffer according to the second buffer update information.
- a fourth implementation manner the fourth communication device triggers to update the compression buffer.
- This implementation manner is the same as the third implementation manner, and for a specific process, reference may be made to the description in the third implementation manner.
- the difference is that the fourth communication device may be other communication devices except the first communication device, the second communication device, and the third communication device, which is not limited in this application.
- the first communication device when the first communication device updates the target compression buffer according to the received first buffer update information of other communication devices (for example, the second communication device, the third communication device or the fourth communication device) Next, after successfully updating the target compressed buffer, the first communication device may also send a first buffer update confirmation message to the other communication device through S608b, so as to notify the other communication device that the target compressed buffer has been successfully updated.
- the first communication device may also send a first buffer update confirmation message to the other communication device through S608b, so as to notify the other communication device that the target compressed buffer has been successfully updated.
- the second communication device updates the target decompression buffer according to the received second buffer update information of other communication devices (the first communication device, the third communication device or the fourth communication device), when the target decompression buffer is successfully updated After buffering, the second communication device may also send a second buffer update confirmation message to the other communication device through S609b, so as to notify the other communication device that the target decompression buffer has been successfully updated.
- the first buffer update information or the second buffer update information may, but not limited to, indicate a specific update operation through the following implementations:
- a first implementation manner when the target compression buffer and the target decompression buffer contain a static buffer, the first buffer update information or the second buffer update information may be used to indicate the static data content updated to the static buffer.
- the first buffer update information or the second buffer update information may indicate all static data content updated to the static buffer.
- the first buffer update information or the second buffer update information may include all static data content after the static buffer is updated, or include indication information indicating the entire static data content.
- the first communication device can update the static buffer in the target compressed buffer according to all the static data content indicated by the received first buffer update information.
- the second communication device may also update the static buffer in the target decompression buffer according to all the static data content indicated by the received second buffer update information.
- the first buffer update information or the second buffer update information may indicate the partial static data content updated to the static buffer.
- the first buffer update information or the second buffer update information may include the data segment that needs to be updated to the static buffer, or include indication information indicating the data segment that needs to be updated to the static buffer.
- first buffer update information or the second buffer update information may further indicate a position offset value (offset).
- the position offset value may be a position offset relative to the start position or the end position of the static buffer.
- first buffer update information or the second buffer update information may include the position offset value, or include indication information indicating the position offset value.
- the first communication device can indicate the position offset value and the data segment according to the received first buffer update information, and push the data segment into the static buffer starting from the position offset value of the static buffer in the target compression buffer middle.
- the second communication device may indicate the position offset value and the data segment according to the received second buffer update information, and push the data segment into the static buffer starting from the position offset value of the static buffer in the target decompression buffer. in buffer.
- the second implementation mode when the target compression buffer and the target decompression buffer contain static buffers, the first buffer update information or the second buffer update information can be used to indicate to adjust the size of the static buffer, and after size adjustment Static data content in the static buffer.
- the first buffer update information or the second buffer update information may indicate to reduce the size of the static buffer.
- the first buffer update information or the second buffer update information may include the target size of the static buffer, or include indication information indicating the target size; or the first buffer update information or the second buffer update information
- the buffer update information may include the target penalty of the static buffer, or include indication information indicating the target penalty.
- the first buffer update information or the second buffer update information may also indicate a way to reduce the static buffer, for example, decrease from the start position or end position of the original static buffer.
- the first buffer update information or the second buffer update information may also indicate a manner of determining the static data content in the resized static buffer based on the static data content in the original static buffer. For example, the static data content of the previous target size in the original static buffer is reserved, or the static data content of the last target size in the original static buffer is reserved.
- the first buffer update information or the second buffer update information may also include static data content in the static buffer after size adjustment.
- the first buffer update information or the second buffer update information may indicate to increase the size of the static buffer.
- the first buffer update information or the second buffer update information may include the target size of the static buffer, or include indication information indicating the target size; or the first buffer update information or the second buffer update information
- the buffer update information may include the target increment of the static buffer, or include indication information indicating the target increment.
- the first buffer update information or the second buffer update information may also indicate a way to increase the static buffer, for example, increase from the start position or end position of the original static buffer.
- the first buffer update information or the second buffer update information may also indicate a manner of determining the static data content in the resized static buffer based on the static data content in the original static buffer. For example, the static data content in the original static buffer is retained, and the static data content stored in the increased part of the static buffer is set to all 1s or all 0s.
- the first buffer update information or the second buffer update information may also include or indicate static data content stored in the newly added buffer in the static buffer.
- the first communication device and the second communication device set all 1s or all 0s to the static data stored in the newly added buffer in the static buffer by default.
- the first buffer update information indicates that the size of the static buffer is reduced from 4kBytes to 2kBytes, then the first communication device can keep the data content of the first 2KBytes in the original static buffer as an update The data content in the post-static buffer.
- the first buffer update information indicates that the size of the static buffer is expanded from 2kBytes to 4kBytes, then the first communication device can keep the data content in the original static buffer as the updated static
- the content of the first 2kBytes in the buffer, the new buffer part in the updated static buffer is reset to all 0/1 values.
- the third implementation mode when the target compression buffer and the target decompression buffer contain a dynamic buffer, the first buffer update information or the second buffer update information can be used to indicate to adjust the size of the dynamic buffer, and size adjustment
- the first buffer update information or the second buffer update information can be used to indicate to adjust the size of the dynamic buffer, and size adjustment
- size adjustment For the specific description of the initial data content in the post-dynamic buffer, please refer to the description of adjusting the size of the static buffer in the second implementation mode, which will not be repeated here.
- the first implementation manner in the process of updating the target compression buffer, the device triggering the update instructs to stop compressing the data packet.
- This embodiment specifically includes the following steps:
- the first communication device updates information according to the received first buffer of other communication devices (for example, the second communication device, the third communication device, or the fourth communication device), before performing S608a, the first communication device A communication device may also receive an instruction to stop compression from the other communication device.
- the stop compression instruction is used to instruct the first communication device to stop using the target compression buffer to compress the data packet.
- the first communication device may, but not limited to, stop compressing the data packet according to the target compression buffer in the following manner according to the stop compression instruction:
- Mode 1 After receiving the stop compression command, if the first communication device acquires a new data packet, the first communication device may cache the data packet, and use the updated data packet after the update of the target compression buffer is completed.
- the target compression buffer compresses the packet.
- Mode 2 After receiving the stop compression instruction, if the first communication device acquires a new data packet, the first communication device may not compress the data packet, but send the data packet to the second communication device .
- S608d After the first communication device updates the target compression buffer according to the first buffer update information, (optionally, after the first communication device sends the first buffer update confirmation message to the other communication device), the first communication device receives A start compression command from the other communication device.
- the start compression instruction is used to instruct the first communication device to start using the updated target compression buffer to compress data packets.
- S608d is an optional step, that is, the first communication device may directly start to use the updated target compression buffer to compress the data packet after updating the target compression buffer.
- the second communication device may use the updated target decompression buffer to decompress the received data packet.
- the target compression buffer used by the first communication device for compression will be consistent with the target decompression buffer used by the second communication device for decompression, thereby ensuring that the data packet can be successfully decompressed.
- the second implementation manner in the process of updating the target compression buffer, the device triggering the update indicates in the first buffer update information the data packets to be compressed using the updated target compression buffer.
- This embodiment specifically includes the following steps:
- the first communication device updates information according to the received first buffer of other communication devices (for example, the second communication device, the third communication device, or the fourth communication device), before performing S608a, the first communication device A communication device may also receive an instruction to stop compression from the other communication device.
- the stop compression instruction is used to instruct the first communication device to stop using the target compression buffer to compress the data packet.
- S608c is an optional step.
- the first communication device may also actively stop using the target compression buffer to compress the data packet after receiving the first buffer update information.
- fourth indication information may also be included in the first buffer update information.
- the fourth indication information is used to indicate the data packets to be compressed using the updated target compression buffer.
- the first communication device may update the target compression buffer when receiving the data packet indicated by the fourth indication information for the first time, and use the updated target compression buffer to compress the data packet indicated by the fourth indication information.
- the third data packet compressed by the first communication device using the updated target compression buffer in subsequent step S610 is the data packet indicated by the fourth indication information.
- fifth indication information may also be included in the second buffer update information.
- the fifth indication information is used to indicate the data packet decompressed by using the updated target decompression buffer.
- the second communication device may update the target decompression buffer when receiving the data packet indicated by the fifth indication information for the first time, and use the updated target decompression buffer to decompress the data packet indicated by the fifth indication information.
- the fourth data packet received by the second communication device in the subsequent step S611 is the data packet indicated by the fifth indication information.
- the data packet indicated by the fourth indication message is the same as that indicated by the fifth indication message.
- the indicated data packets carry the same data content (that is, the data packets indicated by the fifth indication message are obtained by compressing the data packets indicated by the fourth indication message).
- the fourth indication information may include a starting sequence number (sequence number, SN) or a starting count (count) value for carrying a data packet that starts to be compressed using the updated target compression buffer.
- SN sequence number
- count counting
- the fifth indication information may also include a starting SN or a starting count value of a data packet that starts to be decompressed using the updated target decompression buffer.
- the second communication device uses the updated target decompression buffer Decompress the packet.
- the start SN or the start count value included in the fourth indication information is the same as the start SN or the start count value included in the fifth indication information.
- the second communication device can use the updated target decompression buffer to decompress the received data packet, or use the updated target decompression buffer to decompress the received fifth indication information.
- the indicated packet is decompressed.
- the target compression buffer used by the first communication device for compression will be consistent with the target decompression buffer used by the second communication device for decompression, thereby ensuring that the data packet can be successfully decompressed.
- a third implementation manner in the process of updating the target compression buffer, the first communication device may instruct the second communication device to use the updated target decompression buffer.
- This embodiment specifically includes the following steps:
- the first communication device updates information according to the received first buffer of other communication devices (for example, the second communication device, the third communication device, or the fourth communication device), before performing S608a, the first communication device A communication device may also receive an instruction to stop compression from the other communication device.
- the stop compression instruction is used to instruct the first communication device to stop using the target compression buffer to compress the data packet.
- S608c is an optional step.
- the first communication device may also actively stop using the target compression buffer to compress the data packet after receiving the first buffer update information.
- the first communication device may determine the time to update the target compression buffer by itself, and directly start using the updated target compression buffer (optionally after S608b or S608d) after updating the target compression buffer.
- the target compression buffer compresses the data packet, and sends an instruction to start decompression to the second communication device.
- the start decompression instruction is used to instruct the second communication device to start using the updated target decompression buffer to decompress the received data packet.
- the second communication device may update the target decompression buffer, and after receiving the start decompression instruction, may use the updated target decompression buffer to decompress the received data packet.
- the target compression buffer used by the first communication device for compression will be consistent with the target decompression buffer used by the second communication device for decompression, thereby ensuring that the data packet can be successfully decompressed.
- the first communication device may determine the time to update the target compression buffer by itself, and directly start using the updated target compression buffer (optionally after S608b or S608d) after updating the target compression buffer.
- the target compression buffer compresses the data packet, and carries sixth indication information in the compressed data packet.
- the sixth indication information is used to indicate that the data packet is compressed and generated by the first communication device using the updated target compression buffer, or instruct the second communication device to use the updated target decompression buffer to decompress the data packet to decompress.
- the second communication device may update the target decompression buffer, and when receiving the data packet containing the sixth indication information, may use the updated target decompression buffer to decompress the received data packet.
- the target compression buffer used by the first communication device for compression will be consistent with the target decompression buffer used by the second communication device for decompression, thereby ensuring that the data packet can be successfully decompressed.
- the above steps can ensure that the target compression buffer of the first communication device and the target decompression buffer of the second communication device are updated synchronously and kept consistent. Further, the target compression buffer used by the first communication device for compression will be consistent with the target decompression buffer used by the second communication device for decompression, so as to ensure that the data packet can be successfully decompressed.
- S610-S612 are processes of transmitting data packets after the target compression buffer and the target decompression buffer are updated.
- the first communication device After acquiring the third data packet, the first communication device compresses the third data packet according to the updated target compression buffer by using the target compression mode to generate a fourth data packet.
- S611 The first communication device sends the fourth data packet to the second communication device.
- the second communication device After receiving the fourth data packet from the first communication device, the second communication device uses the target decompression method to decompress the fourth data packet according to the updated target decompression buffer , generating the third packet.
- the first communication device or the second communication device when the communication function of the first communication device or the second communication device is taken over by another communication device, the first communication device or the second communication device can also send the Another communication device sends the status information of the buffer maintained by itself, so that the other communication device can quickly configure the compression buffer or decompression buffer, thereby avoiding the signaling overhead and delay caused by reconfiguring the buffer, and realizing its Communication function to ensure business continuity.
- the first communication device when the first communication device is operating abnormally as the master device, the first communication device may send the status information of the compressed buffer to the backup device, and the status information of the compressed buffer is used to indicate that the current target Compress the buffer size and/or stored data content.
- the backup device can quickly configure the target compression buffer according to the status information of the compression buffer, and then can take over from the first communication device, compress the data packet using the configured target compression buffer, and send the compressed buffer to the second communication device. data pack.
- the second communication device when the second communication device is operating abnormally as the master device, the second communication device may also send status information of the decompressed buffer to the backup device, and the status information of the decompressed buffer is used to indicate that the current target The size and/or stored data content of the decompressed buffer.
- the backup device can quickly configure the target decompression buffer according to the state information of the decompression buffer, and then can take over from the second communication device to decompress the received data packets by using the configured target decompression buffer.
- the first communication device when the first communication device is a base station, when the service object (terminal device) undergoes a cell handover and the terminal device switches to the target base station, the first communication device also needs to send compressed buffer status information to the target base station , the state information of the compressed buffer is used to indicate the size of the current target compressed buffer and/or the stored data content.
- the target base station can quickly configure the target compression buffer according to the state information of the compression buffer, and then can take over from the source base station (that is, the first communication device), use the configured target compression buffer to compress the data packet, and communicate to the second The device sends compressed packets.
- the second communication device when the second communication device is a base station, when the service object (terminal device) undergoes a cell handover and the terminal device switches to the target base station, the second communication device also needs to send the state information of the decompressed buffer to the target base station , the state information of the decompression buffer is used to indicate the size of the current target decompression buffer and/or the stored data content.
- the target base station can quickly configure the target decompression buffer according to the status information of the decompression buffer, and then can take over from the source base station (that is, the second communication device) to decompress the received data packets using the configured target decompression buffer.
- the communication device that takes over the first communication device can also update, clear or maintain the size of the configured target compression buffer and/or the stored data content, and can notify the peer end (second communication device) after the update Update, clear or maintain the target decompression buffer.
- the communication device that takes over the second communication device can also update, clear or maintain the size of the configured target decompression buffer and/or the stored data content, and can notify the peer end (first communication device) to update the target Compress buffers for updating, clearing or maintaining.
- the process of notifying the peer to update the target decompression buffer or target compression buffer may refer to the process in the above steps S608-S611.
- the compression configuration information and decompression configuration information provided in the embodiment of this application contain multiple contents, and these contents can be sent at the same time or in batches; in addition, the information contained in one message These contents may be configured by the same communication device or by different communication devices, which is not limited in this application.
- the embodiment of the present application provides a communication method, through which the communication system can configure the target compression method used by the compression side and the target compression buffer; correspondingly, it can also configure the target decompression method used by the decompression side, And the target decompression buffer for configuration. Therefore, through this method, the communication system can flexibly configure the target compression mode on the compression side, the decompression mode on the decompression side, and configure the target compression buffer on the compression side and the target decompression buffer on the decompression side according to the service characteristics and data characteristics of the data packet. , so that the flexibility of data compression in the communication system can be improved, and then the efficiency of data compression can be improved, and finally the data transmission efficiency and resource utilization of the communication system can be improved.
- the present application also provides the following examples for different stages.
- the following examples are illustrated by taking UE and gNB in the 5G mobile communication system as examples.
- the gNB is used as the configuration management device, which is responsible for configuring the compression mode, compression buffer, etc., and updating the buffer, etc.
- the execution steps of UE and gNB in different stages will be described in detail below.
- Figure 9 shows the process of gNB configuring compression mode and compression buffer.
- S901 The UE sends compression capability information to the gNB to notify the gNB of the compression modes supported by itself.
- the UE may report the compression capability information to the gNB through a UE capability message (for example, UECapabilityInformation message).
- a UE capability message for example, UECapabilityInformation message.
- the compression capability information may indicate at least one of the following compression methods: a compression method based on a dynamic buffer, a compression method based on a static buffer, and an enhanced compression method based on a static buffer and a dynamic buffer (referred to as an enhanced compression method).
- the compression capability information indicating that the UE supports the enhanced compression mode is taken as an example for illustration.
- an extension field may be added in the UE capability message to indicate the compression mode supported by the UE.
- the UECapabilityInformation message contains the eDataCompression field, or contains the eDataCompression field and the value of the eDataCompression field is the first value (for example, the value is "true"), it means that the UE supports the enhanced compression mechanism; otherwise, when the UECapabilityInformation message contains If the eDataCompression field is not included, or if the eDataCompression field is included and the value of the eDataCompression field is the second value (for example, the value is "false"), it means that the UE does not support the enhanced compression mechanism.
- the enhanced compression mechanism may be directed to a specified data transmission direction.
- the enhanced compression mechanism when the enhanced compression mechanism is only for the uplink direction, when the UE reports the compression capability information indicating that the enhanced compression method is supported, it means that the UE only supports configuring the enhanced compression method for uplink data compression.
- the enhanced compression mechanism when the enhanced compression mechanism is only for the downlink direction, when the UE reports the compression capability information indicating that the enhanced compression method is supported, it means that the UE only supports configuring the enhanced compression method for downlink data decompression.
- the enhanced compression mechanism when the enhanced compression mechanism is applicable to the uplink direction and the downlink direction, when the UE reports the compression capability information indicating that the enhanced compression mode is supported, it means that the UE supports configuration of the enhanced compression mode for uplink data compression and downlink data decompression.
- the UE may report capability information for the uplink enhanced compression mode and the downlink enhanced compression mode respectively in UE capability information.
- the UECapabilityInformation message contains the eUplinkDataCompression field, or contains the eUplinkDataCompression field and the value of the eUplinkDataCompression field is the first value (for example, the value is "true")
- the UE supports the enhanced compression mode in the uplink direction otherwise, it means The UE does not support the enhanced compression method in the uplink direction.
- the UECapabilityInformation message contains the eDownlinkDataCompression field, or contains the eDownlinkDataCompression field and the value of the eDownlinkDataCompression field is the first value (for example, the value is "true")
- the UE supports the enhanced compression mechanism in the downlink direction otherwise, it means The UE does not support the enhanced compression mechanism in the downlink direction.
- the compression capability information in S901 may also include one or more of the following capability information:
- the UE supports the total number (and identification) of DRBs configured with each compression method (ie enhanced compression method);
- the total size threshold of the configuration compression buffer (static buffer+dynamic buffer) supported by UE/each DRB;
- the size threshold of the dynamic buffer supported by UE/each DRB is a threshold of the dynamic buffer supported by UE/each DRB.
- the gNB configures a compression mode and a compression buffer for the UE according to the compression capability information reported by the UE.
- the gNB notifies the UE of the compression mode and the compression buffer information through the compression configuration information.
- the compression buffer configured by the gNB for the UE is exactly the same as the decompression buffer it maintains for the UE.
- the gNB may send the compressed configuration information to the UE through an RRC message.
- the compression configuration information may indicate that the compression mode configured for the UE or the target DRB of the UE is one of the following compression modes: dynamic buffer-based compression mode, static buffer-based compression mode, and enhanced compression mode.
- the compression configuration information indicates that the enhanced compression mode is configured for the UE or the target DRB of the UE, that is, the enhanced compression mode can be enabled.
- the gNB can configure an enhanced compression mechanism in the uplink direction and/or downlink direction for the UE or the target DRB of the UE based on the compression capability information reported by the UE.
- the gNB When the gNB configures the enhanced compression mode for the UE or the target DRB of the UE, it may also indicate the size of the static buffer and the size of the dynamic buffer in the compression buffer through a compression configuration message. For example: gNB indicates the size of the two buffer types (size value in Bytes or KBytes); or gNB indicates a total compression buffer size and a ratio value, where the total compression buffer is the total size of the static buffer and the dynamic buffer , the ratio value is the ratio of the static buffer or dynamic buffer to the total buffer size, or the ratio value is the ratio of the size of the static buffer to the size of the dynamic buffer.
- the gNB may also indicate the initial state information of the static buffer and the dynamic buffer respectively in the compressed configuration information, that is, the dictionary initially pushed into the static buffer and the dictionary initially pushed into the dynamic buffer.
- any buffer type can be configured as the following initial state: the initial data content is empty, the initial data content is 1, or the initial data content adopts a pre-configured dictionary.
- the gNB can set the data content that appears frequently in the data packet as a preconfigured dictionary of the static buffer, so that when the UE compresses the data packet using the data content stored in the static buffer, it can improve the compression of the data packet Rate.
- the UE can report the compression capability information to the gNB to inform the gNB of its own compression capability, so that the gNB can configure the compression mode and compression buffer for the UE according to the compression capability of the UE.
- Figure 10 shows the process of transmitting data packets between UE and gNB.
- the gNB configures the enhanced compression mode in the uplink direction for the target DRB of the UE as an example for illustration.
- the UE After obtaining the first data packet of the target DRB, the UE compresses the first data packet according to the static buffer and the dynamic buffer in the compression buffer in an enhanced compression manner, to generate a second data packet.
- S1002 The UE sends the second data packet to the gNB through the target DRB.
- the gNB After receiving the second data packet from the UE through the target DRB, the gNB uses an enhanced decompression method to decompress the static buffer and the dynamic buffer in the buffer to decompress the second data packet to generate the first data packet.
- the UE can use the enhanced compression mode combining the static buffer and the dynamic buffer to compress the data packet, which can improve the flexibility of the UE to compress the data packet.
- the gNB can configure the data content that appears frequently in the data packets as static data content in the static buffer, so that when the UE uses the static buffer to compress the data packets, it can Improve the compression ratio of data packets.
- Figure 11 shows the process of gNB updating the compression buffer.
- the static buffer in the compression buffer needs to be updated to ensure the compression rate of the data packet.
- the gNB updates the static buffer in the compressed buffer of the UE as an example for illustration. It should be noted that this example can be used to update the static buffer in the aforementioned second and third compression/decompression manners.
- the command to stop compression may be carried by an RRC message.
- the specific compression operation is performed by the packet data convergence protocol (Packet Data Convergence Protocol, PDCP) entity of the UE
- PDCP Packet Data Convergence Protocol
- the RRC entity of the UE receives the instruction, the RRC entity notifies the PDCP entity to stop the compression operation.
- PDCP Packet Data Convergence Protocol
- the stop compression command may also be carried by a medium access control (medium access control, MAC) control element (control element, CE).
- MAC medium access control
- CE control element
- the stop compression command can also be carried by a PDCP control (control) protocol data unit (protocol data unit, PDU), or a radio link control (radio link control, RLC) control PDU, or downlink Control information (downlink control information, DCI) bearer.
- PDCP control control protocol data unit
- PDU protocol data unit
- RLC radio link control
- DCI downlink Control information
- the stop compression command may carry a DRB identifier or a logical channel (logical channel, LCH) identifier, which is used to instruct the UE to stop compressing data packets in the target DRB corresponding to the DRB identifier or the target DRB associated with the LCH identifier.
- LCH logical channel
- the DRB ID can be the DRB ID, or the index value of at least one DRB that has been configured to support the compression operation in all DRBs of the UE according to the ascending or descending order of the DRB ID (for example, DRB 3, DRB 5, and DRB 6 are configured to support the compression operation, Then you can use index 1, index2, and index3 as the corresponding DRB identifiers respectively).
- the LCH identifier may be the LCH ID, or the index value of at least one DRB configured to support the compression operation among all DRBs of the UE arranged in ascending or descending order according to the associated LCH ID.
- the UE After receiving the instruction to stop compression, the UE stops compressing the data packets, and the subsequent data packets can be sent to the gNB without performing the compression processing. For example, the UE may indicate in the compressed packet header of the data packet that the data packet is an uncompressed data packet.
- S1102 (Optional step) The UE sends a stop compression confirmation message to the gNB. This message is used to notify the gNB that the UE has successfully received the stop compression command and stops data compression.
- the compression stop acknowledgment message may be carried by an RRC message, or carried by a PDCP control PDU, or RLC control PDU, or MAC CE, or uplink control information (uplink control information, UCI).
- S1103 the gNB sends buffer update information to the UE.
- the buffer update information order may be carried by messages such as RRC messages, PDCP control PDUs, RLC control PDUs, or MAC CEs.
- the buffer update information may indicate to update the size of the static buffer and/or the content of static data in the static buffer.
- the buffer update information may indicate to update the size of the static buffer and/or the content of static data in the static buffer.
- the buffer update information may include all static data content that needs to be updated to the static buffer.
- the UE may update all static data content included in the buffer update information to the static buffer.
- the buffer update information may include part of the static data content that needs to be updated to the static buffer, and a position offset value (offset).
- the position offset value is relative to the start position or end position of the static buffer. In this way, the UE can find the start update position in the static buffer according to the position offset value, and then start to update the part of the static data content into the static buffer at the start update position.
- the buffer update information may include a character string to be updated to a static buffer and a position offset value.
- the UE After receiving the instruction, the UE replaces the character content starting from the offset position in the static buffer with the character string in the buffer update information.
- the specific process can be referred to as shown in FIG. 7 .
- S1104 (optional step) UE sends a buffer update confirmation message to gNB. This message is used to inform the gNB UE that the buffer update operation has been successfully performed.
- the buffer update confirmation message may be carried by an RRC message, or may be carried by a PDCP control PDU, or an RLC control PDU, or a MAC CE.
- S1105 The gNB sends an instruction to start compression to the UE.
- the start compression command can be carried by RRC message, PDCP control PDU, RLC control PDU, MAC CE, or DCI.
- the start compression instruction may also carry a DRB identifier, or an LCH identifier, to indicate that the UE may target data packets in the target DRB associated with the DRB identifier or the LCH identifier Start compressing.
- the UE After receiving the start compression instruction, the UE can use the updated compression buffer (including the updated static buffer) to start to compress the data packets in the target DRB.
- S1106 (Optional step) The UE sends a start compression confirmation message to the gNB. This command is used to inform the gNB UE that it has successfully received the start compression command and starts the compression operation.
- the start compression confirmation message can be carried by RRC message, PDCP control PDU, RLC control PDU, MAC CE, or UCI.
- steps 1101, 1102, 1105, and 1106 may not be required, that is, the gNB can control the stop/start of the compression operation by itself without notifying the UE.
- the UE may update the static buffer in the decompressed buffer according to the description in 1103.
- gNB can indicate the size of the new static buffer.
- static data content of the static buffer whose size has been changed, it can be reset to all 0/1 values, or it can be stored in the original static buffer. Fill in the data content.
- this application also provides several other examples of updating the compression buffer:
- the buffer update instruction sent by the gNB to the UE may also carry the SN or count value of the data packet, instructing the UE to start from the PDCP SDU corresponding to the SN or count value, and perform the buffer update operation according to the buffer update information , and perform compression operations on subsequent PDCP SDUs using the updated compression buffer.
- the difference is that steps 1101, 1102, 1105, and 1106 are not required, and there is no need to carry the SN or count value in the buffer update information, but the UE can choose to execute the buffer
- the data packet is compressed using the updated compression buffer; and the gNB is informed that the data packet is compressed using the updated compression buffer by carrying an indication field in the data packet.
- the UE may carry a 1-bit indication field U in the PDCP header or compression header of the data packet.
- U the value of the U field in the current data packet received by the gNB
- the UE uses the updated compression buffer to compress the current data packet; if the value of the U field in the current data packet is not inverted compared with the value of the U field in the previous data packet, it means that the UE does not use the updated
- the subsequent compression buffer compresses the current data packet.
- Figure 12 shows that the target gNB can learn the status of the decompression buffer during the handover process of the UE from the source gNB to the target gNB. It should be noted that this example can be used for the compression buffer or the decompression buffer in the aforementioned three compression/decompression methods.
- the source gNB may send buffer status information to the target gNB.
- the status information of the buffer indicates the size and/or stored data content of the decompression buffer currently maintained by the source gNB side.
- This step is used to notify the target gNB of the status of the decompression buffer maintained by the source gNB side, so that the target gNB can quickly configure the decompression buffer locally with the same size and data content according to the status information of the buffer, so that it can take over the decompression of the source gNB Work.
- the target gNB sends a handover command (Handover command) to the UE to notify the UE that the handover is successful.
- the target gNB may carry a buffer status indication in the handover command to indicate the status of the compressed buffer at the UE side.
- the target gNB can obtain the status information of the buffer of the source gNB, and can decide whether to update, clear or maintain the content of the decompression buffer.
- the target gNB decides to update, clear or maintain the decompression buffer, so in order to keep the decompression buffer completely consistent with the compression buffer, the target gNB can also instruct the UE to perform the same processing on the compression buffer through the buffer status indication.
- the Handover command when the Handover command carries the bufferContinue field, it instructs the UE to maintain the state of the current compressed buffer; otherwise, it instructs the UE to reset the data content in the current compressed buffer (for example, set it to all 0/1).
- the above process is described with the UE as the compression side and the gNB as the decompression side. If the gNB is the compression side, the buffer status information indicates the size and/or stored data content of the compression buffer currently maintained by the source gNB side. also.
- the above process can be performed on the entire decompression buffer or compression buffer, or can be performed on a buffer type (static buffer or dynamic buffer) in the decompression buffer and compression buffer, which is not limited in this application.
- this instance can be used for static buffers in the aforementioned second and third compression/decompression methods.
- this example can also be used for the dynamic buffer in the aforementioned first and third compression/decompression methods; and, in general, the target gNB can reset the data content in the dynamic buffer to ensure that the compression side and The dynamic buffer on the decompression side is consistent.
- the first communication device and the second communication device include hardware structures and/or software modules corresponding to each function.
- the present application can be implemented in the form of hardware or a combination of hardware and computer software with reference to the units and method steps of the examples described in the embodiments disclosed in the present application. Whether a certain function is executed by hardware or computer software drives the hardware depends on the specific application scenario and design constraints of the technical solution.
- the present application also provides a communication device, the structure of which is shown in FIG. 13 , including a communication unit 1301 and a processing unit 1302 .
- the communication apparatus 1300 can be applied to two communication devices establishing a communication connection in the communication system shown in FIG. 5 , and can implement the communication methods provided in the above embodiments and examples.
- the physical form of the communication device 1300 may be a communication device, such as core network equipment, terminal equipment, AN equipment, etc.; or the communication device may be other devices capable of realizing the functions of a communication device, such as communication The processor or chip inside the device, etc.
- the communication device 1300 may be a field-programmable gate array (field-programmable gate array, FPGA), a complex programmable logic device (complex programmable logic device, CPLD), an application specific integrated circuit (application specific integrated circuits, ASIC), Or some programmable chips such as System on a chip (SOC).
- FPGA field-programmable gate array
- CPLD complex programmable logic device
- ASIC application specific integrated circuits
- SOC System on a chip
- the communication unit 1301 is configured to receive and send data.
- the communication unit 1301 may be implemented through a physical interface, a communication module, a communication interface, and an input/output interface.
- the communication device 1300 can be connected with a network cable or cable through the communication unit 1301, and then establish a physical connection with other devices.
- the communication unit 1301 may be implemented by a transceiver, for example, a mobile communication module.
- the communication apparatus is applied to the first communication device (ie, the compression side) in the embodiment shown in FIG. 6 .
- the processing unit 1302 is configured to:
- the compression configuration information includes: compression mode indication information and compression buffer configuration information, and the compression mode indication information is used to instruct the first communication device to perform compression processing on the data packet as a target compression mode , the compression buffer configuration information is used to configure a target compression buffer;
- the target compression mode is a compression mode based on a dynamic buffer;
- the target compression buffer is a dynamic buffer;
- the processing unit 1302 when using the target compression method to compress the first data packet according to the target compression buffer to generate a second data packet, is specifically used for:
- the compressed buffer configuration information is used to indicate the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer.
- the target compression mode is a compression mode based on a static buffer;
- the target compression buffer is a static buffer;
- the processing unit 1302 when using the target compression method to compress the first data packet according to the target compression buffer to generate a second data packet, is specifically used for:
- the compressed buffer configuration information is used to indicate the size of the static buffer and/or static data content filled into the static buffer.
- the target compression method is an enhanced compression method based on static buffer and dynamic buffer;
- the target compression buffer includes static buffer and dynamic buffer;
- the processing unit 1302 when using the target compression method to compress the first data packet according to the target compression buffer to generate a second data packet, is specifically used for:
- the first field in the first data packet and the data content stored in the static buffer compress the first field to generate the compressed first field; according to the first The data content contained in the second field in the data packet and the data content stored in the dynamic buffer are compressed to generate the compressed second field; wherein, the first data packet is composed of the The first field and the second field are composed; the second data packet is formed according to the compressed first field and the compressed second field; according to the first data packet in the first data packet The data content contained in the second domain, updating the data content stored in the dynamic buffer; or
- the first field in the first data packet and the data content stored in the static buffer compress the first field to generate the compressed first field; according to the first The data content contained in the second domain in the data packet and the data content stored in the combined buffer are compressed to generate the compressed second domain; wherein the combined buffer is composed of the static buffer and The dynamic buffer combination is generated, the first data packet is composed of the first field and the second field; according to the compressed first field and the compressed second field, the second data packet is formed Two data packets: update the data content stored in the dynamic buffer according to the data content contained in the second field in the first data packet; or
- the first data packet is composed of the first domain and the second domain
- the second domain is composed of the first data segment and the second data segment
- the compressed The first domain, the compressed first data segment, and the compressed second data segment form the second data packet; according to the first data segment in the second domain in the first data packet
- the data content contained in the second data segment updates the data content stored in the dynamic buffer; or
- the first buffer is the static buffer or the dynamic buffer, the first data packet is composed of the first domain and the second domain; according to the compressed first domain and the compressed second domain, the second data packet is formed Two data packets; when the first compression buffer is the dynamic buffer, update the data content stored in the dynamic buffer according to the data content contained in the second field in the first data packet; or
- the dynamic buffer combination is generated; according to the data content contained in the first data packet, the data content stored in the dynamic buffer is updated; or
- the first buffer is the static buffer or the dynamic buffer; when the first compressed buffer is the dynamic buffer, update the data content stored in the dynamic buffer according to the data content contained in the first data packet; or
- the first buffer is the static buffer in the compression buffer
- the second buffer is the dynamic buffer in the compression buffer
- the first buffer is the dynamic buffer in the compression buffer
- the second buffer is the static buffer in the compressed buffer
- the first data packet is composed of at least two data segments such as the first data segment and the second data segment
- the first data segment and the compressed second data segment form a second data packet; when the first buffer is the dynamic buffer, according to the content of the first data segment in the first data packet update the data content stored in the dynamic buffer; when the second buffer is the dynamic buffer, update the data content according to the data content contained in the second data segment in the first data packet Describe the data content stored in the dynamic buffer.
- the compression configuration information further includes: first indication information, where the first indication information is used to indicate the first buffer type corresponding to at least one first component in the data packet;
- the first buffer type corresponding to any one of the first components is used to instruct the first communication device to use the buffer belonging to the first buffer type in the target compression buffer to compress the first component;
- a first component is any of the following: data packet, first data segment in data packet, second data segment in data packet, first field in data packet, second field in data packet, data packet The first data segment of the second field in the data packet, and the second data segment of the second field in the data packet.
- processing unit 1302 is further configured to:
- the second buffer type corresponding to any one of the second components is used to instruct the second communication device to use the buffer of the second buffer type to decompress the second component; any one of the second components is as follows Any one: the second data packet, the first data segment in the second data packet, the second data segment in the second data packet, the first field in the second data packet, the The second field in the second data packet, the first data segment in the second field in the second data packet, and the second data segment in the second field in the second data packet.
- the first field is a packet header, and the second field is a payload; or the first field is a payload, and the second field is a packet header.
- the compressed buffer configuration information is used to indicate: the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer, and the size of the static buffer and/or the content filled into the dynamic buffer Describe the static data content of the static buffer.
- the processing unit 1302 when acquiring the compression configuration information, is specifically configured to:
- processing unit 1302 is further configured to:
- the compression configuration information Before receiving the compression configuration information from the second communication device or the third communication device through the communication unit 1301, sending the compressed configuration information to the second communication device or the third communication device through the communication unit 1301 Capability information, where the compression capability information is used to indicate the compression capability of the first communication device.
- the compression capability information includes at least one of the following:
- processing unit 1302 is further configured to:
- processing unit 1302 is further configured to:
- stop compression instruction stop compressing the data packet according to the target compression buffer
- the buffer update information further includes: third indication information; the third indication information is used to indicate the data packets to be compressed using the updated target compression buffer;
- the third data packet is the data packet indicated by the third indication information.
- the fourth data packet further includes fourth indication information, and the fourth indication information is used to indicate that the fourth data packet uses the updated target for the first communication device.
- the compressed buffer is generated by compression.
- the first communication device is a terminal device, and the second communication device is a base station; or
- the first communication device is a base station, and the second communication device is a terminal device; or
- the first communication device and the second communication device are different terminal devices; or
- the first communication device is a terminal device, and the second communication device is a core network device; or
- the first communication device is a core network device, and the second communication device is a terminal device; or
- the first communication device is a base station, and the second communication device is a core network device; or
- the first communication device is a core network device, and the second communication device is a base station;
- the first communication device and the second communication device are different core network devices.
- the processing unit 1302 is further configured to:
- the status information of the compressed buffer is sent to the target base station through the communication unit 1301, where the status information of the compressed buffer is used to indicate the current size and/or stored data content of the target compressed buffer.
- the processing unit 1302 is further configured to:
- the communication apparatus is applied to the second communication device (ie, the decompression side) in the embodiment shown in FIG. 6 .
- the processing unit 1302 is configured to:
- the decompression configuration information includes: decompression mode indication information and decompression buffer configuration information, wherein the decompression mode indication information is used to indicate the target of the second communication device to decompress the data packet Decompression mode, the decompression buffer configuration information is used to configure the target decompression buffer;
- the second data packet After receiving the second data packet from the first communication device through the communication unit 1301, using the target decompression method to decompress the second data packet according to the target decompression buffer to generate a first data packet; wherein, The second data packet is generated by the first communication device compressing the first data packet.
- the target decompression mode is a decompression mode based on a dynamic buffer;
- the target decompression buffer is a dynamic buffer;
- the processing unit 1302 when using the target decompression method to decompress the second data packet according to the target decompression buffer to generate the first data packet, is specifically used for:
- the decompression buffer configuration information is used to indicate the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer.
- the target decompression method is a static buffer-based decompression method
- the target decompression buffer is a static buffer
- the processing unit 1302 when using the target decompression method to decompress the second data packet according to the target decompression buffer to generate the first data packet, is specifically used for:
- the decompression buffer configuration information is used to indicate the size of the static buffer and/or static data content filled into the static buffer.
- the target decompression method is an enhanced decompression method based on static buffer and dynamic buffer;
- the target decompression buffer includes static buffer and dynamic buffer;
- the processing unit 1302 when using the target decompression method to decompress the second data packet according to the target decompression buffer to generate the first data packet, is specifically used for:
- the second data packet decompress the first field to generate the decompressed first field; according to the second The data content contained in the second field in the data packet and the data content stored in the dynamic buffer are decompressed to the second field to generate the decompressed second field; wherein the second data packet is generated by the The first domain and the second domain are composed; the first data packet is composed according to the decompressed first domain and the decompressed second domain; according to the decompressed second domain contained Data content, updating the data content stored in the dynamic buffer; or
- the combination buffer is composed of the static buffer and The dynamic buffer combination is generated, the second data packet is composed of the first domain and the second domain; according to the decompressed first domain and the decompressed second domain, the second data packet is composed A data packet; update the data content stored in the dynamic buffer according to the data content contained in the decompressed second domain; or
- the second data packet is composed of the first domain and the second domain
- the second domain is composed of the first data segment and the second data segment
- the decompressed The first domain, the decompressed first data segment, and the decompressed second data segment form the first data packet; according to the data content contained in the decompressed second data segment, update the The data content stored in the dynamic buffer; or
- the first buffer is the static buffer or the dynamic buffer, the first data packet is composed of the first domain and the second domain; according to the decompressed first domain and the decompressed second domain, the second data packet is formed A data packet; when the first buffer is the dynamic buffer, update the data content stored in the dynamic buffer according to the data content contained in the decompressed second domain; or
- the second data packet is decompressed to generate the first data packet; wherein the combined buffer is composed of the static buffer Generated in combination with the dynamic buffer; update the data content stored in the dynamic buffer according to the data content contained in the first data packet; or
- the second data packet is decompressed to generate the first data packet; wherein the first buffer is the Static buffer or the dynamic buffer; when the first buffer is the dynamic buffer, update the data content stored in the dynamic buffer according to the data content contained in the first data packet; or
- the first buffer is the static buffer in the decompression buffer
- the second buffer is the dynamic buffer in the decompression buffer
- the first buffer is the dynamic buffer in the decompression buffer
- the second buffer is the static buffer in the decompressed buffer
- the second data packet is composed of at least two data segments such as the first data segment and the second data segment; according to the decompressed The first domain, the decompressed first data segment, and the decompressed second data segment form a second data packet; when the first buffer is the dynamic buffer, according to the decompressed The data content contained in the first data segment updates the data content stored in the dynamic buffer; when the second buffer is the dynamic buffer, updates the data content contained in the decompressed de
- the decompression configuration information further includes: sixth indication information, where the sixth indication information is used to indicate a third buffer type corresponding to at least one third component in the data packet;
- the third buffer type corresponding to any third component is used to instruct the second communication device to use the buffer belonging to the third buffer type in the target decompression buffer to decompress the third component;
- a third component is any of the following: a data packet, a first data segment in a data packet, a second data segment in a data packet, a first field in a data packet, a second field in a data packet, a data packet The first data segment of the second field in the data packet, and the second data segment of the second field in the data packet.
- processing unit 1302 is further configured to:
- the second buffer type corresponding to any second component is used to instruct the second communication device to use the buffer belonging to the second buffer type in the target decompression buffer to decompress the second component;
- a second component is any of the following: the second data packet, the first data segment in the second data packet, the second data segment in the second data packet, the second data packet The first field in the second data packet, the second field in the second data packet, the first data segment in the second field in the second data packet, and the second data segment in the second field in the second data packet.
- the first field is a packet header, and the second field is a payload; or the first field is a payload, and the second field is a packet header.
- the decompression buffer configuration information is used to indicate: the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer, and the size of the static buffer and/or the initial data content filled into the dynamic buffer Describe the static data content of the static buffer.
- processing unit 1302 acquires the decompression configuration information, it is specifically configured to:
- processing unit 1302 is further configured to:
- the compression configuration information includes: a compression mode indication Information and compression cache buffer configuration information, the compression mode indication information is used to indicate the target compression mode for the first communication device to compress the data packet, and the compression buffer configuration information is used to configure the compressed data packet
- processing unit 1302 is further configured to:
- the communication unit 1301 Before sending compression configuration information to the first communication device through the communication unit 1301, the communication unit 1301 receives compression capability information from the first communication device, where the compression capability information is used to represent the first communication device. - the compression capability of the communication equipment;
- the compression capability information includes at least one of the following:
- processing unit 1302 is further configured to:
- the fourth data packet After receiving the fourth data packet from the first communication device through the communication unit 1301, the fourth data packet is decompressed according to the updated target decompression buffer in the target decompression mode to generate a third A data packet; wherein, the fourth data packet is generated by the first communication device compressing the third data packet.
- processing unit 1302 is further configured to:
- the buffer update information further includes: third indication information; the third indication information is used to indicate the data packets to be compressed using the updated target compression buffer;
- the third data packet is the data packet indicated by the third indication information.
- the fourth data packet further includes fourth indication information, and the fourth indication information is used to indicate that the fourth data packet uses the updated target for the first communication device.
- the compressed buffer is generated by compression.
- the first communication device is a terminal device, and the second communication device is a base station; or
- the first communication device is a base station, and the second communication device is a terminal device; or
- the first communication device and the second communication device are different terminal devices; or
- the first communication device is a terminal device, and the second communication device is a core network device; or
- the first communication device is a core network device, and the second communication device is a terminal device; or
- the first communication device is a base station, and the second communication device is a core network device; or
- the first communication device is a core network device, and the second communication device is a base station;
- the first communication device and the second communication device are different core network devices.
- the processing unit 1302 is further configured to:
- the status information of the decompressed buffer is sent to the target base station through the communication unit 1301, where the status information of the decompressed buffer is used to indicate the current size and/or stored data content of the target decompressed buffer.
- the processing unit 1302 is further configured to:
- the seventh indication information from the target base station is received through the communication unit 1301, the seventh indication information is used to instruct to clear or maintain the target decompression buffer, or adjust the size of the target decompression buffer, or update the The target decompresses the data content stored in the buffer.
- each function in each embodiment of the present application Units can be integrated into one processing unit, or physically exist separately, or two or more units can be integrated into one unit.
- the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
- the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
- the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
- the communication device 1400 includes: a communication module 1401 , a processor 1402 and a memory 1403 . Wherein, the communication module 1401 , the processor 1402 and the memory 1403 are connected to each other.
- the communication module 1401 , the processor 1402 and the memory 1403 are connected to each other through a bus 1404 .
- the bus 1404 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus or the like.
- PCI peripheral component interconnect
- EISA extended industry standard architecture
- the bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 14 , but it does not mean that there is only one bus or one type of bus.
- the communication module 1401 is used to receive and send data to realize communication interaction with other devices.
- a communication device such as a core network device, a server, etc.
- the communication module 1401 may be implemented through a physical interface, a communication module, a communication interface, and an input/output interface.
- the communication module 1401 may also be implemented by a transceiver.
- the communication device 1400 may be the first communication device in the embodiment shown in FIG. 6 .
- the compression configuration information includes: compression mode indication information and compression buffer configuration information, and the compression mode indication information is used to instruct the first communication device to perform compression processing on the data packet as a target compression mode , the compression buffer configuration information is used to configure a target compression buffer;
- the communication device 1400 may be the second communication device in the embodiment shown in FIG. 6 .
- the processor 1402 is configured to:
- the decompression configuration information includes: decompression mode indication information and decompression buffer configuration information, wherein the decompression mode indication information is used to indicate the target of the second communication device to decompress the data packet Decompression mode, the decompression buffer configuration information is used to configure the target decompression buffer;
- the second data packet After receiving the second data packet from the first communication device through the communication module 1401, the second data packet is decompressed according to the target decompression buffer using the target decompression method to generate a first data packet; wherein, The second data packet is generated by the first communication device compressing the first data packet.
- the memory 1403 is used to store program instructions and data.
- the program instructions may include program codes including computer operation instructions.
- the memory 1403 may include a random access memory (random access memory, RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
- the processor 1402 executes the program instructions stored in the memory 1403 and uses the data stored in the memory 1403 to implement the above functions, thereby realizing the communication method provided by the above embodiments.
- the memory 1403 in FIG. 14 of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories.
- the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash.
- the volatile memory can be Random Access Memory (RAM), which acts as external cache memory.
- RAM Static Random Access Memory
- SRAM Static Random Access Memory
- DRAM Dynamic Random Access Memory
- Synchronous Dynamic Random Access Memory Synchronous Dynamic Random Access Memory
- SDRAM double data rate synchronous dynamic random access memory
- Double Data Rate SDRAM, DDR SDRAM enhanced synchronous dynamic random access memory
- Enhanced SDRAM, ESDRAM synchronous connection dynamic random access memory
- Synchlink DRAM, SLDRAM Direct Memory Bus Random Access Memory
- Direct Rambus RAM Direct Rambus RAM
- an embodiment of the present application further provides a computer program that, when the computer program is run on a computer, causes the computer to execute the communication method provided by the above embodiments.
- the embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored.
- the computer program When the computer program is executed by a computer, the computer executes the communication provided by the above embodiments. method.
- the storage medium may be any available medium that can be accessed by a computer.
- computer-readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or may be used to carry or store information in the form of instructions or data structures desired program code and any other medium that can be accessed by a computer.
- the embodiments of the present application further provide a chip, the chip is configured to read a computer program stored in a memory, and implement the communication method provided by the above embodiments.
- an embodiment of the present application provides a chip system
- the chip system includes a processor, configured to support a computer device to implement the functions involved in the service device, forwarding device, or site device in the above embodiments.
- the chip system further includes a memory, and the memory is used to store necessary programs and data of the computer device.
- the system-on-a-chip may consist of chips, or may include chips and other discrete devices.
- the embodiments of the present application provide a communication method, device, and equipment.
- the communication system can configure the target compression method and target compression buffer used by the compression side; correspondingly, the target decompression method and target decompression buffer used by the decompression side can also be configured. Therefore, through this method, the communication system can flexibly configure the target compression mode on the compression side, the decompression mode on the decompression side, and configure the target compression buffer on the compression side and the target decompression buffer on the decompression side according to the service characteristics and data characteristics of the data packet. , so that the flexibility of data compression in the communication system can be improved, and then the efficiency of data compression can be improved, and finally the data transmission efficiency and resource utilization of the communication system can be improved.
- the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
- computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
- These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions
- the device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present application provides a communication method and apparatus, and a device. By using the method, a communication system may configure a target compression mode used by a compression side and a target compression buffer, and correspondingly, configure a target decompression mode used by a decompression side and a target decompression buffer. Therefore, by using the method, according to service features and data features of a data packet, the communication system may flexibly configure the target compression mode of the compression side, the decompression mode of the decompression side, the target compression buffer of the compression side, and the target decompression buffer of the decompression side, so that the flexibility of data compression in the communication system can be improved, the data compression efficiency can be improved, and finally the data transmission efficiency and the resource utilization rate of the communication system are improved.
Description
相关申请的交叉引用Cross References to Related Applications
本申请要求在2021年07月29日提交中国专利局、申请号为202110866746.0、申请名称为“一种通信方法、装置及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110866746.0 and the application title "a communication method, device and equipment" submitted to the China Patent Office on July 29, 2021, the entire contents of which are incorporated in this application by reference middle.
本申请涉及通信技术领域,尤其涉及一种通信方法、装置及设备。The present application relates to the technical field of communication, and in particular to a communication method, device and equipment.
在通信领域,传输的数据可能数据量巨大,且存在各种冗余,为了提高数据传输效率和资源的利用率,通常采用压缩算法对待传输的数据进行压缩。In the field of communication, the amount of data to be transmitted may be huge, and there are various redundancy. In order to improve the efficiency of data transmission and the utilization of resources, a compression algorithm is usually used to compress the data to be transmitted.
目前应用在通信领域中的压缩机制包括:上行数据压缩(uplink data compression,UDC)机制、鲁棒头压缩(robust header compression,RoHC)机制、以太网头压缩(Ethernet header compression,EHC)机制。其中,UDC机制是利用压缩缓存(buffer)中存储的内容实现数据包的压缩,并且每次利用压缩buffer对数据包进行压缩后,都会利用原始数据包内容对压缩buffer进行更新。而RoHC机制和EHC机制均是对数据包头进行压缩。Compression mechanisms currently used in the communication field include: uplink data compression (UDC) mechanism, robust header compression (robust header compression, RoHC) mechanism, Ethernet header compression (Ethernet header compression, EHC) mechanism. Among them, the UDC mechanism is to use the content stored in the compression buffer (buffer) to compress the data packet, and each time the data packet is compressed by using the compression buffer, the original data packet content will be used to update the compression buffer. Both the RoHC mechanism and the EHC mechanism compress the packet header.
然而,目前的压缩机制不灵活,无法适应各种复杂多变的情况,进而影响数据压缩效率。However, the current compression mechanism is inflexible and unable to adapt to various complex and changeable situations, thereby affecting the efficiency of data compression.
发明内容Contents of the invention
本申请提供一种通信方法、装置及设备,用于提高通信系统中数据压缩的灵活性,从而提高数据压缩效率。The present application provides a communication method, device and equipment, which are used to improve the flexibility of data compression in a communication system, thereby improving the efficiency of data compression.
第一方面,本申请实施例提供了一种通信方法,该方法可以应用于作为压缩侧的第一通信设备中,该方法包括以下步骤:In the first aspect, the embodiment of the present application provides a communication method, which can be applied to the first communication device as the compression side, and the method includes the following steps:
第一通信设备获取压缩配置信息;其中,所述压缩配置信息包含:压缩方式指示信息和压缩缓存buffer配置信息,所述压缩方式指示信息用于指示所述第一通信设备对数据包进行压缩处理的目标压缩方式,所述压缩buffer配置信息用于配置目标压缩buffer;之后,所述第一通信设备根据所述压缩buffer配置信息,对所述目标压缩buffer进行配置;当获取第一数据包后,采用所述目标压缩方式根据所述目标压缩buffer对所述第一数据包进行压缩,生成第二数据包;最后,所述第一通信设备向第二通信设备发送所述第二数据包。The first communication device acquires compression configuration information; wherein the compression configuration information includes: compression mode indication information and compression buffer configuration information, and the compression mode indication information is used to instruct the first communication device to perform compression processing on the data packet The target compression method, the compression buffer configuration information is used to configure the target compression buffer; after that, the first communication device configures the target compression buffer according to the compression buffer configuration information; after obtaining the first data packet , using the target compression method to compress the first data packet according to the target compression buffer to generate a second data packet; finally, the first communication device sends the second data packet to a second communication device.
通过该方法,通信系统可以对压缩侧使用的目标压缩方式,以及目标压缩buffer进行配置。因此,通过本方法,通信系统可以根据业务特征、数据包的数据特征,灵活地配置压缩侧的目标压缩方式、压缩侧的目标压缩buffer,从而可以提高通信系统中数据压缩的灵活性,进而可以提高数据压缩效率,最终提高通信系统的数据传输效率和资源利用率。Through this method, the communication system can configure the target compression mode and the target compression buffer used by the compression side. Therefore, through this method, the communication system can flexibly configure the target compression mode on the compression side and the target compression buffer on the compression side according to the service characteristics and the data characteristics of the data packet, thereby improving the flexibility of data compression in the communication system, and further enabling Improve data compression efficiency, and ultimately improve the data transmission efficiency and resource utilization of the communication system.
在一种可能的设计中,所述目标压缩方式为基于动态buffer的压缩方式;所述目标压缩buffer为动态buffer;在该情况下,所述第一通信设备可以具体通过以下步骤,对所述 第一数据包进行压缩,生成第二数据包:In a possible design, the target compression mode is a compression mode based on a dynamic buffer; the target compression buffer is a dynamic buffer; in this case, the first communication device may perform the following steps specifically to the The first packet is compressed to generate the second packet:
所述第一通信设备根据所述第一数据包中包含的数据内容和所述动态压缩buffer中存储的数据内容,对所述第一数据包进行压缩,生成第二数据包;之后根据所述第一数据包中包含的数据内容,更新所述动态buffer中存储的数据内容。The first communication device compresses the first data packet according to the data content contained in the first data packet and the data content stored in the dynamic compression buffer to generate a second data packet; then according to the The data content contained in the first data packet updates the data content stored in the dynamic buffer.
通过该设计,通信系统可以配置压缩侧使用基于动态buffer的压缩方式。Through this design, the communication system can configure the compression side to use a dynamic buffer-based compression method.
在一种可能的设计中,所述压缩buffer配置信息用于指示所述动态buffer的大小和/或填充到所述动态buffer的初始数据内容。In a possible design, the compressed buffer configuration information is used to indicate the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer.
通过该设计,所述第一通信设备可以根据所述压缩buffer配置信息,配置所述动态buffer的大小或初始数据内容。With this design, the first communication device can configure the size or initial data content of the dynamic buffer according to the compressed buffer configuration information.
在一种可能的设计中,所述目标压缩方式为基于静态buffer的压缩方式;所述目标压缩buffer为静态buffer;在该情况下,所述第一通信设备可以具体通过以下步骤,对所述第一数据包进行压缩,生成第二数据包:In a possible design, the target compression method is a compression method based on a static buffer; the target compression buffer is a static buffer; in this case, the first communication device may perform the following steps specifically to the The first packet is compressed to generate the second packet:
所述第一通信设备根据所述第一数据包中包含的数据内容和所述静态buffer中存储的数据内容,对所述第一数据包进行压缩,生成第二数据包。The first communication device compresses the first data packet according to the data content contained in the first data packet and the data content stored in the static buffer to generate a second data packet.
通过该设计,通信系统可以配置压缩侧使用基于静态buffer的压缩方式。另外,通信系统可以将在数据包中高频出现的数据内容作为静态数据内容配置到静态buffer中,这样压缩侧在使用静态buffer对数据包进行压缩时,可以提高数据包的压缩率。Through this design, the communication system can configure the compression side to use a static buffer-based compression method. In addition, the communication system can configure the data content that appears frequently in the data packet as static data content in the static buffer, so that when the compression side uses the static buffer to compress the data packet, the compression rate of the data packet can be improved.
在一种可能的设计中,所述压缩buffer配置信息用于指示所述静态buffer的大小和/或填充到所述静态buffer的静态数据内容。In a possible design, the compressed buffer configuration information is used to indicate the size of the static buffer and/or static data content filled into the static buffer.
通过该设计,所述第一通信设备可以根据所述压缩buffer配置信息,配置所述静态buffer的大小或静态数据内容。With this design, the first communication device can configure the size of the static buffer or the static data content according to the compressed buffer configuration information.
在一种可能的设计中,所述目标压缩方式为基于静态buffer和动态buffer的增强压缩方式;所述目标压缩buffer包含静态buffer和动态buffer;在该情况下,所述第一通信设备可以具体通过以下几种实现方式,对所述第一数据包进行压缩,生成第二数据包:In a possible design, the target compression mode is an enhanced compression mode based on static buffer and dynamic buffer; the target compression buffer includes static buffer and dynamic buffer; in this case, the first communication device may specifically The first data packet is compressed to generate the second data packet through the following implementation methods:
实现方式1:根据所述第一数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行压缩,生成压缩后的所述第一域;根据所述第一数据包中第二域包含的数据内容和所述动态buffer中存储的数据内容,对所述第二域进行压缩,生成压缩后的所述第二域;其中,所述第一数据包由所述第一域和所述第二域组成;根据压缩后的所述第一域和压缩后的所述第二域,组成所述第二数据包;根据所述第一数据包中所述第二域包含的数据内容,更新所述动态buffer中存储的数据内容;Implementation mode 1: compress the first field according to the data content contained in the first field in the first data packet and the data content stored in the static buffer, and generate the compressed first field; according to The data content contained in the second field in the first data packet and the data content stored in the dynamic buffer are compressed to generate the compressed second field; wherein, the first The data packet is composed of the first field and the second field; according to the compressed first field and the compressed second field, the second data packet is formed; according to the first data packet The data content contained in the second domain described in the update the data content stored in the dynamic buffer;
实现方式2:根据所述第一数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行压缩,生成压缩后的所述第一域;根据所述第一数据包中第二域包含的数据内容和组合buffer中存储的数据内容,对所述第二域进行压缩,生成压缩后的所述第二域;其中,所述组合buffer由所述静态buffer和所述动态buffer组合生成,所述第一数据包由所述第一域和所述第二域组成;根据压缩后的所述第一域和压缩后的所述第二域,组成所述第二数据包;根据所述第一数据包中所述第二域包含的数据内容,更新所述动态buffer中存储的数据内容;Implementation mode 2: compress the first field according to the data content contained in the first field in the first data packet and the data content stored in the static buffer, and generate the compressed first field; according to The data content contained in the second domain in the first data packet and the data content stored in the combined buffer are compressed to generate the compressed second domain; wherein the combined buffer is composed of the The static buffer and the dynamic buffer are generated in combination, the first data packet is composed of the first field and the second field; according to the compressed first field and the compressed second field, Composing the second data packet; updating the data content stored in the dynamic buffer according to the data content contained in the second field in the first data packet;
实现方式3:根据所述第一数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行压缩,生成压缩后的所述第一域;根据所述第一数据包中第二域的第一数据段包含的数据内容和所述静态buffer中存储的数据内容,对所述第一数 据段进行压缩,生成压缩后的所述第一数据段;根据所述第一数据包中所述第二域的第二数据段包含的数据内容和所述动态buffer中存储的数据内容,对所述第二数据段进行压缩,生成压缩后的所述第二数据段;其中,所述第一数据包由所述第一域和所述第二域组成,所述第二域由所述第一数据段和所述第二数据段组成;根据压缩后的所述第一域、压缩后的所述第一数据段,以及压缩后的所述第二数据段,组成所述第二数据包;根据所述第一数据包中所述第二域的所述第二数据段包含的数据内容,更新所述动态buffer中存储的数据内容;Implementation mode 3: according to the data content contained in the first field in the first data packet and the data content stored in the static buffer, compress the first field to generate the compressed first field; according to Compressing the first data segment containing the data content contained in the first data segment of the second field in the first data packet and the data content stored in the static buffer to generate the compressed first data segment ; According to the data content contained in the second data segment of the second field in the first data packet and the data content stored in the dynamic buffer, compress the second data segment to generate the compressed The second data segment; wherein, the first data packet is composed of the first domain and the second domain, and the second domain is composed of the first data segment and the second data segment; according to the compression The first field after the compression, the first data segment after compression, and the second data segment after compression form the second data packet; according to the second field in the first data packet The data content contained in the second data segment, updating the data content stored in the dynamic buffer;
实现方式4:根据所述第一数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行压缩,生成压缩后的所述第一域;根据所述第一数据包中第二域包含的数据内容和第一buffer中存储的数据内容,对所述第二域进行压缩,生成压缩后的所述第二域;其中,所述第一buffer为所述静态buffer或所述动态buffer,所述第一数据包由所述第一域和所述第二域组成;根据压缩后的所述第一域和压缩后的所述第二域,组成所述第二数据包;当所述第一压缩buffer为所述动态buffer时,根据所述第一数据包中所述第二域包含的数据内容,更新所述动态buffer中存储的数据内容;Implementation mode 4: according to the data content contained in the first field in the first data packet and the data content stored in the static buffer, compress the first field to generate the compressed first field; according to The data content contained in the second domain in the first data packet and the data content stored in the first buffer are compressed to generate the compressed second domain; wherein the first buffer is the static buffer or the dynamic buffer, the first data packet is composed of the first field and the second field; according to the compressed first field and the compressed second field, Composing the second data packet; when the first compressed buffer is the dynamic buffer, updating the data content stored in the dynamic buffer according to the data content contained in the second field in the first data packet ;
实现方式5:根据所述第一数据包中包含的数据内容和组合buffer中存储的数据内容,对所述第一数据包进行压缩,生成第二数据包;其中,所述组合buffer由所述静态buffer和所述动态buffer组合生成;根据所述第一数据包中包含的数据内容,更新所述动态buffer中存储的数据内容;Implementation 5: According to the data content contained in the first data packet and the data content stored in the combination buffer, the first data packet is compressed to generate a second data packet; wherein, the combination buffer is composed of the The static buffer and the dynamic buffer are combined and generated; according to the data content contained in the first data packet, the data content stored in the dynamic buffer is updated;
实现方式6:根据所述第一数据包中包含的数据内容和第一buffer中存储的数据内容,对所述第一数据包进行压缩,生成第二数据包;其中,所述第一buffer为所述静态buffer或所述动态buffer;当所述第一压缩buffer为所述动态buffer时,根据所述第一数据包中包含的数据内容,更新所述动态buffer中存储的数据内容;Implementation mode 6: according to the data content contained in the first data packet and the data content stored in the first buffer, compress the first data packet to generate a second data packet; wherein, the first buffer is The static buffer or the dynamic buffer; when the first compression buffer is the dynamic buffer, update the data content stored in the dynamic buffer according to the data content contained in the first data packet;
实现方式7:Implementation method 7:
根据所述第一数据包中第一数据段包含的数据内容和第一buffer中存储的数据内容,对第一数据段进行压缩,生成压缩后的所述第一数据段;根据所述第一数据包中第二数据段包含的数据内容和第二buffer中存储的数据内容,对所述第二数据段进行压缩,生成压缩后的所述第二数据段;其中,所述第一buffer为所述压缩buffer中的所述静态buffer,所述第二buffer为所述压缩buffer中的所述动态buffer;又或者所述第一buffer为所述压缩buffer中的所述动态buffer,所述第二buffer为所述压缩buffer中的所述静态buffer;所述第一数据包由所述第一数据段和所述第二数据段等至少两个数据段组成;根据压缩后的所述第一数据段,以及压缩后的所述第二数据段,组成第二数据包;当所述第一buffer为所述动态buffer时,根据所述第一数据包中所述第一数据段包含的数据内容,更新所述动态buffer中存储的数据内容;当所述第二buffer为所述动态buffer时,根据所述第一数据包中所述第二数据段包含的数据内容,更新所述动态buffer中存储的数据内容。According to the data content contained in the first data segment in the first data packet and the data content stored in the first buffer, compress the first data segment to generate the compressed first data segment; according to the first The data content contained in the second data segment in the data packet and the data content stored in the second buffer are compressed to generate the compressed second data segment; wherein the first buffer is The static buffer in the compressed buffer, the second buffer is the dynamic buffer in the compressed buffer; or the first buffer is the dynamic buffer in the compressed buffer, and the second buffer is the dynamic buffer in the compressed buffer. The second buffer is the static buffer in the compressed buffer; the first data packet is composed of at least two data segments such as the first data segment and the second data segment; according to the compressed first The data segment and the compressed second data segment form a second data packet; when the first buffer is the dynamic buffer, according to the data contained in the first data segment in the first data packet content, updating the data content stored in the dynamic buffer; when the second buffer is the dynamic buffer, updating the dynamic buffer according to the data content contained in the second data segment in the first data packet The data content stored in.
通过该设计,通信系统可以配置压缩侧使用增强压缩方式的情况下,具体采用上述一种实现方式进行压缩。因此,通信系统可以根据业务特征、数据包的数据特征,灵活地配置压缩侧所使用的实现方式,从而可以进一步提高通信系统中数据压缩的灵活性,进而可以提高数据压缩效率,最终提高通信系统的数据传输效率和资源利用率。Through this design, the communication system can be configured to use the enhanced compression mode on the compression side, specifically using one of the above implementation modes for compression. Therefore, the communication system can flexibly configure the implementation method used by the compression side according to the service characteristics and data characteristics of the data packet, so that the flexibility of data compression in the communication system can be further improved, and the efficiency of data compression can be improved, and finally the communication system can be improved. data transmission efficiency and resource utilization.
在一种可能的设计中,所述压缩配置信息中还包括:第一指示信息,所述第一指示信息用于指示数据包中至少一个第一组成部分对应的第一buffer类型;In a possible design, the compression configuration information further includes: first indication information, where the first indication information is used to indicate a first buffer type corresponding to at least one first component in the data packet;
其中,任一个第一组成部分对应的第一buffer类型用于指示所述第一通信设备使用所述目标压缩buffer中属于所述第一buffer类型的buffer对所述第一组成部分进行压缩;任一个第一组成部分为以下任一项:数据包、数据包中的第一数据段、数据包中的第二数据段、数据包中的第一域、数据包中的第二域、数据包中第二域的第一数据段、数据包中第二域的第二数据段。Wherein, the first buffer type corresponding to any one of the first components is used to instruct the first communication device to use the buffer belonging to the first buffer type in the target compression buffer to compress the first component; A first component is any of the following: data packet, first data segment in data packet, second data segment in data packet, first field in data packet, second field in data packet, data packet The first data segment of the second field in the data packet, and the second data segment of the second field in the data packet.
通过该设计,所述第一通信设备可以根据该第一指示信息确定具体的压缩策略,从而实现对数据包的压缩。即通信系统可以根据该第一指示信息配置第一通信设备的压缩策略(即以上任一种实现方式中的压缩策略)。With this design, the first communication device can determine a specific compression strategy according to the first indication information, thereby realizing the compression of the data packet. That is, the communication system may configure the compression policy of the first communication device (that is, the compression policy in any of the above implementation manners) according to the first indication information.
在一种可能的设计中,所述第一通信设备还可以向所述第二通信设备发送第二指示信息,所述第二指示用于指示所述第二数据包中至少一个第二组成部分对应的第二buffer类型;In a possible design, the first communication device may also send second indication information to the second communication device, where the second indication is used to indicate at least one second component in the second data packet The corresponding second buffer type;
其中,任一个第二组成部分对应的第二buffer类型用于指示所述第二通信设备使用所述第二buffer类型的buffer对所述第二组成部分进行解压;任一个第二组成部分为以下任一项:所述第二数据包、所述第二数据包中的第一数据段、所述第二数据包中的第二数据段、所述第二数据包中的第一域、所述第二数据包中的第二域,所述第二数据包中第二域的第一数据段、所述第二数据包中第二域的第二数据段。Wherein, the second buffer type corresponding to any one of the second components is used to instruct the second communication device to use the buffer of the second buffer type to decompress the second component; any one of the second components is as follows Any one: the second data packet, the first data segment in the second data packet, the second data segment in the second data packet, the first field in the second data packet, the The second field in the second data packet, the first data segment in the second field in the second data packet, and the second data segment in the second field in the second data packet.
可选的,所述第一通信设备可以在第二数据包中携带所述第二指示信息。Optionally, the first communication device may carry the second indication information in a second data packet.
通过该设计,所述第一通信设备可以将压缩策略对应的解压策略通知给第二通信设备,从而保证第二通信设备能够成功对接收到的数据包进行解压。Through this design, the first communication device can notify the second communication device of the decompression policy corresponding to the compression policy, thereby ensuring that the second communication device can successfully decompress the received data packet.
在一种可能的设计中,所述第一域为包头,所述第二域为有效载荷;或者所述第一域为有效载荷,所述第二域为包头。In a possible design, the first field is a packet header, and the second field is a payload; or the first field is a payload, and the second field is a packet header.
在一种可能的设计中,所述压缩buffer配置信息用于指示:所述动态buffer的大小和/或填充到所述动态buffer的初始数据内容,以及所述静态buffer的大小和/或填充到所述静态buffer的静态数据内容。In a possible design, the compressed buffer configuration information is used to indicate: the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer, and the size of the static buffer and/or filled into Static data content of the static buffer.
通过该设计,所述第一通信设备可以根据所述压缩buffer配置信息,配置所述静态buffer的大小或静态数据内容,以及配置动态buffer的大小或初始数据内容。With this design, the first communication device can configure the size or static data content of the static buffer and configure the size or initial data content of the dynamic buffer according to the compressed buffer configuration information.
在一种可能的设计中,所述第一通信设备可以通过以下方式,获取压缩配置信息:In a possible design, the first communication device may obtain compression configuration information in the following manner:
方式一:接收来自所述第二通信设备或第三通信设备的所述压缩配置信息;Way 1: receiving the compressed configuration information from the second communication device or the third communication device;
方式二:获取保存的所述压缩配置信息。Method 2: Obtain the stored compression configuration information.
通过该设计,通信系统可以通过第一通信设备自身、第二通信设备,或第三通信设备对第一通信设备的压缩方式和压缩buffer进行配置。Through this design, the communication system can configure the compression mode and compression buffer of the first communication device through the first communication device itself, the second communication device, or the third communication device.
在一种可能的设计中,在接收来自所述第二通信设备或第三通信设备的所述压缩配置信息之前,所述第一通信设备还可以向所述第二通信设备或所述第三通信设备发送压缩能力信息,所述压缩能力信息用于表示所述第一通信设备的压缩能力。In a possible design, before receiving the compressed configuration information from the second communication device or the third communication device, the first communication device may also send the compressed configuration information to the second communication device or the third communication device The communication device sends compression capability information, where the compression capability information is used to indicate the compression capability of the first communication device.
通过该设计,第二通信设备或第三通信设备还可以根据第一通信设备的压缩能力生成所述压缩配置信息。Through this design, the second communication device or the third communication device may also generate the compression configuration information according to the compression capability of the first communication device.
在一种可能的设计中,所述压缩能力信息包括以下至少一项:In a possible design, the compression capability information includes at least one of the following:
支持的压缩方式、能够进行压缩处理的数据传输方向、支持配置压缩处理的无线承载的数量或信息、支持配置压缩buffer的总大小阈值、支持配置每种buffer类型的buffer的大小阈值。Supported compression methods, data transmission directions that can be compressed, the number or information of radio bearers that support compression processing, the total size threshold of compression buffers, and the buffer size threshold of each buffer type.
在一种可能的设计中,所述第一通信设备还可以执行以下步骤:In a possible design, the first communication device may also perform the following steps:
接收来自所述第二通信设备或所述第三通信设备的buffer更新信息,所述buffer更新信息用于调整所述目标压缩buffer的大小,和/或,更新所述目标压缩buffer存储的数据内容;Receive buffer update information from the second communication device or the third communication device, where the buffer update information is used to adjust the size of the target compression buffer, and/or update the data content stored in the target compression buffer ;
根据所述buffer更新信息,更新所述目标压缩buffer;updating the target compression buffer according to the buffer update information;
在获取第三数据包后,采用所述目标压缩方式根据更新后的所述目标压缩buffer对所述第三数据包进行压缩,生成第四数据包;After obtaining the third data packet, compress the third data packet according to the updated target compression buffer by using the target compression method to generate a fourth data packet;
向所述第二通信设备发送所述第四数据包。sending the fourth data packet to the second communications device.
通过该设计,通信系统还可以对第一通信设备中的目标压缩buffer进行更新(调整大小和/或存储内容),以使更新后的目标压缩buffer能够适应变化的业务,从而保证数据包的压缩率。Through this design, the communication system can also update (adjust size and/or store content) the target compression buffer in the first communication device, so that the updated target compression buffer can adapt to changing services, thereby ensuring the compression of data packets Rate.
在一种可能的设计中,在更新目标压缩buffer的场景中,在接收来自所述第二通信设备或所述第三通信设备的buffer更新信息之前,所述第一通信设备可以接收来自所述第二通信设备或所述第三通信设备的停止压缩指令;然后根据所述停止压缩指令,停止根据所述目标压缩buffer对数据包进行压缩。在更新目标压缩buffer之后,接收来自所述第二通信设备或所述第三通信设备的启动压缩指令,这样所述第一通信设备开始使用更新后的目标压缩buffer对数据包进行压缩。In a possible design, in the scenario of updating the target compression buffer, before receiving the buffer update information from the second communication device or the third communication device, the first communication device may receive the A stop compression instruction of the second communication device or the third communication device; then according to the stop compression instruction, stop compressing data packets according to the target compression buffer. After updating the target compression buffer, receiving an instruction to start compression from the second communication device or the third communication device, so that the first communication device starts to use the updated target compression buffer to compress the data packet.
通过该设计,通信系统可以通过向第一通信设备发送停止压缩指令和启动压缩指令来指示第一通信设备停止和启动压缩操作。该设计可以明确第一通信设备停止压缩的时间,以及使用更新后的目标压缩buffer的时间,因此,该方法可以解决第一通信设备压缩时使用的目标压缩buffer与第二通信设备解压时使用的目标解压buffer不一致,导致数据包无法成功解压,最终导致数据包传输失败的问题。With this design, the communication system can instruct the first communication device to stop and start the compression operation by sending the stop compression instruction and the start compression instruction to the first communication device. This design can specify the time when the first communication device stops compressing and the time when the updated target compression buffer is used. Therefore, this method can solve the problem of the target compression buffer used by the first communication device when compressing and the time when the second communication device decompresses. The target decompression buffer is inconsistent, resulting in the failure to successfully decompress the data packet, which eventually leads to the failure of the data packet transmission.
在一种可能的设计中,所述buffer更新信息中还包括:第三指示信息;所述第三指示信息用于指示使用更新后的所述目标压缩buffer进行压缩的数据包;所述第三数据包为所述第三指示信息所指示的数据包。所述第一通信设备可以在首次接收到该第三指示信息所指示的数据包时,更新目标压缩buffer,并使用更新后的目标压缩buffer对之后的数据包进行压缩。In a possible design, the buffer update information further includes: third indication information; the third indication information is used to indicate the data packets compressed using the updated target compression buffer; the third The data packet is the data packet indicated by the third indication information. The first communication device may update the target compression buffer when receiving the data packet indicated by the third indication information for the first time, and use the updated target compression buffer to compress subsequent data packets.
通过该设计,通信系统可以通过指定数据包指示第一通信设备更新目标压缩buffer的时间,从而可以明确第一通信设备使用更新后的目标压缩buffer进行压缩的数据包。因此,该设计也可以解决第一通信设备压缩时使用的目标压缩buffer与第二通信设备解压时使用的目标解压buffer不一致,导致数据包无法成功解压,最终导致数据包传输失败的问题。Through this design, the communication system can instruct the first communication device to update the time of the target compression buffer by specifying the data packet, so that the data packet that the first communication device compresses using the updated target compression buffer can be specified. Therefore, this design can also solve the problem that the target compression buffer used by the first communication device for compression is inconsistent with the target decompression buffer used by the second communication device for decompression, resulting in the inability to successfully decompress the data packet and eventually lead to the failure of data packet transmission.
在一种可能的设计中,所述第四数据包中还包括第四指示信息,所述第四指示信息用于指示所述第四数据包为所述第一通信设备使用更新后的所述目标压缩buffer进行压缩生成的。In a possible design, the fourth data packet further includes fourth indication information, and the fourth indication information is used to indicate that the fourth data packet uses the updated The target compression buffer is generated by compression.
通过该设计,第一通信设备还可以通过第四指示信息指示使用更新后的目标压缩buffer进行压缩的数据包。这样第二通信设备即在接收到包含第四指示信息的数据包时,即可以使用更新后的目标解压buffer进行解压,从而解决解决第一通信设备压缩时使用的目标压缩buffer与第二通信设备解压时使用的目标解压buffer不一致的问题。With this design, the first communication device can also indicate the data packets to be compressed using the updated target compression buffer through the fourth indication information. In this way, when the second communication device receives the data packet containing the fourth indication information, it can use the updated target decompression buffer to decompress, thereby solving the problem of the target compression buffer used by the first communication device when compressing and the second communication device The target decompression buffer used during decompression is inconsistent.
在一种可能的设计中,所述第一通信设备为终端设备,所述第二通信设备为基站;或者In a possible design, the first communication device is a terminal device, and the second communication device is a base station; or
所述第一通信设备为基站,所述第二通信设备为终端设备;或者The first communication device is a base station, and the second communication device is a terminal device; or
所述第一通信设备和所述第二通信设备为不同的终端设备;或者The first communication device and the second communication device are different terminal devices; or
所述第一通信设备为终端设备,所述第二通信设备为核心网设备;或者The first communication device is a terminal device, and the second communication device is a core network device; or
所述第一通信设备为核心网设备,所述第二通信设备为终端设备;或者The first communication device is a core network device, and the second communication device is a terminal device; or
所述第一通信设备为基站,所述第二通信设备为核心网设备;或者The first communication device is a base station, and the second communication device is a core network device; or
所述第一通信设备为核心网设备,所述第二通信设备为基站;The first communication device is a core network device, and the second communication device is a base station;
所述第一通信设备和所述第二通信设备为不同的核心网设备。The first communication device and the second communication device are different core network devices.
在一种可能的设计中,当所述第一通信设备为基站,接入所述基站的终端设备切换到目标基站时,第一通信设备还可以向所述目标基站发送压缩buffer的状态信息,所述压缩buffer的状态信息用于指示当前所述目标压缩buffer的大小和/或存储的数据内容。In a possible design, when the first communication device is a base station, and a terminal device accessing the base station switches to a target base station, the first communication device may also send compressed buffer status information to the target base station, The status information of the compression buffer is used to indicate the size and/or stored data content of the current target compression buffer.
通过该设计,第一通信设备可以通知目标基站源基站侧维护的压缩buffer的状态,以使目标基站可以快速地根据该buffer的状态信息,在本地配置大小和数据内容相同的压缩buffer,从而可以接替源基站的压缩工作。Through this design, the first communication device can notify the target base station of the state of the compressed buffer maintained by the source base station side, so that the target base station can quickly configure a compressed buffer with the same size and data content locally according to the state information of the buffer, so that Takes over the compression work from the source base station.
在一种可能的设计中,当所述第一通信设备为终端设备,所述终端设备切换到目标基站时,所述第一通信设备还可以接收来自所述目标基站的第五指示信息,所述第五指示信息用于指示清空或维持所述目标压缩buffer,或者调整所述目标压缩buffer的大小,或者更新所述目标压缩buffer存储的数据内容。In a possible design, when the first communication device is a terminal device and the terminal device is handed over to the target base station, the first communication device may also receive fifth indication information from the target base station, so The fifth instruction information is used to instruct to clear or maintain the target compression buffer, or to adjust the size of the target compression buffer, or to update the data content stored in the target compression buffer.
通过该设计,目标基站在根据获取的源基站的buffer的状态信息,在本地配置解压buffer的情况下,还可以决定是否需要对解压buffer的内容进行更新、清空或维持。当目标基站决定对解压buffer进行更新、清空或维持时,那么为了使解压buffer和压缩buffer保持完全一致,目标基站还可以指示终端设备来对压缩buffer执行相同的处理。Through this design, the target base station can also decide whether to update, clear or maintain the content of the decompression buffer when configuring the decompression buffer locally according to the obtained buffer state information of the source base station. When the target base station decides to update, clear or maintain the decompression buffer, in order to keep the decompression buffer completely consistent with the compression buffer, the target base station may also instruct the terminal device to perform the same processing on the compression buffer.
第二方面,本申请实施例提供了一种通信方法,该方法可以应用于作为解压侧的第二通信设备中,该方法包括以下步骤:In the second aspect, the embodiment of the present application provides a communication method, which can be applied to a second communication device as the decompression side, and the method includes the following steps:
第二通信设备获取解压配置信息;其中,所述解压配置信息包含:解压方式指示信息和解压缓存buffer配置信息,其中,所述解压方式指示信息用于指示所述第二通信设备对数据包进行解压处理的目标解压方式,所述解压buffer配置信息用于配置目标解压buffer;然后,根据所述解压buffer配置信息,对所述目标解压buffer进行配置;在接收来自第一通信设备的第二数据包后,所述第二通信设备采用所述目标解压方式根据所述目标解压buffer对所述第二数据包进行解压,生成第一数据包;其中,所述第二数据包为所述第一通信设备对所述第一数据包进行压缩生成的。The second communication device acquires decompression configuration information; wherein, the decompression configuration information includes: decompression mode indication information and decompression buffer configuration information, wherein the decompression mode indication information is used to instruct the second communication device to perform the decompression on the data packet The target decompression method of decompression processing, the decompression buffer configuration information is used to configure the target decompression buffer; then, according to the decompression buffer configuration information, configure the target decompression buffer; after receiving the second data from the first communication device After packeting, the second communication device uses the target decompression method to decompress the second data packet according to the target decompression buffer to generate a first data packet; wherein the second data packet is the first The communication device compresses the first data packet to generate it.
通过该方法,通信系统可以对解压侧使用的目标解压方式,以及目标解压buffer进行配置。因此,通过本方法,通信系统可以根据业务特征、数据包的数据特征,灵活地配置压缩侧的目标压缩方式、压缩侧的目标压缩buffer,以及相应的配置解压侧的目标解压方式,解压侧的目标解压buffer,从而可以提高通信系统中数据压缩的灵活性,进而可以提高数据压缩效率,最终提高通信系统的数据传输效率和资源利用率。Through this method, the communication system can configure the target decompression method and the target decompression buffer used by the decompression side. Therefore, through this method, the communication system can flexibly configure the target compression mode on the compression side, the target compression buffer on the compression side, and the corresponding target decompression mode on the decompression side, and the target decompression mode on the decompression side according to the service characteristics and data characteristics of the data packet. The target decompresses the buffer, so that the flexibility of data compression in the communication system can be improved, and the efficiency of data compression can be improved, and finally the data transmission efficiency and resource utilization of the communication system can be improved.
在一种可能的设计中,所述目标解压方式为基于动态buffer的解压方式;所述目标解压buffer为动态buffer;在该情况下,所述第二通信设备可以通过以下步骤,对所述第二数据包进行解压,生成第一数据包时:In a possible design, the target decompression method is a dynamic buffer-based decompression method; the target decompression buffer is a dynamic buffer; in this case, the second communication device may perform the following steps to The second data packet is decompressed, and when the first data packet is generated:
根据所述第二数据包中包含的数据内容和所述动态buffer中存储的数据内容,对所述第二数据包进行解压,生成所述第一数据包;根据所述第一数据包中包含的数据内容,更 新所述动态buffer中存储的数据内容。According to the data content contained in the second data packet and the data content stored in the dynamic buffer, decompress the second data packet to generate the first data packet; according to the data content contained in the first data packet update the data content stored in the dynamic buffer.
通过该设计,通信系统可以配置解压侧使用基于动态buffer的解压方式。Through this design, the communication system can configure the decompression side to use a dynamic buffer-based decompression method.
在一种可能的设计中,所述解压buffer配置信息用于指示所述动态buffer的大小和/或填充到所述动态buffer的初始数据内容。In a possible design, the decompression buffer configuration information is used to indicate the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer.
通过该设计,所述第二通信设备可以根据所述解压buffer配置信息,配置所述动态buffer的大小或初始数据内容。With this design, the second communication device can configure the size or initial data content of the dynamic buffer according to the decompression buffer configuration information.
在一种可能的设计中,所述目标解压方式为基于静态buffer的解压方式;所述目标解压buffer为静态buffer;在该情况下,所述第二通信设备可以通过以下步骤,对所述第二数据包进行解压,生成第一数据包:In a possible design, the target decompression method is a static buffer-based decompression method; the target decompression buffer is a static buffer; in this case, the second communication device can perform the following steps to The second data packet is decompressed to generate the first data packet:
根据所述第二数据包中包含的数据内容和所述静态buffer中存储的数据内容,对所述第二数据包进行解压,生成第一数据包。Decompressing the second data packet according to the data content contained in the second data packet and the data content stored in the static buffer to generate a first data packet.
通过该设计,通信系统可以配置解压侧使用基于静态buffer的解压方式。Through this design, the communication system can configure the decompression side to use a static buffer-based decompression method.
在一种可能的设计中,所述解压buffer配置信息用于指示所述静态buffer的大小和/或填充到所述静态buffer的静态数据内容。In a possible design, the decompression buffer configuration information is used to indicate the size of the static buffer and/or static data content filled into the static buffer.
通过该设计,所述第二通信设备可以根据所述解压buffer配置信息,配置所述静态buffer的大小或静态数据内容。With this design, the second communication device can configure the size of the static buffer or the static data content according to the decompression buffer configuration information.
在一种可能的设计中,所述目标解压方式为基于静态buffer和动态buffer的增强解压方式;所述目标解压buffer包含静态buffer和动态buffer;在该情况下,所述第二通信设备可以具体通过以下几种实现方式,对所述第二数据包进行解压,生成第一数据包:In a possible design, the target decompression method is an enhanced decompression method based on static buffer and dynamic buffer; the target decompression buffer includes static buffer and dynamic buffer; in this case, the second communication device may specifically The second data packet is decompressed to generate the first data packet through the following implementation methods:
实现方式1:根据所述第二数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行解压,生成解压后的所述第一域;根据所述第二数据包中第二域包含的数据内容和所述动态buffer中存储的数据内容,对所述第二域进行解压,生成解压后的所述第二域;其中,所述第二数据包由所述第一域和所述第二域组成;根据解压后的所述第一域和解压后的所述第二域,组成所述第一数据包;根据解压后的所述第二域包含的数据内容,更新所述动态buffer中存储的数据内容;Implementation mode 1: according to the data content contained in the first field in the second data packet and the data content stored in the static buffer, decompress the first field to generate the decompressed first field; according to The data content contained in the second domain in the second data packet and the data content stored in the dynamic buffer are decompressed to generate the decompressed second domain; wherein, the second The data packet is composed of the first field and the second field; according to the decompressed first field and the decompressed second field, the first data packet is formed; according to the decompressed first field The data content contained in the second field updates the data content stored in the dynamic buffer;
实现方式2:根据所述第二数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行解压,生成解压后的所述第一域;根据所述第二数据包中第二域包含的数据内容和组合buffer中存储的数据内容,对所述第二域进行解压,生成解压后的所述第二域;其中,所述组合buffer由所述静态buffer和所述动态buffer组合生成,所述第二数据包由所述第一域和所述第二域组成;根据解压后的所述第一域和解压后的所述第二域,组成所述第一数据包;根据解压后的所述第二域包含的数据内容,更新所述动态buffer中存储的数据内容;Implementation mode 2: according to the data content contained in the first field in the second data packet and the data content stored in the static buffer, decompress the first field to generate the decompressed first field; according to The data content contained in the second field in the second data packet and the data content stored in the combination buffer are decompressed to the second field to generate the decompressed second field; wherein the combination buffer is obtained by the The static buffer and the dynamic buffer are generated in combination, the second data packet is composed of the first field and the second field; according to the decompressed first field and the decompressed second field, Composing the first data packet; updating the data content stored in the dynamic buffer according to the data content contained in the decompressed second domain;
实现方式3:根据所述第二数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行解压,生成解压后的所述第一域;根据所述第二数据包中第二域的第一数据段包含的数据内容和所述静态buffer中存储的数据内容,对所述第一数据段进行解压,生成解压后的所述第一数据段;根据所述第二数据包中所述第二域的第二数据段包含的数据内容和所述动态buffer中存储的数据内容,对所述第二数据段进行解压,生成解压后的所述第二数据段;其中,所述第二数据包由所述第一域和所述第二域组成,所述第二域由所述第一数据段和所述第二数据段组成;根据解压后的所述第一域、解压后的所述第一数据段,以及解压后的所述第二数据段,组成所述第一数据包;根据解压后的 所述第二数据段包含的数据内容,更新所述动态buffer中存储的数据内容;Implementation mode 3: according to the data content contained in the first field in the second data packet and the data content stored in the static buffer, decompress the first field to generate the decompressed first field; according to The data content contained in the first data segment of the second field in the second data packet and the data content stored in the static buffer are decompressed to the first data segment to generate the decompressed first data segment ; According to the data content contained in the second data segment of the second domain in the second data packet and the data content stored in the dynamic buffer, decompress the second data segment to generate the decompressed The second data segment; wherein, the second data packet is composed of the first domain and the second domain, and the second domain is composed of the first data segment and the second data segment; according to decompression The first domain after decompression, the first data segment after decompression, and the second data segment after decompression form the first data packet; according to the data contained in the second data segment after decompression content, updating the data content stored in the dynamic buffer;
实现方式4:根据所述第二数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行解压,生成解压后的所述第一域;根据所述第二数据包中第二域包含的数据内容和第一buffer中存储的数据内容,对所述第二域进行解压,生成解压后的所述第二域;其中,所述第一buffer为所述静态buffer或所述动态buffer,所述第一数据包由所述第一域和所述第二域组成;根据解压后的所述第一域和解压后的所述第二域,组成所述第一数据包;当所述第一buffer为所述动态buffer时,根据解压后的所述第二域包含的数据内容,更新所述动态buffer中存储的数据内容;Implementation mode 4: according to the data content contained in the first field in the second data packet and the data content stored in the static buffer, decompress the first field to generate the decompressed first field; according to The data content contained in the second domain in the second data packet and the data content stored in the first buffer are decompressed to generate the decompressed second domain; wherein the first buffer is the static buffer or the dynamic buffer, the first data packet is composed of the first domain and the second domain; according to the decompressed first domain and the decompressed second domain, Composing the first data packet; when the first buffer is the dynamic buffer, updating the data content stored in the dynamic buffer according to the data content contained in the decompressed second domain;
实现方式5:根据所述第二数据包中包含的数据内容和组合buffer中存储的数据内容,对所述第二数据包进行解压,生成所述第一数据包;其中,所述组合buffer由所述静态buffer和所述动态buffer组合生成;根据所述第一数据包中包含的数据内容,更新所述动态buffer中存储的数据内容;Implementation 5: According to the data content contained in the second data packet and the data content stored in the combination buffer, decompress the second data packet to generate the first data packet; wherein, the combination buffer is composed of The static buffer and the dynamic buffer are combined and generated; according to the data content contained in the first data packet, the data content stored in the dynamic buffer is updated;
实现方式6:根据所述第二数据包中包含的数据内容和第一buffer中存储的数据内容,对所述第二数据包进行解压,生成所述第一数据包;其中,所述第一buffer为所述静态buffer或所述动态buffer;当所述第一buffer为所述动态buffer时,根据所述第一数据包中包含的数据内容,更新所述动态buffer中存储的数据内容;Implementation mode 6: according to the data content contained in the second data packet and the data content stored in the first buffer, decompress the second data packet to generate the first data packet; wherein, the first buffer is the static buffer or the dynamic buffer; when the first buffer is the dynamic buffer, updating the data content stored in the dynamic buffer according to the data content contained in the first data packet;
实现方式7:根据所述第二数据包中的第一数据段包含的数据内容和第一buffer中存储的数据内容,对第一数据段进行解压,生成解压后的所述第一数据段;根据所述第一数据包中的第二数据段包含的数据内容和第二buffer中存储的数据内容,对所述第二数据段进行解压,生成解压后的所述第二数据段;其中,所述第一buffer为所述解压buffer中的所述静态buffer,所述第二buffer为所述解压buffer中的所述动态buffer;又或者所述第一buffer为所述解压buffer中的所述动态buffer,所述第二buffer为所述解压buffer中的所述静态buffer;所述第二数据包由所述第一数据段和所述第二数据段等至少两个数据段组成;根据解压后的所述第一数据段,以及解压后的所述第二数据段,组成第二数据包;当所述第一buffer为所述动态buffer时,根据解压后的所述第一数据段包含的数据内容,更新所述动态buffer中存储的数据内容;当所述第二buffer为所述动态buffer时,根据解压后的所述第二数据段包含的数据内容,更新所述动态buffer中存储的数据内容。Implementation mode 7: according to the data content contained in the first data segment in the second data packet and the data content stored in the first buffer, decompress the first data segment to generate the decompressed first data segment; According to the data content contained in the second data segment in the first data packet and the data content stored in the second buffer, decompress the second data segment to generate the decompressed second data segment; wherein, The first buffer is the static buffer in the decompression buffer, the second buffer is the dynamic buffer in the decompression buffer; or the first buffer is the decompression buffer in the Dynamic buffer, the second buffer is the static buffer in the decompression buffer; the second data packet is composed of at least two data segments such as the first data segment and the second data segment; according to decompression The first data segment after decompression and the second data segment after decompression form a second data packet; when the first buffer is the dynamic buffer, according to the first data segment after decompression contains update the data content stored in the dynamic buffer; when the second buffer is the dynamic buffer, update the data content stored in the dynamic buffer according to the data content contained in the decompressed second data segment data content.
通过该设计,通信系统可以配置解压侧使用增强解压方式的情况下,具体采用上述一种实现方式进行压缩。因此,通信系统可以根据业务特征、数据包的数据特征,灵活地配置压缩侧所使用的实现方式,以及对应的解压侧所使用的实现方式,从而可以进一步提高通信系统中数据压缩的灵活性,进而可以提高数据压缩效率,最终提高通信系统的数据传输效率和资源利用率。Through this design, the communication system can be configured to use the enhanced decompression method on the decompression side, and specifically adopt one of the above implementation methods for compression. Therefore, the communication system can flexibly configure the implementation method used by the compression side and the corresponding implementation method used by the decompression side according to the service characteristics and data characteristics of the data packet, thereby further improving the flexibility of data compression in the communication system. Furthermore, the data compression efficiency can be improved, and finally the data transmission efficiency and resource utilization rate of the communication system can be improved.
在一种可能的设计中,所述解压配置信息中还包括:第六指示信息,所述第六指示信息用于指示数据包中至少一个第三组成部分对应的第三buffer类型;In a possible design, the decompression configuration information further includes: sixth indication information, where the sixth indication information is used to indicate a third buffer type corresponding to at least one third component in the data packet;
其中,任一个第三组成部分对应的第三buffer类型用于指示所述第二通信设备使用所述目标解压buffer中属于所述第三buffer类型的buffer对所述第三组成部分进行解压;任一个第三组成部分为以下任一项:数据包、数据包中的第一数据段、数据包中的第二数据段、数据包中的第一域、数据包中的第二域、数据包中第二域的第一数据段、数据包中第二域的第二数据段。Wherein, the third buffer type corresponding to any third component is used to instruct the second communication device to use the buffer belonging to the third buffer type in the target decompression buffer to decompress the third component; A third component is any of the following: a data packet, a first data segment in a data packet, a second data segment in a data packet, a first field in a data packet, a second field in a data packet, a data packet The first data segment of the second field in the data packet, and the second data segment of the second field in the data packet.
通过该设计,所述第二通信设备可以根据该第六指示信息确定具体的解压策略,从而 实现对数据包的解压。即通信系统可以根据该第六指示信息配置第二通信设备的解压策略。Through this design, the second communication device can determine a specific decompression strategy according to the sixth indication information, so as to realize decompression of the data packet. That is, the communication system may configure the decompression policy of the second communication device according to the sixth indication information.
在一种可能的设计中,所述方法还包括:接收来自所述第一通信设备的第二指示信息,所述第二指示用于指示所述第二数据包中至少一个第二组成部分对应的第二buffer类型;In a possible design, the method further includes: receiving second indication information from the first communication device, where the second indication is used to indicate that at least one second component in the second data packet corresponds to The second buffer type;
其中,任一个第二组成部分对应的第二buffer类型用于指示所述第二通信设备使用所述目标解压buffer中属于所述第二buffer类型的buffer对所述第二组成部分进行解压;任一个第二组成部分为以下任一项:所述第二数据包、所述第二数据包中的第一数据段、所述第二数据包中的第二数据段、所述第二数据包中的第一域、所述第二数据包中的第二域,所述第二数据包中第二域的第一数据段、所述第二数据包中第二域的第二数据段。Wherein, the second buffer type corresponding to any second component is used to instruct the second communication device to use the buffer belonging to the second buffer type in the target decompression buffer to decompress the second component; A second component is any of the following: the second data packet, the first data segment in the second data packet, the second data segment in the second data packet, the second data packet The first field in the second data packet, the second field in the second data packet, the first data segment in the second field in the second data packet, and the second data segment in the second field in the second data packet.
通过该设计,所述第一通信设备可以将压缩策略对应的解压策略通知给第二通信设备,从而保证第二通信设备能够成功对接收到的数据包进行解压。Through this design, the first communication device can notify the second communication device of the decompression policy corresponding to the compression policy, thereby ensuring that the second communication device can successfully decompress the received data packet.
在一种可能的设计中,所述第一域为包头,所述第二域为有效载荷;或者所述第一域为有效载荷,所述第二域为包头。In a possible design, the first field is a packet header, and the second field is a payload; or the first field is a payload, and the second field is a packet header.
在一种可能的设计中,所述解压buffer配置信息用于指示:所述动态buffer的大小和/或填充到所述动态buffer的初始数据内容,以及所述静态buffer的大小和/或填充到所述静态buffer的静态数据内容。In a possible design, the decompression buffer configuration information is used to indicate: the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer, and the size of the static buffer and/or filled into Static data content of the static buffer.
通过该设计,所述第二通信设备可以根据所述解压buffer配置信息,配置所述静态buffer的大小或静态数据内容,以及配置动态buffer的大小或初始数据内容。With this design, the second communication device can configure the size or static data content of the static buffer and configure the size or initial data content of the dynamic buffer according to the decompression buffer configuration information.
在一种可能的设计中,所述第二通信设备可以通过以下方式,获取解压配置信息:In a possible design, the second communication device may obtain the decompression configuration information in the following manner:
方式一:接收来自所述第一通信设备或第三通信设备的所述解压配置信息;或者Mode 1: receiving the decompression configuration information from the first communication device or the third communication device; or
方式二:获取保存的所述解压配置信息。Method 2: Obtain the saved configuration information for decompression.
通过该设计,通信系统可以通过第一通信设备、第二通信设备自身,或第三通信设备对第二通信设备的解压方式和解压buffer进行配置。Through this design, the communication system can configure the decompression mode and decompression buffer of the second communication device through the first communication device, the second communication device itself, or the third communication device.
在一种可能的设计中,在接收来自第一通信设备的第二数据包之前,所述第二通信设备还可以向所述第一通信设备发送压缩配置信息;其中,所述压缩配置信息包含:压缩方式指示信息和压缩缓存buffer配置信息,所述压缩方式指示信息用于指示所述第一通信设备对数据包进行压缩处理的目标压缩方式,所述压缩buffer配置信息用于配置对数据包进行压缩时所使用的目标压缩buffer;所述目标压缩方式与所述目标解压方式相对应,所述目标压缩buffer与所述目标解压buffer的配置相同。In a possible design, before receiving the second data packet from the first communication device, the second communication device may also send compression configuration information to the first communication device; wherein the compression configuration information includes : Compression mode indication information and compression cache buffer configuration information, the compression mode indication information is used to indicate the target compression mode for the first communication device to compress the data packet, and the compression buffer configuration information is used to configure the data packet The target compression buffer used for compression; the target compression mode corresponds to the target decompression mode, and the configuration of the target compression buffer is the same as that of the target decompression buffer.
通过该设计,所述第二通信设备还可以配置第一通信设备的压缩方式和压缩buffer。Through this design, the second communication device can also configure the compression mode and compression buffer of the first communication device.
在一种可能的设计中,在向所述第一通信设备发送压缩配置信息之前,所述第二通信设备还可以通过如下步骤,生成所述压缩配置信息:In a possible design, before sending the compressed configuration information to the first communication device, the second communication device may also generate the compressed configuration information through the following steps:
接收来自所述第一通信设备的压缩能力信息,所述压缩能力信息用于表示所述第一通信设备的压缩能力;然后根据所述压缩能力信息,生成所述压缩配置信息。receiving compression capability information from the first communication device, where the compression capability information is used to indicate the compression capability of the first communication device; and then generating the compression configuration information according to the compression capability information.
通过该设计,所述第二通信设备可以根据第一通信设备的压缩能力,生成压缩配置信息。Through this design, the second communication device can generate compression configuration information according to the compression capability of the first communication device.
在一种可能的设计中,所述压缩能力信息包括以下至少一项:In a possible design, the compression capability information includes at least one of the following:
支持的压缩方式、能够进行压缩处理的数据传输方向、支持配置压缩处理的无线承载的数量或信息、支持配置压缩buffer的总大小阈值、支持配置每种buffer类型的buffer的大小阈值。Supported compression methods, data transmission directions that can be compressed, the number or information of radio bearers that support compression processing, the total size threshold of compression buffers, and the buffer size threshold of each buffer type.
在一种可能的设计中,所述第二通信设备还可以执行以下步骤:In a possible design, the second communication device may also perform the following steps:
更新所述目标解压buffer;updating the target decompression buffer;
向所述第一通信设备发送buffer更新信息,所述buffer更新信息用于指示所述第一通信设备调整所述目标压缩buffer的大小,和/或,更新所述目标压缩buffer存储的数据内容;sending buffer update information to the first communication device, where the buffer update information is used to instruct the first communication device to adjust the size of the target compression buffer, and/or update the data content stored in the target compression buffer;
在接收来自所述第一通信设备的第四数据包后,采用所述目标解压方式根据更新后的所述目标解压buffer对所述第四数据包进行解压,生成第三数据包;其中,所述第四数据包为所述第一通信设备对所述第三数据包进行压缩生成的。After receiving the fourth data packet from the first communication device, using the target decompression method to decompress the fourth data packet according to the updated target decompression buffer to generate a third data packet; wherein, The fourth data packet is generated by the first communication device compressing the third data packet.
通过该设计,通信系统还可以对第二通信设备中的目标解压buffer进行更新(调整大小和/或存储内容),并且为了实现目标解压buffer与目标压缩buffer完全一致,第二通信设备还可以指示第一通信设备对目标压缩buffer更新,从而以使更新后的目标压缩buffer、目标解压buffer能够适应变化的业务,从而保证数据包的压缩率。Through this design, the communication system can also update (resize and/or store content) the target decompression buffer in the second communication device, and in order to realize that the target decompression buffer is completely consistent with the target compression buffer, the second communication device can also instruct The first communication device updates the target compression buffer, so that the updated target compression buffer and target decompression buffer can adapt to changing services, thereby ensuring the compression rate of the data packet.
在一种可能的设计中,在向所述第一通信设备发送buffer更新信息之前,所述第二通信设备还可以向所述第一通信设备发送停止压缩指令;其中,所述停止压缩指令用于指示所述第一通信设备停止使用所述目标压缩buffer对数据包进行压缩。In a possible design, before sending buffer update information to the first communication device, the second communication device may also send a stop compression instruction to the first communication device; wherein, the stop compression instruction uses Instructing the first communication device to stop using the target compression buffer to compress data packets.
通过该设计,第二通信设备可以通过停止压缩指令,指示第一通信设备停止压缩的时间。With this design, the second communication device can instruct the first communication device when to stop compression through the stop compression instruction.
在一种可能的设计中,所述buffer更新信息中还包括:第三指示信息;所述第三指示信息用于指示使用更新后的所述目标压缩buffer进行压缩的数据包;所述第三数据包为所述第三指示信息所指示的数据包。In a possible design, the buffer update information further includes: third indication information; the third indication information is used to indicate the data packets compressed using the updated target compression buffer; the third The data packet is the data packet indicated by the third indication information.
通过该设计,所述第二通信设备可以通过指定数据包指示第一通信设备更新目标压缩buffer的时间,从而可以明确第一通信设备使用更新后的目标压缩buffer进行压缩的数据包。因此,该设计也可以解决第一通信设备压缩时使用的目标压缩buffer与第二通信设备解压时使用的目标解压buffer不一致,导致数据包无法成功解压,最终导致数据包传输失败的问题。Through this design, the second communication device can indicate the time when the first communication device updates the target compression buffer by specifying the data packet, so that the data packet that the first communication device compresses using the updated target compression buffer can be specified. Therefore, this design can also solve the problem that the target compression buffer used by the first communication device for compression is inconsistent with the target decompression buffer used by the second communication device for decompression, resulting in the inability to successfully decompress the data packet and eventually lead to the failure of data packet transmission.
在一种可能的设计中,所述第四数据包中还包括第四指示信息,所述第四指示信息用于指示所述第四数据包为所述第一通信设备使用更新后的所述目标压缩buffer进行压缩生成的。In a possible design, the fourth data packet further includes fourth indication information, and the fourth indication information is used to indicate that the fourth data packet uses the updated The target compression buffer is generated by compression.
通过该设计,第一通信设备还可以通过第四指示信息指示使用更新后的目标压缩buffer进行压缩的数据包。这样第二通信设备即在接收到包含第四指示信息的数据包时,即可以使用更新后的目标解压buffer进行解压,从而解决第一通信设备压缩时使用的目标压缩buffer与第二通信设备解压时使用的目标解压buffer不一致的问题。With this design, the first communication device can also indicate the data packets to be compressed using the updated target compression buffer through the fourth indication information. In this way, when the second communication device receives the data packet containing the fourth instruction information, it can use the updated target decompression buffer to decompress, thereby solving the problem of the target compression buffer used by the first communication device when compressing and the second communication device decompressing. The problem of inconsistency in the decompression buffer of the target used.
在一种可能的设计中,所述第一通信设备为终端设备,所述第二通信设备为基站;或者In a possible design, the first communication device is a terminal device, and the second communication device is a base station; or
所述第一通信设备为基站,所述第二通信设备为终端设备;或者The first communication device is a base station, and the second communication device is a terminal device; or
所述第一通信设备和所述第二通信设备为不同的终端设备;或者The first communication device and the second communication device are different terminal devices; or
所述第一通信设备为终端设备,所述第二通信设备为核心网设备;或者The first communication device is a terminal device, and the second communication device is a core network device; or
所述第一通信设备为核心网设备,所述第二通信设备为终端设备;或者The first communication device is a core network device, and the second communication device is a terminal device; or
所述第一通信设备为基站,所述第二通信设备为核心网设备;或者The first communication device is a base station, and the second communication device is a core network device; or
所述第一通信设备为核心网设备,所述第二通信设备为基站;The first communication device is a core network device, and the second communication device is a base station;
所述第一通信设备和所述第二通信设备为不同的核心网设备。The first communication device and the second communication device are different core network devices.
在一种可能的设计中,当所述第二通信设备为基站,接入所述基站的终端设备切换到 目标基站时,所述第二通信设备还可以向所述目标基站发送解压buffer的状态信息,所述解压buffer的状态信息用于指示当前所述目标解压buffer的大小和/或存储的数据内容。In a possible design, when the second communication device is a base station, and the terminal device accessing the base station switches to the target base station, the second communication device may also send the decompression buffer status to the target base station Information, the state information of the decompression buffer is used to indicate the size and/or stored data content of the current target decompression buffer.
通过该设计,第二通信设备可以通知目标基站源基站侧维护的解压buffer的状态,以使目标基站可以快速地根据该buffer的状态信息,在本地配置大小和数据内容相同的解压buffer,从而可以接替源基站的压缩工作。Through this design, the second communication device can notify the target base station of the state of the decompression buffer maintained by the source base station side, so that the target base station can quickly configure the decompression buffer locally with the same size and data content according to the state information of the buffer, so that Takes over the compression work from the source base station.
在一种可能的设计中,当所述第二通信设备为终端设备,所述终端设备切换到目标基站时,所述第二通信设备还可以接收来自所述目标基站的第七指示信息,所述第七指示信息用于指示清空或维持所述目标解压buffer,或者调整所述目标解压buffer的大小,或者更新所述目标解压buffer存储的数据内容。In a possible design, when the second communication device is a terminal device and the terminal device is handed over to the target base station, the second communication device may also receive seventh indication information from the target base station, so The seventh instruction information is used to instruct to clear or maintain the target decompression buffer, or adjust the size of the target decompression buffer, or update the data content stored in the target decompression buffer.
通过该设计,目标基站在根据获取的源基站的buffer的状态信息,在本地配置压缩buffer的情况下,还可以决定是否需要对压缩buffer的内容进行更新、清空或维持。当目标基站决定对压缩buffer进行更新、清空或维持时,那么为了使解压buffer和压缩buffer保持完全一致,目标基站还可以指示终端设备来对解压buffer执行相同的处理。Through this design, the target base station can also decide whether to update, clear or maintain the contents of the compressed buffer when the compressed buffer is configured locally according to the obtained buffer state information of the source base station. When the target base station decides to update, clear or maintain the compressed buffer, in order to keep the decompressed buffer completely consistent with the compressed buffer, the target base station may also instruct the terminal device to perform the same process on the decompressed buffer.
第三方面,本申请实施例提供了一种通信装置,包括用于执行以上任一方面中各个步骤的单元。In a third aspect, the embodiment of the present application provides a communication device, including a unit configured to perform each step in any one of the above aspects.
第四方面,本申请实施例提供了一种通信设备,包括至少一个处理元件和至少一个存储元件,其中该至少一个存储元件用于存储程序和数据,该至少一个处理元件用于读取并执行存储元件存储的程序和数据,以使得本申请以上任一方面提供的方法被实现。In a fourth aspect, the embodiment of the present application provides a communication device, including at least one processing element and at least one storage element, wherein the at least one storage element is used to store programs and data, and the at least one processing element is used to read and execute The program and data stored in the storage element enable the method provided by any one of the above aspects of the present application to be realized.
第五方面,本申请实施例提供了一种通信系统,包括:用于执行第一方面提供的方法的第一通信设备,用于执行第二方面提供的方法的第二通信设备。In a fifth aspect, an embodiment of the present application provides a communication system, including: a first communication device configured to execute the method provided in the first aspect, and a second communication device configured to execute the method provided in the second aspect.
第六方面,本申请实施例还提供了一种计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述任一方面提供的方法。In a sixth aspect, the embodiment of the present application further provides a computer program, which, when the computer program is run on a computer, causes the computer to execute the method provided in any one of the above aspects.
第七方面,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序被计算机执行时,使得所述计算机执行上述任一方面提供的方法。In the seventh aspect, the embodiment of the present application also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a computer, the computer executes any one of the above-mentioned method provided.
第八方面,本申请实施例还提供了一种芯片,所述芯片用于读取存储器中存储的计算机程序,执行上述任一方面提供的方法。In an eighth aspect, the embodiment of the present application further provides a chip, the chip is used to read a computer program stored in a memory, and execute the method provided in any one of the above aspects.
第九方面,本申请实施例还提供了一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现上述任一方面提供的方法。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。In a ninth aspect, the embodiment of the present application further provides a chip system, where the chip system includes a processor, configured to support a computer device to implement the method provided in any one of the above aspects. In a possible design, the chip system further includes a memory, and the memory is used to store necessary programs and data of the computer device. The system-on-a-chip may consist of chips, or may include chips and other discrete devices.
上述第三方面至第九方面中任一方面可以达到的技术效果可以参照上述第一方面或第二方面中任一方面中任一种可能设计可以达到的技术效果说明,重复之处不予论述。The technical effects that can be achieved by any one of the above-mentioned third to ninth aspects can be described with reference to the technical effects that can be achieved by any possible design of any one of the above-mentioned first or second aspects, and the repetition will not be discussed .
图1为本申请实施例提供的一种基于动态buffer的压缩/解压方式的示意图;FIG. 1 is a schematic diagram of a dynamic buffer-based compression/decompression method provided by an embodiment of the present application;
图2为本申请实施例提供的一种基于静态buffer的压缩/解压方式的示意图;FIG. 2 is a schematic diagram of a static buffer-based compression/decompression method provided by an embodiment of the present application;
图3A为本申请实施例提供的组合buffer的拼接方式的示意图;FIG. 3A is a schematic diagram of the splicing method of the combined buffer provided in the embodiment of the present application;
图3B为本申请实施例提供的未组合的动态buffer和静态buffer的示意图;FIG. 3B is a schematic diagram of an uncombined dynamic buffer and a static buffer provided by the embodiment of the present application;
图4为本申请实施例提供的一种组合buffer的更新方式的示意图;FIG. 4 is a schematic diagram of an update method of a combined buffer provided in an embodiment of the present application;
图5为本申请实施例提供的一种通信系统的架构示意图;FIG. 5 is a schematic structural diagram of a communication system provided by an embodiment of the present application;
图6为本申请实施例提供的一种通信方法的流程图;FIG. 6 is a flowchart of a communication method provided by an embodiment of the present application;
图7为本申请实施例提供的一种更新静态buffer的静态数据内容的示意图;FIG. 7 is a schematic diagram of updating static data content of a static buffer provided by an embodiment of the present application;
图8为本申请实施例提供的一种更新静态buffer的大小的示意图;FIG. 8 is a schematic diagram of updating the size of a static buffer provided by an embodiment of the present application;
图9为本申请实施例提供的一种通信实例流程图;FIG. 9 is a flowchart of a communication example provided by the embodiment of the present application;
图10为本申请实施例提供的另一种通信实例流程图;FIG. 10 is a flowchart of another communication example provided by the embodiment of the present application;
图11为本申请实施例提供的再一种通信实例流程图;FIG. 11 is a flowchart of another communication example provided by the embodiment of the present application;
图12为本申请实施例提供的又一种通信实例流程图;FIG. 12 is a flow chart of another communication example provided by the embodiment of the present application;
图13为本申请实施例提供的一种通信装置的结构图;FIG. 13 is a structural diagram of a communication device provided by an embodiment of the present application;
图14为本申请实施例提供的一种通信设备的结构图。FIG. 14 is a structural diagram of a communication device provided by an embodiment of the present application.
本申请提供一种通信方法、装置及设备,用于提高通信系统中数据压缩的灵活性,从而提高数据压缩效率。其中,方法、装置设备是基于同一技术构思的,由于解决问题的原理相似,因此装置、设备与方法的实施可以相互参见,重复之处不再赘述。The present application provides a communication method, device and equipment, which are used to improve the flexibility of data compression in a communication system, thereby improving the efficiency of data compression. Among them, the method, device and equipment are based on the same technical conception. Since the principle of solving the problem is similar, the implementation of the device, device and method can be referred to each other, and the repetition will not be repeated.
以下,对本申请中的部分用语进行解释说明,以便于本领域技术人员理解。Hereinafter, some terms used in this application are explained to facilitate the understanding of those skilled in the art.
1)、通信设备,泛指具有通信功能的设备。示例性的,所述通信设备可以但不限于为终端设备、接入网(access network)设备、接入点、核心网设备、数据网络中的服务器等。1) Communication equipment, generally refers to equipment with communication functions. Exemplarily, the communication device may be, but not limited to, a terminal device, an access network (access network) device, an access point, a core network device, a server in a data network, and the like.
2)、AN设备,是移动通信系统中将终端设备接入到无线网络的设备。AN设备作为无线接入网中的节点,还可以称为基站、无线接入网(radio access network,RAN)节点(或设备)、接入点(access point,AP)。2). The AN device is a device for connecting a terminal device to a wireless network in a mobile communication system. As a node in the radio access network, the AN device may also be called a base station, a radio access network (radio access network, RAN) node (or device), and an access point (access point, AP).
目前,一些AN设备的举例为:新一代节点B(generation Node B,gNB)、传输接收点(transmission reception point,TRP)、演进型节点B(evolved Node B,eNB)、无线网络控制器(radio network controller,RNC)、节点B(Node B,NB)、基站控制器(base station controller,BSC)、基站收发台(base transceiver station,BTS)、家庭基站(例如,home evolved NodeB,或home Node B,HNB),或基带单元(base band unit,BBU)等。At present, some examples of AN equipment are: new generation Node B (generation Node B, gNB), transmission reception point (transmission reception point, TRP), evolved Node B (evolved Node B, eNB), wireless network controller (radio network controller, RNC), node B (Node B, NB), base station controller (base station controller, BSC), base transceiver station (base transceiver station, BTS), home base station (for example, home evolved NodeB, or home Node B , HNB), or base band unit (base band unit, BBU), etc.
另外,在一种网络结构中,所述AN设备可以包括集中单元(centralized unit,CU)节点和分布单元(distributed unit,DU)节点。这种结构将长期演进(long term evolution,LTE)系统中eNB的协议层拆分开,部分协议层的功能放在CU集中控制,剩下部分或全部协议层的功能分布在DU中,由CU集中控制DU。In addition, in a network structure, the AN device may include a centralized unit (centralized unit, CU) node and a distributed unit (distributed unit, DU) node. This structure separates the protocol layers of the eNB in the long term evolution (LTE) system, the functions of some protocol layers are placed in the CU for centralized control, and the remaining part or all of the functions of the protocol layers are distributed in the DU. Centralized control of DUs.
3)、终端设备,是一种向用户提供语音和/或数据连通性的设备。终端设备又可以称为用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等。3) A terminal device is a device that provides voice and/or data connectivity to users. The terminal equipment may also be called user equipment (user equipment, UE), mobile station (mobile station, MS), mobile terminal (mobile terminal, MT) and so on.
例如,终端设备可以为具有无线连接功能的手持式设备、车载设备等。目前,一些终端设备的举例为:手机(mobile phone)、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、智能销售终端(point of sale,POS)、可穿戴设备,虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端、各类智能仪表(智能水表、智能电表、智能燃气表)等。For example, the terminal device may be a handheld device with a wireless connection function, a vehicle-mounted device, and the like. At present, examples of some terminal devices are: mobile phone (mobile phone), tablet computer, notebook computer, palmtop computer, mobile Internet device (mobile internet device, MID), intelligent sales terminal (point of sale, POS), wearable device, Virtual reality (virtual reality, VR) equipment, augmented reality (augmented reality, AR) equipment, wireless terminals in industrial control (industrial control), wireless terminals in self driving (self driving), remote medical surgery (remote medical surgery) Wireless terminals in smart grid, wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, various Smart meters (smart water meters, smart electricity meters, smart gas meters), etc.
4)、核心网设备,是移动通信系统中核心网部分中包含的网元。核心网设备能够将终端设备接续到不同的数据网络,以及计费、移动性管理、会话管理、用户面转发等业务。在不同制式的移动通信系统中,具有相同功能的核心网设备的名称可以存在差异。然而,本申请实施例不限定具有每个功能的核心网设备的具体名称。4) The core network equipment is a network element included in the core network part of the mobile communication system. Core network equipment can connect terminal equipment to different data networks, as well as services such as billing, mobility management, session management, and user plane forwarding. In mobile communication systems of different standards, the names of core network devices with the same function may be different. However, this embodiment of the present application does not limit the specific name of the core network device having each function.
例如,在第4代(4
th generation,4G)移动通信系统(即长期演进(long term evolution,LTE)中,负责接入控制、安全控制和信令协调等功能的网元称为移动性管理实体(Mobile management entity,MME);作为本地移动管理锚点的网元为服务网关(serving gateway,S-GW);作为外部数据网络的切换的锚点、负责IP地址分配的网元为分组数据网络(packet data network,PDN)网关(PDN gateway,P-GW);存储用户相关数据和签约数据的网元为归属签约服务器(home subscriber server,HSS);负责策略、计费功能的网元称为策略与计费控制规则功能(policy and charging rule function,PCRF)网元。
For example, in the 4th generation (4 th generation, 4G) mobile communication system (ie, long term evolution (LTE), the network element responsible for functions such as access control, security control, and signaling coordination is called mobility management. Entity (Mobile management entity, MME); the network element serving as the local mobile management anchor point is the serving gateway (serving gateway, S-GW); the network element that is the anchor point of the handover of the external data network and responsible for IP address allocation is the packet data Network (packet data network, PDN) gateway (PDN gateway, P-GW); the network element that stores user-related data and subscription data is the home subscription server (home subscriber server, HSS); the network element responsible for policy and charging functions is called It is a policy and charging rule function (policy and charging rule function, PCRF) network element.
又例如,在第5代(5
th generation,5G)移动通信系统中,按照具体的逻辑功能划分,核心网可以分为控制面(control plane,CP)和用户面(user plane,UP)。其中,核心网中负责控制面功能的网元可以统称为控制面网元,负责用户面功能的网元可以统称为用户面网元。具体的,在用户面,作为数据网络的接口、负责用户面数据转发等功能的网元为用户面功能(user plane function,UPF)网元。在控制面中,负责接入控制、移动性管理功能的网元称为接入和移动性管理功能(access and mobility management function,AMF)网元;负责会话管理、控制策略的执行的网元称为会话管理功能(session management function,SMF)网元;负责管理签约数据、用户接入授权等功能的网元称为统一数据管理(unified data management,UDM)网元;测负责计费、策略控制功能的网元称为策略控制功能(Policy and charging function,PCF)网元;负责传输应用侧对网络侧的需求的应用功能(application function,AF)网元。
For another example, in a 5th generation (5 th generation, 5G) mobile communication system, according to specific logical function divisions, the core network can be divided into a control plane (control plane, CP) and a user plane (user plane, UP). Wherein, network elements responsible for control plane functions in the core network may be collectively referred to as control plane network elements, and network elements responsible for user plane functions may be collectively referred to as user plane network elements. Specifically, on the user plane, the network element serving as an interface of the data network and responsible for functions such as user plane data forwarding is a user plane function (user plane function, UPF) network element. In the control plane, network elements responsible for access control and mobility management functions are called access and mobility management function (access and mobility management function, AMF) network elements; network elements responsible for session management and control policy execution are called It is the session management function (session management function, SMF) network element; the network element responsible for managing subscription data, user access authorization and other functions is called unified data management (unified data management, UDM) network element; responsible for billing, policy control The functional network element is called a policy control function (Policy and charging function, PCF) network element; an application function (application function, AF) network element is responsible for transmitting the requirements of the application side to the network side.
5)、buffer的大小,用于计量buffer的存储容量,其单位可以为比特(bit)、字节(Byte)、千字节(KByte)、兆字节(MByte)等。5) The size of the buffer is used to measure the storage capacity of the buffer, and its unit can be bit (bit), byte (Byte), kilobyte (KByte), megabyte (MByte), etc.
6)、“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。6), "and/or", describes the association relationship of associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists independently Condition. The character "/" generally indicates that the contextual objects are an "or" relationship.
需要说明的是,本申请中所涉及的多个,是指两个或两个以上。至少一个,是指一个或一个以上。It should be noted that a plurality referred to in this application refers to two or more than two. At least one means one or more than one.
另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or imply order.
下面先对本申请实施例涉及的几种压缩/解压方式的基本原理进行介绍。The basic principles of several compression/decompression methods involved in the embodiments of the present application are firstly introduced below.
1、基于动态buffer(dynamic buffer)的压缩/解压方式。1. Compression/decompression method based on dynamic buffer (dynamic buffer).
压缩侧需要维护压缩buffer,解压侧需要维护解压buffer。压缩buffer和解压buffer的类型均为动态buffer(即buffer中存储的数据内容会随着对数据包进行压缩/解压缩处理而发生动态变化)。为了保证解压侧能够成功解压数据包,对一个数据包进行压缩处理时压缩侧维护的压缩buffer,与对该数据包生成的压缩数据包进行解压处理时解压侧维护的解压buffer需要保持内容相同,即大小和存储的数据内容均相同。The compression side needs to maintain the compression buffer, and the decompression side needs to maintain the decompression buffer. Both the compression buffer and the decompression buffer are dynamic buffers (that is, the data content stored in the buffer will change dynamically as the data packet is compressed/decompressed). In order to ensure that the decompression side can successfully decompress the data packet, the compression buffer maintained by the compression side when compressing a data packet needs to keep the same content as the decompression buffer maintained by the decompression side when decompressing the compressed data packet generated by the data packet. That is, the size and stored data content are the same.
压缩侧的压缩流程:压缩侧根据待压缩的原始数据包所包含的数据内容、压缩buffer中存储的数据内容,判断压缩buffer和原始数据包是否包含相同的至少一个数据段(任一个数据段的数据量大于1)。若判断压缩buffer和原始数据包中均存在目标数据段,则压缩侧利用该目标数据段在压缩buffer中的位置信息和长度信息来替换该原始数据包中的目标数据段,得到压缩数据包。最后压缩侧将压缩数据包发送给解压侧。The compression process of the compression side: the compression side judges whether the compression buffer and the original data packet contain the same at least one data segment (any data segment) according to the data content contained in the original data packet to be compressed and the data content stored in the compression buffer. The amount of data is greater than 1). If it is judged that there is a target data segment in both the compression buffer and the original data packet, the compression side uses the position information and length information of the target data segment in the compression buffer to replace the target data segment in the original data packet to obtain a compressed data packet. Finally, the compression side sends the compressed data packet to the decompression side.
解压侧的解压流程:The decompression process on the decompression side:
与上述压缩流程对应的,解压侧接收到压缩数据包后,基于该压缩数据包中包含的目标数据段的位置信息和长度信息,在解压buffer中提取出该目标数据段,从而最终恢复原始数据包。Corresponding to the above compression process, after the decompression side receives the compressed data packet, based on the location information and length information of the target data segment contained in the compressed data packet, the target data segment is extracted from the decompression buffer, thereby finally restoring the original data Bag.
通过以上压缩流程和解压流程的描述可知,压缩侧对一个原始数据包进行压缩时使用的压缩buffer、解压侧对相应的压缩数据包进行解压时使用的解压buffer,二者存储的数据内容必须完全一致,才能保证解压侧正确解压恢复出原始数据包。From the above descriptions of the compression process and decompression process, it can be known that the compression buffer used by the compression side to compress an original data packet, and the decompression buffer used by the decompression side to decompress the corresponding compressed data packet, the data content stored in the two must be completely In order to ensure that the decompression side correctly decompresses and recovers the original data packet.
为了实现压缩侧的压缩buffer和解压侧的解压buffer动态变化,压缩侧每对一个原始数据包进行压缩后,会利用该原始数据包中的数据内容对该压缩buffer中存储的数据内容进行更新,可以理解为将原始数据包中的数据内容推入基于先入先出(first input first output,FIFO)操作的压缩buffer。在该压缩buffer的大小固定的情况下,之前保存在压缩buffer中的数据可能会被推出buffer。同样的,解压侧每对一个压缩数据包进行解压恢复原始数据包之后,会利用该原始数据包中的数据内容对该解压buffer存储的数据内容进行更新,具体更新方式与压缩侧相同,此处不再赘述。In order to realize the dynamic change of the compression buffer on the compression side and the decompression buffer on the decompression side, each time the compression side compresses an original data packet, it will use the data content in the original data packet to update the data content stored in the compression buffer. It can be understood as pushing the data content in the original data packet into the compression buffer based on the first-in-first-out (first input first output, FIFO) operation. When the size of the compressed buffer is fixed, data previously stored in the compressed buffer may be pushed out of the buffer. Similarly, every time the decompression side decompresses a compressed data packet and restores the original data packet, it will use the data content in the original data packet to update the data content stored in the decompression buffer. The specific update method is the same as that of the compression side. Here No longer.
需要说明的是,本申请不限定数据段的物理形式。可选的,数据段可以为比特序列(至少两位),或者为字符串(至少两个字符)。并且,本申请也不限定在一个原始数据包中查找到的目标数据段的数量,即不限定原始数据包中能够进行压缩的数据段的数量。It should be noted that the present application does not limit the physical form of the data segment. Optionally, the data segment may be a bit sequence (at least two bits), or a character string (at least two characters). Moreover, the present application does not limit the number of target data segments found in an original data packet, that is, does not limit the number of data segments that can be compressed in the original data packet.
另外,为了提高压缩效率、提高资源利用率,压缩侧在压缩buffer和原始数据包中查找的目标数据段的长度应该尽量长。例如,当压缩侧在压缩buffer和原始数据包中查找到数据量为2的目标数据段,那么压缩侧继续在压缩buffer和原始数据包中查找数据量为3的目标数据段;若未查找到,则压缩侧停止查找,对查找到的该数据量为2的目标数据段进行压缩;若查找到数据量为3的目标数据段,则压缩侧继续增加数据量,……,直至压缩侧查不到当前数据量的目标数据段时,对最后的已查找到的数据量最大的目标数据段进行压缩。In addition, in order to improve compression efficiency and resource utilization, the length of the target data segment to be searched by the compression side in the compression buffer and the original data packet should be as long as possible. For example, when the compression side finds a target data segment with a data volume of 2 in the compressed buffer and the original data packet, then the compression side continues to search for a target data segment with a data volume of 3 in the compressed buffer and the original data packet; , then the compression side stops searching, and compresses the target data segment with a data volume of 2; if the target data segment with a data volume of 3 is found, the compression side continues to increase the data volume until the compression side checks When the target data segment with the current amount of data is not available, compress the last found target data segment with the largest amount of data.
以下以图1为例,对本压缩/解压方式进行举例说明:The following takes Figure 1 as an example to illustrate this compression/decompression method:
在压缩侧的压缩buffer中存储的数据内容为“abcdefgh”,到达压缩侧的待压缩的原始数据包(数据包A)中包含的数据内容为“bcd”,参阅图1中的(1)所示。压缩侧根据压缩buffer和原始数据包中的数据内容查找到二者存在相同的字符串“bcd”,该字符串在压缩buffer中的起始位置相对于压缩buffer的起始位置的偏移量为6(用二进制比特序列表示,位置信息可以表示为110),该字符串的长度为3(用二进制比特序列表示,长度信息可以表示为011),参阅图1中的(1)中压缩buffer内的加粗字符串。因此可以用6位比特序列“110011”来替换原始数据中的“bcd”,即压缩后的数据包(数据包B)包含的数据内容为“110011”,参阅图1中的(2)所示。另外,压缩后,压缩侧将数据包A中的数据内容推入到压缩buffer,压缩buffer存储的数据内容更新为“defghbcd”,参阅图1中的(2)所示。The data content stored in the compression buffer on the compression side is "abcdefgh", and the data content contained in the original data packet (packet A) to be compressed arriving at the compression side is "bcd", see (1) in Figure 1 Show. The compression side finds the same character string "bcd" according to the data content in the compressed buffer and the original data packet, and the offset of the starting position of the character string in the compressed buffer relative to the starting position of the compressed buffer is 6 (represented by a binary bit sequence, the position information can be expressed as 110), the length of the character string is 3 (expressed by a binary bit sequence, the length information can be expressed as 011), refer to the compression buffer in (1) in Figure 1 The bold string of . Therefore, the "bcd" in the original data can be replaced with the 6-bit bit sequence "110011", that is, the data content contained in the compressed data packet (data packet B) is "110011", as shown in (2) in Figure 1 . In addition, after compression, the compression side pushes the data content in the data packet A into the compression buffer, and the data content stored in the compression buffer is updated to "defghbcd", as shown in (2) in Figure 1.
在解压侧压缩buffer中存储的数据内容为“adcdefgh”,接收到包含压缩信息“110011” 的数据包B,参阅图1中的(3)所示。解压侧根据数据包B中的压缩信息“110011”中包含的位置信息“110”和长度信息“011”,确定该压缩信息指示的字符串的起始位置相对于解压buffer的起始位置的偏移量为6,长度为3。因此,解压侧可以根据该压缩信息中的位置信息和长度信息,从所述解压buffer中的查找到字符串“bcd”,参阅图1中的(3)中解压buffer内的加粗字符串。因此,压缩侧可以用查找到的字符串“bcd”来替换数据包B中的压缩信息“110011”,最终解压侧可以恢复出数据包A(包含的数据内容为“bcd”),参阅图1中的(4)所示。另外,解压后,解压侧将数据包A中的数据内容推入到解压buffer,解压buffer存储的数据内容更新为“defghbcd”,参阅图1中的(4)所示。The content of the data stored in the compression buffer at the decompression side is “adcdefgh”, and the data packet B containing the compression information “110011” is received, as shown in (3) in FIG. 1 . The decompression side, according to the position information "110" and length information "011" contained in the compression information "110011" in the data packet B, determines the offset of the starting position of the character string indicated by the compression information relative to the starting position of the decompression buffer. The displacement is 6 and the length is 3. Therefore, the decompression side can find the character string "bcd" from the search in the decompression buffer according to the position information and length information in the compression information, refer to the bold character string in the decompression buffer in (3) in FIG. 1 . Therefore, the compression side can replace the compressed information "110011" in the data packet B with the found string "bcd", and finally the decompression side can restore the data packet A (the data content contained is "bcd"), see Figure 1 Shown in (4) in. In addition, after decompression, the decompression side pushes the data content in packet A into the decompression buffer, and the data content stored in the decompression buffer is updated to "defghbcd", as shown in (4) in Figure 1.
2、基于静态buffer(fix buffer)的压缩/解压方式。2. Compression/decompression method based on static buffer (fix buffer).
与方式1相同的,压缩侧需要维护压缩buffer,解压侧需要维护解压buffer。压缩buffer和解压buffer的类型均为静态buffer(即buffer中存储的数据内容不会随着每个数据包的压缩/解压而发生动态变化,但是可通过一定方式进行更新)。为了保证解压侧能够解压数据包成功,在对一个数据包进行压缩时以及对相应压缩数据包进行解压时,压缩侧维护的压缩buffer和解压侧维护的解压buffer需要保持相同,即大小和存储的数据内容均相同。Same as method 1, the compression side needs to maintain the compression buffer, and the decompression side needs to maintain the decompression buffer. Both the compression buffer and the decompression buffer are static buffers (that is, the data content stored in the buffer does not change dynamically with the compression/decompression of each data packet, but can be updated in a certain way). In order to ensure that the decompression side can successfully decompress the data packet, when compressing a data packet and decompressing the corresponding compressed data packet, the compression buffer maintained by the compression side and the decompression buffer maintained by the decompression side need to be kept the same, that is, the size and storage The data content is the same.
压缩侧的压缩流程、解压侧的解压流程均与方式1中对应的流程类似,不同的是:在压缩侧对原始数据包进行压缩后无需对压缩buffer进行更新,在解压侧对压缩数据包进行解压后也无需对解压buffer进行更新。The compression process on the compression side and the decompression process on the decompression side are similar to the corresponding process in method 1. The difference is that there is no need to update the compression buffer after compressing the original data packet on the compression side, and the compressed data packet on the decompression side. After decompression, there is no need to update the decompression buffer.
同样的,压缩侧对一个原始数据包进行压缩时使用的压缩buffer、解压侧对相应的压缩数据包进行解压时使用的解压buffer,二者存储的数据内容必须完全一致,才能保证解压侧正确解压恢复出原始数据包。为了保证二者完全一致,可以由同一设备对压缩buffer、解压buffer中存储的数据内容进行配置。例如:压缩侧配置自身的压缩buffer,并配置解压侧的解压buffer。又例如:解压侧配置自身的解压buffer,并配置压缩侧的压缩buffer。再例如,第三方管理设备分别对压缩侧的压缩buffer和解压侧的解压buffer进行配置。总之,需要保证二者的大小和存储的数据内容必须完全相同。Similarly, the compression buffer used by the compression side to compress an original data packet, and the decompression buffer used by the decompression side to decompress the corresponding compressed data packet, the data content stored in the two must be completely consistent, so as to ensure that the decompression side decompresses correctly. Recover the original data package. In order to ensure that the two are completely consistent, the same device can configure the data content stored in the compression buffer and decompression buffer. For example: the compression side configures its own compression buffer, and configures the decompression buffer on the decompression side. Another example: the decompression side configures its own decompression buffer, and configures the compression buffer on the compression side. For another example, the third-party management device configures the compression buffer on the compression side and the decompression buffer on the decompression side respectively. In short, it is necessary to ensure that the size and stored data content of the two must be exactly the same.
示例性的,本压缩/解压方式的具体过程可以参考图2所示,与图1中的过程不同的是,如图2中的(2)所示,压缩侧对数据包A进行压缩后,不对该压缩buffer进行更新;如图2中的(4)所示,解压侧对数据包B进行解压得到数据包A后,也不对解压buffer进行更新。Exemplarily, the specific process of this compression/decompression method can be referred to as shown in FIG. 2. The difference from the process in FIG. 1 is that, as shown in (2) in FIG. The compression buffer is not updated; as shown in (4) in FIG. 2 , the decompression side does not update the decompression buffer after decompressing the data packet B to obtain the data packet A.
3、基于静态buffer和动态buffer的增强压缩/解压方式。3. Enhanced compression/decompression methods based on static buffer and dynamic buffer.
与前两种方式相同的,压缩侧需要维护压缩buffer,解压侧需要维护解压buffer。压缩buffer和解压buffer中均包含两种类型的buffer:静态buffer和动态buffer。为了保证解压侧能够解压数据包成功,在对一个数据包进行压缩时以及对相应压缩数据包进行解压时,压缩侧维护的压缩buffer和解压侧维护的解压buffer需要保持相同,即大小和存储的数据内容均相同,具体包括:压缩buffer中的静态buffer与解压buffer中的静态buffer的大小和存储的数据内容相同;压缩buffer中的动态buffer与解压buffer中的动态buffer的大小和存储的数据内容相同。Same as the previous two methods, the compression side needs to maintain the compression buffer, and the decompression side needs to maintain the decompression buffer. Both the compression buffer and the decompression buffer contain two types of buffers: static buffer and dynamic buffer. In order to ensure that the decompression side can successfully decompress the data packet, when compressing a data packet and decompressing the corresponding compressed data packet, the compression buffer maintained by the compression side and the decompression buffer maintained by the decompression side need to be kept the same, that is, the size and storage The data content is the same, including: the static buffer in the compressed buffer and the static buffer in the decompressed buffer have the same size and stored data content; the dynamic buffer in the compressed buffer and the dynamic buffer in the decompressed buffer have the same size and stored data content same.
由于压缩buffer和解压buffer中均存在两种类型的buffer,因此,在本方式中,压缩侧的压缩过程、解压侧的解压过程的具体实现方式可以更加灵活。下面以待压缩的原始数 据包记为第一数据包,压缩数据包记为第二数据包为例说明,本申请实施例可以但不限于通过以下几种实现方式实现本方式:Since there are two types of buffers in both the compression buffer and the decompression buffer, in this manner, the specific implementation manners of the compression process on the compression side and the decompression process on the decompression side can be more flexible. In the following, the original data packet to be compressed is marked as the first data packet, and the compressed data packet is marked as the second data packet as an example. The embodiments of the present application can, but are not limited to, realize this mode through the following several implementation modes:
实现方式1:数据包对应动态buffer和静态buffer。在对数据包进行压缩/解压时,压缩侧和解压侧可以将动态buffer和静态buffer进行组合,形成组成buffer;然后再使用该组合buffer对该数据包进行压缩/解压。Implementation method 1: The data packet corresponds to a dynamic buffer and a static buffer. When compressing/decompressing a data packet, the compression side and the decompression side can combine the dynamic buffer and the static buffer to form a composition buffer; and then use the combined buffer to compress/decompress the data packet.
压缩侧的压缩流程:压缩侧根据第一数据包中包含的数据内容和组合buffer中存储的数据内容,对第一数据包进行压缩,生成第二数据包;其中,该组合buffer由压缩buffer中的静态buffer和动态buffer组合生成。最后压缩侧根据第一数据包中包含的数据内容,更新压缩buffer中的动态buffer中存储的数据内容。The compression process on the compression side: the compression side compresses the first data packet according to the data content contained in the first data packet and the data content stored in the combination buffer to generate a second data packet; wherein, the combination buffer is obtained from the compression buffer The combination of static buffer and dynamic buffer is generated. Finally, the compression side updates the data content stored in the dynamic buffer in the compression buffer according to the data content contained in the first data packet.
解压侧的解压流程:解压侧接收到第二数据包后,根据第二数据包中包含的数据内容和组合buffer中存储的数据内容,对第二数据包进行解压,生成第一数据包;其中,该组合buffer由解压buffer中的静态buffer和动态buffer组合生成。最后解压侧根据第一数据包中包含的数据内容,更新解压buffer中的动态buffer中存储的数据内容。The decompression process of the decompression side: after the decompression side receives the second data packet, according to the data content contained in the second data packet and the data content stored in the combination buffer, the second data packet is decompressed to generate the first data packet; , the combined buffer is generated by combining the static buffer and the dynamic buffer in the decompressed buffer. Finally, the decompression side updates the data content stored in the dynamic buffer in the decompression buffer according to the data content contained in the first data packet.
压缩侧和解压侧组合拼接对应的组合buffer的方式,以及更新动态buffer的方式可以参考以下实现方式3中的相关介绍,此处不再赘述。For the method of combining the compression side and the decompression side to splice the corresponding combined buffer, and the method of updating the dynamic buffer, please refer to the relevant introduction in the following implementation method 3, and will not repeat them here.
实现方式2:数据包由两个部分组成:第一域和第二域。每个域固定对应不同类型的buffer:第一域对应静态buffer,第二域对应动态buffer。Implementation mode 2: the data packet consists of two parts: the first domain and the second domain. Each field corresponds to a different type of buffer: the first field corresponds to a static buffer, and the second field corresponds to a dynamic buffer.
压缩侧的压缩流程:压缩侧根据第一数据包中第一域包含的数据内容和压缩buffer中的静态buffer中存储的数据内容,对第一域进行压缩,生成压缩后的第一域;根据第一数据包中第二域包含的数据内容和压缩buffer中的动态buffer中存储的数据内容,对第二域进行压缩,生成压缩后的第二域。压缩侧根据第一数据包中第二域包含的数据内容,更新压缩buffer中的动态buffer中存储的数据内容。压缩侧根据压缩后的第一域和压缩后的第二域,组成第二数据包。The compression process of the compression side: the compression side compresses the first field according to the data content contained in the first field in the first data packet and the data content stored in the static buffer in the compression buffer, and generates the compressed first field; according to The data content contained in the second field in the first data packet and the data content stored in the dynamic buffer in the compression buffer are compressed to generate a compressed second field. The compression side updates the data content stored in the dynamic buffer in the compression buffer according to the data content contained in the second field in the first data packet. The compression side forms the second data packet according to the compressed first field and the compressed second field.
解压侧的压缩流程:解压侧接收到第二数据包后,根据第二数据包中第一域包含的数据内容和解压buffer中的静态buffer中存储的数据内容,对第一域进行解压,生成解压后的第一域;根据第二数据包中第二域包含的数据内容和解压buffer中的动态buffer中存储的数据内容,对第二域进行解压,生成解压后的第二域。解压侧根据解压后的第二域包含的数据内容,更新解压buffer中的动态buffer中存储的数据内容。解压侧根据解压后的第一域和解压后的第二域,组成第一数据包。Compression process on the decompression side: After receiving the second data packet, the decompression side decompresses the first field according to the data content contained in the first field in the second data packet and the data content stored in the static buffer in the decompression buffer to generate The decompressed first domain; according to the data content contained in the second domain in the second data packet and the data content stored in the dynamic buffer in the decompression buffer, decompress the second domain to generate the decompressed second domain. The decompression side updates the data content stored in the dynamic buffer in the decompression buffer according to the data content contained in the decompressed second field. The decompression side forms the first data packet according to the decompressed first domain and the decompressed second domain.
实现方式3:数据包由两个部分组成:第一域和第二域。每个域固定对应不同类型的buffer:第一域对应静态buffer,第二域对应动态buffer和静态buffer。在对第二域进行压缩/解压时,压缩侧和解压侧可以将动态buffer和静态buffer进行组合,形成组合buffer;然后再使用该组合buffer对该第二域进行压缩/解压。Implementation mode 3: the data packet consists of two parts: the first domain and the second domain. Each field corresponds to a different type of buffer: the first field corresponds to a static buffer, and the second field corresponds to a dynamic buffer and a static buffer. When compressing/decompressing the second domain, the compression side and the decompression side can combine the dynamic buffer and the static buffer to form a combined buffer; and then use the combined buffer to compress/decompress the second domain.
压缩侧的压缩流程:压缩侧根据第一数据包中第一域包含的数据内容和压缩buffer中的静态buffer中存储的数据内容,对第一域进行压缩,生成压缩后的第一域;根据第一数据包中第二域包含的数据内容和组合buffer中存储的数据内容,对第二域进行压缩,生成压缩后的第二域,此时该组合buffer由压缩buffer中的静态buffer和动态buffer组成。压缩侧根据第一数据包中第二域包含的数据内容,更新压缩buffer中的动态buffer中存储的数据内容。压缩侧根据压缩后的第一域和压缩后的第二域,组成第二数据包。The compression process of the compression side: the compression side compresses the first field according to the data content contained in the first field in the first data packet and the data content stored in the static buffer in the compression buffer, and generates the compressed first field; according to The data content contained in the second field in the first data packet and the data content stored in the combined buffer are compressed to generate the compressed second field. At this time, the combined buffer is composed of the static buffer and the dynamic buffer in the compressed buffer. Buffer composition. The compression side updates the data content stored in the dynamic buffer in the compression buffer according to the data content contained in the second field in the first data packet. The compression side forms the second data packet according to the compressed first field and the compressed second field.
解压侧的压缩流程:解压侧接收到第二数据包后,根据第二数据包中第一域包含的数 据内容和解压buffer中的静态buffer中存储的数据内容,对第一域进行解压,生成解压后的第一域;根据第二数据包中第二域包含的数据内容和组合buffer中存储的数据内容,对第二域进行解压,生成解压后的第二域;此时,该组合buffer由解压buffer中的静态buffer和动态buffer组成。解压侧根据解压后的第二域包含的数据内容,更新解压buffer中的动态buffer中存储的数据内容。解压侧根据解压后的第一域和解压后的第二域,组成第一数据包。Compression process on the decompression side: After receiving the second data packet, the decompression side decompresses the first field according to the data content contained in the first field in the second data packet and the data content stored in the static buffer in the decompression buffer to generate The decompressed first domain; according to the data content contained in the second domain in the second data packet and the data content stored in the combined buffer, the second domain is decompressed to generate the decompressed second domain; at this time, the combined buffer It consists of static buffer and dynamic buffer in decompression buffer. The decompression side updates the data content stored in the dynamic buffer in the decompression buffer according to the data content contained in the decompressed second field. The decompression side forms the first data packet according to the decompressed first domain and the decompressed second domain.
示例性的,压缩侧可以但不限于通过以下两种方式,将压缩buffer中的静态buffer和动态buffer进行组合,生成组合buffer:Exemplarily, the compression side can, but not limited to, combine the static buffer and the dynamic buffer in the compression buffer to generate a combined buffer in the following two ways:
拼接方式1:参阅图3A中的(1)所示,压缩侧可以将压缩buffer中的静态buffer拼接在动态buffer的前面,即将静态buffer的结束位置拼接到动态buffer的起始位置之前的相邻位置。Splicing method 1: Referring to (1) in Figure 3A, the compression side can splice the static buffer in the compressed buffer in front of the dynamic buffer, that is, the end position of the static buffer is spliced to the adjacent position before the start position of the dynamic buffer Location.
拼接方式2:参阅图3A中的(2)所示,压缩侧可以将压缩buffer中的动态buffer拼接在静态buffer的前面,即将动态buffer的结束位置拼接到静态buffer的起始位置之前的相邻位置。Splicing method 2: Referring to (2) in Figure 3A, the compression side can splice the dynamic buffer in the compressed buffer in front of the static buffer, that is, the end position of the dynamic buffer is spliced to the adjacent position before the start position of the static buffer Location.
由于压缩侧的压缩buffer与解压侧的解压buffer需要完全一致,因此,压缩侧和解压侧生成组合buffer采用的拼接方式也必须一致。因此,解压侧将解压buffer中的静态buffer和动态buffer进行组合生成组合buffer的过程可以参考以上两种拼接方式,此处不再赘述。Since the compression buffer on the compression side needs to be exactly the same as the decompression buffer on the decompression side, the splicing methods used to generate the combined buffer on the compression side and the decompression side must also be consistent. Therefore, the process of combining the static buffer and the dynamic buffer in the decompression buffer on the decompression side to generate a combined buffer can refer to the above two splicing methods, which will not be repeated here.
需要说明的是,具体的对每个组成部分进行压缩/解压步骤可以参考以上两种方式,此处不再赘述。It should be noted that the specific steps of compressing/decompressing each component can refer to the above two methods, which will not be repeated here.
还需要说明的是,当压缩侧采用组合buffer对原始数据包中的第一组成部分进行压缩时,在压缩后只利用原始数据包中的第一组成部分对组合buffer中的动态buffer进行更新,即将原始数据包中的第一组成部分推入动态buffer中。在该情况下,组合buffer中的动态buffer中可能有部分数据被推出,但是静态压缩buffer不受影响,参阅图4所示。同理,当解压侧采用组合buffer对压缩数据包中的某个组成部分进行解压时,在解压后只利用解压后的该组成部分对组合buffer中的动态buffer进行更新。It should also be noted that when the compression side uses the combination buffer to compress the first component in the original data packet, only the first component in the original data packet is used to update the dynamic buffer in the combination buffer after compression. That is to push the first component of the original data packet into the dynamic buffer. In this case, some data in the dynamic buffer in the combined buffer may be pushed out, but the static compression buffer is not affected, as shown in Figure 4. Similarly, when the decompression side uses the combined buffer to decompress a certain component in the compressed data packet, only the decompressed component is used to update the dynamic buffer in the combined buffer after decompression.
实现方式4:数据包由两个部分组成:第一域和第二域。每个域固定对应不同类型的buffer:第一域对应静态buffer,第二域对应动态buffer和静态buffer。进一步的,第二域由第一数据段和第二数据段等至少两个数据段组成,并且第一数据段对应静态buffer,第二数据段对应动态buffer。Implementation mode 4: the data packet consists of two parts: a first domain and a second domain. Each field corresponds to a different type of buffer: the first field corresponds to a static buffer, and the second field corresponds to a dynamic buffer and a static buffer. Further, the second domain is composed of at least two data segments such as a first data segment and a second data segment, and the first data segment corresponds to a static buffer, and the second data segment corresponds to a dynamic buffer.
可选的,在实现方式中,第二域中每个数据段对应的buffer类型可以是压缩侧确定的,也可以是预先配置的,本申请对此不作限定。此外,关于第二域如何划分为至少一个或多个数据段,本申请对此不作限定。Optionally, in an implementation manner, the buffer type corresponding to each data segment in the second field may be determined by the compression side, or may be pre-configured, which is not limited in this application. In addition, this application does not limit how the second domain is divided into at least one or more data segments.
当第二域中每个数据段对应的buffer类型为压缩侧决定时,压缩侧还可以向解压侧发送指示数据包中每个数据段对应的buffer类型的指示信息。例如,所述压缩侧可以在每个压缩数据包中携带该指示信息。When the buffer type corresponding to each data segment in the second field is determined by the compression side, the compression side may also send indication information indicating the buffer type corresponding to each data segment in the data packet to the decompression side. For example, the compression side may carry the indication information in each compressed data packet.
压缩侧的压缩流程:压缩侧根据第一数据包中第一域包含的数据内容和压缩buffer中的静态buffer中存储的数据内容,对第一域进行压缩,生成压缩后的第一域;根据第一数据包中第二域的第一数据段包含的数据内容和压缩buffer中的静态buffer中存储的数据内容,对第一数据段进行压缩,生成压缩后的第一数据段;根据第一数据包中第二域的第二数据段包含的数据内容和压缩buffer中的动态buffer中存储的数据内容,对第二数据段进 行压缩,生成压缩后的第二数据段。压缩侧根据压缩后的第一域、压缩后的第一数据段,以及压缩后的第二数据段,组成第二数据包。最后,压缩侧根据第一数据包中第二域的第二数据段包含的数据内容,更新动态buffer中存储的数据内容。The compression process of the compression side: the compression side compresses the first field according to the data content contained in the first field in the first data packet and the data content stored in the static buffer in the compression buffer, and generates the compressed first field; according to The data content contained in the first data segment of the second field in the first data packet and the data content stored in the static buffer in the compressed buffer compress the first data segment to generate a compressed first data segment; according to the first The data content contained in the second data segment in the second field of the data packet and the data content stored in the dynamic buffer in the compressed buffer are compressed to generate a compressed second data segment. The compression side forms the second data packet according to the compressed first field, the compressed first data segment, and the compressed second data segment. Finally, the compression side updates the data content stored in the dynamic buffer according to the data content contained in the second data segment of the second field in the first data packet.
解压侧的解压流程:解压侧接收到第二数据包后,根据所述第二数据包中第一域包含的数据内容和解压buffer中的静态buffer中存储的数据内容,对第一域进行解压,生成解压后的第一域;根据第二数据包中第二域的第一数据段包含的数据内容和解压buffer中的静态buffer中存储的数据内容,对第一数据段进行解压,生成解压后的第一数据段;根据第二数据包中第二域的第二数据段包含的数据内容和解压buffer中的动态buffer中存储的数据内容,对第二数据段进行解压,生成解压后的第二数据段。解压侧根据解压后的第一域、解压后的第一数据段,以及解压后的第二数据段,组成第一数据包。最后,解压侧根据解压后的第二数据段包含的数据内容,更新解压buffer中的动态buffer中存储的数据内容。The decompression process on the decompression side: after receiving the second data packet, the decompression side decompresses the first field according to the data content contained in the first field in the second data packet and the data content stored in the static buffer in the decompression buffer , to generate the decompressed first domain; according to the data content contained in the first data segment of the second domain in the second data packet and the data content stored in the static buffer in the decompression buffer, the first data segment is decompressed to generate decompression After the first data segment; according to the data content contained in the second data segment of the second field in the second data packet and the data content stored in the dynamic buffer in the decompression buffer, the second data segment is decompressed to generate the decompressed the second data segment. The decompression side forms the first data packet according to the decompressed first field, the decompressed first data segment, and the decompressed second data segment. Finally, the decompression side updates the data content stored in the dynamic buffer in the decompression buffer according to the data content contained in the decompressed second data segment.
实现方式5:数据包由两个部分组成:第一域和第二域。每个域固定对应不同类型的buffer:第一域对应静态buffer,第二域对应动态buffer和静态buffer。进一步的,在对第二域进行压缩时,压缩侧可以自行在动态buffer和静态buffer中选择一种类型的buffer对该第二域进行压缩,或者由解压侧或第三方管理设备将第二域对应的buffer类型配置给所述压缩侧。Implementation mode 5: the data packet is composed of two parts: a first domain and a second domain. Each field corresponds to a different type of buffer: the first field corresponds to a static buffer, and the second field corresponds to a dynamic buffer and a static buffer. Further, when compressing the second domain, the compression side can select one type of buffer from dynamic buffer and static buffer to compress the second domain, or the second domain can be compressed by the decompression side or a third-party management device The corresponding buffer type is allocated to the compression side.
需要说明的是,在压缩侧的第二域对应的一种buffer类型不是解压侧配置的情况下,压缩侧或第三方管理设备还需要将第二域对应的一种buffer类型配置给所述解压侧,以保证压缩侧和解压侧采用相同的类型的buffer对第二域进行压缩和解压。It should be noted that, in the case that a buffer type corresponding to the second domain on the compression side is not configured on the decompression side, the compression side or a third-party management device also needs to configure a buffer type corresponding to the second domain to the decompression side. side, to ensure that the compression side and the decompression side use the same type of buffer to compress and decompress the second domain.
例如,当第二域对应的buffer类型是由压缩侧自行确定或第三方管理设备配置时,压缩侧可以向解压侧发送用于指示第二域对应的buffer类型的指示信息。示例性的,压缩侧可以在每个压缩数据包中携带该指示信息。又例如,当第二域对应的buffer类型是由解压侧配置时,压缩侧则不必发送该指示信息。For example, when the buffer type corresponding to the second domain is determined by the compression side or configured by a third-party management device, the compression side may send indication information for indicating the buffer type corresponding to the second domain to the decompression side. Exemplarily, the compression side may carry the indication information in each compressed data packet. For another example, when the buffer type corresponding to the second field is configured by the decompression side, the compression side does not need to send the indication information.
压缩侧的压缩流程:压缩侧根据第一数据包中第一域包含的数据内容和压缩buffer中的静态buffer中存储的数据内容,对第一域进行压缩,生成压缩后的第一域;根据第一数据包中第二域包含的数据内容和压缩buffer中的第一buffer中存储的数据内容,对第二域进行压缩,生成压缩后的第二域。其中,所述第一buffer为压缩buffer中的静态buffer或动态buffer,具体可以由压缩侧、解压侧或第三方管理设备配置。压缩侧根据压缩后的第一域和压缩后的第二域,组成第二数据包。当所述第一压缩buffer为压缩buffer中的动态buffer时,压缩侧根据第一数据包中第二域包含的数据内容,更新压缩buffer中的动态buffer中存储的数据内容。The compression process of the compression side: the compression side compresses the first field according to the data content contained in the first field in the first data packet and the data content stored in the static buffer in the compression buffer, and generates the compressed first field; according to The data content contained in the second field in the first data packet and the data content stored in the first buffer in the compression buffer are compressed to generate a compressed second field. Wherein, the first buffer is a static buffer or a dynamic buffer in the compression buffer, which can be specifically configured by the compression side, the decompression side, or a third-party management device. The compression side forms the second data packet according to the compressed first field and the compressed second field. When the first compression buffer is a dynamic buffer in the compression buffer, the compression side updates the data content stored in the dynamic buffer in the compression buffer according to the data content contained in the second field in the first data packet.
解压侧的解压流程:解压侧接收到第二数据包后,根据第二数据包中第一域包含的数据内容和解压buffer中的静态buffer中存储的数据内容,对第一域进行解压,生成解压后的第一域;根据第二数据包中第二域包含的数据内容和解压buffer中的第一buffer中存储的数据内容,对第二域进行解压,生成解压后的第二域。其中,所述第一buffer为解压buffer中的静态buffer或动态buffer,具体可以由解压侧、压缩侧或者第三方管理设备配置。解压侧根据解压后的第一域和解压后的第二域,组成第一数据包。当所述第一buffer为解压buffer中的动态buffer时,根据解压后的第二域包含的数据内容,更新解压buffer中的动态buffer中存储的数据内容。Decompression process on the decompression side: After receiving the second data packet, the decompression side decompresses the first field according to the data content contained in the first field in the second data packet and the data content stored in the static buffer in the decompression buffer, and generates The decompressed first domain: according to the data content contained in the second domain in the second data packet and the data content stored in the first buffer in the decompression buffer, decompress the second domain to generate the decompressed second domain. Wherein, the first buffer is a static buffer or a dynamic buffer in the decompression buffer, which may be specifically configured by the decompression side, the compression side, or a third-party management device. The decompression side forms the first data packet according to the decompressed first domain and the decompressed second domain. When the first buffer is a dynamic buffer in the decompressed buffer, update the data content stored in the dynamic buffer in the decompressed buffer according to the data content contained in the decompressed second field.
实现方式6:数据包视为一个整体,数据包对应动态buffer和静态buffer。与实现方式5类似的,在对某个数据包进行压缩时,压缩侧可以在自行在动态buffer和静态buffer中选择一种类型的buffer对该数据包进行压缩,或者由解压侧或第三方管理设备将该数据包(或者一类数据包,或者设定时间内接收的数据包)对应的buffer类型配置给所述压缩侧。Implementation method 6: The data packet is regarded as a whole, and the data packet corresponds to a dynamic buffer and a static buffer. Similar to implementation 5, when compressing a data packet, the compression side can choose a type of buffer from dynamic buffer and static buffer to compress the data packet, or it can be managed by the decompression side or a third party The device configures the buffer type corresponding to the data packet (or a type of data packet, or a data packet received within a set time) to the compression side.
需要说明的是,在压缩侧的该数据包对应的一种buffer类型不是解压侧配置的情况下,压缩侧或第三方管理设备还需要将该数据包对应的一种buffer类型配置给所述解压侧,以保证压缩侧和解压侧采用相同的类型的buffer对数据包进行压缩和解压。It should be noted that, when the buffer type corresponding to the data packet on the compression side is not configured on the decompression side, the compression side or the third-party management device also needs to configure a buffer type corresponding to the data packet to the decompression side. side, to ensure that the compression side and the decompression side use the same type of buffer to compress and decompress data packets.
例如,当数据包对应的buffer类型是由压缩侧自行确定或第三方管理设备配置时,压缩侧可以向解压侧发送用于指示数据包对应的buffer类型的指示信息。示例性的,压缩侧可以在每个压缩数据包中携带该指示信息。又例如,当数据包对应的buffer类型是由解压侧配置时,压缩侧则不必发送该指示信息。For example, when the buffer type corresponding to the data packet is determined by the compression side or configured by a third-party management device, the compression side may send indication information for indicating the buffer type corresponding to the data packet to the decompression side. Exemplarily, the compression side may carry the indication information in each compressed data packet. For another example, when the buffer type corresponding to the data packet is configured by the decompression side, the compression side does not need to send the indication information.
压缩侧的压缩流程:压缩侧根据第一数据包中包含的数据内容和压缩buffer中的第一buffer中存储的数据内容,对第一数据包进行压缩,生成第二数据包。其中,所述第一buffer为压缩buffer中的静态buffer或动态buffer,具体可以由压缩侧、解压侧或第三方管理设备配置。当第一压缩buffer为压缩buffer中的动态buffer时,压缩侧根据第一数据包中包含的数据内容,更新压缩buffer中的动态buffer中存储的数据内容。Compression process on the compression side: the compression side compresses the first data packet according to the data content contained in the first data packet and the data content stored in the first buffer of the compression buffer to generate a second data packet. Wherein, the first buffer is a static buffer or a dynamic buffer in the compression buffer, which can be specifically configured by the compression side, the decompression side, or a third-party management device. When the first compression buffer is a dynamic buffer in the compression buffer, the compression side updates the data content stored in the dynamic buffer in the compression buffer according to the data content contained in the first data packet.
解压侧的解压流程:解压侧接收到第二数据包后,根据第二数据包中包含的数据内容和第一buffer中存储的数据内容,对第二数据包进行解压,生成第一数据包。其中,所述第一buffer为解压buffer中的静态buffer或动态buffer,具体可以由解压侧、压缩侧或第三方管理设备配置。当第一buffer为解压buffer中的动态buffer时,解压侧根据第一数据包中包含的数据内容,更新解压buffer中的动态buffer中存储的数据内容。Decompression process on the decompression side: After receiving the second data packet, the decompression side decompresses the second data packet according to the data content contained in the second data packet and the data content stored in the first buffer to generate the first data packet. Wherein, the first buffer is a static buffer or a dynamic buffer in the decompression buffer, which can be specifically configured by the decompression side, the compression side or a third-party management device. When the first buffer is a dynamic buffer in the decompression buffer, the decompression side updates the data content stored in the dynamic buffer in the decompression buffer according to the data content contained in the first data packet.
实现方式7:数据包由第一数据段和第二数据段等至少两个数据段组成。压缩侧可以自行为每个数据段选择对应的buffer类型,或者由解压侧或第三方管理设备将每个数据段对应的buffer类型配置给压缩侧。当然,不同数据段可以对应相同或不同的buffer类型。Implementation mode 7: the data packet is composed of at least two data segments such as a first data segment and a second data segment. The compression side can select the corresponding buffer type for each data segment by itself, or the decompression side or a third-party management device configures the buffer type corresponding to each data segment to the compression side. Of course, different data segments can correspond to the same or different buffer types.
需要说明的是,在压缩侧的数据包中每个数据段对应的buffer类型不是解压侧配置的情况下,压缩侧或第三方管理设备还需要将数据包中每个数据段对应的buffer类型配置给解压侧,以保证压缩侧和解压侧采用相同的buffer类型对每个数据段进行压缩和解压。It should be noted that if the buffer type corresponding to each data segment in the data packet on the compression side is not configured on the decompression side, the compression side or the third-party management device also needs to configure the buffer type corresponding to each data segment in the data packet For the decompression side, to ensure that the compression side and the decompression side use the same buffer type to compress and decompress each data segment.
例如,当数据包中每个数据段对应的buffer类型是由压缩侧自行确定或第三方管理设备配置时,压缩侧可以向解压侧发送用于指示数据包中每个数据段对应的buffer类型的指示信息。示例性的,压缩侧可以在每个压缩数据包中携带该指示信息。又例如,当数据包中每个数据段对应的buffer类型是由解压侧配置时,压缩侧则不必发送该指示信息。For example, when the buffer type corresponding to each data segment in the data packet is determined by the compression side or configured by a third-party management device, the compression side can send a message indicating the buffer type corresponding to each data segment in the data packet to the decompression side. Instructions. Exemplarily, the compression side may carry the indication information in each compressed data packet. For another example, when the buffer type corresponding to each data segment in the data packet is configured by the decompression side, the compression side does not need to send the indication information.
压缩侧的压缩流程:压缩侧根据第一数据包中的第一数据段包含的数据内容和压缩buffer中的第一buffer中存储的数据内容,对第一数据段进行压缩,生成压缩后的第一数据段;根据第一数据包中的第二数据段包含的数据内容和压缩buffer中的第二buffer中存储的数据内容,对第二数据段进行压缩,生成压缩后的第二数据段。压缩侧根据压缩后的第一数据段,以及压缩后的第二数据段,组成第二数据包。当第一buffer为动态buffer时,压缩侧根据第一数据包中的第一数据段包含的数据内容,更新动态buffer中存储的数据内容;当第二buffer为动态buffer时,压缩侧根据第一数据包中的第二数据段包含的数据内容,更新动态buffer中存储的数据内容。其中,第一buffer为压缩buffer中的静态buffer,第二buffer为压缩buffer中的动态buffer;又或者第一buffer为压缩buffer中的动态buffer, 第二buffer为压缩buffer中的静态buffer。Compression process on the compression side: the compression side compresses the first data segment according to the data content contained in the first data segment in the first data packet and the data content stored in the first buffer in the compression buffer, and generates the compressed first data segment A data segment; according to the data content contained in the second data segment in the first data packet and the data content stored in the second buffer in the compression buffer, compress the second data segment to generate a compressed second data segment. The compression side composes the second data packet according to the compressed first data segment and the compressed second data segment. When the first buffer is a dynamic buffer, the compression side updates the data content stored in the dynamic buffer according to the data content contained in the first data segment in the first data packet; when the second buffer is a dynamic buffer, the compression side updates the data content stored in the dynamic buffer according to the first The data content contained in the second data segment in the data packet updates the data content stored in the dynamic buffer. Wherein, the first buffer is a static buffer in the compression buffer, and the second buffer is a dynamic buffer in the compression buffer; or the first buffer is a dynamic buffer in the compression buffer, and the second buffer is a static buffer in the compression buffer.
解压侧的解压流程:解压侧接收到第二数据包后,根据第二数据包中的第一数据段包含的数据内容和解压buffer中的第一buffer中存储的数据内容,对第一数据段进行解压,生成解压后的第一数据段;根据第二数据包中的第二数据段包含的数据内容和解压buffer中的第二buffer中存储的数据内容,对第二数据段进行解压,生成解压后的第二数据段。解压侧根据解压后的第一数据段,以及解压后的第二数据段,组成第一数据包。当第一buffer为动态buffer时,解压侧解压后的第一数据段包含的数据内容,更新解压buffer中的动态buffer中存储的数据内容;当第二buffer为动态buffer时,解压侧根据解压后的第二数据段包含的数据内容,更新解压buffer中的动态buffer中存储的数据内容。其中,第一buffer为解压buffer中的静态buffer,第二buffer为解压buffer中的动态buffer;又或者第一buffer为解压buffer中的动态buffer,第二buffer为解压buffer中的静态buffer。The decompression process of the decompression side: after the decompression side receives the second data packet, according to the data content contained in the first data segment in the second data packet and the data content stored in the first buffer in the decompression buffer, the first data segment Decompress to generate the decompressed first data segment; according to the data content contained in the second data segment in the second data packet and the data content stored in the second buffer in the decompression buffer, decompress the second data segment to generate The decompressed second data segment. The decompression side forms the first data packet according to the decompressed first data segment and the decompressed second data segment. When the first buffer is a dynamic buffer, the data content contained in the first data segment decompressed by the decompression side updates the data content stored in the dynamic buffer in the decompression buffer; The data content contained in the second data segment updates the data content stored in the dynamic buffer in the decompression buffer. Wherein, the first buffer is a static buffer in the decompression buffer, and the second buffer is a dynamic buffer in the decompression buffer; or the first buffer is a dynamic buffer in the decompression buffer, and the second buffer is a static buffer in the decompression buffer.
应注意,本申请对数据包的组成方式不作限定。上述第一域和第二域,以及第二域中的第一数据段和第二数据段,可以根据数据包的格式或者数据特征等具体划分。示例性的,第一域可以为包头,第二域可以为有效载荷。又例如,第一域为有效载荷,第二域为包头。根据数据包的种类的不同,包头的格式也不相同,示例性的,数据包的包头可以包括以太网帧头、网络协议(internet protocol,IP)头、传输控制协议(transmission control protocol,TCP)头、用户数据报协议(user datagram protocol,UDP)头、实时传输协议(real-time transport protocol,RTP)头、服务数据适配协议(service data adaptation protocol,SDAP)头等中的一个或多个。It should be noted that this application does not limit the composition of the data packets. The above-mentioned first field and second field, as well as the first data segment and the second data segment in the second field, can be specifically divided according to the format or data characteristics of the data packet. Exemplarily, the first field may be a packet header, and the second field may be a payload. For another example, the first field is the payload, and the second field is the header. According to the difference of the kind of data packet, the format of packet header is also different, exemplary, the packet header of data packet can comprise Ethernet frame header, network protocol (internet protocol, IP) header, transmission control protocol (transmission control protocol, TCP) One or more of header, user datagram protocol (user datagram protocol, UDP) header, real-time transport protocol (real-time transport protocol, RTP) header, service data adaptation protocol (service data adaptation protocol, SDAP) header, etc.
另外,与实现方式1和实现方式3不同的是,其他实现方式中,静态buffer和动态buffer是两个分离、独立的buffer,如图3B所示。In addition, different from implementation 1 and implementation 3, in other implementations, the static buffer and the dynamic buffer are two separate and independent buffers, as shown in FIG. 3B .
下面将结合附图,对本申请实施例进行详细描述。Embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.
图5示出了本申请实施例提供的通信方法适用的一种可能的通信系统的架构。参阅图1所示,所述通信系统包括三部分:终端设备、移动通信系统、数据网络(data network,DN)。FIG. 5 shows the architecture of a possible communication system to which the communication method provided by the embodiment of the present application is applicable. Referring to Fig. 1, the communication system includes three parts: a terminal device, a mobile communication system, and a data network (data network, DN).
终端设备,为用户侧能够接收和发射无线信号的实体,需要通过移动通信系统中的AN设备接入网络。终端设备可以为各种为用户提供语音和/或数据连通性的设备,例如图5所示,终端设备可以为车载设备、VR眼镜、智能手机等。The terminal device is an entity capable of receiving and transmitting wireless signals on the user side, and needs to access the network through the AN device in the mobile communication system. The terminal device may be various devices that provide voice and/or data connectivity for users. For example, as shown in FIG. 5, the terminal device may be a vehicle-mounted device, VR glasses, a smart phone, and the like.
移动通信网络,为终端设备提供接入服务和端到端的连接服务。终端设备可以通过移动通信网络访问DN,实现具体业务。其中,所述移动通信网络又可以包括接入网(access network,AN)和核心网(core network,CN)两部分。其中,接入网主要负责终端设备的无线接入功能。核心网用于将终端设备接续到DN中,并负责终端设备计费、移动性管理、会话管理、用户面转发等业务。The mobile communication network provides access services and end-to-end connection services for terminal devices. The terminal equipment can access the DN through the mobile communication network to realize specific services. Wherein, the mobile communication network may further include two parts: an access network (access network, AN) and a core network (core network, CN). Among them, the access network is mainly responsible for the wireless access function of the terminal equipment. The core network is used to connect terminal equipment to the DN, and is responsible for services such as terminal equipment billing, mobility management, session management, and user plane forwarding.
部署在接入网中的具体网络设备为AN设备,具体可以负责无线接入、空口侧的无线资源管理、服务质量(quality of service,QoS)管理、数据压缩和加密、用户面数据转发等功能。The specific network equipment deployed in the access network is AN equipment, which can be responsible for wireless access, wireless resource management on the air interface side, quality of service (QoS) management, data compression and encryption, user plane data forwarding and other functions .
核心网中包含多个核心网设备,分别实现不同的核心网功能。在不同的制式的移动通 信系统中,核心网部署的核心网可能存在差异,并且具有相同功能的核心网设备的名称也可能存在差异。The core network includes multiple core network devices, each of which implements different core network functions. In mobile communication systems of different standards, the core network deployed by the core network may be different, and the names of core network devices with the same function may also be different.
示例性的,在5G移动通信系统中,按照具体的逻辑功能划分,核心网可以分为控制面(control plane,CP)和用户面(user plane,UP)。那么核心网中负责控制面功能的网元可以统称为控制面网元,负责用户面功能的网元可以统称为用户面网元。如前述对核心网设备的解释说明,用户面网元包含UPF网元(简称为UPF)。而控制面网元包括:AMF网元(简称为AMF)、SMF网元(简称为SMF)、UDM网元(简称为UDM)、PCF网元(简称为PCF),以及AF网元(简称为AF)等。Exemplarily, in a 5G mobile communication system, according to specific logical function divisions, the core network can be divided into a control plane (control plane, CP) and a user plane (user plane, UP). Then, network elements responsible for control plane functions in the core network may be collectively referred to as control plane network elements, and network elements responsible for user plane functions may be collectively referred to as user plane network elements. As explained above for the core network equipment, the user plane network elements include UPF network elements (abbreviated as UPF). The control plane network elements include: AMF network element (referred to as AMF for short), SMF network element (referred to as SMF for short), UDM network element (referred to as UDM for short), PCF network element (referred to as PCF for short), and AF network element (referred to as AF) etc.
DN,也可以称为分组数据网络(packet data network,PDN),是位于移动通信网络之外的网络。DN中可以在至少一个服务器内部署多种业务,为终端设备提供数据和/或语音等服务。其中,移动通信网络可以接入至少一个DN,同一个DN也可以被至少一个移动通信网络接入。例如,所述DN可以是分组数据网络(packet data network,PDN),如因特网(Internet)、IP多媒体业务(IP Multi-media Service,IMS)网络、某些应用专用的数据网络(例如腾讯视频的数据网络)、以太网、IP本地网络等,本申请对此不作限定。DN, also called packet data network (PDN), is a network outside the mobile communication network. Multiple services can be deployed in at least one server in the DN to provide services such as data and/or voice for terminal equipment. Wherein, the mobile communication network can access at least one DN, and the same DN can also be accessed by at least one mobile communication network. For example, the DN may be a packet data network (packet data network, PDN), such as the Internet (Internet), IP Multi-media Service (IP Multi-media Service, IMS) network, some application-specific data networks (such as Tencent Video's data network), Ethernet, IP local network, etc., which are not limited in this application.
可选的,图5所示的通信系统可以支持侧行链路(sidelink)通信技术。sidelink通信技术是一种终端设备之间能够直连的近场通信技术,又称为近距离服务(proximity services,ProSe)通信技术,或D2D通信技术。在该通信系统中,所处地理位置较近,且支持sidelink通信的多个终端设备可以组成一个sidelink通信系统(还可以称为sidelink通信子系统,sidelink系统等)。在该sidelink通信系统中,两个终端设备(又称为sidelink设备)之间可以通过直连链路(sidelink连接)进行通信。sidelink通信技术可以支持AN设备覆盖范围内、AN设备覆盖范围外和AN设备部分覆盖场景下的广播、组播和单播传输。Optionally, the communication system shown in FIG. 5 may support a sidelink (sidelink) communication technology. The sidelink communication technology is a near-field communication technology that can be directly connected between terminal devices, and is also called a proximity services (Proximity services, ProSe) communication technology, or a D2D communication technology. In the communication system, a plurality of terminal devices that are geographically close and support sidelink communication may form a sidelink communication system (also called a sidelink communication subsystem, a sidelink system, etc.). In the sidelink communication system, two terminal devices (also referred to as sidelink devices) can communicate through a direct link (sidelink connection). The sidelink communication technology can support broadcast, multicast, and unicast transmissions within the coverage of AN equipment, outside the coverage of AN equipment, and under partial coverage of AN equipment.
在图5所示的通信系统中,针对不同的应用场景,可以组成不同的sidelink通信系统。例如,在用户驾驶汽车的场景中,用户的智能手机可以与安装在汽车上的车载设备组成一个sidelink通信系统,如图所示。又例如,在用户使用VR眼镜观看影片的场景中,用户的智能手机可以与VR眼镜组成一个sidelink通信系统,如图所示。在其他场景中,还可以不同汽车之间的车载设备组成一个sidelink通信系统,或者,不同汽车上的手机组成一个sidelink通信系统。In the communication system shown in FIG. 5 , different sidelink communication systems can be formed for different application scenarios. For example, in the scenario where the user is driving a car, the user's smartphone can form a sidelink communication system with the on-board equipment installed in the car, as shown in the figure. For another example, in a scene where a user uses VR glasses to watch a movie, the user's smart phone and the VR glasses can form a sidelink communication system, as shown in the figure. In other scenarios, a sidelink communication system can be formed by on-board devices between different cars, or a sidelink communication system can be formed by mobile phones on different cars.
需要理解的是,移动通信系统或DN中的以上各网元既可以是在专用硬件上实现的网络元件,也可以是在专用硬件上运行的软件实例,或者是在虚拟化平台(例如云平台)上虚拟化功能的实例。此外,本申请实施例并不限定通信系统中各个网元的分布形式,可选的,以上各个网元可以分别部署在不同的物理设备中,或者多个网元融合在同一物理设备中。It should be understood that each of the above network elements in the mobile communication system or DN may be a network element implemented on dedicated hardware, or a software instance running on dedicated hardware, or a virtualization platform (such as a cloud platform) ) instance of the virtualization function. In addition, the embodiment of the present application does not limit the distribution form of each network element in the communication system. Optionally, each of the above network elements may be deployed in different physical devices, or multiple network elements may be integrated in the same physical device.
另外,图1所示的通信系统中各个通信设备之间可以通过相应的接口实现交互,部分网元可以采用服务化接口的方式实现,本申请对此不作限定。示例性的,如图1所示,其中,AN设备和终端设备之间可以通过空中接口(即Uu接口)连接,从而实现AN设备和终端设备之间的通信(这种通信可以简称Uu通信,或者蜂窝网通信)。邻近的终端设备之间可以通过近距业务通信接口5(ProSe communication 5,PC5)接口,建立直连链路sidelink连接,组成sidelink通信系统。In addition, communication devices in the communication system shown in FIG. 1 can interact with each other through corresponding interfaces, and some network elements can use service interfaces, which is not limited in this application. Exemplarily, as shown in FIG. 1, the AN device and the terminal device may be connected through an air interface (that is, a Uu interface), thereby realizing communication between the AN device and the terminal device (this communication may be referred to as Uu communication, or cellular communication). Adjacent terminal devices can establish a direct link sidelink connection through a short-distance service communication interface 5 (ProSe communication 5, PC5) interface to form a sidelink communication system.
其中,无论是Uu接口还是PC5接口,均包含控制面协议栈和用户面协议栈。其中,用户面协议栈中均至少包含以下协议层:物理(physical,PHY)层、MAC层、无线链路 控制(radio link control,RLC)层和分组数据汇聚协议(packet data convergence protocol,PDCP)层、服务数据适配协议(service data adaptation protocol,SDAP)层;控制面协议栈中至少包含以下协议层:物理层、MAC层、RLC层、PDCP层、无线资源控制(radio resource control,RRC)层。每个协议栈通过对应的协议栈实体来实现该协议栈的功能。Wherein, both the Uu interface and the PC5 interface include a control plane protocol stack and a user plane protocol stack. Among them, the user plane protocol stack includes at least the following protocol layers: physical (physical, PHY) layer, MAC layer, radio link control (radio link control, RLC) layer and packet data convergence protocol (packet data convergence protocol, PDCP) layer, service data adaptation protocol (service data adaptation protocol, SDAP) layer; the control plane protocol stack includes at least the following protocol layers: physical layer, MAC layer, RLC layer, PDCP layer, radio resource control (radio resource control, RRC) layer. Each protocol stack realizes the function of the protocol stack through the corresponding protocol stack entity.
还需要指出的是,如图5所示的通信系统作为一个示例,并不对本申请实施例提供的方法适用的通信系统构成限定。总之,本申请实施例提供的方法,适用于各种类型和制式的通信系统或应用场景中。例如:4G移动通信系统、5G移动通信系统、6G移动通信系统、未来新一代移动通信系统、无线保真(Wireless-Fidelity,Wi-Fi)系统、车到万物(vehicle to everything,V2X)系统、长期演进-车联网(LTE-vehicle,LTE-V)系统、车到车(vehicle to vehicle,V2V)系统、车联网系统、机器类通信(Machine Type Communications,MTC)系统、物联网(internet of things,IoT)系统、长期演进-机器到机器(LTE-machine to machine,LTE-M)系统、机器到机器(machine to machine,M2M)系统,以及各种DN网络、分布式存储系统等,本申请实施例不予限定。It should also be pointed out that the communication system shown in FIG. 5 is used as an example, and does not limit the communication system to which the method provided in the embodiment of the present application is applicable. In a word, the method provided in the embodiment of the present application is applicable to various types and standards of communication systems or application scenarios. For example: 4G mobile communication system, 5G mobile communication system, 6G mobile communication system, future new generation mobile communication system, wireless fidelity (Wireless-Fidelity, Wi-Fi) system, vehicle to everything (V2X) system, Long-term evolution-LTE-vehicle (LTE-V) system, vehicle-to-vehicle (V2V) system, vehicle-to-vehicle system, Machine Type Communications (MTC) system, Internet of things (Internet of things) , IoT) system, long-term evolution-machine to machine (LTE-machine to machine, LTE-M) system, machine to machine (machine to machine, M2M) system, and various DN networks, distributed storage systems, etc., this application Examples are not limited.
通过以上对几种压缩/解压方式的基本原理的介绍,在静态buffer中固定配置数据包中频繁出现的数据段,可以明显提高数据包的压缩率。另外,在使用动态buffer进行压缩时,相邻两个数据包中存在相同的数据段时也可以提高数据包的压缩率。然而,在不同场景中的通信系统中传输的数据包的数据特征存在差异,同一通信系统的不同时间段内传输的数据包的数据特征也可能存在差异。Through the above introduction to the basic principles of several compression/decompression methods, the data segments that frequently appear in the data packets are fixed in the static buffer, which can significantly improve the compression rate of the data packets. In addition, when the dynamic buffer is used for compression, the compression rate of the data packet can also be improved when the same data segment exists in two adjacent data packets. However, there are differences in data characteristics of data packets transmitted in communication systems in different scenarios, and there may also be differences in data characteristics of data packets transmitted in different time periods of the same communication system.
例如,终端设备连接多个采集器,并将每个采集器采集的数据上报给基站的场景中,终端设备针对同一个采集器生成的数据包的包头(header)基本相同,有效载荷(payload)也比较相似;但是终端设备针对不同采集器生成的数据包差异较大。For example, in a scenario where a terminal device is connected to multiple collectors and reports the data collected by each collector to the base station, the headers (header) of the data packets generated by the terminal device for the same collector are basically the same, and the payload (payload) They are also relatively similar; however, the data packets generated by terminal devices for different collectors are quite different.
又例如,压缩侧在一段时间内生成的数据包的有效载荷基本相同,在另一段时间内生成的数据包的有效载荷差异较大。For another example, the payloads of data packets generated by the compression side during a period of time are basically the same, and the payloads of data packets generated during another period of time are quite different.
再例如,压缩侧在实现某个业务时生成的数据包的包头基本相同,相邻两个数据包的有效载荷存在部分相似的数据段。For another example, the packet headers of the data packets generated by the compression side when implementing a certain service are basically the same, and the payloads of two adjacent data packets have partially similar data segments.
显然,通信系统中建立通信连接的两个通信设备之间传输的数据包中的数据内容是灵活多变的,因此,若采用目前的UDC机制、RoHC机制、EHC机制等几种压缩机制进行压缩,可能会影响该两个通信设备之间的数据压缩效率,无法达到提高数据传输效率和资源利用率的效果。Obviously, the data content in the data packet transmitted between two communication devices establishing a communication connection in the communication system is flexible and changeable. Therefore, if the current UDC mechanism, RoHC mechanism, EHC mechanism and other compression mechanisms are used to compress , may affect the data compression efficiency between the two communication devices, and cannot achieve the effect of improving data transmission efficiency and resource utilization.
基于此,为了提高通信系统中数据压缩的灵活性,从而可以提高数据压缩效率,最终提高通信系统的数据传输效率和资源利用率,本申请实施例提供了一种通信方法。该方法可以适用于如图5所示的通信系统在内的各种通信系统中的建立通信连接的两个通信设备。例如,该方法可以应用于sidelink通信系统中的两个终端设备,终端设备与AN设备,AN设备与核心网设备,核心网中的两个核心网设备,核心网设备与DN中的服务器,或DN中的两个服务器之间。Based on this, in order to improve the flexibility of data compression in the communication system, thereby improving the efficiency of data compression, and finally improving the data transmission efficiency and resource utilization of the communication system, an embodiment of the present application provides a communication method. The method can be applied to two communication devices establishing a communication connection in various communication systems including the communication system shown in FIG. 5 . For example, the method can be applied to two terminal devices in a sidelink communication system, a terminal device and an AN device, an AN device and a core network device, two core network devices in a core network, a core network device and a server in a DN, or between two servers in the DN.
下面参阅图6所示的流程图,分阶段对所述通信方法进行详细说明。为了便于区分,本申请实施例中将压缩侧记为第一通信设备,将解压侧记为第二通信设备,将第三方管理设备记为第三通信设备。Referring to the flowchart shown in FIG. 6 , the communication method will be described in detail step by step. For ease of distinction, in this embodiment of the application, the compression side is marked as the first communication device, the decompression side is marked as the second communication device, and the third-party management device is marked as the third communication device.
S601a-S604为配置压缩方式、解压方式、压缩buffer和解压buffer的过程。S601a-S604 are the process of configuring compression mode, decompression mode, compression buffer and decompression buffer.
S601:第一通信设备获取压缩配置信息。其中,所述压缩配置信息包含:压缩方式指示信息和压缩缓存buffer配置信息;所述压缩方式指示信息用于指示所述第一通信设备对数据包进行压缩处理的目标压缩方式,所述压缩buffer配置信息用于配置所述第一通信设备的目标压缩buffer。S601: The first communication device acquires compressed configuration information. Wherein, the compression configuration information includes: compression mode indication information and compression buffer configuration information; the compression mode indication information is used to indicate the target compression mode for the first communication device to compress the data packet, and the compression buffer The configuration information is used to configure the target compression buffer of the first communication device.
S602:所述第一通信设备根据所述压缩配置信息,对所述目标压缩buffer进行配置。S602: The first communication device configures the target compression buffer according to the compression configuration information.
S603:第二通信设备获取解压配置信息。其中,所述解压配置信息包含:解压方式指示信息和解压缓存buffer配置信息,其中,所述解压方式指示信息用于指示所述第二通信设备对数据包进行解压处理的目标解压方式,所述解压buffer配置信息用于配置所述第二通信设备的目标解压buffer。S603: The second communication device acquires the decompression configuration information. Wherein, the decompression configuration information includes: decompression mode indication information and decompression buffer configuration information, wherein the decompression mode indication information is used to indicate a target decompression mode for the second communication device to decompress the data packet, the The decompression buffer configuration information is used to configure the target decompression buffer of the second communication device.
S604:根据所述解压buffer配置信息,对所述目标解压buffer进行配置。S604: Configure the target decompression buffer according to the decompression buffer configuration information.
应注意,本申请不限定S601与S603的执行顺序。另外,本申请实施例也可以只执行步骤S601和S602,或只执行步骤S603和S604。It should be noted that the present application does not limit the execution order of S601 and S603. In addition, in this embodiment of the present application, only steps S601 and S602 may be executed, or only steps S603 and S604 may be executed.
通过前述对几种压缩/解压方式的基本原理的介绍可知,第一通信设备的目标压缩buffer和第二通信设备的目标解压buffer需要保持完全一致(类型一致、大小一致,存储的数据内容一致)。因此,在通信系统中一般由同一设备对压缩buffer和解压buffer进行配置。可选的,在本申请实施例中,所述目标压缩buffer和所述目标解压buffer可以由第一通信设备、第二通信设备,或者第三通信设备触发配置的,即S601中的压缩配置信息、S603中的解压配置信息可以是第一通信设备、第二通信设备或者第三通信设备生成的,本申请对此不作限定。From the above introduction to the basic principles of several compression/decompression methods, it can be seen that the target compression buffer of the first communication device and the target decompression buffer of the second communication device need to be completely consistent (consistent type, consistent size, and consistent stored data content) . Therefore, in a communication system, the compression buffer and the decompression buffer are generally configured by the same device. Optionally, in this embodiment of the present application, the target compression buffer and the target decompression buffer may be triggered and configured by the first communication device, the second communication device, or the third communication device, that is, the compression configuration information in S601 . The decompression configuration information in S603 may be generated by the first communication device, the second communication device or the third communication device, which is not limited in this application.
基于此,第一通信设备或第二通信设备可以但不限于通过以下几种实施方式,获取压缩配置信息或解压配置信息。Based on this, the first communication device or the second communication device may, but not limited to, acquire compressed configuration information or decompressed configuration information through the following several implementation manners.
第一种实施方式:第一通信设备配置目标压缩buffer和目标解压buffer。A first implementation manner: the first communication device configures a target compression buffer and a target decompression buffer.
在本实施方式中,第一通信设备生成解压配置信息,并向第二通信设备发送所述解压配置信息。可选的,所述第一通信设备可以根据用户配置,或者以下至少一项或任意组合生成所述解压配置信息:第一通信设备的压缩能力信息,第二通信设备的解压能力信息,当前待压缩的数据包的数据特征,压缩需求,以及数据传输效率需求等,本申请对此不作限定。In this embodiment, the first communication device generates decompression configuration information, and sends the decompression configuration information to the second communication device. Optionally, the first communication device may generate the decompression configuration information according to user configuration, or at least one of the following or any combination thereof: compression capability information of the first communication device, decompression capability information of the second communication device, current waiting The data characteristics, compression requirements, and data transmission efficiency requirements of the compressed data packets are not limited in this application.
其中,如图所示,在本实施方式中,所述第二通信设备可以通过S601b向所述第一通信设备发送所述第二通信设备的解压能力信息;即所述第一通信设备可以通过S601b接收来自所述第二通信设备的解压能力信息。Wherein, as shown in the figure, in this embodiment, the second communication device may send the decompression capability information of the second communication device to the first communication device through S601b; S601b Receive decompression capability information from the second communication device.
相应的,第一通信设备需配置目标压缩buffer,其中,目标压缩buffer的大小和初始数据内容需与为第二通信设备配置的目标解压buffer的大小和初始数据内容保持一致。在执行S603时,所述第二通信设备接收来自所述第一通信设备的所述解压配置信息。这样,第二通信设备可以根据解压配置信息配置所述目标解压buffer的大小和初始数据内容。Correspondingly, the first communication device needs to configure a target compression buffer, wherein the size and initial data content of the target compression buffer must be consistent with the size and initial data content of the target decompression buffer configured for the second communication device. When performing S603, the second communication device receives the decompression configuration information from the first communication device. In this way, the second communication device can configure the size and initial data content of the target decompression buffer according to the decompression configuration information.
第二种实施方式:第二通信设备配置目标压缩buffer和目标解压buffer。Second implementation manner: the second communication device configures a target compression buffer and a target decompression buffer.
在本实施方式中,第二通信设备生成压缩配置信息,并向第一通信设备发送所述压缩 配置信息。可选的,所述第二通信设备可以根据用户配置,或者以下至少一项或任意组合生成所述压缩配置信息:第一通信设备的压缩能力信息,第二通信设备的解压能力信息,当前待压缩的数据包的数据特征,压缩需求,以及数据传输效率需求等,本申请对此不作限定。In this implementation manner, the second communication device generates compressed configuration information, and sends the compressed configuration information to the first communication device. Optionally, the second communication device may generate the compression configuration information according to user configuration, or at least one of the following or any combination thereof: compression capability information of the first communication device, decompression capability information of the second communication device, current pending The data characteristics, compression requirements, and data transmission efficiency requirements of the compressed data packets are not limited in this application.
其中,如图所示,在本实施方式中,所述第一通信设备可以通过S601a向所述第二通信设备发送所述第一通信设备的压缩能力信息。而所述第二通信设备可以通过S601a接收来自所述第一通信设备的压缩能力信息。Wherein, as shown in the figure, in this embodiment, the first communication device may send the compression capability information of the first communication device to the second communication device through S601a. And the second communication device may receive the compression capability information from the first communication device through S601a.
相应的,所述第二通信设备需要配置目标解压buffer,其中,所述目标解压buffer的大小和初始数据内容需与为第一通信设备配置的目标压缩buffer的大小和初始数据内容保持一致。在执行S601时,所述第一通信设备接收来自所述第二通信设备的所述压缩配置信息。这样,所述第一通信设备可以根据所述压缩配置信息配置所述目标压缩buffer的大小和初始数据内容。Correspondingly, the second communication device needs to configure a target decompression buffer, wherein the size and initial data content of the target decompression buffer need to be consistent with the size and initial data content of the target compression buffer configured for the first communication device. When performing S601, the first communication device receives the compressed configuration information from the second communication device. In this way, the first communication device may configure the size and initial data content of the target compression buffer according to the compression configuration information.
第三种实施方式中,第三通信设备配置目标压缩buffer和目标解压buffer。In a third implementation manner, the third communication device configures a target compression buffer and a target decompression buffer.
在本实施方式中,第三通信设备生成压缩配置信息和解压配置信息;然后向所述第一通信设备发送所述压缩配置信息,向所述第二通信设备发送所述解压配置信息。可选的,所述第三通信设备可以根据用户配置,或者以下至少一项或任意组合生成所述压缩配置信息和所述解压配置信息:第一通信设备的压缩能力信息,第二通信设备的解压能力信息,当前待压缩的数据包的数据特征,压缩需求,以及数据传输效率需求等,本申请对此不作限定。In this embodiment, the third communication device generates compressed configuration information and decompressed configuration information; then sends the compressed configuration information to the first communication device, and sends the decompressed configuration information to the second communication device. Optionally, the third communication device may generate the compression configuration information and the decompression configuration information according to user configuration, or at least one of the following or any combination thereof: compression capability information of the first communication device, information of the second communication device The decompression capability information, data characteristics of the currently to-be-compressed data packet, compression requirements, and data transmission efficiency requirements are not limited in this application.
其中,如图所示,在本实施方式中,所述第一通信设备可以通过S601a向所述第三通信设备发送所述第一通信设备的压缩能力信息;所述第二通信设备可以通过S601b向所述第三通信设备发送所述第二通信设备的解压能力信息。因此,第三通信设备可以通过S601a接收来自所述第一通信设备的压缩能力信息,通过S601b接收来自所述第二通信设备的解压能力信息。Wherein, as shown in the figure, in this embodiment, the first communication device may send the compression capability information of the first communication device to the third communication device through S601a; the second communication device may send the compression capability information through S601b sending the decompression capability information of the second communication device to the third communication device. Therefore, the third communication device may receive the compression capability information from the first communication device through S601a, and receive the decompression capability information from the second communication device through S601b.
相应的,在执行S601时,所述第一通信设备接收来自所述第三通信设备的所述压缩配置信息。在执行S603时,所述第二通信设备接收来自所述第三通信设备的所述解压配置信息。Correspondingly, when performing S601, the first communication device receives the compressed configuration information from the third communication device. When performing S603, the second communication device receives the decompression configuration information from the third communication device.
需要说明的是,在上述三种实施方式中,所述第一通信设备的压缩能力信息用于表征所述第一通信设备的压缩能力,可以但不限于包括以下至少一项或任意组合:It should be noted that, in the above three implementation manners, the compression capability information of the first communication device is used to characterize the compression capability of the first communication device, which may include but not limited to at least one or any combination of the following:
支持的压缩方式、能够进行压缩处理的数据传输方向、支持配置压缩处理的无线承载的数量或信息、支持配置压缩buffer的总大小阈值、支持配置每种buffer类型的buffer的大小阈值。Supported compression methods, data transmission directions that can be compressed, the number or information of radio bearers that support compression processing, the total size threshold of compression buffers, and the buffer size threshold of each buffer type.
所述第二通信设备的解压能力信息用于表征所述第二通信设备的解压能力,可以但不限于包括以下至少一项或任意组合:The decompression capability information of the second communication device is used to characterize the decompression capability of the second communication device, and may include, but is not limited to, at least one or any combination of the following:
支持的解压方式、能够进行解压处理的数据传输方向、支持配置解压处理的无线承载的数量或信息、支持配置解压buffer的总大小阈值、支持配置每种buffer类型的buffer的大小阈值。Supported decompression methods, data transmission directions that can be decompressed, the number or information of radio bearers that support decompression processing, the total size threshold of the decompression buffer, and the buffer size threshold of each buffer type.
下面针对每种压缩/解压方式,对上述步骤中涉及的压缩配置信息和/或解压配置信息 进行具体说明。For each compression/decompression method, the compression configuration information and/or decompression configuration information involved in the above steps will be described in detail below.
第一种实施方式:基于动态buffer的压缩/解压方式。The first implementation mode: a dynamic buffer-based compression/decompression mode.
压缩配置信息:Compress configuration information:
压缩配置信息中的压缩方式指示信息指示的目标压缩方式为基于动态buffer的压缩方式;所述压缩buffer配置信息配置的目标压缩buffer为动态buffer。The target compression mode indicated by the compression mode indication information in the compression configuration information is a compression mode based on a dynamic buffer; the target compression buffer configured by the compression buffer configuration information is a dynamic buffer.
在本实施方式中,所述压缩buffer配置信息用于指示该动态buffer的大小和/或填充到该动态buffer的初始数据内容。In this embodiment, the compressed buffer configuration information is used to indicate the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer.
可选的,所述初始数据内容可以为空,或者为预配置的数据字典。可选的,所述压缩buffer配置信息中可以包含该初始数据内容,或者包含指示该初始数据内容的指示信息。Optionally, the initial data content may be empty, or may be a pre-configured data dictionary. Optionally, the compressed buffer configuration information may include the initial data content, or include indication information indicating the initial data content.
类似的,所述压缩buffer配置信息中可以包含该动态buffer的大小,或者包含指示该动态buffer的大小的指示信息。Similarly, the compressed buffer configuration information may include the size of the dynamic buffer, or include indication information indicating the size of the dynamic buffer.
解压配置信息:Unzip configuration information:
解压配置信息中的解压方式指示信息指示的目标解压方式为基于动态buffer的解压方式;所述解压buffer配置信息配置的目标解压buffer为动态buffer。The target decompression mode indicated by the decompression mode indication information in the decompression configuration information is a decompression mode based on a dynamic buffer; the target decompression buffer configured in the decompression buffer configuration information is a dynamic buffer.
在本实施方式中,所述解压buffer配置信息用于指示该动态buffer的大小和/或填充到该动态buffer的初始数据内容。In this embodiment, the decompression buffer configuration information is used to indicate the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer.
与压缩buffer配置信息类似的,所述解压buffer配置信息中可以包含该初始数据内容,或者包含指示该初始数据内容的指示信息;所述解压buffer配置信息中可以包含该动态buffer的大小,或者包含指示该动态buffer的大小的指示信息。Similar to the compressed buffer configuration information, the decompressed buffer configuration information may include the initial data content, or include indication information indicating the initial data content; the decompressed buffer configuration information may include the size of the dynamic buffer, or include Indication information indicating the size of the dynamic buffer.
需要说明的是,为了保证目标压缩buffer和目标解压buffer保持完全一致,所述压缩buffer配置信息所指示的动态buffer的大小与所述解压buffer配置信息所指示的动态buffer的大小相同;所述压缩buffer配置信息所指示的动态buffer的初始数据内容与所述解压buffer配置信息所指示的动态buffer的初始内容相同。It should be noted that, in order to ensure that the target compression buffer is completely consistent with the target decompression buffer, the size of the dynamic buffer indicated by the compression buffer configuration information is the same as the size of the dynamic buffer indicated by the decompression buffer configuration information; The initial data content of the dynamic buffer indicated by the buffer configuration information is the same as the initial content of the dynamic buffer indicated by the decompressed buffer configuration information.
第二种实施方式:基于静态buffer的压缩/解压方式。The second implementation mode: static buffer-based compression/decompression mode.
压缩配置信息:Compress configuration information:
压缩配置信息中的压缩方式指示信息指示的目标压缩方式为基于静态buffer的压缩方式;所述压缩buffer配置信息配置的目标压缩buffer为静态buffer。The target compression mode indicated by the compression mode indication information in the compression configuration information is a static buffer-based compression mode; the target compression buffer configured by the compression buffer configuration information is a static buffer.
在本实施方式中,所述压缩buffer配置信息用于指示该静态buffer的大小和/或填充到该静态buffer的静态数据内容。In this embodiment, the compressed buffer configuration information is used to indicate the size of the static buffer and/or the content of static data filled into the static buffer.
可选的,所述静态数据内容为预配置的数据字典。可选的,所述压缩buffer配置信息中可以包含该静态数据内容,或者包含指示该静态数据内容的指示信息。Optionally, the static data content is a preconfigured data dictionary. Optionally, the compressed buffer configuration information may include the static data content, or include indication information indicating the static data content.
类似的,所述压缩buffer配置信息中可以包含该静态buffer的大小,或者包含指示该静态buffer的大小的指示信息。Similarly, the compressed buffer configuration information may include the size of the static buffer, or include indication information indicating the size of the static buffer.
解压配置信息:Unzip configuration information:
解压配置信息中的解压方式指示信息指示的目标解压方式为基于静态buffer的解压方式;所述解压buffer配置信息配置的目标解压buffer为静态buffer。The target decompression mode indicated by the decompression mode indication information in the decompression configuration information is a decompression mode based on a static buffer; the target decompression buffer configured in the decompression buffer configuration information is a static buffer.
在本实施方式中,所述解压buffer配置信息用于指示该静态buffer的大小和/或填充到该静态buffer的静态数据内容。In this embodiment, the decompression buffer configuration information is used to indicate the size of the static buffer and/or the content of static data filled into the static buffer.
与压缩buffer配置信息类似的,所述解压buffer配置信息中可以包含该静态数据内容, 或者包含指示该静态数据内容的指示信息;所述解压buffer配置信息中可以包含该静态buffer的大小,或者包含指示该静态buffer的大小的指示信息。Similar to the compressed buffer configuration information, the decompressed buffer configuration information may include the static data content, or include indication information indicating the static data content; the decompressed buffer configuration information may include the size of the static buffer, or include An indication of the size of the static buffer.
需要说明的是,为了保证目标压缩buffer和目标解压buffer保持完全一致,所述压缩buffer配置信息所指示的静态buffer的大小与所述解压buffer配置信息所指示的静态buffer的大小相同;所述压缩buffer配置信息所指示的静态buffer的静态数据内容与所述解压buffer配置信息所指示的静态buffer的静态内容相同。It should be noted that, in order to ensure that the target compression buffer is completely consistent with the target decompression buffer, the size of the static buffer indicated by the compression buffer configuration information is the same as the size of the static buffer indicated by the decompression buffer configuration information; The static data content of the static buffer indicated by the buffer configuration information is the same as the static data content of the static buffer indicated by the decompressed buffer configuration information.
第三种实施方式:基于静态buffer和动态buffer的增强压缩/解压方式。The third implementation mode: an enhanced compression/decompression mode based on static buffer and dynamic buffer.
压缩配置信息:Compress configuration information:
压缩配置信息中的压缩方式指示信息指示的目标压缩方式为基于静态buffer和动态buffer的增强压缩方式;所述压缩buffer配置信息配置的目标压缩buffer包含静态buffer和动态buffer。The target compression mode indicated by the compression mode indication information in the compression configuration information is an enhanced compression mode based on static buffer and dynamic buffer; the target compression buffer configured by the compression buffer configuration information includes static buffer and dynamic buffer.
在本实施方式中,所述压缩buffer配置信息用于指示该动态buffer的大小和/或填充到该动态buffer的初始数据内容,以及该静态buffer的大小和/或填充到该静态buffer的静态数据内容。In this embodiment, the compressed buffer configuration information is used to indicate the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer, and the size of the static buffer and/or the static data filled into the static buffer content.
可选的,所述初始数据内容可以为空,或者为预配置的数据字典。所述静态数据内容可以为预配置的数据字典。Optionally, the initial data content may be empty, or may be a pre-configured data dictionary. The static data content may be a preconfigured data dictionary.
可选的,所述压缩buffer配置信息中可以包含该初始数据内容,或者包含指示该初始数据内容的指示信息。所述压缩buffer配置信息中可以包含该静态数据内容,或者包含指示该静态数据内容的指示信息。Optionally, the compressed buffer configuration information may include the initial data content, or include indication information indicating the initial data content. The compressed buffer configuration information may include the static data content, or include indication information indicating the static data content.
类似的,所述压缩buffer配置信息中可以包含该动态buffer的大小,或者包含指示该动态buffer的大小的指示信息。所述压缩buffer配置信息可以包含该静态buffer的大小,或者包含指示该静态buffer的大小的指示信息。Similarly, the compressed buffer configuration information may include the size of the dynamic buffer, or include indication information indicating the size of the dynamic buffer. The compressed buffer configuration information may include the size of the static buffer, or include indication information indicating the size of the static buffer.
另外,所述压缩buffer配置信息还可以通过大小比例的方式指示动态buffer的大小和静态buffer的大小,具体指示方式本申请实施例不作限定。例如,压缩buffer配置信息指示总buffer大小,以及动态buffer占总buffer的比例和/或静态buffer占总buffer的大小比例。又例如,压缩buffer配置信息指示总buffer大小,以及动态buffer和静态buffer之间的大小比例。再例如,压缩buffer配置信息指示一种buffer类型的buffer的大小,以及动态buffer和静态buffer之间的大小比例。In addition, the compressed buffer configuration information may also indicate the size of the dynamic buffer and the size of the static buffer in a size ratio manner, and the specific indication manner is not limited in this embodiment of the present application. For example, the compressed buffer configuration information indicates the total buffer size, and the proportion of the dynamic buffer to the total buffer and/or the proportion of the static buffer to the total buffer. For another example, the compressed buffer configuration information indicates the total buffer size and the size ratio between the dynamic buffer and the static buffer. For another example, the compressed buffer configuration information indicates the size of a buffer type, and the size ratio between the dynamic buffer and the static buffer.
解压配置信息:Unzip configuration information:
解压配置信息中的解压方式指示信息指示的目标解压方式为基于静态buffer和动态buffer的增强解压方式;所述解压buffer配置信息配置的目标解压buffer包含静态buffer和动态buffer。The target decompression mode indicated by the decompression mode indication information in the decompression configuration information is an enhanced decompression mode based on static buffer and dynamic buffer; the target decompression buffer configured by the decompression buffer configuration information includes static buffer and dynamic buffer.
在本实施方式中,所述解压buffer配置信息用于指示该动态buffer的大小和/或填充到该动态buffer的初始数据内容,以及该静态buffer的大小和/或填充到该静态buffer的静态数据内容。In this embodiment, the decompression buffer configuration information is used to indicate the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer, and the size of the static buffer and/or the static data filled into the static buffer content.
与压缩buffer配置信息类似的,所述解压buffer配置信息中可以包含该初始数据内容,或者包含指示该初始数据内容的指示信息;所述解压buffer配置信息中可以包含该静态数据内容,或者包含指示该静态数据内容的指示信息;所述解压buffer配置信息中可以包含该动态buffer的大小,或者包含指示该动态buffer的大小的指示信息;所述解压buffer配 置信息可以包含该静态buffer的大小,或者包含指示该静态buffer的大小的指示信息。Similar to the compressed buffer configuration information, the decompressed buffer configuration information may include the initial data content, or include indication information indicating the initial data content; the decompressed buffer configuration information may include the static data content, or include an indication Indication information of the static data content; the decompression buffer configuration information may include the size of the dynamic buffer, or include indication information indicating the size of the dynamic buffer; the decompression buffer configuration information may include the size of the static buffer, or Contains indication information indicating the size of the static buffer.
需要说明的是,为了保证目标压缩buffer和目标解压buffer保持完全一致,所述压缩buffer配置信息所指示的动态buffer的大小与所述解压buffer配置信息所指示的动态buffer的大小相同;所述压缩buffer配置信息所指示的动态buffer的初始数据内容与所述解压buffer配置信息所指示的动态buffer的初始内容相同;所述压缩buffer配置信息所指示的静态buffer的大小与所述解压buffer配置信息所指示的静态buffer的大小相同;所述压缩buffer配置信息所指示的静态buffer的静态数据内容与所述解压buffer配置信息所指示的静态buffer的静态内容相同。It should be noted that, in order to ensure that the target compression buffer is completely consistent with the target decompression buffer, the size of the dynamic buffer indicated by the compression buffer configuration information is the same as the size of the dynamic buffer indicated by the decompression buffer configuration information; The initial data content of the dynamic buffer indicated by the buffer configuration information is the same as the initial content of the dynamic buffer indicated by the decompressed buffer configuration information; the size of the static buffer indicated by the compressed buffer configuration information is the same as that indicated by the decompressed buffer configuration information The sizes of the indicated static buffers are the same; the static data content of the static buffer indicated by the compressed buffer configuration information is the same as the static content of the static buffer indicated by the decompressed buffer configuration information.
应了解,在以上三种实施方式中,所述压缩配置信息和所述解压配置信息还可以指示其他与压缩/解压相关的其他信息。It should be understood that, in the above three implementation manners, the compression configuration information and the decompression configuration information may also indicate other information related to compression/decompression.
例如,在第一通信设备和第二通信设备之间能够建立多个无线承载(或无线链路、无线连接、传输信道等)进行数据包传输的情况下,所述压缩配置信息还可以指示支持压缩处理的目标无线承载(即第一通信设备对通过该目标无线承载发送的数据包进行压缩处理);同理,所述解压配置信息还可以指示支持解压处理的目标无线承载(即第二通信设备对通过该目标无线承载接收的数据包进行解压处理)。For example, in the case that multiple wireless bearers (or wireless links, wireless connections, transmission channels, etc.) can be established between the first communication device and the second communication device for data packet transmission, the compressed configuration information may also indicate support The target radio bearer for compression processing (that is, the first communication device compresses the data packets sent through the target radio bearer); similarly, the decompression configuration information may also indicate the target radio bearer that supports decompression processing (that is, the second communication device) The device decompresses the data packet received through the target radio bearer).
还需要说明的是,在以上三种实施方式中,当所述压缩配置信息是根据所述第一通信设备的压缩能力信息配置时,所述压缩配置信息中配置的压缩方式和配置的压缩buffer需要符合该压缩能力信息。例如:所述压缩配置信息中的压缩方式指示信息所指示的目标压缩方式属于第一通信设备支持的压缩方式;所述压缩buffer配置信息指示的目标压缩buffer中所有buffer类型的buffer的总大小小于或等于第一通信设备支持配置压缩buffer的总大小阈值;所述压缩buffer配置信息指示的目标压缩buffer中每种buffer类型的大小均小于或等于第一通信设备支持该buffer类型的buffer的大小阈值;第一通信设备向第二通信设备进行数据传输的方法符合第一通信设备能够进行压缩处理的数据传输方向;该压缩配置信息所指示的目标无线承载属于第一通信设备支持配置压缩处理的无线承载。It should also be noted that, in the above three implementation manners, when the compression configuration information is configured according to the compression capability information of the first communication device, the compression method configured in the compression configuration information and the configured compression buffer The compression capability information needs to be complied with. For example: the target compression mode indicated by the compression mode indication information in the compression configuration information belongs to the compression mode supported by the first communication device; the total size of the buffers of all buffer types in the target compression buffer indicated by the compression buffer configuration information is less than or equal to the total size threshold of the compression buffer supported by the first communication device; the size of each buffer type in the target compression buffer indicated by the compression buffer configuration information is less than or equal to the size threshold of the buffer of the buffer type supported by the first communication device ; The method for the first communication device to transmit data to the second communication device conforms to the data transmission direction that the first communication device can perform compression processing; bearer.
类似的,在以上三种实施方式中,当所述解压配置信息是根据所述第二通信设备的解压能力信息配置时,所述解压配置信息中配置的解压方式和配置的解压buffer需要符合该解压能力信息。例如:所述解压配置信息中的解压方式指示信息所指示的目标解压方式属于第二通信设备支持的解压方式;所述解压buffer配置信息指示的目标解压buffer中所有buffer类型的buffer的总大小小于或等于第二通信设备支持配置解压buffer的总大小阈值;所述解压buffer配置信息指示的目标解压buffer中每种buffer类型的大小均小于或等于第二通信设备支持该buffer类型的buffer的大小阈值;第一通信设备向第二通信设备进行数据传输的方法符合第二通信设备能够进行解压处理的数据传输方向;该解压配置信息所指示的目标无线承载属于第二通信设备支持配置解压处理的无线承载。Similarly, in the above three implementation manners, when the decompression configuration information is configured according to the decompression capability information of the second communication device, the decompression mode configured in the decompression configuration information and the configured decompression buffer need to conform to the Decompression capability information. For example: the target decompression mode indicated by the decompression mode indication information in the decompression configuration information belongs to the decompression mode supported by the second communication device; the total size of all buffer types in the target decompression buffer indicated by the decompression buffer configuration information is less than or equal to the total size threshold of the decompression buffer supported by the second communication device; the size of each buffer type in the target decompression buffer indicated by the decompression buffer configuration information is less than or equal to the size threshold of the buffer of the buffer type supported by the second communication device ; The method for the first communication device to transmit data to the second communication device conforms to the data transmission direction that the second communication device can perform decompression processing; the target radio bearer indicated by the decompression configuration information belongs to the second communication device that supports configuration decompression bearer.
综上,以上步骤可以保证第一通信设备可以配置目标压缩buffer,第二通信设备配置目标解压buffer,并保证目标压缩buffer和目标解压buffer完全一致,从而为之后第一通信设备和第二通信设备之间进行数据包的传输做好准备。In summary, the above steps can ensure that the first communication device can configure the target compression buffer, and the second communication device can configure the target decompression buffer, and ensure that the target compression buffer and the target decompression buffer are completely consistent, so that the first communication device and the second communication device can Prepare for the transmission of data packets between them.
进一步的,通信系统可以将在数据包中高频出现的数据内容配置到静态buffer中,从而可以提高数据包的数据压缩率。Furthermore, the communication system can configure the data content that appears frequently in the data packet into the static buffer, so that the data compression rate of the data packet can be improved.
S605-S607为传输数据包的过程。S605-S607 are the process of transmitting data packets.
S605:所述第一通信设备在获取第一数据包后,采用所述目标压缩方式根据所述目标压缩buffer对所述第一数据包进行压缩,生成第二数据包。S605: After acquiring the first data packet, the first communication device compresses the first data packet according to the target compression buffer in the target compression manner to generate a second data packet.
可选的,所述第一通信设备可以但不限于通过以下方式获取所述第一数据包:Optionally, the first communication device may obtain, but is not limited to, the first data packet in the following manner:
方式一:接收来自其他通信设备的所述第一数据包;Mode 1: receiving the first data packet from another communication device;
方式二:生成所述第一数据包;Mode 2: generating the first data packet;
方式三:自上层实体接收到所述第一数据包。例如,当由第一通信设备中PDCP实体执行压缩操作时,所述第一数据包可以为SDAP实体发送给PDCP实体的。Manner 3: The first data packet is received from the upper layer entity. For example, when the compression operation is performed by the PDCP entity in the first communication device, the first data packet may be sent by the SDAP entity to the PDCP entity.
S606:所述第一通信设备向所述第二通信设备发送所述第二数据包。S606: The first communication device sends the second data packet to the second communication device.
需要说明的是,当所述压缩配置信息还可以指示支持压缩处理的目标无线承载时,所述第一数据包为所述目标无线承载所对应的业务的业务数据包,且所述第二通信设备可以通过所述目标无线承载向所述第二通信设备发送所述第二数据包。It should be noted that when the compression configuration information can also indicate a target radio bearer that supports compression processing, the first data packet is a service data packet of a service corresponding to the target radio bearer, and the second communication The device may send the second data packet to the second communications device through the target radio bearer.
S607:所述第二通信设备在接收来自所述第一通信设备的所述第二数据包后,采用所述目标解压方式根据所述目标解压buffer对所述第二数据包进行解压,生成第一数据包。S607: After receiving the second data packet from the first communication device, the second communication device uses the target decompression method to decompress the second data packet according to the target decompression buffer to generate a second data packet. a packet.
在本申请实施例中,所述第一通信设备对所述第一数据包进行压缩的过程可以参考前述几种压缩方式中流程,所述第二通信设备对所述第二数据包进行解压的过程也可以参考前述几种解压方式中的流程,此处不再展开描述。In this embodiment of the present application, the process of compressing the first data packet by the first communication device can refer to the procedures in the aforementioned several compression methods, and the process of decompressing the second data packet by the second communication device The process can also refer to the processes in the aforementioned several decompression methods, and will not be described here.
需要注意的是,当第一通信设备采用基于静态buffer和动态buffer的增强压缩方式对第一数据包进行压缩,第二通信设备采用基于静态buffer和动态buffer的增强解压方式对第二数据包进行解压的情况下,由于涉及多种buffer类型,因此,可以预先设置数据包中每个组成部分使用哪种buffer类型进行压缩/解压。基于此,本申请实施例还提供了以下实施方式:It should be noted that when the first communication device uses the enhanced compression method based on static buffer and dynamic buffer to compress the first data packet, the second communication device uses the enhanced decompression method based on static buffer and dynamic buffer to compress the second data packet. In the case of decompression, since multiple buffer types are involved, it is possible to pre-set which buffer type to use for each component in the data packet for compression/decompression. Based on this, the embodiment of the present application also provides the following implementation modes:
第一种实施方式:为了指示数据包中每个组成部分应使用哪种buffer类型进行压缩,所述压缩配置信息中还可以包含第一指示信息。所述第一指示信息指示数据包中至少一个组成部分对应的buffer类型;其中,任一个组成部分对应的buffer类型用于指示所述第一通信设备使用所述目标压缩buffer中属于该buffer类型的buffer对该组成部分进行压缩;任一个组成部分为以下任一项:(整个)数据包、数据包中的第一数据段、数据包中的第二数据段、数据包中的第一域、数据包中的第二域、数据包中第二域的第一数据段、数据包中第二域的第二数据段。First implementation manner: In order to indicate which buffer type each component in the data packet should use for compression, the compression configuration information may further include first indication information. The first indication information indicates the buffer type corresponding to at least one component in the data packet; wherein, the buffer type corresponding to any one component is used to instruct the first communication device to use the target compression buffer that belongs to the buffer type The buffer compresses the component; any component is any of the following: (whole) data packet, first data segment in data packet, second data segment in data packet, first field in data packet, The second field in the data packet, the first data segment in the second field in the data packet, and the second data segment in the second field in the data packet.
这样,所述第一通信设备在执行S605对第一数据包进行压缩时,可以根据所述第一指示信息,确定在对每个组成部分压缩时应使用的buffer类型,从而可以使用该buffer类型对该组成部分进行压缩。In this way, when performing S605 to compress the first data packet, the first communication device can determine the buffer type that should be used when compressing each component according to the first instruction information, so that the buffer type can be used Compress the component.
第二种实施方式:与第一种实施方式类似的,为了指示数据包中每个组成部分应使用哪种buffer类型进行解压,所述解压配置信息还可以包含第二指示信息。所述第二指示信息用于指示数据包中至少一个组成部分对应的buffer类型;其中,任一个组成部分对应的buffer类型用于指示所述第二通信设备使用所述目标解压buffer中属于该buffer类型的buffer对该组成部分进行解压;任一个组成部分为以下任一项:(整个)数据包、数据包中的第一数据段、数据包中的第二数据段、数据包中的第一域、数据包中的第二域、数据包中第二域的第一数据段、数据包中第二域的第二数据段。The second implementation manner: similar to the first implementation manner, in order to indicate which buffer type each component in the data packet should use for decompression, the decompression configuration information may further include second indication information. The second indication information is used to indicate the buffer type corresponding to at least one component in the data packet; wherein, the buffer type corresponding to any one component is used to instruct the second communication device to use the buffer belonging to the target decompression buffer Buffer of type decompresses the component; any component is any of the following: (entire) packet, first segment in packet, second segment in packet, first segment in packet field, the second field in the data packet, the first data segment of the second field in the data packet, and the second data segment of the second field in the data packet.
这样,所述第二通信设备在执行S607对第二数据包进行解压时,可以根据所述第二指示信息,确定在对每个组成部分解压时应使用的buffer类型,从而可以使用该buffer类型对该组成部分进行解压。In this way, when the second communication device executes S607 to decompress the second data packet, it can determine the buffer type that should be used when decompressing each component according to the second instruction information, so that the buffer type can be used Unzip the component.
第三种实施方式:数据包中每个组成部分应使用哪种buffer类型进行压缩/解压为所述第一通信设备和所述第二通信设备预先协商好的,或者为协议规定的,或者为用户配置的,本申请对此不作限定。The third implementation mode: which buffer type should be used for each component in the data packet for compression/decompression is pre-negotiated between the first communication device and the second communication device, or is stipulated by the protocol, or is It is configured by the user, which is not limited in this application.
第四种实施方式:当第一通信设备通过以上第一种、第三种实施方式,或者其他方式,又或者自行确定数据包中每个组成部分对应的buffer类型之后,可以向第二通信设备发送第三指示信息,所述第三指示信息用于指示第一通信设备向第二通信设备发送的数据包(包含第二数据包)中至少一个组成部分对应的buffer类型;其中,任一个组成部分对应的buffer类型用于指示所述第二通信设备使用所述目标解压buffer中属于该buffer类型的buffer对该组成部分进行解压;任一个组成部分为以下任一项:(整个)数据包、数据包中的第一数据段、数据包中的第二数据段、数据包中的第一域、数据包中的第二域,数据包中第二域的第一数据段、数据包中第二域的第二数据段。The fourth implementation mode: after the first communication device passes the above first and third implementation modes, or other methods, or determines the buffer type corresponding to each component in the data packet by itself, it can send the second communication device Sending third indication information, the third indication information is used to indicate the buffer type corresponding to at least one component in the data packet (including the second data packet) sent by the first communication device to the second communication device; wherein, any one of the components The buffer type corresponding to the part is used to instruct the second communication device to use the buffer belonging to the buffer type in the target decompression buffer to decompress the component; any component is any of the following: (whole) data packet, The first data segment in the data packet, the second data segment in the data packet, the first field in the data packet, the second field in the data packet, the first data segment in the second field in the data packet, the second field in the data packet The second data segment of the second field.
例如,在前述第三种压缩/解压方式中的第4种和第6种实现方式中,第一通信设备自行确定至少一个组成部分对应的buffer类型后,可以通过本实施方式,将解压策略(即每个组成部分对应哪种buffer类型进行解压)通过第三指示信息通知给第二通信设备。For example, in the fourth and sixth implementations of the aforementioned third compression/decompression method, after the first communication device determines the buffer type corresponding to at least one component by itself, the decompression strategy ( That is, which buffer type corresponds to each component to be decompressed) is notified to the second communication device through the third indication information.
可选的,所述第一通信设备可以在发送数据包之前向所述第二通信设备发送所述第三指示信息,还可以在采用该对应方式对数据包进行压缩后,还可以在压缩后的数据包中携带该第三指示信息。例如,所述一通信设备可以在第二数据包中携带该第三指示信息。Optionally, the first communication device may send the third indication information to the second communication device before sending the data packet, or after compressing the data packet in the corresponding manner, or after compressing The third indication information is carried in the data packet. For example, the communication device may carry the third indication information in the second data packet.
当第一通信设备在每个数据包中携带第三指示信息时,所述第二通信设备在接收到每个数据包时,可以根据该数据包中包含的第三指示信息,对该数据包中的每个组成部分使用对应的buffer类型进行解压。通过这种方式,第一通信设备可以以数据包为粒度动态调整针对每个数据包的压缩策略(即每个组成部分对应哪种buffer类型进行压缩),并且可以将对应的解压策略通知给第二通信设备,从而可以保证第二通信设备能够成功对接收到的数据包进行解压。因此,该实施方式可以进一步实现数据压缩的灵活性。When the first communication device carries the third indication information in each data packet, when the second communication device receives each data packet, it may, according to the third indication information contained in the data packet, Each component in is decompressed using the corresponding buffer type. In this way, the first communication device can dynamically adjust the compression strategy for each data packet at the granularity of the data packet (that is, which buffer type is compressed for each component), and can notify the corresponding decompression strategy to the first The second communication device, so as to ensure that the second communication device can successfully decompress the received data packet. Therefore, this embodiment can further realize the flexibility of data compression.
在一种实施方式中,压缩buffer配置信息或解压buffer配置信息可以指示针对动态buffer类型或静态buffer类型配置多个buffer。例如,第一通信设备可以针对某个组成部分进行压缩时,灵活地在属于该组成部分对应的buffer类型的多个buffer中选择一个buffer进行压缩;并且可以通知第二通信设备该组成部分具体采用哪个buffer压缩的(应使用哪个buffer进行解压)。In an implementation manner, the compressed buffer configuration information or the decompressed buffer configuration information may indicate that multiple buffers are configured for a dynamic buffer type or a static buffer type. For example, when compressing a certain component, the first communication device may flexibly select a buffer from multiple buffers of the buffer type corresponding to the component for compression; and may notify the second communication device that the component specifically adopts Which buffer is compressed (which buffer should be used for decompression).
综上,以上步骤可以实现第一通信设备和第二通信设备之间传输的数据包的压缩和解压,保证数据包的传输效率。To sum up, the above steps can realize the compression and decompression of the data packets transmitted between the first communication device and the second communication device, so as to ensure the transmission efficiency of the data packets.
S608-S611为目标压缩buffer和目标解压buffer同步更新的过程。S608-S611 are processes of synchronously updating the target compression buffer and the target decompression buffer.
由于业务的变化,数据包的数据特征也会发生变化,之前配置的静态buffer的大小和静态数据内容,动态buffer的大小可能不再适应数据特征已经发生变化的数据包。如果目标压缩buffer和目标解压buffer不更新,很可能会降低数据包的压缩率,进而影响数据包的传输效率和资源利用率。综上,本申请实施例可以通过以下S608-S611,适应性同步调整目标压缩buffer和目标解压buffer,从而保证数据包的压缩率、数据包的传输效率和资 源利用率。Due to business changes, the data characteristics of the data packets will also change. The previously configured static buffer size and static data content, and the dynamic buffer size may no longer be suitable for data packets whose data characteristics have changed. If the target compression buffer and the target decompression buffer are not updated, the compression rate of the data packet may be reduced, thereby affecting the transmission efficiency and resource utilization of the data packet. To sum up, the embodiment of the present application can adaptively and synchronously adjust the target compression buffer and the target decompression buffer through the following S608-S611, so as to ensure the compression rate of the data packet, the transmission efficiency of the data packet, and the resource utilization rate.
S608:所述第一通信设备更新目标压缩buffer。具体的,S608具体可以包括以下至少一项或任意组合:调整所述目标压缩buffer的大小,和/或,更新所述目标压缩buffer存储的数据内容。S608: The first communication device updates the target compression buffer. Specifically, S608 may specifically include at least one or any combination of the following: adjusting the size of the target compression buffer, and/or updating data content stored in the target compression buffer.
S609:所述第二通信设备更新目标解压buffer。与S608类似的,S609具体也可以包括以下至少一项或任意组合:调整所述目标解压buffer的大小,和/或,更新所述目标解压buffer存储的数据内容。S609: The second communication device updates the target decompression buffer. Similar to S608, S609 may specifically include at least one or any combination of the following: adjusting the size of the target decompression buffer, and/or updating data content stored in the target decompression buffer.
应注意,本申请不限定S608和S609的执行顺序。It should be noted that the present application does not limit the execution order of S608 and S609.
与配置所述目标压缩buffer和所述目标解压buffer类似的,为了保证目标压缩buffer和目标解压buffer保持完全一致,因此,在通信系统中一般由同一设备触发更新。可选的,在本申请实施例中,所述目标压缩buffer和所述目标解压buffer可以由第一通信设备、第二通信设备,或者第三通信设备触发配置的。Similar to configuring the target compression buffer and the target decompression buffer, in order to ensure that the target compression buffer and the target decompression buffer are completely consistent, therefore, in the communication system, the update is generally triggered by the same device. Optionally, in this embodiment of the present application, the target compression buffer and the target decompression buffer may be triggered and configured by the first communication device, the second communication device, or the third communication device.
可选的,触发更新目标压缩buffer和目标解压buffer的设备与配置目标压缩buffer和目标解压buffer的设备可以为同一设备,也可以为不同的设备,本申请对此不作限定。Optionally, the device that triggers to update the target compression buffer and target decompression buffer and the device that configures the target compression buffer and target decompression buffer may be the same device or different devices, which is not limited in this application.
基于此,第一通信设备和第二通信设备可以但不限于通过以下几种实施方式,更新目标压缩buffer和目标解压buffer。Based on this, the first communication device and the second communication device may, but are not limited to, update the target compression buffer and the target decompression buffer through the following several implementation manners.
第一种实施方式:第二通信设备触发更新目标解压buffer。A first implementation manner: the second communication device triggers to update the target decompression buffer.
在本实施方式,第二通信设备可以根据数据压缩需求、数据特征、用户配置等,更新目标解压buffer。所述目标解压buffer的更新操作可以包括:调整所述目标解压buffer的大小,和/或,更新所述目标解压buffer存储的数据内容。In this embodiment, the second communication device may update the target decompression buffer according to data compression requirements, data characteristics, user configuration, and the like. The update operation of the target decompression buffer may include: adjusting the size of the target decompression buffer, and/or updating the data content stored in the target decompression buffer.
之后,为了保证目标压缩buffer和目标解压buffer保持完全一致,所述第二通信设备可以根据目标解压buffer的更新操作,生成第一buffer更新信息。然后所述第二通信设备通过S608a向第一通信设备发送所述第一buffer更新信息,即第一通信设备可以通过S608a接收来自所述第二通信设备的第一buffer更新信息。这样,在执行S608时,所述第一通信设备可以根据第一buffer更新信息,更新目标压缩buffer。Afterwards, in order to ensure that the target compression buffer is completely consistent with the target decompression buffer, the second communication device may generate first buffer update information according to an update operation of the target decompression buffer. Then the second communication device sends the first buffer update information to the first communication device through S608a, that is, the first communication device can receive the first buffer update information from the second communication device through S608a. In this way, when executing S608, the first communication device may update the target compression buffer according to the first buffer update information.
其中,所述第一buffer更新信息用于指示所述第一通信设备调整所述目标压缩buffer的大小,和/或,更新所述目标压缩buffer存储的数据内容。应注意,所述第一buffer更新信息所指示的更新操作应使更新后的目标压缩buffer与更新后的目标解压buffer一致。Wherein, the first buffer update information is used to instruct the first communication device to adjust the size of the target compression buffer, and/or update the data content stored in the target compression buffer. It should be noted that the update operation indicated by the first buffer update information should make the updated target compression buffer consistent with the updated target decompression buffer.
第二种实施方式:第一通信设备触发更新压缩buffer。A second implementation manner: the first communication device triggers to update the compression buffer.
在本实施方式中,第一通信设备可以根据数据压缩需求、数据特征、用户配置等,更新目标压缩buffer。所述目标压缩buffer的更新操作可以包括:调整所述目标压缩buffer的大小,和/或,更新所述目标压缩buffer存储的数据内容。In this embodiment, the first communication device may update the target compression buffer according to data compression requirements, data characteristics, user configuration, and the like. The update operation of the target compression buffer may include: adjusting the size of the target compression buffer, and/or updating the data content stored in the target compression buffer.
之后,为了保证目标压缩buffer和目标解压buffer保持完全一致,所述第一通信设备可以根据目标压缩buffer的更新动作,生成第二buffer更新信息。然后所述第一通信设备通过S609a向第二通信设备发送所述第二buffer更新信息,即第二通信设备可以通过S609a接收来自所述第一通信设备的第二buffer更新信息。这样,在执行S609时,所述第二通信设备可以根据第二buffer更新信息,更新目标解压buffer。Afterwards, in order to ensure that the target compressed buffer is completely consistent with the target decompressed buffer, the first communication device may generate second buffer update information according to an update action of the target compressed buffer. Then the first communication device sends the second buffer update information to the second communication device through S609a, that is, the second communication device can receive the second buffer update information from the first communication device through S609a. In this way, when executing S609, the second communication device may update the target decompression buffer according to the second buffer update information.
其中,所述第二buffer更新信息用于指示所述第二通信设备调整所述目标解压buffer的大小,和/或,更新所述目标解压buffer存储的数据内容。应注意,所述第二buffer更新 信息所指示的更新操作应使更新后的目标解压buffer与更新后的目标压缩buffer一致。Wherein, the second buffer update information is used to instruct the second communication device to adjust the size of the target decompression buffer, and/or update the data content stored in the target decompression buffer. It should be noted that the update operation indicated by the second buffer update information should make the updated target decompression buffer consistent with the updated target compression buffer.
第三种实施方式:第三通信设备触发更新压缩buffer。A third implementation manner: the third communication device triggers to update the compression buffer.
在本实施方式中,第三通信设备可以根据数据压缩需求、数据特征、用户配置等,触发更新目标解压buffer和/或目标压缩buffer,即生成第一缓存更新信息和/或第二缓存更新信息。然后,第三通信设备通过S608a向第一通信设备发送第一缓存更新信息,和/或,通过S609a向第二通信设备发送第二缓存更新信息。In this embodiment, the third communication device may trigger updating of the target decompression buffer and/or target compression buffer according to data compression requirements, data characteristics, user configuration, etc., that is, generate first cache update information and/or second cache update information . Then, the third communication device sends the first cache update information to the first communication device in S608a, and/or sends the second cache update information to the second communication device in S609a.
其中,所述第一buffer更新信息用于指示所述第一通信设备调整所述目标压缩buffer的大小,和/或,更新所述目标压缩buffer存储的数据内容。所述第二buffer更新信息用于指示所述第二通信设备调整所述目标解压buffer的大小,和/或,更新所述目标解压buffer存储的数据内容。应注意,所述第一buffer更新信息所指示的更新操作应与所述第二buffer更新信息所指示的更新操作完全一致,才能使更新后的目标解压buffer与更新后的目标压缩buffer一致。Wherein, the first buffer update information is used to instruct the first communication device to adjust the size of the target compression buffer, and/or update the data content stored in the target compression buffer. The second buffer update information is used to instruct the second communication device to adjust the size of the target decompression buffer, and/or update the data content stored in the target decompression buffer. It should be noted that the update operation indicated by the first buffer update information should be completely consistent with the update operation indicated by the second buffer update information, so that the updated target decompressed buffer is consistent with the updated target compressed buffer.
可选的,当第三通信设备仅向第一通信设备发送第一缓存更新信息时,第一通信设备在接收到第一缓存更新信息后,还可以根据第一缓存更新信息所指示的更新操作,生成第二缓存更新信息,并通过S609a向第二通信设备发送第二缓存更新信息。Optionally, when the third communication device only sends the first cache update information to the first communication device, after receiving the first cache update information, the first communication device may also operate according to the update operation indicated by the first cache update information , generating second cache update information, and sending the second cache update information to the second communication device in S609a.
可选的,当第三通信设备仅向第二通信设备发送第二缓存更新信息时,第二通信设备在接收到第二缓存更新信息后,还可以根据第二缓存更新信息所指示的更新操作,生成第一缓存更新信息,并通过S608a向第一通信设备发送第一缓存更新信息。Optionally, when the third communication device only sends the second cache update information to the second communication device, after receiving the second cache update information, the second communication device may also operate according to the update operation indicated by the second cache update information , generating first cache update information, and sending the first cache update information to the first communication device in S608a.
第一通信设备可以通过S608a接收来自所述第三通信设备或第二通信设备的第一buffer更新信息。这样,在执行S608时,所述第一通信设备可以根据第一buffer更新信息,更新目标压缩buffer。The first communication device may receive the first buffer update information from the third communication device or the second communication device through S608a. In this way, when executing S608, the first communication device may update the target compression buffer according to the first buffer update information.
第二通信设备可以通过S609a接收来自所述第三通信设备或第一通信设备的第二buffer更新信息。这样,在执行S609时,所述第二通信设备可以根据第二buffer更新信息,更新目标解压buffer。The second communication device may receive second buffer update information from the third communication device or the first communication device in S609a. In this way, when executing S609, the second communication device may update the target decompression buffer according to the second buffer update information.
第四种实施方式:第四通信设备触发更新压缩buffer。本实施方式与第三种实施方式相同,具体过程可以参考第三种实施方式中的描述。不同的是,第四通信设备可以为除第一通信设备、第二通信设备、第三通信设备以外的其他通信设备,本申请对此不作限定。A fourth implementation manner: the fourth communication device triggers to update the compression buffer. This implementation manner is the same as the third implementation manner, and for a specific process, reference may be made to the description in the third implementation manner. The difference is that the fourth communication device may be other communication devices except the first communication device, the second communication device, and the third communication device, which is not limited in this application.
在以上几种实施方式中,当第一通信设备是根据接收的其他通信设备(例如,第二通信设备、第三通信设备或第四通信设备)的第一buffer更新信息更新目标压缩buffer的情况下,在成功更新目标压缩buffer之后,第一通信设备还可以通过S608b向该其他通信设备发送第一buffer更新确认消息,以通知该其他通信设备目标压缩buffer已成功更新。In the above several implementation manners, when the first communication device updates the target compression buffer according to the received first buffer update information of other communication devices (for example, the second communication device, the third communication device or the fourth communication device) Next, after successfully updating the target compressed buffer, the first communication device may also send a first buffer update confirmation message to the other communication device through S608b, so as to notify the other communication device that the target compressed buffer has been successfully updated.
类似的,当第二通信设备是根据接收的其他通信设备(第一通信设备、第三通信设备或第四通信设备)的第二buffer更新信息更新目标解压buffer的情况下,在成功更新目标解压buffer之后,第二通信设备还可以通过S609b向该其他通信设备发送第二buffer更新确认消息,以通知该其他通信设备目标解压buffer已成功更新。Similarly, when the second communication device updates the target decompression buffer according to the received second buffer update information of other communication devices (the first communication device, the third communication device or the fourth communication device), when the target decompression buffer is successfully updated After buffering, the second communication device may also send a second buffer update confirmation message to the other communication device through S609b, so as to notify the other communication device that the target decompression buffer has been successfully updated.
可选的,在以上几种实施方式中,所述第一buffer更新信息或所述第二buffer更新信 息可以但不限于通过以下几种实现方式指示具体的更新操作:Optionally, in the above several implementation manners, the first buffer update information or the second buffer update information may, but not limited to, indicate a specific update operation through the following implementations:
第一种实现方式:当目标压缩buffer和目标解压buffer中包含静态buffer时,所述第一buffer更新信息或所述第二buffer更新信息中可以用于指示更新到该静态buffer的静态数据内容。A first implementation manner: when the target compression buffer and the target decompression buffer contain a static buffer, the first buffer update information or the second buffer update information may be used to indicate the static data content updated to the static buffer.
情况一:所述第一buffer更新信息或所述第二buffer更新信息可以指示更新到静态buffer的全部静态数据内容。此时,所述第一buffer更新信息或所述第二buffer更新信息中可以包含该静态buffer更新后的全部静态数据内容,又或者包含指示该全部静态数据内容的指示信息。Case 1: the first buffer update information or the second buffer update information may indicate all static data content updated to the static buffer. At this time, the first buffer update information or the second buffer update information may include all static data content after the static buffer is updated, or include indication information indicating the entire static data content.
这样,第一通信设备可以根据接收到第一buffer更新信息指示的全部静态数据内容,更新目标压缩buffer中的静态buffer。同理,第二通信设备也可以根据接收到第二buffer更新信息指示的全部静态数据内容,更新目标解压buffer中的静态buffer。In this way, the first communication device can update the static buffer in the target compressed buffer according to all the static data content indicated by the received first buffer update information. Similarly, the second communication device may also update the static buffer in the target decompression buffer according to all the static data content indicated by the received second buffer update information.
情况二:所述第一buffer更新信息或所述第二buffer更新信息可以指示更新到该静态buffer的部分静态数据内容。此时,所述第一buffer更新信息或所述第二buffer更新信息中可以包含需要更新到静态buffer的数据段,又或者包含指示需要更新到静态buffer的数据段的指示信息。Case 2: the first buffer update information or the second buffer update information may indicate the partial static data content updated to the static buffer. At this time, the first buffer update information or the second buffer update information may include the data segment that needs to be updated to the static buffer, or include indication information indicating the data segment that needs to be updated to the static buffer.
另外,所述第一buffer更新信息或所述第二buffer更新信息中还可以指示位置偏移值(offset)。该位置偏移值可以是相对于该静态buffer的起始位置或结束位置的位置偏移。具体的,所述第一buffer更新信息或所述第二buffer更新信息中可以包含该位置偏移值,或者包含指示该位置偏移值的指示信息。In addition, the first buffer update information or the second buffer update information may further indicate a position offset value (offset). The position offset value may be a position offset relative to the start position or the end position of the static buffer. Specifically, the first buffer update information or the second buffer update information may include the position offset value, or include indication information indicating the position offset value.
这样,第一通信设备可以根据接收到第一buffer更新信息指示位置偏移值和数据段,从目标压缩buffer中的静态buffer的该位置偏移值开始,将该数据段推入到该静态buffer中。同理,第二通信设备可以根据接收到第二buffer更新信息指示位置偏移值和数据段,从目标解压buffer中的静态buffer的该位置偏移值开始,将该数据段推入到该静态buffer中。In this way, the first communication device can indicate the position offset value and the data segment according to the received first buffer update information, and push the data segment into the static buffer starting from the position offset value of the static buffer in the target compression buffer middle. Similarly, the second communication device may indicate the position offset value and the data segment according to the received second buffer update information, and push the data segment into the static buffer starting from the position offset value of the static buffer in the target decompression buffer. in buffer.
示例性的,参阅图7所示,第一buffer更新信息携带了需要更新到静态buffer的目标字符串,以及该目标字符串对应的位置偏移值(offset=0)(相对于该静态buffer的起始位置的位置偏移),则第一通信设备从该静态buffer的起始位置开始的N个字符替换为该目标字符串,其中,N为该目标字符串的长度。Exemplarily, as shown in FIG. 7, the first buffer update information carries the target character string that needs to be updated to the static buffer, and the position offset value (offset=0) corresponding to the target character string (relative to the static buffer's position offset of the starting position), then the first communication device replaces the N characters starting from the starting position of the static buffer with the target character string, where N is the length of the target character string.
第二种实现方式:当目标压缩buffer和目标解压buffer中包含静态buffer时,所述第一buffer更新信息或所述第二buffer更新信息中可以用于指示调整静态buffer的大小,以及大小调整后静态buffer中的静态数据内容。The second implementation mode: when the target compression buffer and the target decompression buffer contain static buffers, the first buffer update information or the second buffer update information can be used to indicate to adjust the size of the static buffer, and after size adjustment Static data content in the static buffer.
情况一:所述第一buffer更新信息或所述第二buffer更新信息可以指示减小静态buffer的大小。此时,所述第一buffer更新信息或所述第二buffer更新信息中可以包含静态buffer的目标大小,或者包含指示该目标大小的指示信息;或者所述第一buffer更新信息或所述第二buffer更新信息中可以包含静态buffer的目标减值,或者包含指示该目标减值的指示信息。Case 1: the first buffer update information or the second buffer update information may indicate to reduce the size of the static buffer. At this time, the first buffer update information or the second buffer update information may include the target size of the static buffer, or include indication information indicating the target size; or the first buffer update information or the second buffer update information The buffer update information may include the target penalty of the static buffer, or include indication information indicating the target penalty.
可选的,第一buffer更新信息或所述第二buffer更新信息还可以指示减小静态buffer的方式,例如,从原静态buffer的起始位置或结束位置开始减小。Optionally, the first buffer update information or the second buffer update information may also indicate a way to reduce the static buffer, for example, decrease from the start position or end position of the original static buffer.
可选的,第一buffer更新信息或所述第二buffer更新信息还可以指示基于原静态buffer 中的静态数据内容确定大小调整后静态buffer中的静态数据内容的方式。例如,保留原静态buffer中的前面目标大小的静态数据内容,或者保留原静态buffer中的最后目标大小的静态数据内容。Optionally, the first buffer update information or the second buffer update information may also indicate a manner of determining the static data content in the resized static buffer based on the static data content in the original static buffer. For example, the static data content of the previous target size in the original static buffer is reserved, or the static data content of the last target size in the original static buffer is reserved.
可选的,第一buffer更新信息或第二buffer更新信息中还可以包含大小调整后静态buffer中的静态数据内容。Optionally, the first buffer update information or the second buffer update information may also include static data content in the static buffer after size adjustment.
情况二:所述第一buffer更新信息或所述第二buffer更新信息可以指示增大静态buffer的大小。此时,所述第一buffer更新信息或所述第二buffer更新信息中可以包含静态buffer的目标大小,或者包含指示该目标大小的指示信息;或者所述第一buffer更新信息或所述第二buffer更新信息中可以包含静态buffer的目标增值,或者包含指示该目标增值的指示信息。Case 2: the first buffer update information or the second buffer update information may indicate to increase the size of the static buffer. At this time, the first buffer update information or the second buffer update information may include the target size of the static buffer, or include indication information indicating the target size; or the first buffer update information or the second buffer update information The buffer update information may include the target increment of the static buffer, or include indication information indicating the target increment.
可选的,第一buffer更新信息或所述第二buffer更新信息还可以指示增大静态buffer的方式,例如,从原静态buffer的起始位置或结束位置开始增大。Optionally, the first buffer update information or the second buffer update information may also indicate a way to increase the static buffer, for example, increase from the start position or end position of the original static buffer.
可选的,第一buffer更新信息或所述第二buffer更新信息还可以指示基于原静态buffer中的静态数据内容确定大小调整后静态buffer中的静态数据内容的方式。例如,保留原静态buffer中的静态数据内容,且静态buffer中增大部分存储的静态数据内容置为全1或全0。Optionally, the first buffer update information or the second buffer update information may also indicate a manner of determining the static data content in the resized static buffer based on the static data content in the original static buffer. For example, the static data content in the original static buffer is retained, and the static data content stored in the increased part of the static buffer is set to all 1s or all 0s.
又或者,所述第一buffer更新信息或所述第二buffer更新信息还可以包含或指示静态buffer中新增buffer部分存储的静态数据内容。Alternatively, the first buffer update information or the second buffer update information may also include or indicate static data content stored in the newly added buffer in the static buffer.
再或者,第一通信设备和第二通信设备默认静态buffer中新增buffer部分存储的静态数据内容置为全1或全0。Alternatively, the first communication device and the second communication device set all 1s or all 0s to the static data stored in the newly added buffer in the static buffer by default.
示例性的,参阅图8中的(1)所示,第一buffer更新信息指示静态buffer的大小由4kBytes缩小为2kBytes,则第一通信设备可以原静态buffer中最前面2KBytes的数据内容保持为更新后静态buffer中的数据内容。又例如,参阅图8中的(2)所示,第一buffer更新信息指示静态buffer的大小由2kBytes扩大为4kBytes,则第一通信设备可以将原静态buffer中的数据内容保持为更新后的静态buffer中前2kBytes内容,更新后的静态buffer中新增buffer部分重置为全0/1值。Exemplarily, as shown in (1) in FIG. 8 , the first buffer update information indicates that the size of the static buffer is reduced from 4kBytes to 2kBytes, then the first communication device can keep the data content of the first 2KBytes in the original static buffer as an update The data content in the post-static buffer. For another example, referring to (2) shown in Figure 8, the first buffer update information indicates that the size of the static buffer is expanded from 2kBytes to 4kBytes, then the first communication device can keep the data content in the original static buffer as the updated static The content of the first 2kBytes in the buffer, the new buffer part in the updated static buffer is reset to all 0/1 values.
第三种实现方式:当目标压缩buffer和目标解压buffer中包含动态buffer时,所述第一buffer更新信息或所述第二buffer更新信息中可以用于指示调整该动态buffer的大小,以及大小调整后动态buffer中的初始数据内容,具体描述可以参考第二种实现方式中调整静态buffer的大小的描述,此处不再赘述。The third implementation mode: when the target compression buffer and the target decompression buffer contain a dynamic buffer, the first buffer update information or the second buffer update information can be used to indicate to adjust the size of the dynamic buffer, and size adjustment For the specific description of the initial data content in the post-dynamic buffer, please refer to the description of adjusting the size of the static buffer in the second implementation mode, which will not be repeated here.
另外,在更新目标压缩buffer和目标解压buffer的过程,为了解决第一通信设备压缩时使用的目标压缩buffer与第二通信设备解压时使用的目标解压buffer不一致,导致数据包无法成功解压,最终导致数据包传输失败的问题,本申请实施例还可以通过以下几种实施方式解决:In addition, in the process of updating the target compression buffer and the target decompression buffer, in order to solve the inconsistency between the target compression buffer used by the first communication device when compressing and the target decompression buffer used by the second communication device when decompressing, the data packets cannot be successfully decompressed, and eventually lead to The problem of data packet transmission failure can also be solved by the following implementation methods in the embodiment of the present application:
第一种实施方式:在更新目标压缩buffer的过程中,由触发更新的设备指示停止对数据包进行压缩。本实施方式具体包括以下步骤:The first implementation manner: in the process of updating the target compression buffer, the device triggering the update instructs to stop compressing the data packet. This embodiment specifically includes the following steps:
S608c:当第一通信设备是根据接收的其他通信设备(例如,第二通信设备、第三通信设备或第四通信设备)的第一buffer更新信息的情况下,在执行S608a之前,所述第一 通信设备还可以接收来自该其他通信设备的停止压缩指令。该停止压缩指令用于指示第一通信设备停止使用目标压缩buffer对数据包进行压缩。S608c: When the first communication device updates information according to the received first buffer of other communication devices (for example, the second communication device, the third communication device, or the fourth communication device), before performing S608a, the first communication device A communication device may also receive an instruction to stop compression from the other communication device. The stop compression instruction is used to instruct the first communication device to stop using the target compression buffer to compress the data packet.
在接收到该停止压缩指令后,所述第一通信设备根据所述停止压缩指令,可以但不限于通过以下方式停止根据所述目标压缩buffer对数据包进行压缩:After receiving the stop compression instruction, the first communication device may, but not limited to, stop compressing the data packet according to the target compression buffer in the following manner according to the stop compression instruction:
方式一:在接收到该停止压缩指令之后,若第一通信设备获取到新的数据包,那么所述第一通信设备可以缓存该数据包,待目标压缩buffer更新完成后,再使用更新后的目标压缩buffer对该数据包进行压缩。Mode 1: After receiving the stop compression command, if the first communication device acquires a new data packet, the first communication device may cache the data packet, and use the updated data packet after the update of the target compression buffer is completed. The target compression buffer compresses the packet.
方式二:在接收到该停止压缩指令之后,若第一通信设备获取到新的数据包,那么所述第一通信设备可以不对该数据包进行压缩,而是向第二通信设备发送该数据包。Mode 2: After receiving the stop compression instruction, if the first communication device acquires a new data packet, the first communication device may not compress the data packet, but send the data packet to the second communication device .
S608d:在第一通信设备根据第一缓存更新信息更新目标压缩buffer之后,(可选的,在第一通信设备向该其他通信设备发送第一缓存更新确认消息之后)所述第一通信设备接收来自该其他通信设备的启动压缩指令。该启动压缩指令用于指示所述第一通信设备开始使用更新后的所述目标压缩buffer对数据包进行压缩。S608d: After the first communication device updates the target compression buffer according to the first buffer update information, (optionally, after the first communication device sends the first buffer update confirmation message to the other communication device), the first communication device receives A start compression command from the other communication device. The start compression instruction is used to instruct the first communication device to start using the updated target compression buffer to compress data packets.
应注意,在本实施方式中,S608d为可选步骤,即所述第一通信设备还可以在更新目标压缩buffer之后,直接开始使用更新后的所述目标压缩buffer对数据包进行压缩。It should be noted that in this implementation manner, S608d is an optional step, that is, the first communication device may directly start to use the updated target compression buffer to compress the data packet after updating the target compression buffer.
在本实施方式中,第二通信设备可以在更新目标解压buffer之后,即可以使用更新后的目标解压buffer对接收的数据包进行解压。这样,第一通信设备压缩时使用的目标压缩buffer与第二通信设备解压时使用的目标解压buffer会保持一致,从而保证数据包能够成功解压。In this embodiment, after updating the target decompression buffer, the second communication device may use the updated target decompression buffer to decompress the received data packet. In this way, the target compression buffer used by the first communication device for compression will be consistent with the target decompression buffer used by the second communication device for decompression, thereby ensuring that the data packet can be successfully decompressed.
第二种实施方式:在更新目标压缩buffer的过程中,由触发更新的设备在第一buffer更新信息中指示使用更新后的所述目标压缩buffer进行压缩的数据包。本实施方式具体包括以下步骤:The second implementation manner: in the process of updating the target compression buffer, the device triggering the update indicates in the first buffer update information the data packets to be compressed using the updated target compression buffer. This embodiment specifically includes the following steps:
S608c:当第一通信设备是根据接收的其他通信设备(例如,第二通信设备、第三通信设备或第四通信设备)的第一buffer更新信息的情况下,在执行S608a之前,所述第一通信设备还可以接收来自该其他通信设备的停止压缩指令。该停止压缩指令用于指示第一通信设备停止使用目标压缩buffer对数据包进行压缩。具体过程可以参考第一种实施方式对该步骤的描述,此处不再赘述。S608c: When the first communication device updates information according to the received first buffer of other communication devices (for example, the second communication device, the third communication device, or the fourth communication device), before performing S608a, the first communication device A communication device may also receive an instruction to stop compression from the other communication device. The stop compression instruction is used to instruct the first communication device to stop using the target compression buffer to compress the data packet. For the specific process, reference may be made to the description of the step in the first implementation manner, and details are not repeated here.
可选的,S608c为可选的步骤。所述第一通信设备还可以在接收到第一buffer更新信息后,主动停止使用目标压缩buffer对数据包进行压缩。Optionally, S608c is an optional step. The first communication device may also actively stop using the target compression buffer to compress the data packet after receiving the first buffer update information.
另外,在所述第一buffer更新信息中还可以包含第四指示信息。所述第四指示信息用于指示使用更新后的所述目标压缩buffer进行压缩的数据包。所述第一通信设备可以在首次接收到该第四指示信息所指示的数据包时,更新目标压缩buffer,并使用更新后的目标压缩buffer对第四指示信息所指示的数据包进行压缩。例如,第一通信设备在后续步骤S610中使用更新后的目标压缩buffer压缩的第三数据包即为所述第四指示信息所指示的数据包。In addition, fourth indication information may also be included in the first buffer update information. The fourth indication information is used to indicate the data packets to be compressed using the updated target compression buffer. The first communication device may update the target compression buffer when receiving the data packet indicated by the fourth indication information for the first time, and use the updated target compression buffer to compress the data packet indicated by the fourth indication information. For example, the third data packet compressed by the first communication device using the updated target compression buffer in subsequent step S610 is the data packet indicated by the fourth indication information.
进一步的,在所述第二buffer更新信息中还可以包含第五指示信息。所述第五指示信息用于指示使用更新后的所述目标解压buffer进行解压的数据包。所述第二通信设备可以在首次接收到该第五指示信息所指示的数据包时,更新目标解压buffer,并使用更新后的目标解压buffer对第五指示信息所指示的数据包进行解压。例如,第二通信设备在后续步骤S611接收的第四数据包即为该第五指示信息所指示的数据包。Further, fifth indication information may also be included in the second buffer update information. The fifth indication information is used to indicate the data packet decompressed by using the updated target decompression buffer. The second communication device may update the target decompression buffer when receiving the data packet indicated by the fifth indication information for the first time, and use the updated target decompression buffer to decompress the data packet indicated by the fifth indication information. For example, the fourth data packet received by the second communication device in the subsequent step S611 is the data packet indicated by the fifth indication information.
需要说明的是,当第一buffer更新信息中包含第四指示消息,第二buffer更新信息中包含第五指示信息时,所述第四指示消息所指示的数据包与所述第五指示消息所指示的数据包承载相同的数据内容(即所述第五指示消息所指示的数据包为第四指示消息所指示的数据包压缩得到的)。It should be noted that when the first buffer update information includes the fourth indication message and the second buffer update information includes the fifth indication information, the data packet indicated by the fourth indication message is the same as that indicated by the fifth indication message. The indicated data packets carry the same data content (that is, the data packets indicated by the fifth indication message are obtained by compressing the data packets indicated by the fourth indication message).
例如,所述第四指示信息可以包含用于可以携带开始使用更新后的目标压缩buffer进行压缩的数据包的起始序列号(sequence number,SN)或起始计数(count)值。这样,当第一通信设备获取到数据包的SN或count值大于或等于第四指示信息中包含的起始SN或起始count值时,所述第一通信设备使用更新后的目标压缩buffer对该数据包进行压缩。For example, the fourth indication information may include a starting sequence number (sequence number, SN) or a starting count (count) value for carrying a data packet that starts to be compressed using the updated target compression buffer. In this way, when the first communication device acquires that the SN or count value of the data packet is greater than or equal to the initial SN or initial count value contained in the fourth indication information, the first communication device uses the updated target compression buffer pair The packets are compressed.
又例如,所述第五指示信息也可以包含开始使用更新后的目标解压buffer进行解压的数据包的起始SN或起始计数值。这样,当第二通信设备接收到的数据包的SN或count值大于或等于第五指示信息中包含的起始SN或起始count值时,所述第二通信设备使用更新后的目标解压buffer对该数据包进行解压。应注意,第四指示信息中包含的起始SN或起始count值与第五指示信息中包含的起始SN或起始count值相同。For another example, the fifth indication information may also include a starting SN or a starting count value of a data packet that starts to be decompressed using the updated target decompression buffer. In this way, when the SN or count value of the data packet received by the second communication device is greater than or equal to the initial SN or initial count value contained in the fifth indication information, the second communication device uses the updated target decompression buffer Decompress the packet. It should be noted that the start SN or the start count value included in the fourth indication information is the same as the start SN or the start count value included in the fifth indication information.
通过本实施方式,第二通信设备在更新目标解压buffer之后,即可以使用更新后的目标解压buffer对接收的数据包进行解压,或者使用更新后的目标解压buffer对接收的、第五指示信息所指示的数据包进行解压。这样,第一通信设备压缩时使用的目标压缩buffer与第二通信设备解压时使用的目标解压buffer会保持一致,从而保证数据包能够成功解压。Through this embodiment, after updating the target decompression buffer, the second communication device can use the updated target decompression buffer to decompress the received data packet, or use the updated target decompression buffer to decompress the received fifth indication information. The indicated packet is decompressed. In this way, the target compression buffer used by the first communication device for compression will be consistent with the target decompression buffer used by the second communication device for decompression, thereby ensuring that the data packet can be successfully decompressed.
第三种实施方式:在更新目标压缩buffer的过程中,第一通信设备可以指示第二通信设备使用更新后的目标解压buffer。本实施方式具体包括以下步骤:A third implementation manner: in the process of updating the target compression buffer, the first communication device may instruct the second communication device to use the updated target decompression buffer. This embodiment specifically includes the following steps:
S608c:当第一通信设备是根据接收的其他通信设备(例如,第二通信设备、第三通信设备或第四通信设备)的第一buffer更新信息的情况下,在执行S608a之前,所述第一通信设备还可以接收来自该其他通信设备的停止压缩指令。该停止压缩指令用于指示第一通信设备停止使用目标压缩buffer对数据包进行压缩。具体过程可以参考第一种实施方式对该步骤的描述,此处不再赘述。S608c: When the first communication device updates information according to the received first buffer of other communication devices (for example, the second communication device, the third communication device, or the fourth communication device), before performing S608a, the first communication device A communication device may also receive an instruction to stop compression from the other communication device. The stop compression instruction is used to instruct the first communication device to stop using the target compression buffer to compress the data packet. For the specific process, reference may be made to the description of the step in the first implementation manner, and details are not repeated here.
可选的,S608c为可选的步骤。所述第一通信设备还可以在接收到第一buffer更新信息后,主动停止使用目标压缩buffer对数据包进行压缩。Optionally, S608c is an optional step. The first communication device may also actively stop using the target compression buffer to compress the data packet after receiving the first buffer update information.
在一种实现方式中,所述第一通信设备可以自行确定更新目标压缩buffer的时间,并在更新目标压缩buffer之后,(可选的,在S608b或S608d之后)直接开始使用更新后的所述目标压缩buffer对数据包进行压缩,并向第二通信设备发送启动解压指令。所述启动解压指令用于指示第二通信设备开始使用更新后的所述目标解压buffer对接收的数据包进行解压。In an implementation manner, the first communication device may determine the time to update the target compression buffer by itself, and directly start using the updated target compression buffer (optionally after S608b or S608d) after updating the target compression buffer. The target compression buffer compresses the data packet, and sends an instruction to start decompression to the second communication device. The start decompression instruction is used to instruct the second communication device to start using the updated target decompression buffer to decompress the received data packet.
通过本实现方式,所述第二通信设备可以在更新目标解压buffer,在接收到启动解压指令之后,可以使用更新后的目标解压buffer对接收的数据包进行解压。这样,第一通信设备压缩时使用的目标压缩buffer与第二通信设备解压时使用的目标解压buffer会保持一致,从而保证数据包能够成功解压。Through this implementation, the second communication device may update the target decompression buffer, and after receiving the start decompression instruction, may use the updated target decompression buffer to decompress the received data packet. In this way, the target compression buffer used by the first communication device for compression will be consistent with the target decompression buffer used by the second communication device for decompression, thereby ensuring that the data packet can be successfully decompressed.
在另一种实现方式中,所述第一通信设备可以自行确定更新目标压缩buffer的时间,并在更新目标压缩buffer之后,(可选的,在S608b或S608d之后)直接开始使用更新后的所述目标压缩buffer对数据包进行压缩,并在压缩后的数据包中携带第六指示信息。所述第六指示信息用于指示该数据包为所述第一通信设备使用更新后的所述目标压缩buffer 进行压缩生成的,或者指示第二通信设备使用更新后的目标解压buffer对该数据包进行解压。In another implementation manner, the first communication device may determine the time to update the target compression buffer by itself, and directly start using the updated target compression buffer (optionally after S608b or S608d) after updating the target compression buffer. The target compression buffer compresses the data packet, and carries sixth indication information in the compressed data packet. The sixth indication information is used to indicate that the data packet is compressed and generated by the first communication device using the updated target compression buffer, or instruct the second communication device to use the updated target decompression buffer to decompress the data packet to decompress.
通过本实现方式,所述第二通信设备可以在更新目标解压buffer,在接收到包含第六指示信息的数据包时,可以使用更新后的目标解压buffer对接收的该数据包进行解压。这样,第一通信设备压缩时使用的目标压缩buffer与第二通信设备解压时使用的目标解压buffer会保持一致,从而保证数据包能够成功解压。Through this implementation, the second communication device may update the target decompression buffer, and when receiving the data packet containing the sixth indication information, may use the updated target decompression buffer to decompress the received data packet. In this way, the target compression buffer used by the first communication device for compression will be consistent with the target decompression buffer used by the second communication device for decompression, thereby ensuring that the data packet can be successfully decompressed.
综上,以上步骤可以保证第一通信设备的目标压缩buffer和第二通信设备的目标解压buffer同步更新,并保持一致。进一步的,第一通信设备压缩时使用的目标压缩buffer与第二通信设备解压时使用的目标解压buffer会保持一致,从而保证数据包能够成功解压。To sum up, the above steps can ensure that the target compression buffer of the first communication device and the target decompression buffer of the second communication device are updated synchronously and kept consistent. Further, the target compression buffer used by the first communication device for compression will be consistent with the target decompression buffer used by the second communication device for decompression, so as to ensure that the data packet can be successfully decompressed.
S610-S612为目标压缩buffer和目标解压buffer更新后传输数据包的过程。S610-S612 are processes of transmitting data packets after the target compression buffer and the target decompression buffer are updated.
S610:所述第一通信设备在获取第三数据包后,采用所述目标压缩方式根据更新后的所述目标压缩buffer对第三数据包进行压缩,生成第四数据包。S610: After acquiring the third data packet, the first communication device compresses the third data packet according to the updated target compression buffer by using the target compression mode to generate a fourth data packet.
S611:所述第一通信设备向所述第二通信设备发送所述第四数据包。S611: The first communication device sends the fourth data packet to the second communication device.
S612:所述第二通信设备在接收来自所述第一通信设备的所述第四数据包后,采用所述目标解压方式根据更新后的所述目标解压buffer对所述第四数据包进行解压,生成第三数据包。S612: After receiving the fourth data packet from the first communication device, the second communication device uses the target decompression method to decompress the fourth data packet according to the updated target decompression buffer , generating the third packet.
本过程的步骤,可以参考前述步骤S605-S607,以及前述几种压缩/解压方式中流程,此处不再展开描述。For the steps of this process, reference may be made to the aforementioned steps S605-S607, and the processes in the aforementioned several compression/decompression methods, and will not be described here.
还需要说明的是,在本申请实施例提供的方法中,当第一通信设备或第二通信设备的通信功能由另一个通信设备接替时,第一通信设备或第二通信设备还可以向该另一个通信设备发送自身维护的buffer的状态信息,以使该另一个通信设备能够快速地配置压缩buffer或解压buffer,从而可以避免重新配置buffer带来的信令开销和时延,能够尽快实现其通信功能,保证业务的连续性。It should also be noted that, in the method provided by the embodiment of this application, when the communication function of the first communication device or the second communication device is taken over by another communication device, the first communication device or the second communication device can also send the Another communication device sends the status information of the buffer maintained by itself, so that the other communication device can quickly configure the compression buffer or decompression buffer, thereby avoiding the signaling overhead and delay caused by reconfiguring the buffer, and realizing its Communication function to ensure business continuity.
示例性的,在主备模式中,第一通信设备作为主设备运行异常的情况下,第一通信设备可以向备设备发送压缩buffer的状态信息,所述压缩buffer的状态信息用于指示当前目标压缩buffer的大小和/或存储的数据内容。这样,备设备可以快速地根据该压缩buffer的状态信息配置目标压缩buffer,进而可以接替第一通信设备,使用配置好的目标压缩buffer对数据包进行压缩,并向第二通信设备发送压缩后的数据包。Exemplarily, in the active/standby mode, when the first communication device is operating abnormally as the master device, the first communication device may send the status information of the compressed buffer to the backup device, and the status information of the compressed buffer is used to indicate that the current target Compress the buffer size and/or stored data content. In this way, the backup device can quickly configure the target compression buffer according to the status information of the compression buffer, and then can take over from the first communication device, compress the data packet using the configured target compression buffer, and send the compressed buffer to the second communication device. data pack.
又例如,在主备模式中,第二通信设备作为主设备运行异常的情况下,第二通信设备也可以向备设备发送解压buffer的状态信息,所述解压buffer的状态信息用于指示当前目标解压buffer的大小和/或存储的数据内容。这样,备设备可以快速地根据该解压buffer的状态信息配置目标解压buffer,进而可以接替第二通信设备,使用配置好的目标解压buffer对接收的数据包进行解压。For another example, in the active/standby mode, when the second communication device is operating abnormally as the master device, the second communication device may also send status information of the decompressed buffer to the backup device, and the status information of the decompressed buffer is used to indicate that the current target The size and/or stored data content of the decompressed buffer. In this way, the backup device can quickly configure the target decompression buffer according to the state information of the decompression buffer, and then can take over from the second communication device to decompress the received data packets by using the configured target decompression buffer.
再例如,在第一通信设备为基站的情况下,当其服务的对象(终端设备)发生小区切换,终端设备切换到目标基站时,第一通信设备还需要向目标基站发送压缩buffer的状态信息,所述压缩buffer的状态信息用于指示当前目标压缩buffer的大小和/或存储的数据内容。这样,目标基站可以快速地根据该压缩buffer的状态信息配置目标压缩buffer,进而可以接替源基站(即第一通信设备),使用配置好的目标压缩buffer对数据包进行压缩,并 向第二通信设备发送压缩后的数据包。For another example, when the first communication device is a base station, when the service object (terminal device) undergoes a cell handover and the terminal device switches to the target base station, the first communication device also needs to send compressed buffer status information to the target base station , the state information of the compressed buffer is used to indicate the size of the current target compressed buffer and/or the stored data content. In this way, the target base station can quickly configure the target compression buffer according to the state information of the compression buffer, and then can take over from the source base station (that is, the first communication device), use the configured target compression buffer to compress the data packet, and communicate to the second The device sends compressed packets.
又例如,在第二通信设备为基站的情况下,当其服务的对象(终端设备)发生小区切换,终端设备切换到目标基站时,第二通信设备还需要向目标基站发送解压buffer的状态信息,所述解压buffer的状态信息用于指示当前目标解压buffer的大小和/或存储的数据内容。这样,目标基站可以快速地根据该解压buffer的状态信息配置目标解压buffer,进而可以接替源基站(即第二通信设备),使用配置好的目标解压buffer对接收的数据包进行解压。For another example, when the second communication device is a base station, when the service object (terminal device) undergoes a cell handover and the terminal device switches to the target base station, the second communication device also needs to send the state information of the decompressed buffer to the target base station , the state information of the decompression buffer is used to indicate the size of the current target decompression buffer and/or the stored data content. In this way, the target base station can quickly configure the target decompression buffer according to the status information of the decompression buffer, and then can take over from the source base station (that is, the second communication device) to decompress the received data packets using the configured target decompression buffer.
在本过程中,作为接替第一通信设备的通信设备也可以对配置的目标压缩buffer的大小和/或存储的数据内容进行更新、清空或维持,更新后可以通知对端(第二通信设备)对目标解压buffer进行更新、清空或维持。In this process, the communication device that takes over the first communication device can also update, clear or maintain the size of the configured target compression buffer and/or the stored data content, and can notify the peer end (second communication device) after the update Update, clear or maintain the target decompression buffer.
同理,作为接替第二通信设备的通信设备也可以对配置的目标解压buffer的大小和/或存储的数据内容进行更新、清空或维持,更新后可以通知对端(第一通信设备)对目标压缩buffer进行更新、清空或维持。Similarly, the communication device that takes over the second communication device can also update, clear or maintain the size of the configured target decompression buffer and/or the stored data content, and can notify the peer end (first communication device) to update the target Compress buffers for updating, clearing or maintaining.
其中,通知对端更新目标解压buffer或目标压缩buffer的过程可以参考以上步骤S608-S611中的过程。Wherein, the process of notifying the peer to update the target decompression buffer or target compression buffer may refer to the process in the above steps S608-S611.
最后,应注意的是,在本申请实施例提供的压缩配置信息、解压配置信息等一些包含多项内容的信息,这些内容可以同时发送,也可以分批次发送;另外,一个信息中包含的这些内容可以由同一个通信设备配置,也可以由不同的通信设备配置,本申请对此不作限定。Finally, it should be noted that the compression configuration information and decompression configuration information provided in the embodiment of this application contain multiple contents, and these contents can be sent at the same time or in batches; in addition, the information contained in one message These contents may be configured by the same communication device or by different communication devices, which is not limited in this application.
应了解,本申请实施例并不对本申请提供的通信方法构成限定,在本实施例的基础上增加步骤,减少步骤,或者在某个步骤的基础上进行改动的其他实施例也在本申请提供的方法的范围内。It should be understood that the embodiment of this application does not limit the communication method provided by this application. Other embodiments that add steps, reduce steps, or modify certain steps on the basis of this embodiment are also provided by this application. within the scope of the method.
综上,本申请实施例提供了一种通信方法,通过该方法通信系统可以对压缩侧使用的目标压缩方式,以及目标压缩buffer进行配置;相应的,也可以对解压侧使用的目标解压方式,以及目标解压buffer进行配置。因此,通过本方法,通信系统可以根据业务特征、数据包的数据特征,灵活地配置压缩侧的目标压缩方式、解压侧的解压方式,以及配置压缩侧的目标压缩buffer、解压侧的目标解压buffer,从而可以提高通信系统中数据压缩的灵活性,进而可以提高数据压缩效率,最终提高通信系统的数据传输效率和资源利用率。To sum up, the embodiment of the present application provides a communication method, through which the communication system can configure the target compression method used by the compression side and the target compression buffer; correspondingly, it can also configure the target decompression method used by the decompression side, And the target decompression buffer for configuration. Therefore, through this method, the communication system can flexibly configure the target compression mode on the compression side, the decompression mode on the decompression side, and configure the target compression buffer on the compression side and the target decompression buffer on the decompression side according to the service characteristics and data characteristics of the data packet. , so that the flexibility of data compression in the communication system can be improved, and then the efficiency of data compression can be improved, and finally the data transmission efficiency and resource utilization of the communication system can be improved.
基于以上图6所示的实施例,针对不同的阶段,本申请还提供了以下几种实例。其中,以下实例是5G移动通信系统中的UE和gNB为例进行说明的。在以下实例中,由gNB作为配置管理设备,负责配置压缩方式、压缩buffer等,以及负责更新buffer等。下面参考图9-12,分别对不同阶段中UE和gNB的执行步骤进行详细说明。Based on the embodiment shown in FIG. 6 above, the present application also provides the following examples for different stages. Wherein, the following examples are illustrated by taking UE and gNB in the 5G mobile communication system as examples. In the following example, the gNB is used as the configuration management device, which is responsible for configuring the compression mode, compression buffer, etc., and updating the buffer, etc. Referring to Figs. 9-12, the execution steps of UE and gNB in different stages will be described in detail below.
图9为gNB配置压缩方式、压缩buffer的过程。Figure 9 shows the process of gNB configuring compression mode and compression buffer.
S901:UE向gNB发送压缩能力信息,以通知gNB自身支持的压缩方式。S901: The UE sends compression capability information to the gNB to notify the gNB of the compression modes supported by itself.
可选的,UE可以通过UE能力消息(例如,UECapabilityInformation消息)向gNB上报压缩能力信息。Optionally, the UE may report the compression capability information to the gNB through a UE capability message (for example, UECapabilityInformation message).
所述压缩能力信息可以指示以下压缩方式中的至少一种:基于动态buffer的压缩方式、基于静态buffer的压缩方式,基于静态buffer和动态buffer的增强压缩方式(简称为增强压缩方式)。The compression capability information may indicate at least one of the following compression methods: a compression method based on a dynamic buffer, a compression method based on a static buffer, and an enhanced compression method based on a static buffer and a dynamic buffer (referred to as an enhanced compression method).
本实例以所述压缩能力信息指示UE支持增强压缩方式为例进行说明。In this example, the compression capability information indicating that the UE supports the enhanced compression mode is taken as an example for illustration.
在一种实现方式中,UE能力消息中可以增加一个扩展字段,用于指示UE支持的压缩方式。例如,UECapabilityInformation消息中包含eDataCompression字段时,或包含eDataCompression字段且为该eDataCompression字段取值为第一取值(如取值为“true”)时,表示UE支持增强压缩机制;反之,当UECapabilityInformation消息中未包含eDataCompression字段,或者包含eDataCompression字段且该eDataCompression字段取值为第二取值(如取值为“false”)时,表示UE不支持增强压缩机制。In an implementation manner, an extension field may be added in the UE capability message to indicate the compression mode supported by the UE. For example, when the UECapabilityInformation message contains the eDataCompression field, or contains the eDataCompression field and the value of the eDataCompression field is the first value (for example, the value is "true"), it means that the UE supports the enhanced compression mechanism; otherwise, when the UECapabilityInformation message contains If the eDataCompression field is not included, or if the eDataCompression field is included and the value of the eDataCompression field is the second value (for example, the value is "false"), it means that the UE does not support the enhanced compression mechanism.
在本实现方式中,增强压缩机制可以针对于指定数据传输方向。In this implementation manner, the enhanced compression mechanism may be directed to a specified data transmission direction.
例如,增强压缩机制仅针对上行方向时,UE上报指示支持增强压缩方式的压缩能力信息时,表示UE仅支持配置该增强压缩方式进行上行数据压缩。For example, when the enhanced compression mechanism is only for the uplink direction, when the UE reports the compression capability information indicating that the enhanced compression method is supported, it means that the UE only supports configuring the enhanced compression method for uplink data compression.
又例如,增强压缩机制仅针对于下行方向时,UE上报指示支持增强压缩方式的压缩能力信息时,表示UE仅支持配置该增强压缩方式进行下行数据解压缩。For another example, when the enhanced compression mechanism is only for the downlink direction, when the UE reports the compression capability information indicating that the enhanced compression method is supported, it means that the UE only supports configuring the enhanced compression method for downlink data decompression.
再例如,增强压缩机制可以适用于上行方向和下行方向时,UE上报指示支持增强压缩方式的压缩能力信息时,表示UE支持配置该增强压缩方式进行上行数据压缩和下行数据解压缩。For another example, when the enhanced compression mechanism is applicable to the uplink direction and the downlink direction, when the UE reports the compression capability information indicating that the enhanced compression mode is supported, it means that the UE supports configuration of the enhanced compression mode for uplink data compression and downlink data decompression.
在另一种实现方式中,UE可以在UE能力信息中对上行增强压缩方式和下行增强压缩方式分别上报能力信息。In another implementation manner, the UE may report capability information for the uplink enhanced compression mode and the downlink enhanced compression mode respectively in UE capability information.
例如,UECapabilityInformation消息中包含eUplinkDataCompression字段时,或包含eUplinkDataCompression字段且为该eUplinkDataCompression字段取值为第一取值(如取值为“true”)时,表示UE支持上行方向的增强压缩方式;反之,表示UE不支持上行方向的增强压缩方式。For example, when the UECapabilityInformation message contains the eUplinkDataCompression field, or contains the eUplinkDataCompression field and the value of the eUplinkDataCompression field is the first value (for example, the value is "true"), it means that the UE supports the enhanced compression mode in the uplink direction; otherwise, it means The UE does not support the enhanced compression method in the uplink direction.
又例如,UECapabilityInformation消息中包含eDownlinkDataCompression字段时,或包含eDownlinkDataCompression字段且该eDownlinkDataCompression字段取值为第一取值(如取值为“true”),时表示UE支持下行方向的增强压缩机制;反之,表示UE不支持下行方向的增强压缩机制。For another example, when the UECapabilityInformation message contains the eDownlinkDataCompression field, or contains the eDownlinkDataCompression field and the value of the eDownlinkDataCompression field is the first value (for example, the value is "true"), it means that the UE supports the enhanced compression mechanism in the downlink direction; otherwise, it means The UE does not support the enhanced compression mechanism in the downlink direction.
在又一种实施方式中,S901中的压缩能力信息还可以包含如下能力信息中的一种或多种:In yet another implementation manner, the compression capability information in S901 may also include one or more of the following capability information:
UE支持配置每种压缩方式(即增强压缩方式)的DRB的总个数(和标识);The UE supports the total number (and identification) of DRBs configured with each compression method (ie enhanced compression method);
UE/每个DRB所支持的配置压缩buffer(静态buffer+动态buffer)的总大小阈值;The total size threshold of the configuration compression buffer (static buffer+dynamic buffer) supported by UE/each DRB;
UE/每个DRB所支持配置静态buffer的大小阈值;Static buffer size threshold supported by UE/each DRB;
UE/每个DRB所支持配置动态buffer的大小阈值。The size threshold of the dynamic buffer supported by UE/each DRB.
S902:gNB根据UE上报的压缩能力信息,为UE配置压缩方式以及压缩buffer。gNB通过压缩配置信息将压缩方式以及压缩buffer的信息通知给UE。S902: The gNB configures a compression mode and a compression buffer for the UE according to the compression capability information reported by the UE. The gNB notifies the UE of the compression mode and the compression buffer information through the compression configuration information.
应注意,gNB为UE配置的压缩buffer与为自身为该UE维护的解压buffer完全一致。It should be noted that the compression buffer configured by the gNB for the UE is exactly the same as the decompression buffer it maintains for the UE.
可选的,gNB可以通过RRC消息向UE发送所述压缩配置信息。Optionally, the gNB may send the compressed configuration information to the UE through an RRC message.
示例性的,该压缩配置信息可以指示为UE或UE的目标DRB配置的压缩方式为以下压缩方式中的一种:基于动态buffer的压缩方式、基于静态buffer的压缩方式,增强压缩方式。Exemplarily, the compression configuration information may indicate that the compression mode configured for the UE or the target DRB of the UE is one of the following compression modes: dynamic buffer-based compression mode, static buffer-based compression mode, and enhanced compression mode.
以下仅以压缩配置信息指示为UE或UE的目标DRB配置增强压缩方式为例,即使能增强压缩方式。gNB可以基于UE上报的压缩能力信息,为UE或UE的目标DRB配置上 行方向和/或下行方向的增强压缩机制。In the following, it is only taken as an example that the compression configuration information indicates that the enhanced compression mode is configured for the UE or the target DRB of the UE, that is, the enhanced compression mode can be enabled. The gNB can configure an enhanced compression mechanism in the uplink direction and/or downlink direction for the UE or the target DRB of the UE based on the compression capability information reported by the UE.
当gNB为UE或UE的目标DRB配置增强压缩方式时,还可以通过压缩配置消息指示压缩buffer中静态buffer的大小和动态buffer的大小。例如:gNB分别指示两种buffer类型的大小(以Bytes或KBytes为单位的大小值);或gNB指示一个总压缩buffer大小以及一个比例值,其中,总压缩buffer为静态buffer和动态buffer的总大小,该比例值为静态buffer或动态buffer在总buffer大小中所占的比例,或该比例值为静态buffer的大小与动态buffer大小的比值。When the gNB configures the enhanced compression mode for the UE or the target DRB of the UE, it may also indicate the size of the static buffer and the size of the dynamic buffer in the compression buffer through a compression configuration message. For example: gNB indicates the size of the two buffer types (size value in Bytes or KBytes); or gNB indicates a total compression buffer size and a ratio value, where the total compression buffer is the total size of the static buffer and the dynamic buffer , the ratio value is the ratio of the static buffer or dynamic buffer to the total buffer size, or the ratio value is the ratio of the size of the static buffer to the size of the dynamic buffer.
可选的,gNB还可以在压缩配置信息中分别指示静态buffer和动态buffer的初始状态信息,即初始推入静态buffer的字典和初始推入动态buffer的字典。例如,任一种buffer类型可以配置为如下初始状态:初始数据内容为空、初始数据内容为1,或初始数据内容采用预配置的字典。Optionally, the gNB may also indicate the initial state information of the static buffer and the dynamic buffer respectively in the compressed configuration information, that is, the dictionary initially pushed into the static buffer and the dictionary initially pushed into the dynamic buffer. For example, any buffer type can be configured as the following initial state: the initial data content is empty, the initial data content is 1, or the initial data content adopts a pre-configured dictionary.
示例性的,gNB可以将在数据包中高频出现的数据内容设置为静态buffer的预配置字典,这样,UE在使用静态buffer中存储的数据内容对数据包进行压缩时,可以提高数据包的压缩率。Exemplarily, the gNB can set the data content that appears frequently in the data packet as a preconfigured dictionary of the static buffer, so that when the UE compresses the data packet using the data content stored in the static buffer, it can improve the compression of the data packet Rate.
通过本实例,UE可以向gNB上报压缩能力信息,以通知gNB自身的压缩能力,从而使gNB可以根据UE的压缩能力,为UE配置压缩方式和压缩buffer。Through this example, the UE can report the compression capability information to the gNB to inform the gNB of its own compression capability, so that the gNB can configure the compression mode and compression buffer for the UE according to the compression capability of the UE.
图10为UE和gNB之间传输数据包的过程。本实例以gNB为UE的目标DRB配置上行方向的增强压缩方式为例进行说明。Figure 10 shows the process of transmitting data packets between UE and gNB. In this example, the gNB configures the enhanced compression mode in the uplink direction for the target DRB of the UE as an example for illustration.
S1001:UE在获得目标DRB的第一数据包后,采用增强压缩方式根据压缩buffer中的静态buffer和动态buffer对所述第一数据包进行压缩,生成第二数据包。S1001: After obtaining the first data packet of the target DRB, the UE compresses the first data packet according to the static buffer and the dynamic buffer in the compression buffer in an enhanced compression manner, to generate a second data packet.
S1002:UE通过目标DRB向gNB发送所述第二数据包。S1002: The UE sends the second data packet to the gNB through the target DRB.
S1003:gNB在通过目标DRB接收来自UE的所述第二数据包后,采用增强解压方式解压buffer中的静态buffer和动态buffer对所述第二数据包进行解压,生成第一数据包。S1003: After receiving the second data packet from the UE through the target DRB, the gNB uses an enhanced decompression method to decompress the static buffer and the dynamic buffer in the buffer to decompress the second data packet to generate the first data packet.
在本申请实施例中,UE的压缩过程,以及gNB的解压过程可以参考前述第3种增强压缩/解压方式中任一种实现方式中的相应流程,此处不再展开描述。In this embodiment of the present application, for the compression process of the UE and the decompression process of the gNB, reference may be made to the corresponding process in any implementation of the aforementioned third enhanced compression/decompression mode, and no further description is given here.
通过本实例,UE可以使用静态buffer和动态buffer结合的增强压缩方式对数据包进行压缩,可以提高UE对数据包进行压缩处理的灵活性。另外,由于UE采用该增强压缩方式进行数据包压缩,gNB可以将在数据包中高频出现的数据内容作为静态数据内容配置到静态buffer中,这样UE在使用静态buffer对数据包进行压缩时,可以提高数据包的压缩率。Through this example, the UE can use the enhanced compression mode combining the static buffer and the dynamic buffer to compress the data packet, which can improve the flexibility of the UE to compress the data packet. In addition, because the UE uses this enhanced compression method to compress data packets, the gNB can configure the data content that appears frequently in the data packets as static data content in the static buffer, so that when the UE uses the static buffer to compress the data packets, it can Improve the compression ratio of data packets.
图11为gNB更新压缩buffer的过程。为了适应业务的变化,压缩buffer中的静态buffer需要进行更新,以保证数据包的压缩率。本实例以gNB更新UE的压缩buffer中的静态buffer为例进行说明。应注意,本实例可以用于更新前述第二种和第三种压缩/解压方式中的静态buffer。Figure 11 shows the process of gNB updating the compression buffer. In order to adapt to service changes, the static buffer in the compression buffer needs to be updated to ensure the compression rate of the data packet. In this example, the gNB updates the static buffer in the compressed buffer of the UE as an example for illustration. It should be noted that this example can be used to update the static buffer in the aforementioned second and third compression/decompression manners.
S1101:gNB向UE发送停止压缩指令。S1101: the gNB sends a stop compression command to the UE.
在一种实现方式中,该停止压缩指令可以通过RRC消息承载。例如,当具体的压缩操作是UE的分组数据汇聚协议(Packet Data Convergence Protocol,PDCP)实体执行时,当UE的RRC实体接收到该指令后,RRC实体通知PDCP实体停止压缩操作。In an implementation manner, the command to stop compression may be carried by an RRC message. For example, when the specific compression operation is performed by the packet data convergence protocol (Packet Data Convergence Protocol, PDCP) entity of the UE, when the RRC entity of the UE receives the instruction, the RRC entity notifies the PDCP entity to stop the compression operation.
在另一种实现方式中,该停止压缩指令也可以通过媒介访问控制(medium access control,MAC)控制元素(control element,CE)承载。当UE接收到该MAC CE后,通知到PDCP实体停止压缩操作。In another implementation manner, the stop compression command may also be carried by a medium access control (medium access control, MAC) control element (control element, CE). After receiving the MAC CE, the UE notifies the PDCP entity to stop the compression operation.
在又一种实现方式中,该停止压缩指令还可以通过PDCP控制(control)协议数据单元(protocol data unit,PDU),或无线链路控制(radio link control,RLC)control PDU进行承载,或下行控制信息(downlink control information,DCI)承载。In yet another implementation, the stop compression command can also be carried by a PDCP control (control) protocol data unit (protocol data unit, PDU), or a radio link control (radio link control, RLC) control PDU, or downlink Control information (downlink control information, DCI) bearer.
可选的,该停止压缩指令中可以携带DRB标识或逻辑信道(logical channel,LCH)标识,用于指示UE针对该DRB标识对应的目标DRB或LCH标识关联的目标DRB中的数据包停止压缩。Optionally, the stop compression command may carry a DRB identifier or a logical channel (logical channel, LCH) identifier, which is used to instruct the UE to stop compressing data packets in the target DRB corresponding to the DRB identifier or the target DRB associated with the LCH identifier.
其中,DRB标识可以是DRB ID,或者UE的所有DRB中已配置支持压缩操作的至少一个DRB按照DRB ID升序或降序排列之后的索引值(例如DRB 3,DRB 5,DRB 6配置支持压缩操作,则可以分别用index 1,index2,index3作为对应的DRB标识)。类似的,LCH标识可以是LCH ID,或者UE的所有DRB中已配置支持压缩操作的至少一个DRB按照关联的LCH ID升序或降序排列之后的索引值。Among them, the DRB ID can be the DRB ID, or the index value of at least one DRB that has been configured to support the compression operation in all DRBs of the UE according to the ascending or descending order of the DRB ID (for example, DRB 3, DRB 5, and DRB 6 are configured to support the compression operation, Then you can use index 1, index2, and index3 as the corresponding DRB identifiers respectively). Similarly, the LCH identifier may be the LCH ID, or the index value of at least one DRB configured to support the compression operation among all DRBs of the UE arranged in ascending or descending order according to the associated LCH ID.
UE接收到该停止压缩指令后即停止对数据包进行压缩处理操作,后续数据包可以不进行压缩处理操作即可发送给gNB。例如UE可以在数据包的压缩包头中指示该数据包为非压缩数据包。After receiving the instruction to stop compression, the UE stops compressing the data packets, and the subsequent data packets can be sent to the gNB without performing the compression processing. For example, the UE may indicate in the compressed packet header of the data packet that the data packet is an uncompressed data packet.
S1102:(可选步骤)UE向gNB发送停止压缩确认消息。该消息用于通知gNB UE已成功接收到停止压缩指令并停止进行数据压缩。S1102: (Optional step) The UE sends a stop compression confirmation message to the gNB. This message is used to notify the gNB that the UE has successfully received the stop compression command and stops data compression.
可选的,该停止压缩确认消息可以通过RRC消息承载,也可以通过PDCP control PDU,或RLC control PDU,或MAC CE,或上行控制信息(uplink control information,UCI)承载。Optionally, the compression stop acknowledgment message may be carried by an RRC message, or carried by a PDCP control PDU, or RLC control PDU, or MAC CE, or uplink control information (uplink control information, UCI).
S1103:gNB向UE发送buffer更新信息。S1103: the gNB sends buffer update information to the UE.
可选的,所述buffer更新信息令可以通过RRC消息、PDCP control PDU、RLC control PDU,或MAC CE等消息进行承载。Optionally, the buffer update information order may be carried by messages such as RRC messages, PDCP control PDUs, RLC control PDUs, or MAC CEs.
可选的,buffer更新信息可以指示更新静态buffer的大小和/或静态buffer中的静态数据内容,具体可以参考图6所示的实施例中更新buffer的过程中的描述。Optionally, the buffer update information may indicate to update the size of the static buffer and/or the content of static data in the static buffer. For details, reference may be made to the description in the process of updating the buffer in the embodiment shown in FIG. 6 .
可选的,所述buffer更新信息中可以包括需要更新到静态buffer的全部静态数据内容。UE接收到该buffer更新信息后,可以将buffer更新信息中包含的全部静态数据内容,更新至静态buffer中。Optionally, the buffer update information may include all static data content that needs to be updated to the static buffer. After receiving the buffer update information, the UE may update all static data content included in the buffer update information to the static buffer.
可选的,所述buffer更新信息中可以包括需要更新到静态buffer的部分静态数据内容,以及位置偏移值(offset)。该位置偏移值是相对于静态buffer的起始位置或结束位置的位置偏移值。这样,UE即可根据该位置偏移值,在静态buffer中找到起始更新位置,然后在该起始更新位置开始将该部分静态数据内容更新至静态buffer中。Optionally, the buffer update information may include part of the static data content that needs to be updated to the static buffer, and a position offset value (offset). The position offset value is relative to the start position or end position of the static buffer. In this way, the UE can find the start update position in the static buffer according to the position offset value, and then start to update the part of the static data content into the static buffer at the start update position.
例如,所述buffer更新信息中可以包括需要更新到静态buffer的字符串,以及位置偏移值。当UE接收到该指令后,将静态buffer中从offset位置开始的字符内容替换为该buffer更新信息中的字符串,具体过程可以参考图7所示。For example, the buffer update information may include a character string to be updated to a static buffer and a position offset value. After receiving the instruction, the UE replaces the character content starting from the offset position in the static buffer with the character string in the buffer update information. The specific process can be referred to as shown in FIG. 7 .
S1104:(可选步骤)UE向gNB发送buffer更新确认消息。该消息用于告知gNB UE已成功进行了buffer更新操作。S1104: (optional step) UE sends a buffer update confirmation message to gNB. This message is used to inform the gNB UE that the buffer update operation has been successfully performed.
可选的,该buffer更新确认消息可以通过RRC消息承载,也可以通过PDCP control PDU, 或RLC control PDU,或MAC CE进行承载。Optionally, the buffer update confirmation message may be carried by an RRC message, or may be carried by a PDCP control PDU, or an RLC control PDU, or a MAC CE.
S1105:gNB向UE发送启动压缩指令。S1105: The gNB sends an instruction to start compression to the UE.
可选的,该启动压缩指令可以通过RRC消息、PDCP control PDU、RLC control PDU、MAC CE,或DCI等进行承载。Optionally, the start compression command can be carried by RRC message, PDCP control PDU, RLC control PDU, MAC CE, or DCI.
可选的,与停止压缩指令类似的,该启动压缩指令中也可以携带DRB标识,或LCH标识,用于指示UE可以针对该DRB标识对应的目标DRB或LCH标识关联的目标DRB中的数据包开始压缩。Optionally, similar to the stop compression instruction, the start compression instruction may also carry a DRB identifier, or an LCH identifier, to indicate that the UE may target data packets in the target DRB associated with the DRB identifier or the LCH identifier Start compressing.
UE接收到该启动压缩指令后,即可使用更新后的压缩buffer(包含更新后的静态buffer)开始对目标DRB中的数据包进行压缩。After receiving the start compression instruction, the UE can use the updated compression buffer (including the updated static buffer) to start to compress the data packets in the target DRB.
S1106:(可选步骤)UE向gNB发送启动压缩确认消息。该指令用于告知gNB UE已成功接收了启动压缩指令,并开始进行压缩操作。S1106: (Optional step) The UE sends a start compression confirmation message to the gNB. This command is used to inform the gNB UE that it has successfully received the start compression command and starts the compression operation.
可选的,该启动压缩确认消息可以通过RRC消息、PDCP control PDU、RLC control PDU、MAC CE,或UCI等进行承载。Optionally, the start compression confirmation message can be carried by RRC message, PDCP control PDU, RLC control PDU, MAC CE, or UCI.
应注意,图11所示的过程是以UE作为压缩侧,gNB作为解压侧来描述的。如果gNB作为压缩侧,UE作为解压侧,则可以无需步骤1101、1102、1105,以及1106,即gNB自行控制停止/启动压缩操作即可,无需告知给UE。UE接收到1103的buffer更新指令,按照1103的描述对解压buffer中的静态buffer进行更新即可。It should be noted that the process shown in Figure 11 is described with the UE as the compression side and the gNB as the decompression side. If the gNB acts as the compression side and the UE acts as the decompression side, steps 1101, 1102, 1105, and 1106 may not be required, that is, the gNB can control the stop/start of the compression operation by itself without notifying the UE. After receiving the buffer update instruction in 1103, the UE may update the static buffer in the decompressed buffer according to the description in 1103.
此外,上述过程还可以用于更改静态buffer和/或动态buffer的大小。以更改静态buffer的大小为例:Additionally, the above procedure can also be used to change the size of static buffers and/or dynamic buffers. Take changing the size of the static buffer as an example:
在1103中发送的buffer更新指令中,gNB可以指示新的静态buffer的大小,对于大小更改过的静态buffer的静态数据内容,可以重置为全0/1值,也可以利用原静态buffer中存储的数据内容进行填充,具体方式可以参考图6所示的实施例中S608-S611中的描述,以及图8所示,此处不再赘述。In the buffer update command sent in 1103, gNB can indicate the size of the new static buffer. For the static data content of the static buffer whose size has been changed, it can be reset to all 0/1 values, or it can be stored in the original static buffer. Fill in the data content. For specific methods, please refer to the description in S608-S611 in the embodiment shown in FIG. 6 and that shown in FIG.
基于图11所示的实例,本申请还提供了另外几种更新压缩buffer的实例:Based on the example shown in Figure 11, this application also provides several other examples of updating the compression buffer:
在一个实例中,相对于图11所示的示例,不同的是,无需步骤1101、1102、1105,以及1106,即进行buffer更新操作过程中UE无需停止压缩操作。具体的,在1103中,gNB向UE发送的buffer更新指令中,还可以携带数据包的SN或count值,指示UE从该SN或count值对应的PDCP SDU开始,根据buffer更新信息执行buffer更新操作,并对后续的PDCP SDU利用更新后的压缩buffer执行压缩操作。In an example, compared with the example shown in FIG. 11 , the difference is that steps 1101 , 1102 , 1105 , and 1106 are not required, that is, the UE does not need to stop the compression operation during the buffer update operation. Specifically, in 1103, the buffer update instruction sent by the gNB to the UE may also carry the SN or count value of the data packet, instructing the UE to start from the PDCP SDU corresponding to the SN or count value, and perform the buffer update operation according to the buffer update information , and perform compression operations on subsequent PDCP SDUs using the updated compression buffer.
在一个示例中,相对于图11所示的示例,不同的是,无需步骤1101、1102、1105,以及1106,也无需在buffer更新信息中携带SN或count值,而是UE可以自行选择执行buffer更新的时刻,更新完成后,使用更新后的压缩buffer对数据包进行压缩;并且通过在该数据包中携带指示字段告知gNB该数据包是使用更新后的压缩buffer进行压缩的。In one example, compared to the example shown in FIG. 11 , the difference is that steps 1101, 1102, 1105, and 1106 are not required, and there is no need to carry the SN or count value in the buffer update information, but the UE can choose to execute the buffer At the time of update, after the update is completed, the data packet is compressed using the updated compression buffer; and the gNB is informed that the data packet is compressed using the updated compression buffer by carrying an indication field in the data packet.
在一种实现方式中,UE可以在数据包的PDCP头或压缩头中携带1比特的指示字段U。当gNB接收的当前数据包中U字段的取值与前一个数据包(不考虑SN翻转时,SN小于且最接近当前数据包的接收数据包)中U字段的取值相比发生了翻转,则表示UE使用更新后的压缩buffer对该当前数据包进行压缩;如果当前数据包中的U字段的取值与前一个数据包中U字段的取值相比没有翻转,则表示UE没有使用更新后的压缩buffer对该当前数据包进行压缩。In an implementation manner, the UE may carry a 1-bit indication field U in the PDCP header or compression header of the data packet. When the value of the U field in the current data packet received by the gNB is flipped compared with the value of the U field in the previous data packet (when the SN flip is not considered, the received data packet with the SN smaller than and closest to the current data packet), It means that the UE uses the updated compression buffer to compress the current data packet; if the value of the U field in the current data packet is not inverted compared with the value of the U field in the previous data packet, it means that the UE does not use the updated The subsequent compression buffer compresses the current data packet.
图12为UE从源gNB切换到目标gNB过程中,目标gNB可以获知解压buffer的状态。应注意,本实例可以用于前述三种压缩/解压方式中的压缩buffer或解压buffer。Figure 12 shows that the target gNB can learn the status of the decompression buffer during the handover process of the UE from the source gNB to the target gNB. It should be noted that this example can be used for the compression buffer or the decompression buffer in the aforementioned three compression/decompression methods.
S1201:在UE从源gNB切换到目标gNB过程中,源gNB可以向目标gNB发送buffer的状态信息。所述buffer的状态信息指示当前所述源gNB侧维护的解压buffer的大小和/或存储的数据内容。S1201: During the handover process of the UE from the source gNB to the target gNB, the source gNB may send buffer status information to the target gNB. The status information of the buffer indicates the size and/or stored data content of the decompression buffer currently maintained by the source gNB side.
该步骤用于通知目标gNB源gNB侧维护的解压buffer的状态,以使目标gNB可以快速地根据该buffer的状态信息,在本地配置大小和数据内容相同的解压buffer,从而可以接替源gNB的解压工作。This step is used to notify the target gNB of the status of the decompression buffer maintained by the source gNB side, so that the target gNB can quickly configure the decompression buffer locally with the same size and data content according to the status information of the buffer, so that it can take over the decompression of the source gNB Work.
S1202:目标gNB向UE发送切换命令(Handover command)以通知UE切换成功。可选的,目标gNB可以在切换命令中携带buffer状态指示,以指示UE侧的压缩buffer的状态。S1202: The target gNB sends a handover command (Handover command) to the UE to notify the UE that the handover is successful. Optionally, the target gNB may carry a buffer status indication in the handover command to indicate the status of the compressed buffer at the UE side.
可选的,目标gNB可以在获取源gNB的buffer的状态信息,可以决定是否需要对解压buffer的内容进行更新、清空或维持。目标gNB决定对解压buffer进行更新、清空或维持,那么为了使解压buffer和压缩buffer保持完全一致,目标gNB还可以通过该buffer状态指示来指示UE来对压缩buffer执行相同的处理。Optionally, the target gNB can obtain the status information of the buffer of the source gNB, and can decide whether to update, clear or maintain the content of the decompression buffer. The target gNB decides to update, clear or maintain the decompression buffer, so in order to keep the decompression buffer completely consistent with the compression buffer, the target gNB can also instruct the UE to perform the same processing on the compression buffer through the buffer status indication.
例如,Handover command中携带了bufferContinue字段时,指示UE维持当前压缩buffer的状态不变;否则指示UE将当前压缩buffer中的数据内容进行重置(例如置为全0/1)。For example, when the Handover command carries the bufferContinue field, it instructs the UE to maintain the state of the current compressed buffer; otherwise, it instructs the UE to reset the data content in the current compressed buffer (for example, set it to all 0/1).
需要说明的是,以上过程是以UE为压缩侧,gNB为解压侧来描述的。若gNB是压缩侧,该buffer的状态信息则指示当前所述源gNB侧维护的压缩buffer的大小和/或存储的数据内容。此外。上述过程可以针对整个解压buffer或压缩buffer执行,来可以针对解压buffer和压缩buffer中的一种buffer类型(静态buffer或动态buffer)执行,本申请对此不作限定。It should be noted that the above process is described with the UE as the compression side and the gNB as the decompression side. If the gNB is the compression side, the buffer status information indicates the size and/or stored data content of the compression buffer currently maintained by the source gNB side. also. The above process can be performed on the entire decompression buffer or compression buffer, or can be performed on a buffer type (static buffer or dynamic buffer) in the decompression buffer and compression buffer, which is not limited in this application.
例如,本实例可以用于前述第二种和第三种压缩/解压方式中的静态buffer。又例如,本实例还可以用于前述第一种和第三种压缩/解压方式中的动态buffer;并且,在一般情况下,目标gNB可以重置动态buffer中的数据内容,以保证压缩侧和解压侧的动态buffer一致。For example, this instance can be used for static buffers in the aforementioned second and third compression/decompression methods. For another example, this example can also be used for the dynamic buffer in the aforementioned first and third compression/decompression methods; and, in general, the target gNB can reset the data content in the dynamic buffer to ensure that the compression side and The dynamic buffer on the decompression side is consistent.
需要说明的是,在图6,图9-12所示的具体实施例中,可以选择部分步骤进行实施,还可以调整图示中步骤的顺序进行实施,本申请对此不做限定。应理解,执行图示中的部分步骤、调整步骤的顺序或相互结合进行具体实施,均落在本申请的保护范围内。It should be noted that, in the specific embodiments shown in FIG. 6 and FIGS. 9-12 , some steps can be selected for implementation, and the order of the steps in the illustrations can also be adjusted for implementation, which is not limited in this application. It should be understood that performing some of the steps in the illustrations, adjusting the order of the steps, or combining them for specific implementation all fall within the protection scope of the present application.
可以理解的是,为了实现上述实施例中功能,第一通信设备和第二通信设备包括了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本申请中所公开的实施例描述的各示例的单元及方法步骤,本申请能够以硬件或硬件和计算机软件相结合的形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用场景和设计约束条件。It can be understood that, in order to implement the functions in the foregoing embodiments, the first communication device and the second communication device include hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that the present application can be implemented in the form of hardware or a combination of hardware and computer software with reference to the units and method steps of the examples described in the embodiments disclosed in the present application. Whether a certain function is executed by hardware or computer software drives the hardware depends on the specific application scenario and design constraints of the technical solution.
基于相同的技术构思,本申请还提供了一种通信装置,该装置的结构如图13所示,包括通信单元1301和处理单元1302。所述通信装置1300可以应用于图5所示的通信系统中建立通信连接的两个通信设备,并可以实现以上实施例以及实例提供的通信方法。可选的,所述通信装置1300的物理表现形式可以为一种通信设备,例如核心网设备、终端设 备、AN设备等;或者所述通信装置可以能够实现通信设备的功能的其他装置,例如通信设备内部的处理器或芯片等。具体的,该通信装置1300可以为现场可编程门阵列(field-programmable gate array,FPGA)、复杂可编程逻辑器件(complex programmable logic device,CPLD)、专用集成电路(application specific intergrated circuits,ASIC),或片上系统(System on a chip,SOC)等一些可编程的芯片。Based on the same technical idea, the present application also provides a communication device, the structure of which is shown in FIG. 13 , including a communication unit 1301 and a processing unit 1302 . The communication apparatus 1300 can be applied to two communication devices establishing a communication connection in the communication system shown in FIG. 5 , and can implement the communication methods provided in the above embodiments and examples. Optionally, the physical form of the communication device 1300 may be a communication device, such as core network equipment, terminal equipment, AN equipment, etc.; or the communication device may be other devices capable of realizing the functions of a communication device, such as communication The processor or chip inside the device, etc. Specifically, the communication device 1300 may be a field-programmable gate array (field-programmable gate array, FPGA), a complex programmable logic device (complex programmable logic device, CPLD), an application specific integrated circuit (application specific integrated circuits, ASIC), Or some programmable chips such as System on a chip (SOC).
下面对所述装置1300中的各个单元的功能进行介绍。The functions of each unit in the apparatus 1300 are introduced below.
所述通信单元1301,用于接收和发送数据。The communication unit 1301 is configured to receive and send data.
当所述通信装置1300应用于通过物理连接实现通信的通信设备(例如核心网设备、服务器等)时,所述通信单元1301可以通过物理接口、通信模块、通信接口、输入输出接口实现。所述通信装置1300可以通过该通信单元1301连接网线或电缆,进而与其他设备建立物理连接。When the communication device 1300 is applied to a communication device (such as a core network device, a server, etc.) that implements communication through a physical connection, the communication unit 1301 may be implemented through a physical interface, a communication module, a communication interface, and an input/output interface. The communication device 1300 can be connected with a network cable or cable through the communication unit 1301, and then establish a physical connection with other devices.
当所述通信装置1300应用于通过无线连接实现通信的通信设备(例如终端设备、AN设备等)时,所述通信单元1301可以通过收发器实现,例如,移动通信模块。When the communication device 1300 is applied to a communication device (such as a terminal device, an AN device, etc.) that implements communication through a wireless connection, the communication unit 1301 may be implemented by a transceiver, for example, a mobile communication module.
在一种实施方式中,所述通信装置应用于图6所示的实施例中的第一通信设备(即压缩侧)。所述处理单元1302,用于:In an implementation manner, the communication apparatus is applied to the first communication device (ie, the compression side) in the embodiment shown in FIG. 6 . The processing unit 1302 is configured to:
获取压缩配置信息;其中,所述压缩配置信息包含:压缩方式指示信息和压缩缓存buffer配置信息,所述压缩方式指示信息用于指示所述第一通信设备对数据包进行压缩处理的目标压缩方式,所述压缩buffer配置信息用于配置目标压缩buffer;Acquiring compression configuration information; wherein, the compression configuration information includes: compression mode indication information and compression buffer configuration information, and the compression mode indication information is used to instruct the first communication device to perform compression processing on the data packet as a target compression mode , the compression buffer configuration information is used to configure a target compression buffer;
根据所述压缩buffer配置信息,对所述目标压缩buffer进行配置;Configuring the target compression buffer according to the compression buffer configuration information;
在获取第一数据包后,采用所述目标压缩方式根据所述目标压缩buffer对所述第一数据包进行压缩,生成第二数据包;After obtaining the first data packet, compress the first data packet according to the target compression buffer by using the target compression method to generate a second data packet;
通过所述通信单元1301向第二通信设备发送所述第二数据包。Send the second data packet to a second communication device through the communication unit 1301 .
在一种实现方式中,所述目标压缩方式为基于动态buffer的压缩方式;所述目标压缩buffer为动态buffer;In an implementation manner, the target compression mode is a compression mode based on a dynamic buffer; the target compression buffer is a dynamic buffer;
所述处理单元1302,在采用所述目标压缩方式根据所述目标压缩buffer对所述第一数据包进行压缩,生成第二数据包时,具体用于:The processing unit 1302, when using the target compression method to compress the first data packet according to the target compression buffer to generate a second data packet, is specifically used for:
根据所述第一数据包中包含的数据内容和所述动态压缩buffer中存储的数据内容,对所述第一数据包进行压缩,生成第二数据包;Compressing the first data packet according to the data content contained in the first data packet and the data content stored in the dynamic compression buffer to generate a second data packet;
根据所述第一数据包中包含的数据内容,更新所述动态buffer中存储的数据内容。updating the data content stored in the dynamic buffer according to the data content contained in the first data packet.
在一种实现方式中,所述压缩buffer配置信息用于指示所述动态buffer的大小和/或填充到所述动态buffer的初始数据内容。In an implementation manner, the compressed buffer configuration information is used to indicate the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer.
在一种实现方式中,所述目标压缩方式为基于静态buffer的压缩方式;所述目标压缩buffer为静态buffer;In an implementation manner, the target compression mode is a compression mode based on a static buffer; the target compression buffer is a static buffer;
所述处理单元1302,在采用所述目标压缩方式根据所述目标压缩buffer对所述第一数据包进行压缩,生成第二数据包时,具体用于:The processing unit 1302, when using the target compression method to compress the first data packet according to the target compression buffer to generate a second data packet, is specifically used for:
根据所述第一数据包中包含的数据内容和所述静态buffer中存储的数据内容,对所述第一数据包进行压缩,生成第二数据包。Compressing the first data packet according to the data content contained in the first data packet and the data content stored in the static buffer to generate a second data packet.
在一种实现方式中,所述压缩buffer配置信息用于指示所述静态buffer的大小和/或填充到所述静态buffer的静态数据内容。In an implementation manner, the compressed buffer configuration information is used to indicate the size of the static buffer and/or static data content filled into the static buffer.
在一种实现方式中,所述目标压缩方式为基于静态buffer和动态buffer的增强压缩方 式;所述目标压缩buffer包含静态buffer和动态buffer;In an implementation, the target compression method is an enhanced compression method based on static buffer and dynamic buffer; the target compression buffer includes static buffer and dynamic buffer;
所述处理单元1302,在采用所述目标压缩方式根据所述目标压缩buffer对所述第一数据包进行压缩,生成第二数据包时,具体用于:The processing unit 1302, when using the target compression method to compress the first data packet according to the target compression buffer to generate a second data packet, is specifically used for:
根据所述第一数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行压缩,生成压缩后的所述第一域;根据所述第一数据包中第二域包含的数据内容和所述动态buffer中存储的数据内容,对所述第二域进行压缩,生成压缩后的所述第二域;其中,所述第一数据包由所述第一域和所述第二域组成;根据压缩后的所述第一域和压缩后的所述第二域,组成所述第二数据包;根据所述第一数据包中所述第二域包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the first field in the first data packet and the data content stored in the static buffer, compress the first field to generate the compressed first field; according to the first The data content contained in the second field in the data packet and the data content stored in the dynamic buffer are compressed to generate the compressed second field; wherein, the first data packet is composed of the The first field and the second field are composed; the second data packet is formed according to the compressed first field and the compressed second field; according to the first data packet in the first data packet The data content contained in the second domain, updating the data content stored in the dynamic buffer; or
根据所述第一数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行压缩,生成压缩后的所述第一域;根据所述第一数据包中第二域包含的数据内容和组合buffer中存储的数据内容,对所述第二域进行压缩,生成压缩后的所述第二域;其中,所述组合buffer由所述静态buffer和所述动态buffer组合生成,所述第一数据包由所述第一域和所述第二域组成;根据压缩后的所述第一域和压缩后的所述第二域,组成所述第二数据包;根据所述第一数据包中所述第二域包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the first field in the first data packet and the data content stored in the static buffer, compress the first field to generate the compressed first field; according to the first The data content contained in the second domain in the data packet and the data content stored in the combined buffer are compressed to generate the compressed second domain; wherein the combined buffer is composed of the static buffer and The dynamic buffer combination is generated, the first data packet is composed of the first field and the second field; according to the compressed first field and the compressed second field, the second data packet is formed Two data packets: update the data content stored in the dynamic buffer according to the data content contained in the second field in the first data packet; or
根据所述第一数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行压缩,生成压缩后的所述第一域;根据所述第一数据包中第二域的第一数据段包含的数据内容和所述静态buffer中存储的数据内容,对所述第一数据段进行压缩,生成压缩后的所述第一数据段;根据所述第一数据包中所述第二域的第二数据段包含的数据内容和所述动态buffer中存储的数据内容,对所述第二数据段进行压缩,生成压缩后的所述第二数据段;其中,所述第一数据包由所述第一域和所述第二域组成,所述第二域由所述第一数据段和所述第二数据段组成;根据压缩后的所述第一域、压缩后的所述第一数据段,以及压缩后的所述第二数据段,组成所述第二数据包;根据所述第一数据包中所述第二域的所述第二数据段包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the first field in the first data packet and the data content stored in the static buffer, compress the first field to generate the compressed first field; according to the first The data content contained in the first data segment of the second field in the data packet and the data content stored in the static buffer are compressed to generate the compressed first data segment; according to the The data content contained in the second data segment of the second field in the first data packet and the data content stored in the dynamic buffer, compress the second data segment, and generate the compressed second data segment ; Wherein, the first data packet is composed of the first domain and the second domain, and the second domain is composed of the first data segment and the second data segment; according to the compressed The first domain, the compressed first data segment, and the compressed second data segment form the second data packet; according to the first data segment in the second domain in the first data packet The data content contained in the second data segment updates the data content stored in the dynamic buffer; or
根据所述第一数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行压缩,生成压缩后的所述第一域;根据所述第一数据包中第二域包含的数据内容和第一buffer中存储的数据内容,对所述第二域进行压缩,生成压缩后的所述第二域;其中,所述第一buffer为所述静态buffer或所述动态buffer,所述第一数据包由所述第一域和所述第二域组成;根据压缩后的所述第一域和压缩后的所述第二域,组成所述第二数据包;当所述第一压缩buffer为所述动态buffer时,根据所述第一数据包中所述第二域包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the first field in the first data packet and the data content stored in the static buffer, compress the first field to generate the compressed first field; according to the first The data content contained in the second field in the data packet and the data content stored in the first buffer are compressed to generate the compressed second field; wherein the first buffer is the static buffer or the dynamic buffer, the first data packet is composed of the first domain and the second domain; according to the compressed first domain and the compressed second domain, the second data packet is formed Two data packets; when the first compression buffer is the dynamic buffer, update the data content stored in the dynamic buffer according to the data content contained in the second field in the first data packet; or
根据所述第一数据包中包含的数据内容和组合buffer中存储的数据内容,对所述第一数据包进行压缩,生成第二数据包;其中,所述组合buffer由所述静态buffer和所述动态buffer组合生成;根据所述第一数据包中包含的数据内容,更新所述动态buffer中存储的数据内容;或者Compress the first data packet according to the data content contained in the first data packet and the data content stored in the combined buffer to generate a second data packet; wherein the combined buffer is composed of the static buffer and the combined buffer The dynamic buffer combination is generated; according to the data content contained in the first data packet, the data content stored in the dynamic buffer is updated; or
根据所述第一数据包中包含的数据内容和第一buffer中存储的数据内容,对所述第一数据包进行压缩,生成第二数据包;其中,所述第一buffer为所述静态buffer或所述动态buffer;当所述第一压缩buffer为所述动态buffer时,根据所述第一数据包中包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the first data packet and the data content stored in the first buffer, compress the first data packet to generate a second data packet; wherein the first buffer is the static buffer or the dynamic buffer; when the first compressed buffer is the dynamic buffer, update the data content stored in the dynamic buffer according to the data content contained in the first data packet; or
根据所述第一数据包中的第一数据段包含的数据内容和第一buffer中存储的数据内容,对第一数据段进行压缩,生成压缩后的所述第一数据段;根据所述第一数据包中的第二数据段包含的数据内容和第二buffer中存储的数据内容,对所述第二数据段进行压缩,生成压缩后的所述第二数据段;其中,所述第一buffer为所述压缩buffer中的所述静态buffer,所述第二buffer为所述压缩buffer中的所述动态buffer;又或者所述第一buffer为所述压缩buffer中的所述动态buffer,所述第二buffer为所述压缩buffer中的所述静态buffer;所述第一数据包由所述第一数据段和所述第二数据段等至少两个数据段组成;根据压缩后的所述第一数据段,以及压缩后的所述第二数据段,组成第二数据包;当所述第一buffer为所述动态buffer时,根据所述第一数据包中所述第一数据段包含的数据内容,更新所述动态buffer中存储的数据内容;当所述第二buffer为所述动态buffer时,根据所述第一数据包中的所述第二数据段包含的数据内容,更新所述动态buffer中存储的数据内容。According to the data content contained in the first data segment in the first data packet and the data content stored in the first buffer, compress the first data segment to generate the compressed first data segment; according to the first data segment The data content contained in the second data segment in a data packet and the data content stored in the second buffer are compressed to generate the compressed second data segment; wherein the first buffer is the static buffer in the compression buffer, and the second buffer is the dynamic buffer in the compression buffer; or the first buffer is the dynamic buffer in the compression buffer, so The second buffer is the static buffer in the compressed buffer; the first data packet is composed of at least two data segments such as the first data segment and the second data segment; according to the compressed The first data segment and the compressed second data segment form a second data packet; when the first buffer is the dynamic buffer, according to the content of the first data segment in the first data packet update the data content stored in the dynamic buffer; when the second buffer is the dynamic buffer, update the data content according to the data content contained in the second data segment in the first data packet Describe the data content stored in the dynamic buffer.
在一种实现方式中,所述压缩配置信息中还包括:第一指示信息,所述第一指示信息用于指示数据包中至少一个第一组成部分对应的第一buffer类型;In an implementation manner, the compression configuration information further includes: first indication information, where the first indication information is used to indicate the first buffer type corresponding to at least one first component in the data packet;
其中,任一个第一组成部分对应的第一buffer类型用于指示所述第一通信设备使用所述目标压缩buffer中属于所述第一buffer类型的buffer对所述第一组成部分进行压缩;任一个第一组成部分为以下任一项:数据包、数据包中的第一数据段、数据包中的第二数据段、数据包中的第一域、数据包中的第二域、数据包中第二域的第一数据段、数据包中第二域的第二数据段。Wherein, the first buffer type corresponding to any one of the first components is used to instruct the first communication device to use the buffer belonging to the first buffer type in the target compression buffer to compress the first component; A first component is any of the following: data packet, first data segment in data packet, second data segment in data packet, first field in data packet, second field in data packet, data packet The first data segment of the second field in the data packet, and the second data segment of the second field in the data packet.
在一种实现方式中,所述处理单元1302,还用于:In an implementation manner, the processing unit 1302 is further configured to:
通过所述通信单元1301向所述第二通信设备发送第二指示信息,所述第二指示用于指示所述第二数据包中至少一个第二组成部分对应的第二buffer类型;Sending second indication information to the second communication device through the communication unit 1301, where the second indication is used to indicate a second buffer type corresponding to at least one second component in the second data packet;
其中,任一个第二组成部分对应的第二buffer类型用于指示所述第二通信设备使用所述第二buffer类型的buffer对所述第二组成部分进行解压;任一个第二组成部分为以下任一项:所述第二数据包、所述第二数据包中的第一数据段、所述第二数据包中的第二数据段、所述第二数据包中的第一域、所述第二数据包中的第二域,所述第二数据包中第二域的第一数据段、所述第二数据包中第二域的第二数据段。Wherein, the second buffer type corresponding to any one of the second components is used to instruct the second communication device to use the buffer of the second buffer type to decompress the second component; any one of the second components is as follows Any one: the second data packet, the first data segment in the second data packet, the second data segment in the second data packet, the first field in the second data packet, the The second field in the second data packet, the first data segment in the second field in the second data packet, and the second data segment in the second field in the second data packet.
在一种实现方式中,所述第一域为包头,所述第二域为有效载荷;或者所述第一域为有效载荷,所述第二域为包头。In an implementation manner, the first field is a packet header, and the second field is a payload; or the first field is a payload, and the second field is a packet header.
在一种实现方式中,所述压缩buffer配置信息用于指示:所述动态buffer的大小和/或填充到所述动态buffer的初始数据内容,以及所述静态buffer的大小和/或填充到所述静态buffer的静态数据内容。In one implementation, the compressed buffer configuration information is used to indicate: the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer, and the size of the static buffer and/or the content filled into the dynamic buffer Describe the static data content of the static buffer.
在一种实现方式中,所述处理单元1302,在获取压缩配置信息时,具体用于:In an implementation manner, the processing unit 1302, when acquiring the compression configuration information, is specifically configured to:
通过所述通信单元1301接收来自所述第二通信设备或第三通信设备的所述压缩配置信息;或者receiving the compressed configuration information from the second communication device or the third communication device through the communication unit 1301; or
获取保存的所述压缩配置信息。Obtain the saved compression configuration information.
在一种实现方式中,所述处理单元1302,还用于:In an implementation manner, the processing unit 1302 is further configured to:
在通过所述通信单元1301接收来自所述第二通信设备或第三通信设备的所述压缩配置信息之前,通过所述通信单元1301向所述第二通信设备或所述第三通信设备发送压缩能力信息,所述压缩能力信息用于表示所述第一通信设备的压缩能力。Before receiving the compression configuration information from the second communication device or the third communication device through the communication unit 1301, sending the compressed configuration information to the second communication device or the third communication device through the communication unit 1301 Capability information, where the compression capability information is used to indicate the compression capability of the first communication device.
在一种实现方式中,所述压缩能力信息包括以下至少一项:In an implementation manner, the compression capability information includes at least one of the following:
支持的压缩方式、能够进行压缩处理的数据传输方向、支持配置压缩处理的无线承载的数量或信息、支持配置压缩buffer的总大小阈值、支持配置每种buffer类型的buffer的大小阈值。Supported compression methods, data transmission directions that can be compressed, the number or information of radio bearers that support compression processing, the total size threshold of compression buffers, and the buffer size threshold of each buffer type.
在一种实现方式中,所述处理单元1302,还用于:In an implementation manner, the processing unit 1302 is further configured to:
通过所述通信单元1301接收来自所述第二通信设备或所述第三通信设备的buffer更新信息,所述buffer更新信息用于调整所述目标压缩buffer的大小,和/或,更新所述目标压缩buffer存储的数据内容;Receive buffer update information from the second communication device or the third communication device through the communication unit 1301, where the buffer update information is used to adjust the size of the target compression buffer, and/or update the target Compress the data content stored in the buffer;
根据所述buffer更新信息,更新所述目标压缩buffer;updating the target compression buffer according to the buffer update information;
在获取第三数据包后,采用所述目标压缩方式根据更新后的所述目标压缩buffer对所述第三数据包进行压缩,生成第四数据包;After obtaining the third data packet, compress the third data packet according to the updated target compression buffer by using the target compression method to generate a fourth data packet;
通过所述通信单元1301向所述第二通信设备发送所述第四数据包。Send the fourth data packet to the second communication device through the communication unit 1301 .
在一种实现方式中,所述处理单元1302,还用于:In an implementation manner, the processing unit 1302 is further configured to:
在通过所述通信单元1301接收来自所述第二通信设备或所述第三通信设备的buffer更新信息之前,通过所述通信单元1301接收来自所述第二通信设备或所述第三通信设备的停止压缩指令;Before receiving buffer update information from the second communication device or the third communication device through the communication unit 1301, receiving the buffer update information from the second communication device or the third communication device through the communication unit 1301 stop compression command;
根据所述停止压缩指令,停止根据所述目标压缩buffer对数据包进行压缩;According to the stop compression instruction, stop compressing the data packet according to the target compression buffer;
在采用所述目标压缩方式根据更新后的所述目标压缩buffer对所述第三数据包进行压缩之前,通过所述通信单元1301接收来自所述第二通信设备或所述第三通信设备的启动压缩指令。Before using the target compression method to compress the third data packet according to the updated target compression buffer, receiving a start from the second communication device or the third communication device through the communication unit 1301 Compression instructions.
在一种实现方式中,所述buffer更新信息中还包括:第三指示信息;所述第三指示信息用于指示使用更新后的所述目标压缩buffer进行压缩的数据包;In an implementation manner, the buffer update information further includes: third indication information; the third indication information is used to indicate the data packets to be compressed using the updated target compression buffer;
所述第三数据包为所述第三指示信息所指示的数据包。The third data packet is the data packet indicated by the third indication information.
在一种实现方式中,所述第四数据包中还包括第四指示信息,所述第四指示信息用于指示所述第四数据包为所述第一通信设备使用更新后的所述目标压缩buffer进行压缩生成的。In an implementation manner, the fourth data packet further includes fourth indication information, and the fourth indication information is used to indicate that the fourth data packet uses the updated target for the first communication device. The compressed buffer is generated by compression.
在一种实现方式中,所述第一通信设备为终端设备,所述第二通信设备为基站;或者In an implementation manner, the first communication device is a terminal device, and the second communication device is a base station; or
所述第一通信设备为基站,所述第二通信设备为终端设备;或者The first communication device is a base station, and the second communication device is a terminal device; or
所述第一通信设备和所述第二通信设备为不同的终端设备;或者The first communication device and the second communication device are different terminal devices; or
所述第一通信设备为终端设备,所述第二通信设备为核心网设备;或者The first communication device is a terminal device, and the second communication device is a core network device; or
所述第一通信设备为核心网设备,所述第二通信设备为终端设备;或者The first communication device is a core network device, and the second communication device is a terminal device; or
所述第一通信设备为基站,所述第二通信设备为核心网设备;或者The first communication device is a base station, and the second communication device is a core network device; or
所述第一通信设备为核心网设备,所述第二通信设备为基站;The first communication device is a core network device, and the second communication device is a base station;
所述第一通信设备和所述第二通信设备为不同的核心网设备。The first communication device and the second communication device are different core network devices.
在一种实现方式中,当所述第一通信设备为基站,接入所述基站的终端设备切换到目标基站时,所述处理单元1302,还用于:In an implementation manner, when the first communication device is a base station, and a terminal device accessing the base station is handed over to a target base station, the processing unit 1302 is further configured to:
通过所述通信单元1301向所述目标基站发送压缩buffer的状态信息,所述压缩buffer的状态信息用于指示当前所述目标压缩buffer的大小和/或存储的数据内容。The status information of the compressed buffer is sent to the target base station through the communication unit 1301, where the status information of the compressed buffer is used to indicate the current size and/or stored data content of the target compressed buffer.
在一种实现方式中,当所述第一通信设备为终端设备,所述终端设备切换到目标基站时,所述处理单元1302,还用于:In an implementation manner, when the first communication device is a terminal device, and the terminal device is handed over to a target base station, the processing unit 1302 is further configured to:
通过所述通信单元1301接收来自所述目标基站的第五指示信息,所述第五指示信息 用于指示清空或维持所述目标压缩buffer,或者调整所述目标压缩buffer的大小,或者更新所述目标压缩buffer存储的数据内容。Receive fifth instruction information from the target base station through the communication unit 1301, where the fifth instruction information is used to instruct to clear or maintain the target compression buffer, or adjust the size of the target compression buffer, or update the The data content stored in the target compression buffer.
在一种实施方式中,所述通信装置应用于图6所述的实施例中的第二通信设备(即解压侧)。所述处理单元1302,用于:In an implementation manner, the communication apparatus is applied to the second communication device (ie, the decompression side) in the embodiment shown in FIG. 6 . The processing unit 1302 is configured to:
获取解压配置信息;其中,所述解压配置信息包含:解压方式指示信息和解压缓存buffer配置信息,其中,所述解压方式指示信息用于指示所述第二通信设备对数据包进行解压处理的目标解压方式,所述解压buffer配置信息用于配置目标解压buffer;Acquiring decompression configuration information; wherein, the decompression configuration information includes: decompression mode indication information and decompression buffer configuration information, wherein the decompression mode indication information is used to indicate the target of the second communication device to decompress the data packet Decompression mode, the decompression buffer configuration information is used to configure the target decompression buffer;
根据所述解压buffer配置信息,对所述目标解压buffer进行配置;Configuring the target decompression buffer according to the decompression buffer configuration information;
在通过所述通信单元1301接收来自第一通信设备的第二数据包后,采用所述目标解压方式根据所述目标解压buffer对所述第二数据包进行解压,生成第一数据包;其中,所述第二数据包为所述第一通信设备对所述第一数据包进行压缩生成的。After receiving the second data packet from the first communication device through the communication unit 1301, using the target decompression method to decompress the second data packet according to the target decompression buffer to generate a first data packet; wherein, The second data packet is generated by the first communication device compressing the first data packet.
在一种实现方式中,所述目标解压方式为基于动态buffer的解压方式;所述目标解压buffer为动态buffer;In an implementation manner, the target decompression mode is a decompression mode based on a dynamic buffer; the target decompression buffer is a dynamic buffer;
所述处理单元1302,在采用所述目标解压方式根据所述目标解压buffer对所述第二数据包进行解压,生成第一数据包时,具体用于:The processing unit 1302, when using the target decompression method to decompress the second data packet according to the target decompression buffer to generate the first data packet, is specifically used for:
根据所述第二数据包中包含的数据内容和所述动态buffer中存储的数据内容,对所述第二数据包进行解压,生成所述第一数据包;Decompressing the second data packet according to the data content contained in the second data packet and the data content stored in the dynamic buffer to generate the first data packet;
根据所述第一数据包中包含的数据内容,更新所述动态buffer中存储的数据内容。updating the data content stored in the dynamic buffer according to the data content contained in the first data packet.
在一种实现方式中,所述解压buffer配置信息用于指示所述动态buffer的大小和/或填充到所述动态buffer的初始数据内容。In an implementation manner, the decompression buffer configuration information is used to indicate the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer.
在一种实现方式中,所述目标解压方式为基于静态buffer的解压方式;所述目标解压buffer为静态buffer;In an implementation manner, the target decompression method is a static buffer-based decompression method; the target decompression buffer is a static buffer;
所述处理单元1302,在采用所述目标解压方式根据所述目标解压buffer对所述第二数据包进行解压,生成第一数据包时,具体用于:The processing unit 1302, when using the target decompression method to decompress the second data packet according to the target decompression buffer to generate the first data packet, is specifically used for:
根据所述第二数据包中包含的数据内容和所述静态buffer中存储的数据内容,对所述第二数据包进行解压,生成第一数据包。Decompressing the second data packet according to the data content contained in the second data packet and the data content stored in the static buffer to generate a first data packet.
在一种实现方式中,所述解压buffer配置信息用于指示所述静态buffer的大小和/或填充到所述静态buffer的静态数据内容。In an implementation manner, the decompression buffer configuration information is used to indicate the size of the static buffer and/or static data content filled into the static buffer.
在一种实现方式中,所述目标解压方式为基于静态buffer和动态buffer的增强解压方式;所述目标解压buffer包含静态buffer和动态buffer;In one implementation, the target decompression method is an enhanced decompression method based on static buffer and dynamic buffer; the target decompression buffer includes static buffer and dynamic buffer;
所述处理单元1302,在采用所述目标解压方式根据所述目标解压buffer对所述第二数据包进行解压,生成第一数据包时,具体用于:The processing unit 1302, when using the target decompression method to decompress the second data packet according to the target decompression buffer to generate the first data packet, is specifically used for:
根据所述第二数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行解压,生成解压后的所述第一域;根据所述第二数据包中第二域包含的数据内容和所述动态buffer中存储的数据内容,对所述第二域进行解压,生成解压后的所述第二域;其中,所述第二数据包由所述第一域和所述第二域组成;根据解压后的所述第一域和解压后的所述第二域,组成所述第一数据包;根据解压后的所述第二域包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the first field in the second data packet and the data content stored in the static buffer, decompress the first field to generate the decompressed first field; according to the second The data content contained in the second field in the data packet and the data content stored in the dynamic buffer are decompressed to the second field to generate the decompressed second field; wherein the second data packet is generated by the The first domain and the second domain are composed; the first data packet is composed according to the decompressed first domain and the decompressed second domain; according to the decompressed second domain contained Data content, updating the data content stored in the dynamic buffer; or
根据所述第二数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容, 对所述第一域进行解压,生成解压后的所述第一域;根据所述第二数据包中第二域包含的数据内容和组合buffer中存储的数据内容,对所述第二域进行解压,生成解压后的所述第二域;其中,所述组合buffer由所述静态buffer和所述动态buffer组合生成,所述第二数据包由所述第一域和所述第二域组成;根据解压后的所述第一域和解压后的所述第二域,组成所述第一数据包;根据解压后的所述第二域包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the first domain in the second data packet and the data content stored in the static buffer, decompress the first domain to generate the decompressed first domain; according to the second The data content contained in the second field in the data packet and the data content stored in the combination buffer are decompressed to the second field to generate the decompressed second field; wherein the combination buffer is composed of the static buffer and The dynamic buffer combination is generated, the second data packet is composed of the first domain and the second domain; according to the decompressed first domain and the decompressed second domain, the second data packet is composed A data packet; update the data content stored in the dynamic buffer according to the data content contained in the decompressed second domain; or
根据所述第二数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行解压,生成解压后的所述第一域;根据所述第二数据包中第二域的第一数据段包含的数据内容和所述静态buffer中存储的数据内容,对所述第一数据段进行解压,生成解压后的所述第一数据段;根据所述第二数据包中所述第二域的第二数据段包含的数据内容和所述动态buffer中存储的数据内容,对所述第二数据段进行解压,生成解压后的所述第二数据段;其中,所述第二数据包由所述第一域和所述第二域组成,所述第二域由所述第一数据段和所述第二数据段组成;根据解压后的所述第一域、解压后的所述第一数据段,以及解压后的所述第二数据段,组成所述第一数据包;根据解压后的所述第二数据段包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the first field in the second data packet and the data content stored in the static buffer, decompress the first field to generate the decompressed first field; according to the second The data content contained in the first data segment of the second domain in the data packet and the data content stored in the static buffer, decompress the first data segment to generate the decompressed first data segment; according to the The data content contained in the second data segment of the second field in the second data packet and the data content stored in the dynamic buffer, decompress the second data segment, and generate the decompressed second data segment ; Wherein, the second data packet is composed of the first domain and the second domain, and the second domain is composed of the first data segment and the second data segment; according to the decompressed The first domain, the decompressed first data segment, and the decompressed second data segment form the first data packet; according to the data content contained in the decompressed second data segment, update the The data content stored in the dynamic buffer; or
根据所述第二数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行解压,生成解压后的所述第一域;根据所述第二数据包中第二域包含的数据内容和第一buffer中存储的数据内容,对所述第二域进行解压,生成解压后的所述第二域;其中,所述第一buffer为所述静态buffer或所述动态buffer,所述第一数据包由所述第一域和所述第二域组成;根据解压后的所述第一域和解压后的所述第二域,组成所述第一数据包;当所述第一buffer为所述动态buffer时,根据解压后的所述第二域包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the first field in the second data packet and the data content stored in the static buffer, decompress the first field to generate the decompressed first field; according to the second The data content contained in the second field in the data packet and the data content stored in the first buffer are decompressed to the second field to generate the decompressed second field; wherein the first buffer is the static buffer or the dynamic buffer, the first data packet is composed of the first domain and the second domain; according to the decompressed first domain and the decompressed second domain, the second data packet is formed A data packet; when the first buffer is the dynamic buffer, update the data content stored in the dynamic buffer according to the data content contained in the decompressed second domain; or
根据所述第二数据包中包含的数据内容和组合buffer中存储的数据内容,对所述第二数据包进行解压,生成所述第一数据包;其中,所述组合buffer由所述静态buffer和所述动态buffer组合生成;根据所述第一数据包中包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the second data packet and the data content stored in the combined buffer, the second data packet is decompressed to generate the first data packet; wherein the combined buffer is composed of the static buffer Generated in combination with the dynamic buffer; update the data content stored in the dynamic buffer according to the data content contained in the first data packet; or
根据所述第二数据包中包含的数据内容和第一buffer中存储的数据内容,对所述第二数据包进行解压,生成所述第一数据包;其中,所述第一buffer为所述静态buffer或所述动态buffer;当所述第一buffer为所述动态buffer时,根据所述第一数据包中包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the second data packet and the data content stored in the first buffer, the second data packet is decompressed to generate the first data packet; wherein the first buffer is the Static buffer or the dynamic buffer; when the first buffer is the dynamic buffer, update the data content stored in the dynamic buffer according to the data content contained in the first data packet; or
根据所述第二数据包中的第一数据段包含的数据内容和第一buffer中存储的数据内容,对第一数据段进行解压,生成解压后的所述第一数据段;根据所述第一数据包中的第二数据段包含的数据内容和第二buffer中存储的数据内容,对所述第二数据段进行解压,生成解压后的所述第二数据段;其中,所述第一buffer为所述解压buffer中的所述静态buffer,所述第二buffer为所述解压buffer中的所述动态buffer;又或者所述第一buffer为所述解压buffer中的所述动态buffer,所述第二buffer为所述解压buffer中的所述静态buffer;所述第二数据包由所述第一数据段和所述第二数据段等至少两个数据段组成;根据解压后的所述第一域、解压后的所述第一数据段,以及解压后的所述第二数据段,组成第二数据包;当所述第一buffer为所述动态buffer时,根据解压后的所述第一数据段包含的数据内容,更新所述动态buffer中存储的数据内容;当所述第二buffer为所述动态buffer时,根据解 压后的所述第二数据段包含的数据内容,更新所述动态buffer中存储的数据内容。According to the data content contained in the first data segment in the second data packet and the data content stored in the first buffer, decompress the first data segment to generate the decompressed first data segment; according to the first data segment The data content contained in the second data segment in a data packet and the data content stored in the second buffer are decompressed to generate the decompressed second data segment; wherein the first buffer is the static buffer in the decompression buffer, and the second buffer is the dynamic buffer in the decompression buffer; or the first buffer is the dynamic buffer in the decompression buffer, so The second buffer is the static buffer in the decompressed buffer; the second data packet is composed of at least two data segments such as the first data segment and the second data segment; according to the decompressed The first domain, the decompressed first data segment, and the decompressed second data segment form a second data packet; when the first buffer is the dynamic buffer, according to the decompressed The data content contained in the first data segment updates the data content stored in the dynamic buffer; when the second buffer is the dynamic buffer, updates the data content contained in the decompressed second data segment according to the data content contained in the second data segment after decompression Describe the data content stored in the dynamic buffer.
在一种实现方式中,所述解压配置信息中还包括:第六指示信息,所述第六指示信息用于指示数据包中至少一个第三组成部分对应的第三buffer类型;In an implementation manner, the decompression configuration information further includes: sixth indication information, where the sixth indication information is used to indicate a third buffer type corresponding to at least one third component in the data packet;
其中,任一个第三组成部分对应的第三buffer类型用于指示所述第二通信设备使用所述目标解压buffer中属于所述第三buffer类型的buffer对所述第三组成部分进行解压;任一个第三组成部分为以下任一项:数据包、数据包中的第一数据段、数据包中的第二数据段、数据包中的第一域、数据包中的第二域、数据包中第二域的第一数据段、数据包中第二域的第二数据段。Wherein, the third buffer type corresponding to any third component is used to instruct the second communication device to use the buffer belonging to the third buffer type in the target decompression buffer to decompress the third component; A third component is any of the following: a data packet, a first data segment in a data packet, a second data segment in a data packet, a first field in a data packet, a second field in a data packet, a data packet The first data segment of the second field in the data packet, and the second data segment of the second field in the data packet.
在一种实现方式中,所述处理单元1302,还用于:In an implementation manner, the processing unit 1302 is further configured to:
通过所述通信单元1301接收来自所述第一通信设备的第二指示信息,所述第二指示用于指示所述第二数据包中至少一个第二组成部分对应的第二buffer类型;receiving second indication information from the first communication device through the communication unit 1301, where the second indication is used to indicate a second buffer type corresponding to at least one second component in the second data packet;
其中,任一个第二组成部分对应的第二buffer类型用于指示所述第二通信设备使用所述目标解压buffer中属于所述第二buffer类型的buffer对所述第二组成部分进行解压;任一个第二组成部分为以下任一项:所述第二数据包、所述第二数据包中的第一数据段、所述第二数据包中的第二数据段、所述第二数据包中的第一域、所述第二数据包中的第二域,所述第二数据包中第二域的第一数据段、所述第二数据包中第二域的第二数据段。Wherein, the second buffer type corresponding to any second component is used to instruct the second communication device to use the buffer belonging to the second buffer type in the target decompression buffer to decompress the second component; A second component is any of the following: the second data packet, the first data segment in the second data packet, the second data segment in the second data packet, the second data packet The first field in the second data packet, the second field in the second data packet, the first data segment in the second field in the second data packet, and the second data segment in the second field in the second data packet.
在一种实现方式中,所述第一域为包头,所述第二域为有效载荷;或者所述第一域为有效载荷,所述第二域为包头。In an implementation manner, the first field is a packet header, and the second field is a payload; or the first field is a payload, and the second field is a packet header.
在一种实现方式中,所述解压buffer配置信息用于指示:所述动态buffer的大小和/或填充到所述动态buffer的初始数据内容,以及所述静态buffer的大小和/或填充到所述静态buffer的静态数据内容。In an implementation manner, the decompression buffer configuration information is used to indicate: the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer, and the size of the static buffer and/or the initial data content filled into the dynamic buffer Describe the static data content of the static buffer.
在一种实现方式中,所述处理单元1302,在获取解压配置信息时,具体用于:In an implementation manner, when the processing unit 1302 acquires the decompression configuration information, it is specifically configured to:
通过所述通信单元1301接收来自所述第一通信设备或第三通信设备的所述解压配置信息;或者获取保存的所述解压配置信息。Receive the decompression configuration information from the first communication device or the third communication device through the communication unit 1301; or acquire the stored decompression configuration information.
在一种实现方式中,所述处理单元1302,还用于:In an implementation manner, the processing unit 1302 is further configured to:
在通过所述通信单元1301接收来自第一通信设备的第二数据包之前,通过所述通信单元1301向所述第一通信设备发送压缩配置信息;其中,所述压缩配置信息包含:压缩方式指示信息和压缩缓存buffer配置信息,所述压缩方式指示信息用于指示所述第一通信设备对数据包进行压缩处理的目标压缩方式,所述压缩buffer配置信息用于配置对数据包进行压缩时所使用的目标压缩buffer;所述目标压缩方式与所述目标解压方式相对应,所述目标压缩buffer与所述目标解压buffer的配置相同。Before receiving the second data packet from the first communication device through the communication unit 1301, send compression configuration information to the first communication device through the communication unit 1301; wherein, the compression configuration information includes: a compression mode indication Information and compression cache buffer configuration information, the compression mode indication information is used to indicate the target compression mode for the first communication device to compress the data packet, and the compression buffer configuration information is used to configure the compressed data packet The target compression buffer used; the target compression mode corresponds to the target decompression mode, and the configuration of the target compression buffer is the same as that of the target decompression buffer.
在一种实现方式中,所述处理单元1302,还用于:In an implementation manner, the processing unit 1302 is further configured to:
在通过所述通信单元1301向所述第一通信设备发送压缩配置信息之前,通过所述通信单元1301接收来自所述第一通信设备的压缩能力信息,所述压缩能力信息用于表示所述第一通信设备的压缩能力;Before sending compression configuration information to the first communication device through the communication unit 1301, the communication unit 1301 receives compression capability information from the first communication device, where the compression capability information is used to represent the first communication device. - the compression capability of the communication equipment;
根据所述压缩能力信息,生成所述压缩配置信息。Generate the compression configuration information according to the compression capability information.
在一种实现方式中,所述压缩能力信息包括以下至少一项:In an implementation manner, the compression capability information includes at least one of the following:
支持的压缩方式、能够进行压缩处理的数据传输方向、支持配置压缩处理的无线承载的数量或信息、支持配置压缩buffer的总大小阈值、支持配置每种buffer类型的buffer的大小阈值。Supported compression methods, data transmission directions that can be compressed, the number or information of radio bearers that support compression processing, the total size threshold of compression buffers, and the buffer size threshold of each buffer type.
在一种实现方式中,所述处理单元1302,还用于:In an implementation manner, the processing unit 1302 is further configured to:
更新所述目标解压buffer;update the target decompression buffer;
通过所述通信单元1301向所述第一通信设备发送buffer更新信息,所述buffer更新信息用于指示所述第一通信设备调整所述目标压缩buffer的大小,和/或,更新所述目标压缩buffer存储的数据内容;Send buffer update information to the first communication device through the communication unit 1301, where the buffer update information is used to instruct the first communication device to adjust the size of the target compression buffer, and/or update the target compression buffer The data content stored in the buffer;
在通过所述通信单元1301接收来自所述第一通信设备的第四数据包后,采用所述目标解压方式根据更新后的所述目标解压buffer对所述第四数据包进行解压,生成第三数据包;其中,所述第四数据包为所述第一通信设备对所述第三数据包进行压缩生成的。After receiving the fourth data packet from the first communication device through the communication unit 1301, the fourth data packet is decompressed according to the updated target decompression buffer in the target decompression mode to generate a third A data packet; wherein, the fourth data packet is generated by the first communication device compressing the third data packet.
在一种实现方式中,所述处理单元1302,还用于:In an implementation manner, the processing unit 1302 is further configured to:
在通过所述通信单元1301向所述第一通信设备发送buffer更新信息之前,通过所述通信单元1301向所述第一通信设备发送停止压缩指令;其中,所述停止压缩指令用于指示所述第一通信设备停止使用所述目标压缩buffer对数据包进行压缩。Before sending buffer update information to the first communication device through the communication unit 1301, send a stop compression instruction to the first communication device through the communication unit 1301; wherein the stop compression instruction is used to instruct the The first communication device stops using the target compression buffer to compress the data packet.
在一种实现方式中,所述buffer更新信息中还包括:第三指示信息;所述第三指示信息用于指示使用更新后的所述目标压缩buffer进行压缩的数据包;In an implementation manner, the buffer update information further includes: third indication information; the third indication information is used to indicate the data packets to be compressed using the updated target compression buffer;
所述第三数据包为所述第三指示信息所指示的数据包。The third data packet is the data packet indicated by the third indication information.
在一种实现方式中,所述第四数据包中还包括第四指示信息,所述第四指示信息用于指示所述第四数据包为所述第一通信设备使用更新后的所述目标压缩buffer进行压缩生成的。In an implementation manner, the fourth data packet further includes fourth indication information, and the fourth indication information is used to indicate that the fourth data packet uses the updated target for the first communication device. The compressed buffer is generated by compression.
在一种实现方式中,所述第一通信设备为终端设备,所述第二通信设备为基站;或者In an implementation manner, the first communication device is a terminal device, and the second communication device is a base station; or
所述第一通信设备为基站,所述第二通信设备为终端设备;或者The first communication device is a base station, and the second communication device is a terminal device; or
所述第一通信设备和所述第二通信设备为不同的终端设备;或者The first communication device and the second communication device are different terminal devices; or
所述第一通信设备为终端设备,所述第二通信设备为核心网设备;或者The first communication device is a terminal device, and the second communication device is a core network device; or
所述第一通信设备为核心网设备,所述第二通信设备为终端设备;或者The first communication device is a core network device, and the second communication device is a terminal device; or
所述第一通信设备为基站,所述第二通信设备为核心网设备;或者The first communication device is a base station, and the second communication device is a core network device; or
所述第一通信设备为核心网设备,所述第二通信设备为基站;The first communication device is a core network device, and the second communication device is a base station;
所述第一通信设备和所述第二通信设备为不同的核心网设备。The first communication device and the second communication device are different core network devices.
在一种实现方式中,当所述第二通信设备为基站,接入所述基站的终端设备切换到目标基站时,所述处理单元1302,还用于:In an implementation manner, when the second communication device is a base station, and a terminal device accessing the base station is handed over to a target base station, the processing unit 1302 is further configured to:
通过所述通信单元1301向所述目标基站发送解压buffer的状态信息,所述解压buffer的状态信息用于指示当前所述目标解压buffer的大小和/或存储的数据内容。The status information of the decompressed buffer is sent to the target base station through the communication unit 1301, where the status information of the decompressed buffer is used to indicate the current size and/or stored data content of the target decompressed buffer.
在一种实现方式中,当所述第二通信设备为终端设备,所述终端设备切换到目标基站时,所述处理单元1302,还用于:In an implementation manner, when the second communication device is a terminal device, and the terminal device is handed over to a target base station, the processing unit 1302 is further configured to:
通过所述通信单元1301接收来自所述目标基站的第七指示信息,所述第七指示信息用于指示清空或维持所述目标解压buffer,或者调整所述目标解压buffer的大小,或者更新所述目标解压buffer存储的数据内容。The seventh indication information from the target base station is received through the communication unit 1301, the seventh indication information is used to instruct to clear or maintain the target decompression buffer, or adjust the size of the target decompression buffer, or update the The target decompresses the data content stored in the buffer.
需要说明的是,本申请以上实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。It should be noted that the division of modules in the above embodiments of the present application is schematic, and is only a logical function division. In actual implementation, there may be other division methods. In addition, each function in each embodiment of the present application Units can be integrated into one processing unit, or physically exist separately, or two or more units can be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
基于相同的技术构思,本申请还提供了一种通信设备,所述通信设备可以应用于如图5所示的通信系统中建立通信连接的两个通信设备,可以实现以上实施例以及实例提供的通信方法,具有图13所示的通信装置的功能。参阅图14所示,所述通信设备1400包括:通信模块1401、处理器1402以及存储器1403。其中,所述通信模块1401、所述处理器1402以及所述存储器1403之间相互连接。Based on the same technical concept, this application also provides a communication device, which can be applied to two communication devices establishing a communication connection in the communication system as shown in Figure 5, and can realize the above embodiments and examples provided The communication method has the functions of the communication device shown in FIG. 13 . Referring to FIG. 14 , the communication device 1400 includes: a communication module 1401 , a processor 1402 and a memory 1403 . Wherein, the communication module 1401 , the processor 1402 and the memory 1403 are connected to each other.
可选的,所述通信模块1401、所述处理器1402以及所述存储器1403之间通过总线1404相互连接。所述总线1404可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图14中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Optionally, the communication module 1401 , the processor 1402 and the memory 1403 are connected to each other through a bus 1404 . The bus 1404 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus or the like. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 14 , but it does not mean that there is only one bus or one type of bus.
所述通信模块1401,用于接收和发送数据,实现与其他设备之间的通信交互。例如,当所述通信设备1400应用于通过物理连接实现通信的通信设备(如核心网设备、服务器等)时,所述通信模块1401可以通过物理接口、通信模块、通信接口、输入输出接口实现。又例如,当所述通信设备1400应用于通过无线连接实现通信的通信设备(例如终端设备、AN设备等)时,所述通信模块1401还可以通过收发器实现。The communication module 1401 is used to receive and send data to realize communication interaction with other devices. For example, when the communication device 1400 is applied to a communication device (such as a core network device, a server, etc.) that implements communication through a physical connection, the communication module 1401 may be implemented through a physical interface, a communication module, a communication interface, and an input/output interface. For another example, when the communication device 1400 is applied to a communication device (such as a terminal device, an AN device, etc.) that implements communication through a wireless connection, the communication module 1401 may also be implemented by a transceiver.
在一种实施方式中,所述通信设备1400可以为图6所示的实施例中的第一通信设备。处理器1402,用于:In an implementation manner, the communication device 1400 may be the first communication device in the embodiment shown in FIG. 6 . Processor 1402 for:
获取压缩配置信息;其中,所述压缩配置信息包含:压缩方式指示信息和压缩缓存buffer配置信息,所述压缩方式指示信息用于指示所述第一通信设备对数据包进行压缩处理的目标压缩方式,所述压缩buffer配置信息用于配置目标压缩buffer;Acquiring compression configuration information; wherein, the compression configuration information includes: compression mode indication information and compression buffer configuration information, and the compression mode indication information is used to instruct the first communication device to perform compression processing on the data packet as a target compression mode , the compression buffer configuration information is used to configure a target compression buffer;
根据所述压缩buffer配置信息,对所述目标压缩buffer进行配置;Configuring the target compression buffer according to the compression buffer configuration information;
在获取第一数据包后,采用所述目标压缩方式根据所述目标压缩buffer对所述第一数据包进行压缩,生成第二数据包;After obtaining the first data packet, compress the first data packet according to the target compression buffer by using the target compression method to generate a second data packet;
通过所述通信模块1401向第二通信设备发送所述第二数据包。Send the second data packet to a second communication device through the communication module 1401 .
另一种实施方式中,所述通信设备1400可以为图6所示的实施例中的第二通信设备。所述处理器1402,用于:In another implementation manner, the communication device 1400 may be the second communication device in the embodiment shown in FIG. 6 . The processor 1402 is configured to:
获取解压配置信息;其中,所述解压配置信息包含:解压方式指示信息和解压缓存buffer配置信息,其中,所述解压方式指示信息用于指示所述第二通信设备对数据包进行解压处理的目标解压方式,所述解压buffer配置信息用于配置目标解压buffer;Acquiring decompression configuration information; wherein, the decompression configuration information includes: decompression mode indication information and decompression buffer configuration information, wherein the decompression mode indication information is used to indicate the target of the second communication device to decompress the data packet Decompression mode, the decompression buffer configuration information is used to configure the target decompression buffer;
根据所述解压buffer配置信息,对所述目标解压buffer进行配置;Configuring the target decompression buffer according to the decompression buffer configuration information;
在通过所述通信模块1401接收来自第一通信设备的第二数据包后,采用所述目标解 压方式根据所述目标解压buffer对所述第二数据包进行解压,生成第一数据包;其中,所述第二数据包为所述第一通信设备对所述第一数据包进行压缩生成的。After receiving the second data packet from the first communication device through the communication module 1401, the second data packet is decompressed according to the target decompression buffer using the target decompression method to generate a first data packet; wherein, The second data packet is generated by the first communication device compressing the first data packet.
需要说明的是,本实施例不对所述处理器1402的具体功能进行详细描述,所述处理器1402的具体功能可以参考以上实施例以及实例提供的通信方法中的描述,以及图13所示实施例中对所述通信装置1300的具体功能描述,此处不再赘述。It should be noted that this embodiment does not describe the specific functions of the processor 1402 in detail. For the specific functions of the processor 1402, refer to the descriptions in the communication methods provided in the above embodiments and examples, and the implementation shown in FIG. 13 The specific functions of the communication device 1300 are described in the example, which will not be repeated here.
所述存储器1403,用于存放程序指令和数据等。具体地,程序指令可以包括程序代码,该程序代码包括计算机操作指令。存储器1403可能包含随机存取存储器(random access memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。处理器1402执行存储器1403所存放的程序指令,并使用所述存储器1403中存储的数据,实现上述功能,从而实现上述实施例提供的通信方法。The memory 1403 is used to store program instructions and data. Specifically, the program instructions may include program codes including computer operation instructions. The memory 1403 may include a random access memory (random access memory, RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The processor 1402 executes the program instructions stored in the memory 1403 and uses the data stored in the memory 1403 to implement the above functions, thereby realizing the communication method provided by the above embodiments.
可以理解,本申请图14中的存储器1403可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 1403 in FIG. 14 of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. The volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (Static RAM, SRAM), Dynamic Random Access Memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synchlink DRAM, SLDRAM ) and Direct Memory Bus Random Access Memory (Direct Rambus RAM, DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but not be limited to, these and any other suitable types of memory.
基于以上实施例,本申请实施例还提供了一种计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行以上实施例提供的通信方法。Based on the above embodiments, an embodiment of the present application further provides a computer program that, when the computer program is run on a computer, causes the computer to execute the communication method provided by the above embodiments.
基于以上实施例,本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,所述计算机程序被计算机执行时,使得计算机执行以上实施例提供的通信方法。Based on the above embodiments, the embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the communication provided by the above embodiments. method.
其中,存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。Wherein, the storage medium may be any available medium that can be accessed by a computer. By way of example but not limitation: computer-readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or may be used to carry or store information in the form of instructions or data structures desired program code and any other medium that can be accessed by a computer.
基于以上实施例,本申请实施例还提供了一种芯片,所述芯片用于读取存储器中存储的计算机程序,实现以上实施例提供的通信方法。Based on the above embodiments, the embodiments of the present application further provide a chip, the chip is configured to read a computer program stored in a memory, and implement the communication method provided by the above embodiments.
基于以上实施例,本申请实施例提供了一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现以上实施例中业务设备、转发设备或站点设备所涉及的功能。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。Based on the above embodiments, an embodiment of the present application provides a chip system, the chip system includes a processor, configured to support a computer device to implement the functions involved in the service device, forwarding device, or site device in the above embodiments. In a possible design, the chip system further includes a memory, and the memory is used to store necessary programs and data of the computer device. The system-on-a-chip may consist of chips, or may include chips and other discrete devices.
综上所述,本申请实施例提供了一种通信方法、装置及设备。该方案中,通信系统可以对压缩侧使用的目标压缩方式,以及目标压缩buffer进行配置;相应的,也可以对解压侧使用的目标解压方式,以及目标解压buffer进行配置。因此,通过本方法,通信系统可 以根据业务特征、数据包的数据特征,灵活地配置压缩侧的目标压缩方式、解压侧的解压方式,以及配置压缩侧的目标压缩buffer、解压侧的目标解压buffer,从而可以提高通信系统中数据压缩的灵活性,进而可以提高数据压缩效率,最终提高通信系统的数据传输效率和资源利用率。To sum up, the embodiments of the present application provide a communication method, device, and equipment. In this solution, the communication system can configure the target compression method and target compression buffer used by the compression side; correspondingly, the target decompression method and target decompression buffer used by the decompression side can also be configured. Therefore, through this method, the communication system can flexibly configure the target compression mode on the compression side, the decompression mode on the decompression side, and configure the target compression buffer on the compression side and the target decompression buffer on the decompression side according to the service characteristics and data characteristics of the data packet. , so that the flexibility of data compression in the communication system can be improved, and then the efficiency of data compression can be improved, and finally the data transmission efficiency and resource utilization of the communication system can be improved.
在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。In each embodiment of the present application, if there is no special explanation and logical conflict, the terms and/or descriptions between different embodiments are consistent and can be referred to each other, and the technical features in different embodiments are based on their inherent Logical relationships can be combined to form new embodiments.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Apparently, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.
Claims (30)
- 一种通信方法,应用于第一通信设备,其特征在于,包括:A communication method, applied to a first communication device, characterized in that it includes:获取压缩配置信息;其中,所述压缩配置信息包含:压缩方式指示信息和压缩缓存buffer配置信息,所述压缩方式指示信息用于指示所述第一通信设备对数据包进行压缩处理的目标压缩方式,所述压缩buffer配置信息用于配置目标压缩buffer;Acquiring compression configuration information; wherein, the compression configuration information includes: compression mode indication information and compression buffer configuration information, and the compression mode indication information is used to instruct the first communication device to perform compression processing on the data packet as a target compression mode , the compression buffer configuration information is used to configure a target compression buffer;根据所述压缩buffer配置信息,对所述目标压缩buffer进行配置;Configuring the target compression buffer according to the compression buffer configuration information;在获取第一数据包后,采用所述目标压缩方式根据所述目标压缩buffer对所述第一数据包进行压缩,生成第二数据包;After obtaining the first data packet, compress the first data packet according to the target compression buffer by using the target compression method to generate a second data packet;向第二通信设备发送所述第二数据包。sending the second data packet to a second communications device.
- 如权利要求1所述的方法,其特征在于,所述目标压缩方式为基于动态buffer的压缩方式;所述目标压缩buffer为动态buffer;The method according to claim 1, wherein the target compression method is a compression method based on a dynamic buffer; the target compression buffer is a dynamic buffer;采用所述目标压缩方式根据所述目标压缩buffer对所述第一数据包进行压缩,生成第二数据包,包括:Using the target compression method to compress the first data packet according to the target compression buffer to generate a second data packet, including:根据所述第一数据包中包含的数据内容和所述动态压缩buffer中存储的数据内容,对所述第一数据包进行压缩,生成第二数据包;Compressing the first data packet according to the data content contained in the first data packet and the data content stored in the dynamic compression buffer to generate a second data packet;根据所述第一数据包中包含的数据内容,更新所述动态buffer中存储的数据内容。updating the data content stored in the dynamic buffer according to the data content contained in the first data packet.
- 如权利要求1所述的方法,其特征在于,所述目标压缩方式为基于静态buffer的压缩方式;所述目标压缩buffer为静态buffer;The method according to claim 1, wherein the target compression method is a compression method based on a static buffer; the target compression buffer is a static buffer;采用所述目标压缩方式根据所述目标压缩buffer对所述第一数据包进行压缩,生成第二数据包,包括:Using the target compression method to compress the first data packet according to the target compression buffer to generate a second data packet, including:根据所述第一数据包中包含的数据内容和所述静态buffer中存储的数据内容,对所述第一数据包进行压缩,生成第二数据包。Compressing the first data packet according to the data content contained in the first data packet and the data content stored in the static buffer to generate a second data packet.
- 如权利要求1所述的方法,其特征在于,所述目标压缩方式为基于静态buffer和动态buffer的增强压缩方式;所述目标压缩buffer包含静态buffer和动态buffer;The method according to claim 1, wherein the target compression mode is an enhanced compression mode based on static buffer and dynamic buffer; the target compression buffer includes static buffer and dynamic buffer;采用所述目标压缩方式根据所述目标压缩buffer对所述第一数据包进行压缩,生成第二数据包,包括:Using the target compression method to compress the first data packet according to the target compression buffer to generate a second data packet, including:根据所述第一数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行压缩,生成压缩后的所述第一域;根据所述第一数据包中第二域包含的数据内容和所述动态buffer中存储的数据内容,对所述第二域进行压缩,生成压缩后的所述第二域;其中,所述第一数据包由所述第一域和所述第二域组成;根据压缩后的所述第一域和压缩后的所述第二域,组成所述第二数据包;根据所述第一数据包中所述第二域包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the first field in the first data packet and the data content stored in the static buffer, compress the first field to generate the compressed first field; according to the first The data content contained in the second field in the data packet and the data content stored in the dynamic buffer are compressed to generate the compressed second field; wherein, the first data packet is composed of the The first field and the second field are composed; the second data packet is formed according to the compressed first field and the compressed second field; according to the first data packet in the first data packet The data content contained in the second domain, updating the data content stored in the dynamic buffer; or根据所述第一数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行压缩,生成压缩后的所述第一域;根据所述第一数据包中第二域包含的数据内容和组合buffer中存储的数据内容,对所述第二域进行压缩,生成压缩后的所述第二域;其中,所述组合buffer由所述静态buffer和所述动态buffer组合生成,所述第一数据包由所述第一域和所述第二域组成;根据压缩后的所述第一域和压缩后的所述第二域,组成所述第二数据包;根据所述第一数据包中所述第二域包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the first field in the first data packet and the data content stored in the static buffer, compress the first field to generate the compressed first field; according to the first The data content contained in the second domain in the data packet and the data content stored in the combined buffer are compressed to generate the compressed second domain; wherein the combined buffer is composed of the static buffer and The dynamic buffer combination is generated, the first data packet is composed of the first field and the second field; according to the compressed first field and the compressed second field, the second data packet is formed Two data packets: update the data content stored in the dynamic buffer according to the data content contained in the second field in the first data packet; or根据所述第一数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行压缩,生成压缩后的所述第一域;根据所述第一数据包中第二域的第一数据段包含的数据内容和所述静态buffer中存储的数据内容,对所述第一数据段进行压缩,生成压缩后的所述第一数据段;根据所述第一数据包中所述第二域的第二数据段包含的数据内容和所述动态buffer中存储的数据内容,对所述第二数据段进行压缩,生成压缩后的所述第二数据段;其中,所述第一数据包由所述第一域和所述第二域组成,所述第二域由所述第一数据段和所述第二数据段组成;根据压缩后的所述第一域、压缩后的所述第一数据段,以及压缩后的所述第二数据段,组成所述第二数据包;根据所述第一数据包中所述第二域的所述第二数据段包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the first field in the first data packet and the data content stored in the static buffer, compress the first field to generate the compressed first field; according to the first The data content contained in the first data segment of the second field in the data packet and the data content stored in the static buffer are compressed to generate the compressed first data segment; according to the The data content contained in the second data segment of the second field in the first data packet and the data content stored in the dynamic buffer, compress the second data segment, and generate the compressed second data segment ; Wherein, the first data packet is composed of the first domain and the second domain, and the second domain is composed of the first data segment and the second data segment; according to the compressed The first domain, the compressed first data segment, and the compressed second data segment form the second data packet; according to the first data segment in the second domain in the first data packet The data content contained in the second data segment updates the data content stored in the dynamic buffer; or根据所述第一数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行压缩,生成压缩后的所述第一域;根据所述第一数据包中第二域包含的数据内容和第一buffer中存储的数据内容,对所述第二域进行压缩,生成压缩后的所述第二域;其中,所述第一buffer为所述静态buffer或所述动态buffer,所述第一数据包由所述第一域和所述第二域组成;根据压缩后的所述第一域和压缩后的所述第二域,组成所述第二数据包;当所述第一压缩buffer为所述动态buffer时,根据所述第一数据包中所述第二域包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the first field in the first data packet and the data content stored in the static buffer, compress the first field to generate the compressed first field; according to the first The data content contained in the second field in the data packet and the data content stored in the first buffer are compressed to generate the compressed second field; wherein the first buffer is the static buffer or the dynamic buffer, the first data packet is composed of the first domain and the second domain; according to the compressed first domain and the compressed second domain, the second data packet is formed Two data packets; when the first compression buffer is the dynamic buffer, update the data content stored in the dynamic buffer according to the data content contained in the second field in the first data packet; or根据所述第一数据包中包含的数据内容和组合buffer中存储的数据内容,对所述第一数据包进行压缩,生成第二数据包;其中,所述组合buffer由所述静态buffer和所述动态buffer组合生成;根据所述第一数据包中包含的数据内容,更新所述动态buffer中存储的数据内容;或者Compress the first data packet according to the data content contained in the first data packet and the data content stored in the combined buffer to generate a second data packet; wherein the combined buffer is composed of the static buffer and the combined buffer The dynamic buffer combination is generated; according to the data content contained in the first data packet, the data content stored in the dynamic buffer is updated; or根据所述第一数据包中包含的数据内容和第一buffer中存储的数据内容,对所述第一数据包进行压缩,生成第二数据包;其中,所述第一buffer为所述静态buffer或所述动态buffer;当所述第一buffer为所述动态buffer时,根据所述第一数据包中包含的数据内容,更新所述动态buffer中存储的数据内容。According to the data content contained in the first data packet and the data content stored in the first buffer, compress the first data packet to generate a second data packet; wherein the first buffer is the static buffer Or the dynamic buffer; when the first buffer is the dynamic buffer, update the data content stored in the dynamic buffer according to the data content contained in the first data packet.
- 如权利要求4所述的方法,其特征在于,所述第一域为包头,所述第二域为有效载荷;或者所述第一域为有效载荷,所述第二域为包头。The method according to claim 4, wherein the first field is a header, and the second field is a payload; or the first field is a payload, and the second field is a header.
- 如权利要求4或5所述的方法,其特征在于,所述压缩buffer配置信息用于指示:所述动态buffer的大小和/或填充到所述动态buffer的初始数据内容,以及所述静态buffer的大小和/或填充到所述静态buffer的静态数据内容。The method according to claim 4 or 5, wherein the compressed buffer configuration information is used to indicate: the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer, and the static buffer The size and/or content of static data filled into the static buffer.
- 如权利要求1-6任一项所述的方法,其特征在于,获取压缩配置信息,包括:The method according to any one of claims 1-6, wherein obtaining compression configuration information includes:接收来自所述第二通信设备或第三通信设备的所述压缩配置信息;或者receiving said compressed configuration information from said second or third communications device; or获取保存的所述压缩配置信息。Obtain the saved compression configuration information.
- 如权利要求1-7任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-7, wherein the method further comprises:接收来自所述第二通信设备或所述第三通信设备的buffer更新信息,所述buffer更新信息用于调整所述目标压缩buffer的大小,和/或,更新所述目标压缩buffer存储的数据内容;Receive buffer update information from the second communication device or the third communication device, where the buffer update information is used to adjust the size of the target compression buffer, and/or update the data content stored in the target compression buffer ;根据所述buffer更新信息,更新所述目标压缩buffer;updating the target compression buffer according to the buffer update information;在获取第三数据包后,采用所述目标压缩方式根据更新后的所述目标压缩buffer对所述第三数据包进行压缩,生成第四数据包;After obtaining the third data packet, compress the third data packet according to the updated target compression buffer by using the target compression method to generate a fourth data packet;向所述第二通信设备发送所述第四数据包。sending the fourth data packet to the second communications device.
- 如权利要求8所述的方法,其特征在于,在接收来自所述第二通信设备或所述第三通信设备的buffer更新信息之前,所述方法还包括:The method according to claim 8, wherein before receiving the buffer update information from the second communication device or the third communication device, the method further comprises:接收来自所述第二通信设备或所述第三通信设备的停止压缩指令;receiving a stop compression instruction from the second communication device or the third communication device;根据所述停止压缩指令,停止根据所述目标压缩buffer对数据包进行压缩;According to the stop compression instruction, stop compressing the data packet according to the target compression buffer;在采用所述目标压缩方式根据更新后的所述目标压缩buffer对所述第三数据包进行压缩之前,所述方法还包括:Before using the target compression method to compress the third data packet according to the updated target compression buffer, the method further includes:接收来自所述第二通信设备或所述第三通信设备的启动压缩指令。A command to enable compression is received from the second communication device or the third communication device.
- 如权利要求8所述的方法,其特征在于,所述buffer更新信息中还包括:第三指示信息;所述第三指示信息用于指示使用更新后的所述目标压缩buffer进行压缩的数据包;The method according to claim 8, wherein the buffer update information further includes: third indication information; the third indication information is used to indicate the data packets compressed using the updated target compression buffer ;所述第三数据包为所述第三指示信息所指示的数据包。The third data packet is the data packet indicated by the third indication information.
- 如权利要求8-10任一项所述的方法,其特征在于,所述第四数据包中还包括第四指示信息,所述第四指示信息用于指示所述第四数据包为所述第一通信设备使用更新后的所述目标压缩buffer进行压缩生成的。The method according to any one of claims 8-10, wherein the fourth data packet further includes fourth indication information, and the fourth indication information is used to indicate that the fourth data packet is the The first communication device uses the updated target compression buffer to perform compression and generate it.
- 如权利要求1-11任一项所述的方法,其特征在于,所述第一通信设备为终端设备,所述第二通信设备为基站;或者The method according to any one of claims 1-11, wherein the first communication device is a terminal device, and the second communication device is a base station; or所述第一通信设备为基站,所述第二通信设备为终端设备;或者The first communication device is a base station, and the second communication device is a terminal device; or所述第一通信设备和所述第二通信设备为不同的终端设备;或者The first communication device and the second communication device are different terminal devices; or所述第一通信设备为终端设备,所述第二通信设备为核心网设备;或者The first communication device is a terminal device, and the second communication device is a core network device; or所述第一通信设备为核心网设备,所述第二通信设备为终端设备;或者The first communication device is a core network device, and the second communication device is a terminal device; or所述第一通信设备为基站,所述第二通信设备为核心网设备;或者The first communication device is a base station, and the second communication device is a core network device; or所述第一通信设备为核心网设备,所述第二通信设备为基站;The first communication device is a core network device, and the second communication device is a base station;所述第一通信设备和所述第二通信设备为不同的核心网设备。The first communication device and the second communication device are different core network devices.
- 一种通信方法,应用于第二通信设备,其特征在于,包括:A communication method applied to a second communication device, characterized in that it includes:获取解压配置信息;其中,所述解压配置信息包含:解压方式指示信息和解压缓存buffer配置信息,其中,所述解压方式指示信息用于指示所述第二通信设备对数据包进行解压处理的目标解压方式,所述解压buffer配置信息用于配置目标解压buffer;Acquiring decompression configuration information; wherein, the decompression configuration information includes: decompression mode indication information and decompression buffer configuration information, wherein the decompression mode indication information is used to indicate the target of the second communication device to decompress the data packet Decompression mode, the decompression buffer configuration information is used to configure the target decompression buffer;根据所述解压buffer配置信息,对所述目标解压buffer进行配置;Configuring the target decompression buffer according to the decompression buffer configuration information;在接收来自第一通信设备的第二数据包后,采用所述目标解压方式根据所述目标解压buffer对所述第二数据包进行解压,生成第一数据包;其中,所述第二数据包为所述第一通信设备对所述第一数据包进行压缩生成的。After receiving the second data packet from the first communication device, using the target decompression method to decompress the second data packet according to the target decompression buffer to generate a first data packet; wherein, the second data packet generated by compressing the first data packet for the first communication device.
- 如权利要求13所述的方法,其特征在于,所述目标解压方式为基于动态buffer的解压方式;所述目标解压buffer为动态buffer;The method according to claim 13, wherein the target decompression method is a dynamic buffer-based decompression method; the target decompression buffer is a dynamic buffer;采用所述目标解压方式根据所述目标解压buffer对所述第二数据包进行解压,生成第一数据包,包括:Using the target decompression method to decompress the second data packet according to the target decompression buffer to generate a first data packet, including:根据所述第二数据包中包含的数据内容和所述动态buffer中存储的数据内容,对所述第二数据包进行解压,生成所述第一数据包;Decompressing the second data packet according to the data content contained in the second data packet and the data content stored in the dynamic buffer to generate the first data packet;根据所述第一数据包中包含的数据内容,更新所述动态buffer中存储的数据内容。updating the data content stored in the dynamic buffer according to the data content contained in the first data packet.
- 如权利要求13所述的方法,其特征在于,所述目标解压方式为基于静态buffer的解压方式;所述目标解压buffer为静态buffer;The method according to claim 13, wherein the target decompression method is a static buffer-based decompression method; the target decompression buffer is a static buffer;采用所述目标解压方式根据所述目标解压buffer对所述第二数据包进行解压,生成第 一数据包,包括:Adopt described target decompression mode to decompress the second data packet according to the target decompression buffer, generate the first data packet, including:根据所述第二数据包中包含的数据内容和所述静态buffer中存储的数据内容,对所述第二数据包进行解压,生成第一数据包。Decompressing the second data packet according to the data content contained in the second data packet and the data content stored in the static buffer to generate a first data packet.
- 如权利要求13所述的方法,其特征在于,所述目标解压方式为基于静态buffer和动态buffer的增强解压方式;所述目标解压buffer包含静态buffer和动态buffer;The method according to claim 13, wherein the target decompression method is an enhanced decompression method based on static buffer and dynamic buffer; the target decompression buffer includes static buffer and dynamic buffer;采用所述目标解压方式根据所述目标解压buffer对所述第二数据包进行解压,生成第一数据包,包括:Using the target decompression method to decompress the second data packet according to the target decompression buffer to generate a first data packet, including:根据所述第二数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行解压,生成解压后的所述第一域;根据所述第二数据包中第二域包含的数据内容和所述动态buffer中存储的数据内容,对所述第二域进行解压,生成解压后的所述第二域;其中,所述第二数据包由所述第一域和所述第二域组成;根据解压后的所述第一域和解压后的所述第二域,组成所述第一数据包;根据解压后的所述第二域包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the first field in the second data packet and the data content stored in the static buffer, decompress the first field to generate the decompressed first field; according to the second The data content contained in the second field in the data packet and the data content stored in the dynamic buffer are decompressed to the second field to generate the decompressed second field; wherein the second data packet is generated by the The first domain and the second domain are composed; the first data packet is composed according to the decompressed first domain and the decompressed second domain; according to the decompressed second domain contained Data content, updating the data content stored in the dynamic buffer; or根据所述第二数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行解压,生成解压后的所述第一域;根据所述第二数据包中第二域包含的数据内容和组合buffer中存储的数据内容,对所述第二域进行解压,生成解压后的所述第二域;其中,所述组合buffer由所述静态buffer和所述动态buffer组合生成,所述第二数据包由所述第一域和所述第二域组成;根据解压后的所述第一域和解压后的所述第二域,组成所述第一数据包;根据解压后的所述第二域包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the first field in the second data packet and the data content stored in the static buffer, decompress the first field to generate the decompressed first field; according to the second The data content contained in the second field in the data packet and the data content stored in the combination buffer are decompressed to the second field to generate the decompressed second field; wherein the combination buffer is composed of the static buffer and The dynamic buffer combination is generated, the second data packet is composed of the first domain and the second domain; according to the decompressed first domain and the decompressed second domain, the second data packet is composed A data packet; update the data content stored in the dynamic buffer according to the data content contained in the decompressed second domain; or根据所述第二数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行解压,生成解压后的所述第一域;根据所述第二数据包中第二域的第一数据段包含的数据内容和所述静态buffer中存储的数据内容,对所述第一数据段进行解压,生成解压后的所述第一数据段;根据所述第二数据包中所述第二域的第二数据段包含的数据内容和所述动态buffer中存储的数据内容,对所述第二数据段进行解压,生成解压后的所述第二数据段;其中,所述第二数据包由所述第一域和所述第二域组成,所述第二域由所述第一数据段和所述第二数据段组成;根据解压后的所述第一域、解压后的所述第一数据段,以及解压后的所述第二数据段,组成所述第一数据包;根据解压后的所述第二数据段包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the first field in the second data packet and the data content stored in the static buffer, decompress the first field to generate the decompressed first field; according to the second The data content contained in the first data segment of the second domain in the data packet and the data content stored in the static buffer, decompress the first data segment to generate the decompressed first data segment; according to the The data content contained in the second data segment of the second field in the second data packet and the data content stored in the dynamic buffer, decompress the second data segment, and generate the decompressed second data segment ; Wherein, the second data packet is composed of the first domain and the second domain, and the second domain is composed of the first data segment and the second data segment; according to the decompressed The first domain, the decompressed first data segment, and the decompressed second data segment form the first data packet; according to the data content contained in the decompressed second data segment, update the The data content stored in the dynamic buffer; or根据所述第二数据包中第一域包含的数据内容和所述静态buffer中存储的数据内容,对所述第一域进行解压,生成解压后的所述第一域;根据所述第二数据包中第二域包含的数据内容和第一buffer中存储的数据内容,对所述第二域进行解压,生成解压后的所述第二域;其中,所述第一buffer为所述静态buffer或所述动态buffer,所述第一数据包由所述第一域和所述第二域组成;根据解压后的所述第一域和解压后的所述第二域,组成所述第一数据包;当所述第一buffer为所述动态buffer时,根据解压后的所述第二域包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the first field in the second data packet and the data content stored in the static buffer, decompress the first field to generate the decompressed first field; according to the second The data content contained in the second field in the data packet and the data content stored in the first buffer are decompressed to the second field to generate the decompressed second field; wherein the first buffer is the static buffer or the dynamic buffer, the first data packet is composed of the first domain and the second domain; according to the decompressed first domain and the decompressed second domain, the second data packet is formed A data packet; when the first buffer is the dynamic buffer, update the data content stored in the dynamic buffer according to the data content contained in the decompressed second domain; or根据所述第二数据包中包含的数据内容和组合buffer中存储的数据内容,对所述第二数据包进行解压,生成所述第一数据包;其中,所述组合buffer由所述静态buffer和所述动态buffer组合生成;根据所述第一数据包中包含的数据内容,更新所述动态buffer中存储的数据内容;或者According to the data content contained in the second data packet and the data content stored in the combined buffer, the second data packet is decompressed to generate the first data packet; wherein the combined buffer is composed of the static buffer Generated in combination with the dynamic buffer; update the data content stored in the dynamic buffer according to the data content contained in the first data packet; or根据所述第二数据包中包含的数据内容和第一buffer中存储的数据内容,对所述第二数据包进行解压,生成所述第一数据包;其中,所述第一buffer为所述静态buffer或所述动态buffer;当所述第一buffer为所述动态buffer时,根据所述第一数据包中包含的数据内容,更新所述动态buffer中存储的数据内容。According to the data content contained in the second data packet and the data content stored in the first buffer, the second data packet is decompressed to generate the first data packet; wherein the first buffer is the A static buffer or the dynamic buffer; when the first buffer is the dynamic buffer, update the data content stored in the dynamic buffer according to the data content contained in the first data packet.
- 如权利要求16所述的方法,其特征在于,所述第一域为包头,所述第二域为有效载荷;或者所述第一域为有效载荷,所述第二域为包头。The method according to claim 16, wherein the first field is a packet header, and the second field is a payload; or the first field is a payload, and the second field is a packet header.
- 如权利要求16或17所述的方法,其特征在于,所述解压buffer配置信息用于指示:所述动态buffer的大小和/或填充到所述动态buffer的初始数据内容,以及所述静态buffer的大小和/或填充到所述静态buffer的静态数据内容。The method according to claim 16 or 17, wherein the decompression buffer configuration information is used to indicate: the size of the dynamic buffer and/or the initial data content filled into the dynamic buffer, and the static buffer The size and/or content of static data filled into the static buffer.
- 如权利要求13-18任一项所述的方法,其特征在于,获取解压配置信息,包括:The method according to any one of claims 13-18, wherein obtaining decompression configuration information includes:接收来自所述第一通信设备或第三通信设备的所述解压配置信息;或者receiving said decompressed configuration information from said first communications device or a third communications device; or获取保存的所述解压配置信息。Obtain the saved configuration information for decompression.
- 如权利要求13-19任一项所述的方法,其特征在于,在接收来自第一通信设备的第二数据包之前,所述方法还包括:The method according to any one of claims 13-19, wherein before receiving the second data packet from the first communication device, the method further comprises:向所述第一通信设备发送压缩配置信息;其中,所述压缩配置信息包含:压缩方式指示信息和压缩缓存buffer配置信息,所述压缩方式指示信息用于指示所述第一通信设备对数据包进行压缩处理的目标压缩方式,所述压缩buffer配置信息用于配置对数据包进行压缩时所使用的目标压缩buffer;所述目标压缩方式与所述目标解压方式相对应,所述目标压缩buffer与所述目标解压buffer的配置相同。sending compression configuration information to the first communication device; wherein, the compression configuration information includes: compression mode indication information and compression buffer configuration information, and the compression mode indication information is used to instruct the first communication device to process the data packet The target compression mode for compression processing, the compression buffer configuration information is used to configure the target compression buffer used when compressing the data packet; the target compression mode corresponds to the target decompression mode, and the target compression buffer and The configuration of the target decompression buffer is the same.
- 如权利要求13-20任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 13-20, further comprising:更新所述目标解压buffer;updating the target decompression buffer;向所述第一通信设备发送buffer更新信息,所述buffer更新信息用于指示所述第一通信设备调整所述目标压缩buffer的大小,和/或,更新所述目标压缩buffer存储的数据内容;sending buffer update information to the first communication device, where the buffer update information is used to instruct the first communication device to adjust the size of the target compression buffer, and/or update the data content stored in the target compression buffer;在接收来自所述第一通信设备的第四数据包后,采用所述目标解压方式根据更新后的所述目标解压buffer对所述第四数据包进行解压,生成第三数据包;其中,所述第四数据包为所述第一通信设备对所述第三数据包进行压缩生成的。After receiving the fourth data packet from the first communication device, using the target decompression method to decompress the fourth data packet according to the updated target decompression buffer to generate a third data packet; wherein, The fourth data packet is generated by the first communication device compressing the third data packet.
- 如权利要求21所述的方法,其特征在于,在向所述第一通信设备发送buffer更新信息之前,所述方法还包括:The method according to claim 21, wherein before sending buffer update information to the first communication device, the method further comprises:向所述第一通信设备发送停止压缩指令;其中,所述停止压缩指令用于指示所述第一通信设备停止使用所述目标压缩buffer对数据包进行压缩。Sending a stop compression instruction to the first communication device; wherein the stop compression instruction is used to instruct the first communication device to stop using the target compression buffer to compress data packets.
- 如权利要求21所述的方法,其特征在于,所述buffer更新信息中还包括:第三指示信息;所述第三指示信息用于指示使用更新后的所述目标压缩buffer进行压缩的数据包;The method according to claim 21, wherein the buffer update information further includes: third indication information; the third indication information is used to indicate the data packets compressed using the updated target compression buffer ;所述第三数据包为所述第三指示信息所指示的数据包。The third data packet is the data packet indicated by the third indication information.
- 如权利要求21-23任一项所述的方法,其特征在于,所述第四数据包中还包括第四指示信息,所述第四指示信息用于指示所述第四数据包为所述第一通信设备使用更新后的所述目标压缩buffer进行压缩生成的。The method according to any one of claims 21-23, wherein the fourth data packet further includes fourth indication information, and the fourth indication information is used to indicate that the fourth data packet is the The first communication device uses the updated target compression buffer to perform compression and generate it.
- 如权利要求13-24任一项所述的方法,其特征在于,所述第一通信设备为终端设备,所述第二通信设备为基站;或者The method according to any one of claims 13-24, wherein the first communication device is a terminal device, and the second communication device is a base station; or所述第一通信设备为基站,所述第二通信设备为终端设备;或者The first communication device is a base station, and the second communication device is a terminal device; or所述第一通信设备和所述第二通信设备为不同的终端设备;或者The first communication device and the second communication device are different terminal devices; or所述第一通信设备为终端设备,所述第二通信设备为核心网设备;或者The first communication device is a terminal device, and the second communication device is a core network device; or所述第一通信设备为核心网设备,所述第二通信设备为终端设备;或者The first communication device is a core network device, and the second communication device is a terminal device; or所述第一通信设备为基站,所述第二通信设备为核心网设备;或者The first communication device is a base station, and the second communication device is a core network device; or所述第一通信设备为核心网设备,所述第二通信设备为基站;The first communication device is a core network device, and the second communication device is a base station;所述第一通信设备和所述第二通信设备为不同的核心网设备。The first communication device and the second communication device are different core network devices.
- 一种通信装置,应用于第一通信设备,其特征在于,包括:A communication device applied to a first communication device, characterized in that it includes:通信单元,用于接收和发送数据;a communication unit for receiving and sending data;处理单元,用于通过所述通信单元,执行如权利要求1-12任一项所述的方法。A processing unit, configured to execute the method according to any one of claims 1-12 through the communication unit.
- 一种通信装置,应用于第二通信设备,其特征在于,包括:A communication device applied to a second communication device, characterized in that it includes:通信单元,用于接收和发送数据;a communication unit for receiving and sending data;处理单元,用于通过所述通信单元,执行如权利要求13-25任一项所述的方法。A processing unit, configured to execute the method according to any one of claims 13-25 through the communication unit.
- 一种通信系统,其特征在于,包括:A communication system, characterized in that it includes:第一通信设备,用于实现如权利要求1-12任一项所述的方法;A first communication device, configured to implement the method according to any one of claims 1-12;第二通信设备,用于实现如权利要求13-25任一项所述的方法。The second communication device is configured to implement the method according to any one of claims 13-25.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行权利要求1-25任一项所述的方法。A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is run on a computer, the computer is made to execute the computer program described in any one of claims 1-25. described method.
- 一种芯片,其特征在于,所述芯片与存储器耦合,所述芯片读取所述存储器中存储的计算机程序,执行权利要求1-25任一项所述的方法。A chip, characterized in that the chip is coupled to a memory, and the chip reads a computer program stored in the memory to execute the method according to any one of claims 1-25.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110866746.0A CN115695563A (en) | 2021-07-29 | 2021-07-29 | Communication method, device and equipment |
CN202110866746.0 | 2021-07-29 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023005452A1 true WO2023005452A1 (en) | 2023-02-02 |
Family
ID=85058604
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/098153 WO2023005452A1 (en) | 2021-07-29 | 2022-06-10 | Communication method and apparatus, and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115695563A (en) |
WO (1) | WO2023005452A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024174667A1 (en) * | 2023-02-24 | 2024-08-29 | 华为技术有限公司 | Method for transmitting data in network, apparatus, device and storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115801902B (en) * | 2023-02-09 | 2023-04-11 | 北京特立信电子技术股份有限公司 | Compression method of network access request data |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104283777A (en) * | 2013-07-03 | 2015-01-14 | 华为技术有限公司 | Message compression method and device |
US20150293700A1 (en) * | 2014-04-09 | 2015-10-15 | Fujitsu Limited | Control apparatus and control method |
CN108200091A (en) * | 2013-01-17 | 2018-06-22 | 华为技术有限公司 | A kind of data package processing method and device |
CN112398790A (en) * | 2019-08-15 | 2021-02-23 | 华为技术有限公司 | Communication method and device |
-
2021
- 2021-07-29 CN CN202110866746.0A patent/CN115695563A/en active Pending
-
2022
- 2022-06-10 WO PCT/CN2022/098153 patent/WO2023005452A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108200091A (en) * | 2013-01-17 | 2018-06-22 | 华为技术有限公司 | A kind of data package processing method and device |
CN104283777A (en) * | 2013-07-03 | 2015-01-14 | 华为技术有限公司 | Message compression method and device |
US20150293700A1 (en) * | 2014-04-09 | 2015-10-15 | Fujitsu Limited | Control apparatus and control method |
CN112398790A (en) * | 2019-08-15 | 2021-02-23 | 华为技术有限公司 | Communication method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024174667A1 (en) * | 2023-02-24 | 2024-08-29 | 华为技术有限公司 | Method for transmitting data in network, apparatus, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115695563A (en) | 2023-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230180349A1 (en) | Bearer configuration method and apparatus, context information management method and apparatus, releasing method and apparatus, and device | |
US20210092667A1 (en) | Configuration method, data transmission method, and apparatus | |
US10412650B2 (en) | Data transmission method, apparatus and system | |
US11968565B2 (en) | User plane information reporting method and apparatus | |
EP4096299A1 (en) | Data transmission method and data transmission apparatus | |
CN110166273A (en) | A kind of transmission method and the network equipment | |
EP3664507B1 (en) | Communication methods for a master base station and a terminal | |
WO2023005452A1 (en) | Communication method and apparatus, and device | |
EP4016948A1 (en) | Method and apparatus for compressing ethernet header, and method and apparatus for decompressing ethernet header | |
US20240179560A1 (en) | Communication method and communication apparatus | |
US10136362B2 (en) | Capability negotiation method, system and apparatus | |
US20240031065A1 (en) | Communication method and communication apparatus | |
WO2023102938A1 (en) | Wireless communication method and communication device | |
EP2600643A1 (en) | Method, system and related equipment for transmitting service type information | |
CN112187400B (en) | Data transmission method and device | |
JP7434663B2 (en) | Data compression method, device and storage medium | |
WO2023138547A1 (en) | Tunnel information sending method and apparatus | |
WO2024082361A1 (en) | Method and apparatus of data transmission | |
WO2024140801A1 (en) | Data transmission method, apparatus and system | |
EP4311298A1 (en) | Communication method, and device | |
WO2023028972A1 (en) | Data processing method and apparatus thereof | |
EP4351209A1 (en) | Session management method and apparatus | |
CN117395674A (en) | Method and system for transmitting non-activated uplink small data, base station and terminal | |
CN118216103A (en) | Communication method and device | |
KR20100038084A (en) | Method and system for tansmitting/receiving asymmetric two-way packet data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22848061 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 22848061 Country of ref document: EP Kind code of ref document: A1 |