IP message compression method and device, equipment and storage medium

By using proxy modules and address information tables in the IP message compression system, efficient compression and decompression of the IP protocol header is solved, and server overhead problems caused by the complexity of the ROHC algorithm is improved, and data transmission efficiency and resource utilization are improved.

CN119629254APending Publication Date: 2025-03-14STORAGEX TECH INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411846973.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

The implementation process of ROHC compression algorithm is complicated, resulting in large server overhead, affecting the full utilization of AI computing power.

Method used

By introducing the first and second proxy modules into the IP message compression system, real-time update and synchronization is used to achieve real-time compression and decompression of the IP protocol header, retaining necessary fields and omitting duplicate or unchanging fields during transmission.

Benefits of technology

Improve data compression rate, compressing 20-byte IP header to 6 bits, improving data access speed and resource utilization, and reducing server overhead.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119629254A_ABST
    Figure CN119629254A_ABST
Patent Text Reader

Abstract

The invention relates to an IP message compression method and device, equipment and a storage medium, and is applied to the field of communication, and the method comprises the steps: a first agent module receives an original IP data packet, analyzes the original IP data packet, and obtains an IP protocol header and a user data packet; the first agent module compresses the IP protocol header according to a preset compression rule, and obtains an IP protocol compression header; the first agent module establishes a first address information table according to the IP protocol compression header; the second agent module updates the second address information table according to the first address information table and establishes connection with the first agent module; the first agent module constructs a compressed data packet according to the first address information table and the user data packet, and transmits the compressed data packet to the second agent module; and the second agent module decompresses the compressed data packet according to the updated second address information table to obtain a decompressed data packet. The technical effect of the invention is that the data compression rate is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to an IP message compression method, device, equipment and storage medium. Background Art

[0002] When AI servers and clients request to use AI computing resources through the proxy module and the wireless channel it generates, communication traffic will be generated between the server and the client. When the client generates a large number of continuous short IP packets, the channel utilization rate is low when the wireless channel bandwidth is not high (such as in the IoT scenario), which is not conducive to the full utilization of AI computing power. Therefore, the transmitted IP packets need to be compressed before transmission.

[0003] The compression of IP packets is divided into protocol header compression and user data compression. For some short IP packets with small user data, only the IP protocol header can be compressed, thereby improving the efficiency of data processing. The IP protocol header compression method can mainly be achieved through the ROHC compression algorithm. ROHC (Robust Header Compression) is a header compression method applied to wireless links. ROHC gradually compresses the header through three stages: initialization, refresh, and stabilization. It uses context to save status information and keeps context synchronization by sending small update packets. However, the implementation process of the ROHC compression algorithm is complicated, which will result in a large overhead on the server. Summary of the invention

[0004] In order to help solve the problem that the implementation process of the ROHC compression algorithm is complex and causes high server overhead, the present application provides an IP message compression method, device, equipment and storage medium.

[0005] In a first aspect, the present application provides an IP message compression method, which adopts the following technical solution: the method is applied to an IP message compression system, the IP message compression system includes a first proxy module and a second proxy module, the first proxy module is used to compress an IP protocol header and communicate wirelessly with the second proxy module, the second proxy module is used to decompress the IP protocol header and communicate with the first proxy module, the second proxy module includes a second address information table, and the method includes:

[0006] The first proxy module receives the original IP data packet, parses the original IP data packet and obtains the IP protocol header and the user data packet;

[0007] The first proxy module compresses the IP protocol header according to a preset compression rule and obtains an IP protocol compressed header;

[0008] The first proxy module establishes a first address information table according to the IP protocol compression header;

[0009] The second proxy module updates the second address information table according to the first address information table and establishes a connection with the first proxy module;

[0010] The first proxy module constructs a compressed data packet according to the first address information table and the user data packet, and transmits the compressed data packet to the second proxy module;

[0011] The second proxy module decompresses the compressed data packet according to the updated second address information table to obtain a decompressed data packet, and transmits the decompressed data packet to the AI ​​server.

[0012] In a specific implementation scheme, the first proxy module compresses the IP protocol header according to a preset compression rule, and obtains the IP protocol compressed header including:

