摘要 |
The present invention provides a packet compression method and apparatus, relates to the technical field of communications, and solves the problem that a packet is compressed by using a method of compressing a header and a body together, which increases the complexity of a compression process. The method of the present invention may specifically include: receiving a to-be-compressed packet sent by a transmit end; obtaining first original content in an unchangeable part of the to-be-compressed packet, and obtaining second original content in a changeable part of the to-be-compressed packet; compressing the first original content by using a static dictionary, to obtain first compressed content, and compressing the second original content by using a dynamic dictionary, to obtain second compressed content; and sending a compressed packet to a receive end, the compressed packet comprising the first compressed content and the second compressed content. The method is applicable to packet compression. |