A high performance communication method
By establishing a compression mapping table between terminal devices and gateway devices, and performing session tag encapsulation and decapsulation processing, the efficiency and latency issues of traditional TCP/IP protocols in low-bandwidth environments are resolved, achieving high-performance network communication.
Patent Information
- Application Number
- CN202511368728.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-24
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2045-09-24
AI Technical Summary
In traditional network communication, the TCP/IP protocol suffers from high overhead, low transmission efficiency, and high latency in low-bandwidth environments, affecting services with high real-time requirements such as audio and video streaming data.
By establishing a compression mapping table, terminal devices and gateway devices are used to encapsulate and decapsulate session identifiers, reducing the bandwidth consumption of invalid payloads. This includes obtaining the forwarding direction, source IP address, source MAC address, source port number, destination IP address, destination MAC address, and destination port number of the packet, encapsulating and replacing session identifiers, and forming non-standard Ethernet packets.
This significantly reduces the bandwidth occupancy rate of invalid payloads, reduces the amount of data exchanged between devices, and thus reduces the total time for devices to process service messages.
Smart Images

Figure CN120881042B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network communication technology, and in particular to a high-performance communication method. Background Technology
[0002] Ethernet Transmission Control Protocol (TCP) and Internet Protocol (IP), as core standards for network communication today, are widely used in various fields. However, traditional Internet protocols have some drawbacks: 1. High overhead: Ethernet inter-frame gaps occupy 20 bytes of bandwidth, the Ethernet header's destination MAC, source MAC, and protocol type occupy a total of 14 bytes of bandwidth, and the IP header occupies a significant amount of bandwidth, with the IP header occupying 20 bytes, the TCP header 20 bytes, and the UDP header 8 bytes. This is particularly disadvantageous for high-volume transmission in low-bandwidth environments. 2. Low transmission efficiency: Under limited bandwidth conditions, a large number of headers and transmission control information consume a significant amount of bandwidth resources, leading to a reduction in the transmission rate of effective data. 3. High latency: Under low bandwidth conditions, transmission latency increases, affecting services with high real-time requirements, such as audio and video streaming data. Summary of the Invention
[0003] This invention provides a high-performance communication method, the purpose of which is to reduce the amount of service message data processed by the device, thereby reducing the total processing time.
[0004] To achieve the above objectives, this invention provides a high-performance communication method applied to a communication network consisting of a terminal device, a Wi-Fi gateway device, a 5G gateway device, and a cloud server connected in sequence. The communication method includes:
[0005] Step 1: Establish a compression mapping table by obtaining the packet forwarding direction, source IP address, source MAC address, source port number, destination IP address, destination MAC address, and destination port number;
[0006] Step 2: The terminal device obtains the IP address of the WIFI gateway device as the gateway address, sends the original service packet data to the WIFI gateway device, and performs session tag encapsulation processing on the original service packet data in the WIFI gateway device to obtain a non-standard Ethernet packet and sends it to the 5G gateway device.
[0007] Step 3: The 5G gateway device parses the non-standard Ethernet packets, obtains the parsing results, and searches the compression mapping table based on the parsing results to obtain key information data;
[0008] Step 4: Replace the session identifier in the non-standard Ethernet packet with the parsing results and key information data to obtain the original service packet data, and send the original service packet data to the cloud server.
[0009] Step 5: After receiving the original service message data, the cloud server sends the original response message to the 5G gateway device. The 5G gateway device performs reverse mapping processing on the original response message by looking up the compression mapping table to obtain the SID Ethernet response message.
[0010] Step 6: The 5G gateway device sends the SID Ethernet response message to the WIFI gateway device according to the session identifier in the SID Ethernet response message. The WIFI gateway device decapsulates the SID Ethernet response message to obtain the original response message and sends it to the terminal device.
[0011] Furthermore, step 1 includes:
[0012] Obtain the forwarding direction of the message;
[0013] Obtain the source IP address, source MAC address, source port number, destination IP address, destination MAC address, and destination port number based on the forwarding direction of the message;
[0014] The session identifier is calculated using the source IP address, source MAC address, source port number, destination IP address, destination MAC address, and destination port number.
[0015] Establish a mapping relationship between packet forwarding direction, source IP address, source MAC address, source port number, destination IP address, destination MAC address, destination port number and session identifier to obtain a compressed mapping table.
[0016] Furthermore, before the original service message data is encapsulated with session identifiers in the WIFI gateway device, the following steps are also included:
[0017] Determine the message type of the original service message data. If the message type of the original service message data is Ethernet Transmission Control Protocol or User Datagram Protocol, encapsulate the original service message data with session markers; otherwise, forward the original service message data directly to the 5G gateway device.
[0018] Determine the data type of the original service message data. If the data type of the original service message data is sensor lightweight service message data or video heavyweight service message data, encapsulate the original service message data with session markers; otherwise, forward the original service message data directly to the 5G gateway device.
[0019] Furthermore, the original service message data is encapsulated with session identifiers to obtain non-standard Ethernet messages, including:
[0020] Define an unsigned integer array of data type 32, with an element size of 12 and a length of 48 bytes.
[0021] The preset calculation algorithm is determined based on the length of the original business message data;
[0022] A checksum is generated based on a preset calculation algorithm, the original business message data, and an unsigned integer array.
[0023] The checksum is matched with the session identifier in the compression mapping table. If the match is successful, the checksum is used as the session identifier to encapsulate the original service message data, resulting in a non-standard Ethernet message.
[0024] Furthermore, the preset calculation algorithms include:
[0025] A preset operation expression that performs operations on the destination MAC address, the source MAC address, and an unsigned integer array;
[0026] Preset operation expressions for performing operations on source IP addresses, destination IP addresses, and unsigned integer arrays;
[0027] Preset operation expressions for performing operations on source port numbers, destination port numbers, and unsigned integer arrays;
[0028] Based on the calculation result, a preset calculation expression is generated to obtain the checksum corresponding to the original business message data.
[0029] Furthermore, the structure of a non-standard Ethernet packet is as follows:
[0030] The first byte indicates the message type, which is either Ethernet Transmission Control Protocol or User Datagram Protocol.
[0031] The second byte indicates the data type, which can be either lightweight sensor service message data or heavyweight video service message data.
[0032] The length of the original business message data is from the third byte to the eighteenth byte.
[0033] The nineteenth to twenty-second bytes are the session identifier;
[0034] The content of the original business message data is from the 23rd byte to the last byte.
[0035] Furthermore, when the data type is sensor lightweight service message data:
[0036] The sensor's lightweight service message data is sent to the WIFI gateway device. The WIFI gateway device encapsulates the sensor's lightweight service message data with session markers to obtain non-standard Ethernet messages, which are then sent to the 5G gateway device.
[0037] Furthermore, when the data type is video-heavyweight service message data:
[0038] Send heavy video service message data to the WIFI gateway device;
[0039] In the WIFI gateway device, video heavyweight service packet data is grouped to obtain multiple sets of service stream data content;
[0040] Each group of business flow data content is encapsulated with session markers to obtain multiple initial encapsulation results.
[0041] All initial encapsulation results are encapsulated a second time to obtain non-standard Ethernet packets with the same number of packets, which are then sent to the 5G gateway device as non-standard Ethernet packets.
[0042] Furthermore, terminal devices include audio and video devices and sensor devices.
[0043] Furthermore, the communication network includes at least one terminal device and at least one WIFI gateway device.
[0044] The above-described solution of the present invention has the following beneficial effects:
[0045] This invention establishes a compression mapping table by acquiring the forwarding direction, source IP address, source MAC address, source port number, destination IP address, destination MAC address, and destination port number of a packet. Using the IP address of the Wi-Fi gateway device obtained by the terminal device as the gateway address, the original service packet data is sent to the Wi-Fi gateway device. The Wi-Fi gateway device encapsulates the original service packet data with session markers to obtain a non-standard Ethernet packet, which is then sent to the 5G gateway device for parsing. Based on the parsing result, the compression mapping table is searched to obtain key information data. The session markers in the non-standard Ethernet packet are replaced with the parsing result to obtain the original service packet data, which is then sent... The cloud server receives the original service message data and sends the original response message to the 5G gateway device. The 5G gateway device performs reverse mapping processing on the original response message by looking up the compression mapping table to obtain the SID Ethernet response message. The 5G gateway device sends the SID Ethernet response message to the WIFI gateway device for decapsulation based on the session identifier in the SID Ethernet response message to obtain the original response message and sends it to the terminal device. Compared with the prior art, the present invention encodes the service message data by using session identifiers, which greatly reduces the invalid payload bandwidth occupancy rate and the amount of data exchanged between devices, thereby greatly reducing the total time for the device to process service messages.
[0046] Other beneficial effects of the present invention will be described in detail in the following detailed description section. Attached Figure Description
[0047] Figure 1 This is a flowchart illustrating an embodiment of the present invention;
[0048] Figure 2 This is a schematic diagram of a large-scale aquaculture Internet of Things scenario in an embodiment of the present invention. Detailed Implementation
[0049] To make the technical problems, solutions, and advantages of this invention clearer, a detailed description will be provided below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0050] In the description of this invention, it should be noted that the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0051] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a locking connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0052] Furthermore, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0053] This invention addresses existing problems by providing a high-performance communication method.
[0054] like Figure 1 As shown, an embodiment of the present invention provides a high-performance communication method applied to a communication network consisting of a terminal device, a WIFI gateway device, a 5G gateway device, and a cloud server connected in sequence. The communication method includes:
[0055] Step 1: Establish a compression mapping table by obtaining the packet forwarding direction, source IP address, source MAC address, source port number, destination IP address, destination MAC address, and destination port number;
[0056] Step 2: The terminal device obtains the IP address of the WIFI gateway device as the gateway address, sends the original service packet data to the WIFI gateway device, and performs session tag encapsulation processing on the original service packet data in the WIFI gateway device to obtain a non-standard Ethernet packet and sends it to the 5G gateway device.
[0057] Step 3: The 5G gateway device parses the non-standard Ethernet packets, obtains the parsing results, and searches the compression mapping table based on the parsing results to obtain key information data;
[0058] Step 4: Replace the session identifier in the non-standard Ethernet packet with the parsing results and key information data to obtain the original service packet data, and send the original service packet data to the cloud server.
[0059] Step 5: After receiving the original service message data, the cloud server sends the original response message to the 5G gateway device. The 5G gateway device performs reverse mapping processing on the original response message by looking up the compression mapping table to obtain the SID Ethernet response message.
[0060] Step 6: The 5G gateway device sends the SID Ethernet response message to the WIFI gateway device according to the session identifier in the SID Ethernet response message. The WIFI gateway device decapsulates the SID Ethernet response message to obtain the original response message and sends it to the terminal device.
[0061] Specifically, step 1 includes:
[0062] Obtain the forwarding direction of the message;
[0063] Obtain the source IP address, source MAC address, source port number, destination IP address, destination MAC address, and destination port number based on the forwarding direction of the message;
[0064] The session identifier is calculated using the source IP address, source MAC address, source port number, destination IP address, destination MAC address, and destination port number.
[0065] Establish a mapping relationship between packet forwarding direction, source IP address, source MAC address, source port number, destination IP address, destination MAC address, destination port number and session identifier to obtain a compressed mapping table.
[0066] Specifically, before the session identifier encapsulation process is performed on the raw service message data in the WIFI gateway device, the following steps are also included:
[0067] Determine the message type of the original service message data. If the message type of the original service message data is Ethernet Transmission Control Protocol or User Datagram Protocol, encapsulate the original service message data with session markers; otherwise, forward the original service message data directly to the 5G gateway device.
[0068] Determine the data type of the original service message data. If the data type of the original service message data is sensor lightweight service message data or video heavyweight service message data, encapsulate the original service message data with session markers; otherwise, forward the original service message data directly to the 5G gateway device.
[0069] Specifically, the original service message data is encapsulated with session identifiers to obtain non-standard Ethernet messages, including:
[0070] Define an unsigned integer array of data type 32, with an element size of 12 and a length of 48 bytes.
[0071] The preset calculation algorithm is determined based on the length of the original business message data;
[0072] A checksum is generated based on a preset calculation algorithm, the original business message data, and an unsigned integer array.
[0073] The checksum is matched with the session identifier in the compression mapping table. If the match is successful, the checksum is used as the session identifier to encapsulate the original service message data, resulting in a non-standard Ethernet message.
[0074] In this embodiment of the invention, it should be noted that the unsigned integer array can be, but is not limited to, 0xd76ba478, 0xe8c7b756, 0x242070db, 0xc1bdcefe, 0xf57c0faf, 0x4787c62a, 0xa8304613, 0xcd469501, 0x6b901122, 0xfd987193, 0xa679438e, and 0x49b40822. Different values can be defined by the user, but the values within the array cannot be the same.
[0075] Specifically, the preset calculation algorithms include:
[0076] The default expression for performing operations on the destination MAC address, source MAC address, and unsigned integer array is:
[0077] ;
[0078] in, The result of the operation representing the MAC address. This represents the result of a bitwise AND operation between the 5-6 bytes of the destination MAC address, the 1-2 bytes of the source MAC address, and element 1 of an unsigned integer array. The result of a bitwise AND operation between the source MAC address (bytes 3-6) and element 2 of the unsigned integer array. The result is the inverse of the AND operation between the first 4 bytes of the destination MAC address and the element 0 in the unsigned integer array. The result of performing a bitwise AND operation on the combination of the 5-6 bytes of the destination MAC address, the 1-2 bytes of the source MAC address, and element 3 of the unsigned integer array. AND operation, OR operation;
[0079] The default expression for performing operations on source IP addresses, destination IP addresses, and unsigned integer arrays is:
[0080] ;
[0081] in, The result of the operation representing the IP address. The result of the AND operation between the destination IP address of the message and element 5 of the SID_KEY array. The result of performing a bitwise AND operation between the destination IP address of the message and element 7 in the unsigned integer array. The result of the AND operation between the source IP address of the message and element 6 in the unsigned integer array. The result of performing a bitwise AND operation between the source IP address of the message and element 4 in the unsigned integer array;
[0082] The default operation expression for performing operations on the source port number, destination port number, and unsigned integer array is:
[0083] ;
[0084] in, , , , The result of ORing the source port number (left-shifted by 16 bits) with the destination port number, and then performing AND operations with elements 8, 9, 10, and 11 in the unsigned integer array, is... This represents the XOR operation;
[0085] The preset calculation expression for generating the checksum corresponding to the original business message data based on the calculation result is as follows:
[0086] ;
[0087] in, express Shift the value left by 1 bit.
[0088] It should be noted that the above-mentioned preset operational expression is only one mathematical expression that it satisfies. In other feasible embodiments, the above formula can be transformed into other forms, but no matter what transformation is made, it is within the protection scope of this application. Among them, the final obtained This is the checksum, which is mainly used to match the received messages and determine whether the messages need to be encoded or decoded.
[0089] Specifically, the structure of a non-standard Ethernet packet is as follows:
[0090] The first byte indicates the message type, which is either Ethernet Transmission Control Protocol or User Datagram Protocol.
[0091] The second byte indicates the data type, which can be either lightweight sensor service message data or heavyweight video service message data.
[0092] The length of the original business message data is from the third byte to the eighteenth byte.
[0093] The nineteenth to twenty-second bytes are the session identifier;
[0094] The content of the original business message data is from the 23rd byte to the last byte.
[0095] Specifically, when the data type is sensor lightweight service message data:
[0096] The sensor's lightweight service message data is sent to the WIFI gateway device. The WIFI gateway device encapsulates the sensor's lightweight service message data with session markers to obtain non-standard Ethernet messages, which are then sent to the 5G gateway device.
[0097] Specifically, when the data type is video-heavyweight service message data:
[0098] Send heavy video service message data to the WIFI gateway device;
[0099] In the WIFI gateway device, video heavyweight service packet data is grouped to obtain multiple sets of service stream data content;
[0100] Each group of business flow data content is encapsulated with session markers to obtain multiple initial encapsulation results.
[0101] All initial encapsulation results are encapsulated a second time to obtain non-standard Ethernet packets with the same number of packets, which are then sent to the 5G gateway device as non-standard Ethernet packets.
[0102] Specifically, terminal devices include audio and video devices and sensor devices.
[0103] Specifically, the communication network includes at least one terminal device and at least one WIFI gateway device.
[0104] This invention takes a communication network in a large-scale aquaculture scenario as an example, such as... Figure 2As shown, the communication network includes four stations: A, B, C, and D. Each station is equipped with terminal devices consisting of audio / video equipment, sensor devices, other aquaculture equipment, a Wi-Fi gateway device, a 5G gateway device, and a cloud server. The 5G gateway devices are bridged to the Wi-Fi gateway devices at each station and connected to the cloud server. The IP addresses of the Wi-Fi gateway devices and 5G gateway devices at each station are in the same network segment, and their gateway addresses are the IP addresses of the 5G gateway devices. The sensor devices and other aquaculture equipment communicate with the Wi-Fi gateway via serial signals or bit signals, not Ethernet communication, and therefore do not have IP addresses. The audio / video equipment consists of surveillance cameras (AV). There are two types of surveillance cameras: one is a network camera, which is connected to the Wi-Fi gateway device via Ethernet communication through a network cable, and the Wi-Fi gateway device supplies power to the camera through the network cable. In this case, the surveillance camera has its own IP and MAC address information. The other type of surveillance camera is an HDMI camera, which is connected to the Wi-Fi gateway device via an HDMI cable. This type of camera does not have IP and MAC address information; the Wi-Fi gateway performs video encoding and communicates with the outside world using the Wi-Fi gateway device address.
[0105] Since the MAC and IP addresses of the Wi-Fi and 5G gateway devices at each site are known, and the target MAC and IP addresses to be accessed are also known and unique, and the access target is always a cloud server; the communication method of the communication network in a large-scale aquaculture scenario is as follows:
[0106] If the surveillance camera is a network camera, a direct communication relationship is established between the network camera and the Wi-Fi gateway device at each site. The network camera obtains the IP address of the Wi-Fi gateway device as the gateway address. In this way, the business data packets from the network camera to the cloud server are first sent to the corresponding Wi-Fi gateway device. The Wi-Fi gateway device encapsulates the business data packets with session identifiers (SIDs, Security Identifiers). The communication data between the Wi-Fi gateway device and the cloud server, along with the camera's business data packets, are encapsulated into non-standard Ethernet packets using the SIDs. These packets lack standard Ethernet headers, IP headers, and TCP / UDP headers. The Wi-Fi gateway then sends these non-standard Ethernet packets to the 5G gateway device via Wi-Fi signals. The 5G gateway device acts as an Ethernet communication proxy. After receiving non-standard Ethernet packets from other Wi-Fi gateway devices, the 5G gateway device parses them, looks up the compression mapping table, directly replaces the session identifiers in the non-standard Ethernet packets, encapsulates them into the original business data packets, and sends them to the cloud server through the 5G gateway device.
[0107] After receiving the original service message data, the cloud server sends an original response message to the 5G gateway device. Upon receiving the original response message from the cloud server, the 5G gateway device also reverses the mapping by looking up the compression mapping table, replacing the header information of the original response message with a session identifier. Based on the session identifier, the 5G gateway device sends the message to the corresponding Wi-Fi gateway device via Wi-Fi. After receiving the SID Ethernet response message, the Wi-Fi gateway device decapsulates and removes the SID field to obtain the original response message from the server. If the SID points to a connected network camera, it will also decapsulate and send the original response message to the camera through the compression mapping table. This completes the communication data interaction process between a network camera or Wi-Fi gateway device and the cloud server.
[0108] In this embodiment of the invention, taking a WIFI gateway device in a communication network under a large-scale aquaculture scenario as an example, a compressed mapping table is established. Assume MAC(B) is 00:01:02:03:04:0b, IP(B) is 192.168.3.2, MAC(B.AV) is 00:01:02:03:04:b1, IP(B.AV) is 192.168.33.2; MAC(A) is 00:01:02:03:04:0a, IP(A) is 192.168.3.3, M... AC (A.AV) is 00:01:02:03:04:a1, IP (A.AV) is 192.168.33.3; MAC (C) is 00:01:02:03:04:0c, IP (C) is 192.168.3.4, MAC (C.AV) is 00:01:02:03:04:c1, IP (C.AV) is 192.168.33.4; MAC (D) is 00:01:02:03:04:0d, IP (D) is 192.168.3.1. The MAC address (D.AV) is 00:01:02:03:04:d1, and the IP address (D.AV) is 192.168.33.4; the MAC address (5G) is 00:01:02:03:04:51, and the IP address (5G) is 10.3.3.5; the cloud server IP address is 153.163.173.58. The L4 port numbers of the cloud server are 1199 (sensor and control services) and 5599 (audio and video services), and the L4 port numbers of the WIFI gateway device are 1188 (sensor and control services) and 5588 (audio and video services).
[0109] In this embodiment of the invention, when the WIFI gateway device at site D receives a SID video Ethernet service packet from site A, it determines the value of the first byte of the packet. If it is 0x74, it is a TCP packet; if it is 0x78, it is a UDP packet; otherwise, it bypasses the Ethernet packet processing flow and forwards it directly as a normal service packet. Then, it matches the SID value of the packet by extracting the SID field and comparing it with the SID value in the compression mapping table. Through the mapping table, it obtains the key information data of the original packet. Next, it reads the value of the packet data type field. If it is 0x51, it indicates heavyweight video service packet data; if it is 0x50, it indicates lightweight sensor service packet data. Sensor data reported to the cloud server and instruction data issued by the cloud server are both lightweight service packets. These data packets are short, and a request or report is sent only once every relatively long period (default 8 seconds). For these lightweight service packets, a real-time forwarding mechanism is used, which differs from the store-and-forward method used for the heavyweight video service packets. Lightweight service packets are initiated and terminated by the WIFI gateway device. If the value is other, it indicates a non-SID service encapsulation packet, which will be forwarded directly as a normal service packet. When it is a heavyweight video service packet, it defaults to a collection of 8 original packets, and the corresponding original packet length value is read in 2-byte increments. After obtaining the 22-byte header content, the following data is carried by the packet, and the data content is read and stored in 8 original packet data length values. After analyzing the SID Ethernet packet, gateway D, based on the packet type and key information, repackages it into eight original service packet data segments, consistent with the packet sent by the network camera. These segments are then forwarded to the cloud server via the 5G gateway. Upon receiving the original service packet data, the cloud server returns a smaller original response packet. This response packet, upon reaching the 5G gateway at site D, is also processed by reading the key information to calculate the SID value. It is then encapsulated into an SID Ethernet response packet and sent to the Wi-Fi gateway at site A. The Wi-Fi gateway at site A, using the SID mapping table, retrieves the key information to reconstruct the original response packet and sends it to the network camera. This completes a full video service flow interaction process.This invention establishes a compression mapping table by obtaining the forwarding direction, source IP address, source MAC address, source port number, destination IP address, destination MAC address, and destination port number of the packet. The terminal device obtains the IP address of the Wi-Fi gateway device as the gateway address, and sends the original service packet data to the Wi-Fi gateway device. The Wi-Fi gateway device encapsulates the original service packet data with session markers to obtain a non-standard Ethernet packet, which is then sent to the 5G gateway device for parsing. Based on the parsing result, the compression mapping table is searched, and key information data and the parsing result are used to replace the session markers in the non-standard Ethernet packet, obtaining the original service packet data, which is then sent... The cloud server receives the original service message data and sends the original response message to the 5G gateway device. The 5G gateway device performs reverse mapping processing on the original response message by looking up the compression mapping table to obtain the SID Ethernet response message. The 5G gateway device sends the SID Ethernet response message to the WIFI gateway device for decapsulation according to the session identifier in the SID Ethernet response message to obtain the original response message and sends it to the terminal device. Compared with the prior art, the embodiment of the present invention encodes the service message data by using the session identifier, which greatly reduces the invalid payload bandwidth occupancy rate and the amount of data exchanged between devices, thereby greatly reducing the total time for the device to process the service message.
[0110] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A high-performance communication method, characterized in that, The communication method, applicable to a communication network consisting of sequentially connected terminal devices, a WIFI gateway device, a 5G gateway device, and a cloud server, includes: Step 1: Establish a compression mapping table by obtaining the packet forwarding direction, source IP address, source MAC address, source port number, destination IP address, destination MAC address, and destination port number; Step 2: The terminal device obtains the IP address of the WIFI gateway device as the gateway address, sends the original service packet data to the WIFI gateway device, performs session tag encapsulation processing on the original service packet data in the WIFI gateway device to obtain a non-standard Ethernet packet and sends it to the 5G gateway device. Step 3: The 5G gateway device parses the non-standard Ethernet packet to obtain the parsing result, and looks up the compression mapping table based on the parsing result to obtain key information data; Step 4: Replace the session identifier in the non-standard Ethernet packet with the parsing result and the key information data to obtain the original service packet data, and send the original service packet data to the cloud server; Step 5: After receiving the original service message data, the cloud server sends the original response message to the 5G gateway device. The 5G gateway device performs reverse mapping processing on the original response message by looking up the compression mapping table to obtain the SID Ethernet response message. Step 6: The 5G gateway device sends the SID Ethernet response message to the WIFI gateway device according to the session identifier in the SID Ethernet response message. The WIFI gateway device decapsulates the SID Ethernet response message to obtain the original response message and sends it to the terminal device. Specifically, the original service message data is encapsulated with session identifiers to obtain non-standard Ethernet messages, including: Define an unsigned integer array of data type 32, wherein the element size of the unsigned integer array is 12, and the length of the unsigned integer array is 48 bytes; The preset calculation algorithm is determined based on the length of the original service message data; A checksum is generated based on the preset calculation algorithm, the original service message data, and the unsigned integer array. The checksum is matched with the session identifier in the compression mapping table. If the match is successful, the checksum is used as the session identifier to encapsulate the original service message data to obtain a non-standard Ethernet message.
2. The high-performance communication method according to claim 1, characterized in that, Step 1 includes: Obtain the forwarding direction of the message; Obtain the source IP address, source MAC address, source port number, destination IP address, destination MAC address, and destination port number based on the forwarding direction of the message; The session identifier is calculated using the source IP address, source MAC address, source port number, destination IP address, destination MAC address, and destination port number. Establish a mapping relationship between the forwarding direction of the message, source IP address, source MAC address, source port number, destination IP address, destination MAC address, destination port number and the session identifier to obtain a compressed mapping table.
3. The high-performance communication method according to claim 2, characterized in that, Before the original service message data is encapsulated with session identifiers in the WIFI gateway device, the following steps are also included: The message type of the original service message data is determined. If the message type of the original service message data is Ethernet Transmission Control Protocol or User Datagram Protocol, the original service message data is encapsulated with a session tag. Otherwise, the original service message data is directly forwarded to the 5G gateway device. The data type of the original service message data is determined. If the data type of the original service message data is sensor lightweight service message data or video heavyweight service message data, the original service message data is encapsulated with a session tag. Otherwise, the original service message data is directly forwarded to the 5G gateway device.
4. The high-performance communication method according to claim 1, characterized in that, The preset calculation algorithm includes: A preset operation expression for performing operations on the destination MAC address, the source MAC address, and the unsigned integer array; A preset operation expression for performing operations on the source IP address, the destination IP address, and the unsigned integer array; A preset operation expression for performing operations on the source port number, the destination port number, and the unsigned integer array; Based on the calculation result, a preset calculation expression is generated to obtain the checksum corresponding to the original business message data.
5. The high-performance communication method according to claim 1, characterized in that, The structure of the non-standard Ethernet packet is as follows: The first byte indicates the message type, which is either Ethernet Transmission Control Protocol or User Datagram Protocol. The second byte is the data type, which is either sensor lightweight service message data or video heavyweight service message data; The length of the original business message data is from the third byte to the eighteenth byte. The nineteenth to twenty-second bytes are the session identifier; The content of the original business message data is from the 23rd byte to the last byte.
6. The high-performance communication method according to claim 5, characterized in that, When the data type is sensor lightweight service message data: The sensor lightweight service message data is sent to the WIFI gateway device. The WIFI gateway device encapsulates the sensor lightweight service message data with session markers to obtain a non-standard Ethernet message, which is then sent to the 5G gateway device.
7. The high-performance communication method according to claim 5, characterized in that, When the data type is video heavyweight service message data: Send the video heavyweight service message data to the WIFI gateway device; The video heavyweight service packet data is grouped in the WIFI gateway device to obtain multiple groups of service stream data content; Each group of business flow data content is encapsulated with session markers to obtain multiple initial encapsulation results. All initial encapsulation results are encapsulated a second time to obtain non-standard Ethernet packets with the same number of packets, which are then sent to the 5G gateway device as the non-standard Ethernet packets.
8. The high-performance communication method according to claim 1, characterized in that, The terminal equipment includes audio and video equipment and sensor equipment.
9. The high-performance communication method according to claim 1, characterized in that, The communication network includes at least one terminal device and at least one WIFI gateway device.
Citation Information
Patent Citations
Method for wireless local area network wireless access point to carry out data forwarding to wireless controller
CN102420672A
Compression methods and systems for near-eye displays
IN201947036187A