[0013] The first proxy module extracts and compresses some fields in the IP protocol header to generate some reserved fields;

[0014] The first proxy module sets the part of reserved fields as the IP protocol compression header.

[0015] In a specific implementation scheme, the partially reserved fields include a compressed service type field and a protocol field.

[0016] In a specific implementation scheme, the first proxy module establishes the first address information table according to the IP protocol compression header, including:

[0017] The first proxy module determines whether a first address information table exists;

[0018] If the first address information table does not exist, the first proxy module establishes the first address information table according to the IP protocol compression header, and stores the IP address information corresponding to the IP protocol compression header into the first address information table;

[0019] If the first address information table exists, the first proxy module queries the existing first address information table, and determines whether the IP address information corresponding to the IP protocol compression header is stored in the existing first address information table;

[0020] If the existing first address information table does not store the IP address information corresponding to the IP protocol compression header, the first proxy module stores the IP address information corresponding to the IP protocol compression header in the existing first address information table.

[0021] In a specific implementation scheme, the second proxy module updates the second address information table according to the first address information table, and establishes a connection with the first proxy module, including:

[0022] The first proxy module sends a connection establishment request to the second proxy module;

[0023] The second proxy module receives the connection establishment request and determines whether the amount of IP address information stored in the second address information table exceeds the capacity of the IP packet compression system;

[0024] If the amount of IP address information stored in the address information table exceeds the capacity of the IP message compression system, the second proxy module does not process the connection establishment request;

[0025] If the amount of IP address information stored in the address information table does not exceed the capacity of the IP packet compression system, the second proxy module updates the second address information table according to the first address information table, and feeds back a connection completion signal to the first proxy module.

[0026] In a specific implementation scheme, the second proxy module decompresses the compressed data packet according to the updated second address information table to obtain the decompressed data packet, including:

[0027] The second proxy module extracts the IP protocol compression header from the second address information table;

[0028] The second proxy module restores the IP protocol compression header according to a preset compression rule and generates an IP protocol restoration header;

[0029] The second proxy module combines the IP protocol restoration header with the user data to generate the decompressed data packet.

[0030] In a specific implementation scheme, after the second proxy module decompresses the compressed data packet according to the updated second address information table to obtain a decompressed data packet, and transmits the decompressed data packet to the AI ​​server, it also includes:

[0031] The first proxy module determines whether data transmitted by the IP address corresponding to the original IP data packet is received again within a preset time;

[0032] If the first proxy module determines that data transmitted by the IP address corresponding to the original IP data packet is received again within a preset time, the first proxy module retains the IP address information corresponding to the original IP data packet in the first address information table;

[0033] If the first proxy module determines that no data transmitted by the IP address corresponding to the original IP data packet is received again within a preset time, the first proxy module deletes the IP address information corresponding to the original IP data packet from the first address information table, and transmits a signal of address information deletion to the second proxy module;

[0034] The second agent module receives a signal indicating that the address information is deleted, and updates the second address information table according to the first address information table.

[0035] In a second aspect, the present application provides an IP message compression device, which adopts the following technical solution: the device is applied to an IP message compression system, the IP message compression system includes a first proxy module and a second proxy module, the first proxy module is used to compress the IP protocol header and communicate wirelessly with the second proxy module, the second proxy module is used to decompress the IP protocol header and communicate with the first proxy module, the second proxy module includes a second address information table, and the device includes:

[0036] The first proxy module is used to receive the original IP data packet, parse the original IP data packet and obtain the IP protocol header and the user data packet;

[0037] The first proxy module is used to compress the IP protocol header according to a preset compression rule and obtain an IP protocol compressed header;

[0038] The first proxy module is used to establish a first address information table according to the IP protocol compression header;

[0039] The second proxy module is used to update the second address information table according to the first address information table and establish a connection with the first proxy module;

[0040] The first proxy module is used to construct a compressed data packet according to the first address information table and the user data packet, and transmit the compressed data packet to the second proxy module;

[0041] The second proxy module is used to decompress the compressed data packet according to the updated second address information table to obtain a decompressed data packet, and transmit the decompressed data packet to the AI ​​server.

