摘要 |
The present specification provides for methods for compressing and decompressing data packets. These methods comprise classifying a data packet as related to an Internet service, determining a function that the classified data packet is intended to accomplish for the Internet service and determining a state that corresponds to the classified data packet, based on a state-machine and one or more states of the state-machine, wherein the state-machine and the one or more states are associated with the determined function in a conversion file applicable for the Internet service. The compression is achieved by detecting in the classified data packet a data pattern associated with the determined state in the conversion file, and by replacing the data pattern detected in the classified data packet by a token associated with the detected data pattern in the conversion file. The decompression is achieved by detecting in the classified data packet a token associated with the determined state in the conversion file, and by replacing the token detected in the classified data packet by a data pattern associated with the detected token in the conversion file. |