[0042] In a third aspect, the present application provides a computer device, which adopts the following technical solution: it includes a memory and a processor, and the memory stores a computer program that can be loaded by the processor and execute any of the above-mentioned IP packet compression methods.

[0043] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: storing a computer program that can be loaded by a processor and execute any of the above-mentioned IP packet compression methods.

[0044] In summary, this application has the following beneficial technical effects:

[0045] 1. By establishing an address information table, the address information table is updated in real time during the communication process of the proxy module to achieve synchronization of the contents in the address information tables at both ends;

[0046] 2. When performing compression processing, the required fields are retained, and a large number of repeated fields or fields that do not change during transmission are not transmitted, so as to achieve the purpose of compression. The untransmitted fields are directly restored on the second proxy module end, and the restored data packet can be obtained by combining with the reserved fields, thereby improving the data compression rate and compressing the 20-byte IP header to 6 bits;

[0047] 3. It can improve data access speed and resource utilization. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 It is a diagram for explaining the communication between the client and the AI ​​server;

[0049] Figure 2 It is a flowchart of the IP message compression method in an embodiment of the present application;

[0050] Figure 3 It is a communication schematic diagram of IP message compression in an embodiment of the present application;

[0051] Figure 4 It is a schematic diagram used to embody a computer device in an embodiment of the present application. DETAILED DESCRIPTION

[0052] The following combination Figure 1-Figure 4 This application is described in further detail.

[0053] An embodiment of the present application discloses an IP message compression method, which is applied to an IP message compression system. The method can be used to compress the IP protocol header, has a wide range of applications, and has high compression efficiency. When the communication bandwidth is limited, the utilization efficiency of the AI ​​server is improved.

[0054] When AI servers and clients request to use AI computing resources through the proxy module and the wireless channel it generates, communication traffic will be generated between the server and the client. Figure 1When the client generates a large number of continuous short messages, the channel utilization rate is low when the wireless channel bandwidth is not high (such as in the IoT scenario), which is not conducive to the full utilization of AI computing power. Therefore, it is necessary to compress the IP messages transmitted between proxy modules before transmission. The proxy module can be a Bluetooth module, an IoT module, a Zigbee module, etc. The compression of IP messages is divided into protocol header compression and user data compression. For some IP messages with small user data, only the IP protocol header can be compressed, thereby improving data processing efficiency.

[0055] The IP protocol header compression method can mainly be achieved through the ROHC compression algorithm. ROHC (Robust Header Compression) is a header compression method used in wireless links. ROHC gradually compresses the header through three stages: initialization, refresh, and stabilization. It uses context to save state information and keeps context synchronization by sending small update packets. However, the implementation process of the ROHC compression algorithm is complex, which will cause high overhead on the server.

[0056] In addition, the method for compressing the IP protocol header can also use the VJHC compression algorithm and the IPHC compression algorithm. VJHC (Van Jacobson Header Compression) is a TCP / IP header compression algorithm applied on a PPP link. The VJHC compression algorithm uses the redundancy in the TCP connection to achieve compression by sending the difference of the fields with smaller changes in the TCP header; IPHC (IP Header Compression) is an IP header compression algorithm applied on a PPP link. It can compress any IP, TCP and UDP headers, and reduce the header size by omitting redundant or unchanged fields in the IPv6 header. It is suitable for low-power and low-bandwidth networks. However, there are certain limitations in the use of the VJHC compression algorithm and the IPHC compression algorithm. The VJHC compression algorithm is limited to TCP links, while the IPHC compression algorithm is dedicated to IPv6 networks, with a limited scope of use, and is not applicable to other IP protocols. Therefore, in order to simplify the implementation process of compression, reduce computational overhead, and expand the scope of application of the compression method, the present application provides an IP message compression method.

[0057] Reference Figure 2 , the method comprises the following steps:

[0058] S10, the first proxy module receives the original IP data packet, parses the original IP data packet and obtains the IP protocol header and the user data packet.

[0059] Specifically, refer to Figure 3The IP packet compression system includes a first and a second proxy module. The first proxy module is used to communicate directly with the client to obtain the IP packet data transmitted by the client, and the second proxy module is used to communicate directly with the AI ​​server to request computing resources in the AI ​​server. Among them, the first and second proxy modules are specifically modules with wireless communication functions, for example, they can be Bluetooth modules, Zigbee modules, Internet of Things modules, etc. In this type of usage scenario, the bandwidth of the wireless channel is low, and it is necessary to compress the data to improve the data transmission efficiency. The original IP data packet sent by the client received by the first proxy module includes two parts, the IP protocol header and the user data packet. The two parts of the IP data packet are obtained by parsing.

[0060] S20, the first proxy module compresses the IP protocol header according to a preset compression rule and obtains an IP protocol compressed header.

[0061] Specifically, considering that there are a large number of repeated or compressible fields in the transmission process between the client and the AI ​​server, the first proxy module compresses the IP protocol header. The compression method can be specifically performed as follows: the first proxy module extracts some fields in the IP protocol header and compresses them to generate some reserved fields. The reserved fields include the compressed service type field (DSCP) and protocol field. Then, some reserved fields are set as the IP protocol compression header, and the remaining fields in the IP protocol header are not transmitted. The IP protocol header is 20 bytes, and the length of each field after compression is shown in Table 1 below.

[0062] Table 1, comparison table of each field in the IP protocol header before and after compression

[0063]

[0064] After compression using the compression rules in Table 1, the original 20-byte IP protocol header can be compressed to 5 bits.

[0065] S30, the first proxy module establishes a first address information table according to the IP protocol compression header.

[0066] Specifically, the first proxy module compresses the IP protocol header according to the compression rules and constructs an address information table. Specifically, when data is transmitted for the first time, if the address information table does not exist in the first proxy module, it is necessary to establish the first address information table. In subsequent data transmission, if the first address information table already exists, it is only necessary to query the IP address information in the first address information table for updating and maintenance.

[0067] S40: The second proxy module updates the second address information table according to the first address information table, and establishes a connection with the first proxy module.

[0068] Specifically, a second address information table has been established in the second proxy module. The second proxy module updates the second address information table according to the information in the first address information table and establishes a connection with the first proxy module. After the connection is successfully established, the second proxy module sends a response signal to the first proxy module. After receiving the response signal, the first proxy module can send the data packet to be transmitted.

[0069] S50, the first proxy module constructs a compressed data packet according to the first address information table and the user data packet, and transmits the compressed data packet to the second proxy module.

[0070] Specifically, the first proxy module constructs a compressed data packet according to the content in the first address information table and the user data packet to be transmitted, and transmits the constructed compressed data packet to the second proxy module. The fields in the constructed data packet include the address information entry serial number (ID), the transmitted data type and the user data packet, as shown in Table 2 below.

[0071] Table 2, compressed data packet definition

[0072]

[0073] S60, the second proxy module decompresses the compressed data packet according to the updated second address information table to obtain a decompressed data packet, and transmits the decompressed data packet to the AI ​​server.

[0074] Specifically, after receiving the compressed data packet, the second agent module restores the compressed data packet according to the preset compression rules to obtain a decompressed data packet, and transmits the decompressed data packet to the AI ​​server to apply for the required AI computing power resources.

[0075] The specific decompression method can be executed as follows: the second proxy module extracts the IP protocol compression header from the second address information table. Specifically, the IP address information corresponding to the address information entry ID can be extracted, and the corresponding IP protocol compression header can be obtained according to the extracted IP address information; then the second proxy module restores the IP protocol compression header according to the preset compression rule, and generates an IP protocol restoration header. The IP compression protocol header retains the two fields of the service type and protocol field in the original IP protocol header. These two fields can be extracted and restored from the corresponding IP address information in the second address information table; then, according to the decompression rule, the remaining fields are filled and restored to obtain the IP protocol restoration header. Finally, the second proxy module combines the IP protocol restoration header with the user data to generate a decompressed data packet. The data decompression rules are shown in Table 3 below.

[0076] Table 3, data decompression rules table

[0077]

[0078] In the present application, by establishing an address information table, the address information table is updated in real time during the proxy module communication process, so as to achieve synchronization of the contents in the address information tables at both ends. When performing compression processing, the required fields are retained, and a large number of repeated fields or fields that do not change during the transmission process are not transmitted, so as to achieve the purpose of compression. The untransmitted fields are directly restored in the second proxy module, and the restored data packet can be obtained by combining the reserved fields, thereby improving the data compression rate, compressing the 20-byte IP header to 5 bits, and improving the data access speed and computing resource utilization.

[0079] In one embodiment, the first proxy module may establish the first address information table according to the IP protocol compression header in the following manner:

[0080] First, the first proxy module determines whether there is a first address information table. When data is transmitted for the first time, the module does not contain the address information table, and a table needs to be established. In the subsequent data transmission process, addition, update and deletion operations can be performed based on the existing table. If the first address information table does not exist, that is, the address information table is not established in the first proxy module, the first proxy module establishes the first address information table according to the IP protocol compression header, and stores the IP address information corresponding to the IP protocol compression header in the first address information table; specifically, the address information table is established according to the compressed IP protocol header, and the compressed IP protocol compression header retains the two fields of service type (DSCP) and protocol field. After that, the corresponding IP address information is stored in the address information table. The stored IP address includes the source IP address and the destination IP address. The stored IP address information refers to Table 4, and the established address information table refers to Table 5.

[0081] Table 4, IP address information definition

[0082]

[0083] Table 5, Address information table definition

[0084] Serial number content 1. IP address information 1 2. IP address information 2 … … 16. IP address information 16

[0085] If there is a first address information table, the first proxy module queries the existing first address information table and determines whether the IP address information corresponding to the IP protocol compression header is stored in the existing first address information table; if the IP address information corresponding to the IP protocol compression header is not stored in the existing first address information table, the first proxy module saves the IP address information corresponding to the IP protocol compression header into the existing first address information table. Referring to Table 4 and Table 5, the IP address information stores the address information entry ID, source IP address and destination IP address. Check whether the existing address information table stores the IP address information corresponding to the IP data packet to be transmitted. If it does, no processing is required. If it does not, a new address information entry is added and the corresponding IP address information is stored in the address information table.

[0086] In one embodiment, the second proxy module updates the second address information table according to the first address information table and establishes a connection with the first proxy module in a manner that can be specifically performed as follows:

[0087] First, the first proxy module sends a connection establishment request to the second proxy module, the second proxy module receives the connection establishment request, and determines whether the number of IP address information stored in the second address information table exceeds the capacity of the IP message compression system. For example, in the embodiment of the present application, it is set that the system can support up to 16 clients for data transmission, then it is necessary to determine whether the maximum value of the ID of the address information entry exceeds 16; if the number of IP address information stored in the address information table exceeds the capacity of the IP message compression system, for example, the number of address information entry IDs exceeds 16, then the second proxy module does not process the connection establishment request, does not respond to the connection establishment request sent by the first proxy module, and the first proxy module automatically cancels the connection establishment after waiting for the response to time out. If the number of IP addresses stored in the address information table does not exceed the capacity of the IP message compression system, for example, the number of address information entries does not exceed 16, then the second proxy module updates the second address information table according to the first address information table, and feeds back a connection completion signal to the first proxy module, notifying the first proxy module that the connection is successfully established, and the first proxy module can perform subsequent data packet transmission operations.

[0088] In the present application scheme, the compressed data information is stored in a table by constructing an address information table, so as to facilitate information synchronization with the second-generation module and realize data compression and decompression, thereby improving the data compression rate; in addition, by constructing an information table and synchronizing the information tables at both ends, the scope of application of the compression and decompression method can be expanded.

[0089] In one embodiment, considering that if a client does not perform data transmission for a long time, the storage space of the address information table will be occupied, the second proxy module decompresses the compressed data packet according to the updated second address information table to obtain a decompressed data packet, and transmits the decompressed data packet to the AI ​​server, the following steps may be performed:

[0090] First, the first proxy module determines whether data transmitted by the IP address corresponding to the original IP data packet is received again within a preset time. Specifically, a client may transmit data multiple times, and the user data packet transmitted each time may not be fixed, but the IP address of the data transmission is fixed, which is the IP address of the client. Therefore, the IP address can be used to correspond to the client to determine whether a client performs multiple data transmissions over a long period of time; for example, the first proxy module determines whether a client transmits data multiple times within 30 minutes.

[0091] If the first proxy module determines that the data transmitted by the IP address corresponding to the original IP data packet is received again within the preset time, that is, a certain client transmits data to the first proxy module again within a period of time, then the first proxy module retains the IP address information corresponding to the original IP data packet in the first address information table, which can also be understood as the IP address information corresponding to the client is retained in the first address information table. If the first proxy module determines that the data transmitted by the IP address corresponding to the original IP data packet is not received again within the preset time, which can also be understood as a certain client does not send data to the first proxy module again for a long time, then the first proxy module deletes the IP address information corresponding to the original IP data packet in the first address information table, and transmits the address deletion signal to the second proxy module, that is, the first proxy module deletes the IP address information of the client in the first address information table and notifies the second proxy module; the second proxy module receives the address deletion signal and updates the second address information table according to the first address information table, that is, the IP address information of the client in the second address information table is also deleted accordingly. After deletion, if the client needs to transmit data again, the address information entry is added again, and then the corresponding data transmission is performed.

[0092] In the present application, the storage capacity of the address information table is limited. If a client occupies the address information table for a long time, it will take up storage space, causing data access speed to be affected. By regularly updating and maintaining the address information table, it can be ensured that the client addresses in the address information table are all IP addresses in use, thereby improving the utilization rate of the address information table.

[0093] Figure 2 FIG. 1 is a flow chart of an IP message compression method in an embodiment. It should be understood that although Figure 2The steps in the flowchart are shown in sequence as indicated by the arrows, but the steps are not necessarily executed in the order indicated by the arrows; unless otherwise specified in this document, there is no strict order restriction for the execution of the steps, and the steps may be executed in other orders; and Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0094] Based on the above method, an embodiment of the present application also discloses an IP message compression device.

[0095] The device includes the following modules:

[0096] The first proxy module is used to receive the original IP data packet, parse the original IP data packet and obtain the IP protocol header and the user data packet;

[0097] The first proxy module is used to compress the IP protocol header according to a preset compression rule and obtain the IP protocol compressed header;

[0098] The first proxy module is used to establish a first address information table according to the IP protocol compression header;

[0099] The second proxy module is used to update the second address information table according to the first address information table and establish a connection with the first proxy module;

[0100] The first proxy module is used to construct a compressed data packet according to the first address information table and the user data packet, and transmit the compressed data packet to the second proxy module;

[0101] The second proxy module is used to decompress the compressed data packet according to the updated second address information table to obtain a decompressed data packet, and transmit the decompressed data packet to the AI ​​server.

[0102] In one embodiment, the first proxy module extracts and compresses some fields in the IP protocol header to generate some reserved fields; the first proxy module sets the some reserved fields as the IP protocol compression header.

[0103] In one embodiment, the partially reserved fields include a compressed service type field and a protocol field.

[0104] In one embodiment, the first proxy module determines whether there is a first address information table; if there is no first address information table, the first proxy module establishes the first address information table according to the IP protocol compression header, and stores the IP address information corresponding to the IP protocol compression header in the first address information table; if there is a first address information table, the first proxy module queries the existing first address information table, and determines whether the existing first address information table stores the IP address information corresponding to the IP protocol compression header; if the existing first address information table does not store the IP address information corresponding to the IP protocol compression header, the first proxy module stores the IP address information corresponding to the IP protocol compression header in the existing first address information table.

[0105] In one embodiment, the first proxy module sends a connection establishment request to the second proxy module; the second proxy module receives the connection establishment request and determines whether the number of IP address information stored in the second address information table exceeds the capacity of the IP message compression system; if the number of IP address information stored in the address information table exceeds the capacity of the IP message compression system, the second proxy module does not process the connection establishment request; if the number of IP address information stored in the address information table does not exceed the capacity of the IP message compression system, the second proxy module updates the second address information table according to the first address information table, and feeds back a connection completion signal to the first proxy module.

[0106] In one embodiment, the second proxy module extracts the IP protocol compression header from the second address information table; the second proxy module restores the IP protocol compression header according to a preset compression rule and generates an IP protocol restoration header; the second proxy module combines the IP protocol restoration header with the user data to generate a decompressed data packet.

[0107] In one embodiment, the first proxy module determines whether the data transmitted by the IP address corresponding to the original IP data packet is received again within a preset time; if the first proxy module determines that the data transmitted by the IP address corresponding to the original IP data packet is received again within a preset time, the first proxy module retains the IP address information corresponding to the original IP data packet in the first address information table; if the first proxy module determines that the data transmitted by the IP address corresponding to the original IP data packet is not received again within the preset time, the first proxy module deletes the IP address information corresponding to the original IP data packet in the first address information table, and transmits the signal of address information deletion to the second proxy module; the second proxy module receives the signal of address information deletion, and updates the second address information table according to the first address information table. The IP message compression device provided in the embodiment of the present application can be applied to the IP message compression method provided in the above embodiment. For relevant details, refer to the above method embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0108] It should be noted that: when the IP message compression device provided in the embodiment of the present application performs IP message compression, only the division of the above-mentioned functional modules / functional units is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules / functional units as needed, that is, the internal structure of the IP message compression device is divided into different functional modules / functional units to complete all or part of the functions described above. In addition, the implementation method of the IP message compression method provided in the above method embodiment and the implementation method of the IP message compression device provided in this embodiment belong to the same concept. The specific implementation process of the IP message compression device provided in this embodiment is detailed in the above method embodiment, which will not be repeated here.

[0109] The embodiment of the present application also discloses a computer device.

[0110] Specifically, if Figure 4 As shown, the computer device can be a computer device such as a desktop computer, a laptop computer, a PDA, and a cloud server. The computer device may include, but is not limited to, a processor and a memory. The processor and the memory may be connected via a bus or otherwise. The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, graphics processors (GPU), embedded neural network processors (NPU) or other dedicated deep learning coprocessors, discrete gates or transistor logic devices, discrete hardware components and other chips, or a combination of the above-mentioned various chips.

[0111] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the methods in the above-mentioned embodiments of the present application. The processor executes various functional applications and data processing of the processor by running the non-transient software programs, instructions and modules stored in the memory, that is, the method in the above-mentioned method implementation is realized. The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.

[0112] The embodiment of the present application also discloses a computer-readable storage medium.

[0113] Specifically, a computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the method in the above-mentioned method implementation is implemented. Those skilled in the art will understand that the implementation of all or part of the process in the above-mentioned implementation method of the present application can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and the program, when executed, may include the process of the implementation of the above-mentioned methods. Among them, the storage medium may be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated as: HDD) or a solid-state drive (SSD), etc.; the storage medium may also include a combination of the above-mentioned types of memory.

[0114] This specific embodiment is merely an explanation of the present invention and is not a limitation of the present invention. After reading this specification, those skilled in the art may make non-creative modifications to the present embodiment as needed. However, as long as they are within the scope of the claims of the present invention, they are protected by the patent law.

Claims

1. A method for compressing IP packets, characterized in that: The method is applied to an IP message compression system, the IP message compression system includes a first proxy module and a second proxy module, the first proxy module is used to compress the IP protocol header and communicate wirelessly with the second proxy module, the second proxy module is used to decompress the IP protocol header and communicate with the first proxy module, the second proxy module includes a second address information table, and the method includes: The first proxy module receives the original IP data packet, parses the original IP data packet and obtains the IP protocol header and the user data packet; The first proxy module compresses the IP protocol header according to a preset compression rule and obtains an IP protocol compressed header; The first proxy module establishes a first address information table according to the IP protocol compression header; The second proxy module updates the second address information table according to the first address information table and establishes a connection with the first proxy module; The first proxy module constructs a compressed data packet according to the first address information table and the user data packet, and transmits the compressed data packet to the second proxy module; The second proxy module decompresses the compressed data packet according to the updated second address information table to obtain a decompressed data packet, and transmits the decompressed data packet to the AI ​​server.

2. The method according to claim 1, characterized in that: The first proxy module compresses the IP protocol header according to a preset compression rule, and obtains the IP protocol compression header including: The first proxy module extracts and compresses some fields in the IP protocol header to generate some reserved fields; The first proxy module sets the part of reserved fields as the IP protocol compression header.

3. The method according to claim 2, characterized in that: The partially reserved fields include a compressed service type field and a protocol field.

4. The method according to claim 1, characterized in that: The first proxy module establishes a first address information table according to the IP protocol compression header, including: The first proxy module determines whether a first address information table exists; If the first address information table does not exist, the first proxy module establishes the first address information table according to the IP protocol compression header, and stores the IP address information corresponding to the IP protocol compression header into the first address information table; If the first address information table exists, the first proxy module queries the existing first address information table, and determines whether the IP address information corresponding to the IP protocol compression header is stored in the existing first address information table; If the existing first address information table does not store the IP address information corresponding to the IP protocol compression header, the first proxy module stores the IP address information corresponding to the IP protocol compression header in the existing first address information table.

5. The method according to claim 1, characterized in that: The second proxy module updates the second address information table according to the first address information table, and establishes a connection with the first proxy module, including: The first proxy module sends a connection establishment request to the second proxy module; The second proxy module receives the connection establishment request and determines whether the amount of IP address information stored in the second address information table exceeds the capacity of the IP packet compression system; If the amount of IP address information stored in the address information table exceeds the capacity of the IP message compression system, the second proxy module does not process the connection establishment request; If the amount of IP address information stored in the address information table does not exceed the capacity of the IP packet compression system, the second proxy module updates the second address information table according to the first address information table, and feeds back a connection completion signal to the first proxy module.

6. The method according to claim 2, characterized in that: The second proxy module decompresses the compressed data packet according to the updated second address information table to obtain a decompressed data packet, including: The second proxy module extracts the IP protocol compression header from the second address information table; The second proxy module restores the IP protocol compression header according to a preset compression rule and generates an IP protocol restoration header; The second proxy module combines the IP protocol restoration header with the user data to generate the decompressed data packet.

7. The method according to claim 1, characterized in that: After the second proxy module decompresses the compressed data packet according to the updated second address information table to obtain a decompressed data packet, and transmits the decompressed data packet to the AI ​​server, the method further includes: The first proxy module determines whether data transmitted by the IP address corresponding to the original IP data packet is received again within a preset time; If the first proxy module determines that data transmitted by the IP address corresponding to the original IP data packet is received again within a preset time, the first proxy module retains the IP address information corresponding to the original IP data packet in the first address information table; If the first proxy module determines that no data transmitted by the IP address corresponding to the original IP data packet is received again within a preset time, the first proxy module deletes the IP address information corresponding to the original IP data packet from the first address information table, and transmits a signal of address information deletion to the second proxy module; The second agent module receives a signal indicating that the address information is deleted, and updates the second address information table according to the first address information table.

8. An IP message compression device, characterized in that: The device is applied to an IP message compression system, the IP message compression system includes a first proxy module and a second proxy module, the first proxy module is used to compress the IP protocol header and communicate wirelessly with the second proxy module, the second proxy module is used to decompress the IP protocol header and communicate with the first proxy module, the second proxy module includes a second address information table, and the device includes: The first proxy module is used to receive the original IP data packet, parse the original IP data packet and obtain the IP protocol header and the user data packet; The first proxy module is used to compress the IP protocol header according to a preset compression rule and obtain an IP protocol compressed header; The first proxy module is used to establish a first address information table according to the IP protocol compression header; The second proxy module is used to update the second address information table according to the first address information table and establish a connection with the first proxy module; The first proxy module is used to construct a compressed data packet according to the first address information table and the user data packet, and transmit the compressed data packet to the second proxy module; The second proxy module is used to decompress the compressed data packet according to the updated second address information table to obtain a decompressed data packet, and transmit the decompressed data packet to the AI ​​server.

9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and executes the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the method according to any one of claims 1 to 7.