Data transmission method and system applied to MTU limited local area network scene, and medium
By using wireless routing devices to encapsulate and decapsulate service data using VXLAN and performing lossless compression using the LZ4 algorithm in the kernel protocol stack, the problem of abnormal VXLAN tunnel transmission in MTU-constrained wireless LANs is solved, thereby improving network throughput and transmission efficiency.
Patent Information
- Application Number
- CN202511794513.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-02
- Publication Date
- 2026-03-17
AI Technical Summary
In a wireless LAN environment with a limited MTU, the MTU of the VXLAN tunnel interface is affected by the MTU of the wireless air interface, leading to abnormal data transmission and transmission efficiency issues, especially during the transmission of TCP/UDP services to the service host introduced in the VXLAN tunnel.
By using wireless routing devices to encapsulate and decapsulate service data using VXLAN, the service host remains unaware of the data during transmission. The LZ4 algorithm is used to achieve lossless compression in the kernel protocol stack, thereby optimizing network throughput.
It effectively solved the problem of service data transmission caused by changes in MTU in VXLAN tunnels, optimized network throughput, and improved transmission efficiency.
Smart Images

Figure CN121692291A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wireless local area network (WLAN) data transmission technology, and more specifically to data transmission methods, systems, and media applied in MTU-restricted LAN scenarios. Background Technology
[0002] The limiting MTU of the air interface in wireless LANs does not stem from inherent defects in wireless technology itself, but rather from a complex interplay of factors and compromises. These factors collectively determine the optimal data packet size for achieving the best balance between performance, efficiency, and reliability in a wireless environment. The following are some of the core reasons for the limited MTU of the air interface in wireless LANs: 1) Channel conditions Channel conditions are the most fundamental reason; compared to stable and reliable wired channels, wireless channels are "poor." 2) High bit error rate caused by channel interference; Wireless signals are susceptible to interference from other wireless devices, obstacles, distance attenuation, multipath effects, and other factors, which can cause data bits to be prone to errors during transmission. 3) Transmission delay The larger the MTU of the wireless LAN air interface, the more bits a maximum data packet carries and the longer the transmission time. If even one bit is corrupted, the entire data packet needs to be retransmitted. When a large MTU data packet is transmitted in a poor channel, the probability of error is much higher than that of a small MTU data packet. Each retransmission means a significant waste of time and bandwidth.
[0003] 4) Reasons for retransmission mechanism By using a relatively small MTU, the transmission time of each data packet is shortened; even if a packet fails and needs to be retransmitted, the time lost is less; in failure-prone environments, strategies with larger MTUs are more efficient. In wireless networks, the above problems are solved by reducing the MTU or limiting the maximum MTU size of the air interface. Therefore, the MTU of wireless network communication is limited and cannot be configured arbitrarily. Virtual Scalable Local Area Network (VXLAN) is a network virtualization tunneling technology that can create a large number of isolated virtual Layer 2 networks on top of existing physical IP networks. The essence of VXLAN is a "Layer 2 over Layer 3" tunneling technology, commonly used to implement Layer 2 virtual networks. In wireless LAN service scenarios with limited MTU, during the transmission of services via VXLAN tunnels, the MTU of the VXLAN tunnel interface is affected by the MTU of the wireless air interface, resulting in a reduction of 50 bytes compared to the air interface MTU. This change in the VXLAN tunnel interface MTU leads to anomalies and transmission efficiency issues for the connecting service host (TCP / UDP) during transmission. Summary of the Invention
[0004] To address the issues of anomalies and transmission efficiency problems in the transmission of services via VXLAN tunnels in wireless LANs with limited MTU over the air interface, where the MTU of the VXLAN tunnel interface is affected by the MTU of the wireless air interface, resulting in a 50-byte reduction compared to the air interface MTU, this invention aims to provide a data transmission method, system, and medium applicable to MTU-limited LAN scenarios. In the process of transmitting service data from the service host to the wireless air interface (the second transmission process), the wireless routing device performs VXLAN packetization processing on the service data. During the process of transmitting service data from the wireless air interface to the service host, the wireless routing device performs VXLAN depacketization processing on the VXLAN packets, ensuring that the service host receives the actual service packets corresponding to its needs. This achieves seamless processing by the service host on the wireless routing device throughout the entire process, effectively resolving the service data transmission problem caused by the MTU change in the VXLAN tunnel, while simultaneously optimizing network throughput.
[0005] The above-mentioned technical objective of the present invention is achieved through the following technical solution: This solution provides a method for service data transmission in MTU-restricted local area network scenarios, the method including: First transmission process: The wireless routing device receives service data from the wireless air interface and determines the VXLAN identifier of the service data; The wireless routing device can directly determine the routing of the service data based on the VXLAN identifier, or perform VXLAN unpacking before determining the routing. The VXLAN port in the wireless router forwards the service data to the corresponding gateway port based on the routing determination result, and the gateway port sends the corresponding service data to the service host. Second transmission process: After receiving service data through the network interface, the service host forwards the service data to the wireless router. The wireless router forwards the service data to the VXLAN interface based on routing decisions. The kernel performs VXLAN packet processing on the service data and then sends it out through the wireless air interface.
[0006] A further optimization is that the VXLAN identifier of the service data is automatically identified by the kernel.
[0007] A further optimization scheme is that the wireless routing device directly determines the route of the service data based on the VXLAN identifier, or performs VXLAN packet depacketization before determining the route; including the following methods: For service data that belongs to VXLAN packets, VXLAN unpacking is performed first before routing determination; For service data that does not belong to VXLAN packets, route determination is performed directly.
[0008] A further optimization is that the VXLAN packet processing method includes: The original data frames of business data are compressed without data loss. A VXLAN header is added before the compressed original data frame; the VXLAN header includes an outer MAC header, an outer IP header, an outer header, and a VXLAN encapsulation header arranged in sequence; the VXLAN encapsulation header is added before the compressed original data frame.
[0009] A further optimization is that the VXLAN unpacking process includes: The outer MAC header, outer IP header, outer header, and VXLAN encapsulation header are stripped off sequentially from the beginning of the original data frame. Under the premise of no data loss, the original data frame is decompressed to obtain the original message data.
[0010] A further optimization is to decompress the original data frame based on the LZ4 algorithm during the VXLAN unpacking process; During VXLAN packet processing, the original data frame is compressed based on the LZ4 algorithm.
[0011] A further optimization solution involves transmitting service data between the wireless air interfaces of different wireless router devices via a base station.
[0012] A further optimization scheme involves compressing the original data frame based on the LZ4 algorithm, including the following process: T1, configure a hash table for matching and searching. The hash table is used to store the positions of data that have appeared in the most recent time period T, and read the original data frame. T2, select n bytes in the original data frame using a window box, and calculate the hash value of the n bytes; T3: Based on the hash value, search for the corresponding position in the hash table. If a matching position is found, generate a matching sequence based on the corresponding position. If no matching position is found, output the current byte directly as a literal and slide the window back to step T2.
[0013] This solution also provides a data transmission system for MTU-restricted local area network scenarios, used to implement the above-mentioned data transmission method for MTU-restricted local area network scenarios. The system includes a wireless routing device and a service host. During the first transmission process: The wireless routing device is used to receive service data from the wireless air interface and determine the VXLAN identifier of the service data; The wireless routing device is also used to directly determine the routing of the service data based on the VXLAN identifier of the service data, or to first perform VXLAN unpacking and then determine the routing. The VXLAN port in the wireless router forwards the service data to the corresponding gateway port based on the routing determination result, and the gateway port sends the corresponding service data to the service host. Second transmission process: The service host is used to forward service data to the wireless routing device through the network port; The wireless routing device is used to forward service data to the VXLAN port based on routing decisions. The kernel performs VXLAN packet processing on the service data before sending it out via the wireless air interface.
[0014] This solution also provides a computer-readable medium storing a computer program thereon, which, when executed by a processor, can implement the above-described data transmission method applied to MTU-restricted local area network scenarios.
[0015] Compared with the prior art, the present invention has the following beneficial effects: 1. This invention provides a data transmission method, system, and medium applicable to MTU-constrained local area network scenarios. During the process of transmitting service data from the service host to the wireless air interface (second transmission process), the service data is processed by VXLAN packetization via a wireless routing device. During the process of transmitting service data from the wireless air interface to the service host, the VXLAN packets are de-packed via the wireless routing device, enabling the service host to receive the actual service packets corresponding to the service host. This ensures that the service host is unaware of the wireless routing device's processing throughout the entire process, effectively solving the service data transmission problem caused by MTU changes in VXLAN tunnels, while simultaneously optimizing network throughput.
[0016] 2. This invention provides a data transmission method, system, and medium applicable to MTU-constrained local area network scenarios. During VXLAN unpacking and encapsulation processes, a lossless compression mechanism is added to the kernel protocol stack VXLAN packet unpacking and encapsulation stages based on the LZ4 algorithm. This ensures that the original data frame portion is compressed and restored during the encapsulation and depackaging processes, thereby optimizing network data transmission and resolving issues caused by TCP / UDP services due to MTU constraints. Simultaneously, the lossless compression mechanism also improves network throughput. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of the present invention and should not be considered as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort. In the drawings: Figure 1 This is a schematic diagram illustrating the principle of service data transmission in MTU-restricted LAN scenarios. Figure 2 This is a schematic diagram of the business data flow applied in a local area network scenario with limited MTU; Figure 3 This diagram illustrates the compression and decompression of VXLAN packets based on the LZ4 algorithm. Figure 4 A schematic diagram illustrating the internal process implementation mechanism of a wireless router device kernel; Figure 5 A schematic diagram illustrating the principles of VXLAN packet processing and VXLAN depacketization. Figure 6 This is a topology diagram of a Layer 2 virtual network implemented based on VXLAN. Detailed Implementation
[0018] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the embodiments and accompanying drawings. The illustrative embodiments and descriptions of the present invention are only used to explain the present invention and are not intended to limit the present invention.
[0019] TCP services aim to transmit large amounts of data as efficiently as possible, but network links have strict size limitations (MTU). The Maximum Segment Size (MSS) refers to the maximum length of the data portion in a TCP segment, excluding the TCP header (typically 20 bytes) and IP header (typically 20 bytes). MSS = MTU - TCP Header - IP Header. In a standard Ethernet environment (MTU=1500), a typical MSS value is 1500 - 20 - 20 = 1460 bytes. TCP services include the following processes: First handshake: The client sends a SYN packet to the server to request the establishment of a connection.
[0020] In the "Options" field of the TCP header, the client includes an MSS value, which is usually calculated based on the MTU of the client's outgoing interface; for example, if the client's network card MTU is 1500, then its declared MSS is usually 1460.
[0021] The second handshake: After receiving the SYN packet from the client, the server replies with a SYN-ACK packet. Similarly, the server includes a calculated MSS value in its TCP options field; this value is derived from the MTU of the server's outgoing interface.
[0022] The third handshake: The client sends an ACK packet to the server, and the connection is established.
[0023] Negotiation result: After the connection is established, both communicating parties will use the smaller of the MSS declared by the other party and the MSS calculated by themselves as the maximum length of the data segment to be sent in this connection; the final effective MSS = min(local MSS, peer MSS); A topology diagram of a Layer 2 virtual network based on VXLAN is shown below. Figure 6 As shown, since both service host A and service host B have an MTU of 1500 bytes, but the MTU decreases by 50 bytes when passing through the VXLAN network, TCP is unaware of the VXLAN MTU during the MSS negotiation phase. Therefore, TCP service packets cannot meet the transmission requirements for packets exceeding 1450 bytes. Similarly, when service host A transmits UDP data packets exceeding 1450 bytes to service host B, the MTU limitation will cause automatic packet fragmentation on the wireless link, affecting the overall wireless network transmission efficiency. To address the anomalies and transmission efficiency issues caused by the change in the VXLAN tunnel MTU during the transmission of services via VXLAN tunnels in service scenarios with limited MTU, where the VXLAN tunnel port MTU is affected by the wireless air interface MTU and is 50 bytes smaller than the air interface MTU, this solution provides the following implementation example: Example 1
[0024] like Figure 1 and Figure 2 As shown, in a scenario where the wireless air interface implements local area network service forwarding based on VXLAN, wireless router device A and wireless router device B use the VXLAN mechanism to establish network routing between downstream host A and downstream host B. Downstream host A and downstream host B can then communicate with each other according to service needs. The downstream network interface and the wireless air interface are based on the same MTU, but due to the introduction of the VXLAN mechanism, the MTU of the VXLAN network interface is automatically reduced by 50 bytes compared to the wireless air interface.
[0025] This embodiment provides a service data transmission method for MTU-restricted local area network scenarios, including: First transmission process: The wireless routing device receives service data from the wireless air interface and determines the VXLAN identifier of the service data; The wireless routing device performs routing determination directly on the service data based on the VXLAN identifier, or performs VXLAN depacketization before routing determination. Specifically, for service data that belongs to VXLAN data packets, VXLAN depacketization is performed before routing determination; for service data that does not belong to VXLAN data packets, routing determination is performed directly.
[0026] Specifically, such as Figure 1 and Figure 2 After receiving service data via its wireless air interface, wireless router A forwards the data to the packet parsing module in its kernel. Based on the VXLAN identifier, the module determines whether to forward the service data to routing or VXLAN processing. If it is a VXLAN packet, the packet is unpacked and restored. The VXLAN port then forwards the unpacked service data to the routing port based on routing decisions. Finally, service host A receives the actual service data. Throughout this process, service host A is unaware of the processing by wireless router A.
[0027] Preferred methods for VXLAN unpacking include: like Figure 5 As shown, the service data is passed to the VXLAN driver module of the wireless router device A kernel. The VXLAN module strips the outer MAC header, outer IP header, outer UDP header and VXLAN header in sequence to expose the original data frame inside.
[0028] Under the premise of no data loss, the original data frame is decompressed to obtain the original message data; specifically, decompression can be performed based on the LZ4 algorithm. Finally, the VXLAN port in the wireless router forwards the service data to the corresponding gateway port based on the routing determination result, and the gateway port sends the corresponding service data to the service host. Second transmission process: After receiving service data through the network interface, the service host forwards the service data to the wireless router. The wireless router forwards the service data to the VXLAN interface based on routing decisions. The kernel performs VXLAN packet processing on the service data and then sends it out through the wireless air interface.
[0029] Specifically, such as Figure 1 and Figure 2As shown, after receiving service data through the gateway network port, the service host A uses the internal routing of the wireless router device A and its kernel routing determination to forward the data to the VXLAN network port. The kernel (VXLAN module in the figure) performs VXLAN packet processing on the service data from the gateway network port to obtain the raw VXLAN data frame part, and finally encapsulates a complete VXLAN tunnel message and forwards it through the wireless air interface.
[0030] As a preferred method, VXLAN packet processing methods include: To ensure no data loss, the original data frames of the business data are compressed; specifically, the original data frames can be compressed based on the LZ4 algorithm. A VXLAN header is added before the compressed original data frame; the VXLAN header includes an outer MAC header, an outer IP header, an outer header, and a VXLAN encapsulation header arranged in sequence; the VXLAN encapsulation header is added before the compressed original data frame.
[0031] Service data is transmitted between the wireless air interfaces of different wireless router devices through base stations. Example 2
[0032] This embodiment provides a data transmission system for MTU-restricted local area networks (LANs) to implement the data transmission method for MTU-restricted LANs described in Embodiment 1. The system includes a wireless routing device and a service host. During the first transmission process: Wireless routing devices are used to receive service data from the wireless air interface and determine the VXLAN identifier of the service data; Wireless routing devices are also used to directly determine the routing of service data based on the VXLAN identifier of the service data, or to first depack the VXLAN data and then determine the routing. The VXLAN port in the wireless router forwards the service data to the corresponding gateway port based on the routing determination result, and the gateway port sends the corresponding service data to the service host. During the second transmission process: The service host is used to forward service data to the wireless routing device through the network interface; Wireless routing devices are used to forward service data to the VXLAN port based on routing decisions. The kernel (VXLAN module in the diagram) processes the service data into VXLAN packets before sending it out via the wireless air interface.
[0033] Specifically, such as Figure 3 and Figure 4As shown, based on the aforementioned principles and business scenario requirements, this embodiment implements a method to solve the TCP / UDP service transmission problem caused by MTU changes in VXLAN tunnels and optimize network throughput through the following mechanism; the process is as follows: The unpacking process of air interface VXLAN packets to downstream devices (first transmission process): After receiving service data through its air interface, wireless router device B determines whether to transfer the service data to a routing decision or a VXLAN processing flow based on the VXLAN identifier. If the service data is a VXLAN data packet, the VXLAN module performs VXLAN packet depacketization. The depacketized service packet is then forwarded to the network port. Then, service host B (downstream host B) receives the actual service packet from service host A (downstream host A). Throughout the entire process, service host A and service host B are unaware of the wireless router device's processing. The specific VXLAN identification method includes: the VXLAN module will perform preliminary classification based on the UDP destination port number (4789) to identify that it belongs to a VXLAN data packet; after VXLAN unpacking processing, the data packet is sent to the VXLAN module for processing.
[0034] Preferably, the VXLAN packet unpacking and restoration process is as follows: the data packet is passed to the kernel's VXLAN module; the VXLAN module sequentially strips the outer MAC header, outer IP header, outer UDP header, and VXLAN header to expose the original internal raw data frame, and then restores the original packet by decompression.
[0035] VXLAN packet transmission process down to the air interface (second transmission process) Service host A connects to the internal routing of wireless router A through the network interface. The kernel routing of wireless router A determines the route to the VXLAN network interface. The kernel (VXLAN module in the figure) will perform VXLAN packet encapsulation on the service packets. After encapsulating the service data from the network interface, it will forward it through the wireless air interface.
[0036] Preferably, the VXLAN packet encapsulation process is as follows: the VXLAN module compresses the original data frame of the network interface, and then encapsulates the outer MAC header, outer IP header, outer UDP and VXLAN header in sequence. After the data packet is encapsulated, it is forwarded through the wireless air interface.
[0037] This embodiment adds a lossless compression mechanism to the kernel for the unpacking and repackaging stages of VXLAN packets in the VXLAN module, ensuring that the original data frame portion is compressed and restored during the repackaging and depackaging process.
[0038] In summary, by adding compression and decompression mechanisms to the VXLAN kernel module processing flow, network data transmission is optimized, solving the problems caused by TCP / UDP services due to the limited MTU of the air interface. At the same time, the network throughput is improved through lossless compression mechanisms. Example 3
[0039] This embodiment provides a computer-readable medium storing a computer program. The computer program, when executed by a processor, can implement the data transmission method described in Embodiment 1 for MTU-restricted local area networks; specifically, it performs the following process: First transmission process: The wireless routing device receives service data from the wireless air interface and determines the VXLAN identifier of the service data; The wireless routing device can directly determine the routing of the service data based on the VXLAN identifier, or perform VXLAN unpacking before determining the routing. The VXLAN port in the wireless router forwards the service data to the corresponding gateway port based on the routing determination result, and the gateway port sends the corresponding service data to the service host. Second transmission process: After receiving service data through the network interface, the service host forwards the service data to the wireless router. The wireless router forwards the service data to the VXLAN interface based on routing decisions. The kernel (VXLAN module in the figure) processes the service data into VXLAN packets and then sends it out through the wireless air interface. Example 4
[0040] In VXLAN depacketization and VXLAN enpacketization, in order to achieve zero data loss, the original data must be represented with fewer bits without losing any information, and the decompressed data must be exactly the same as the original data. The main algorithms include two major schools of thought: dictionary-based encoding and statistical encoding. Dictionary-based encoding algorithms map variable-length input symbol strings into fixed-length or variable-length codewords, forming a dictionary; statistical encoding algorithms assign a code to each symbol, with symbols that appear more frequently having shorter codes.
[0041] Lossless compression algorithms for VXLAN packet unpacking and encapsulation are a highly targeted field. Their goal is to compress data packets in real time on network devices (such as routers and switches) or communication links to save bandwidth and increase throughput. These algorithms differ significantly from general file compression algorithms (such as ZIP compression). The core requirements are low latency, high speed, low memory usage, and the ability to handle streaming data.
[0042] The following are algorithms specifically designed for packet compression during VXLAN unpacking and VXLAN packet encapsulation: 1. IPComp protocol is an IP payload compression protocol standardized by the IETF and defined in RFC 3173. It adds a compression header after the IP header to compress upper-layer protocol data (such as TCP and UDP payloads). Each data packet is compressed and processed independently, without relying on historical information, thus avoiding error propagation, but the compression ratio is relatively low.
[0043] 2. Robust Header Compression is a header compression protocol primarily used to compress highly redundant protocol headers (such as TCP / IP). During connection establishment, the sender and receiver create a shared "context" containing connection-invariant fields (such as IP address and port). For subsequent data packets, only the changing fields are sent, significantly reducing header overhead and compressing a 40-byte TCP / IP header to 1-4 bytes. However, this method relies on the context; if the context becomes out of sync (e.g., packet loss), it needs to be reset.
[0044] 3. The LZ4 / Snappy algorithm, with its extremely high speed, is an ideal choice for network packet compression; the LZ77 family of algorithms is based on a dictionary, but with extremely optimized speed; compression / decompression speeds can reach hundreds of MB / s, and it still performs well for text, JSON and other formats; it can handle continuous data streams; it is often used in high-speed message queues, database replication, memory caching and other scenarios for compressing application layer protocols.
[0045] The core advantage of the LZ4 algorithm is its speed-first approach, especially in decompression. The core idea of LZ4 is dictionary-based compression, and it belongs to the LZ77 algorithm family. The basic idea of the LZ77 algorithm is to utilize repetitive patterns (redundant information) in the data for compression, instead of directly storing the duplicate data itself, using a pointer to represent it. This pointer contains two pieces of information: an offset and a matching length. The offset indicates how many bytes to look back to find the matching data; the matching length indicates how many consecutive bytes of data are identical starting from that position. For example: Original data: "Hello_Hello_World" The compressed representation might look like: "Hello_" (5, 6) "World" Here, (5, 6) acts as a token, meaning: "Move forward 5 bytes, and then copy 6 characters from that position"; this restores the second "Hello_".
[0046] The LZ4 algorithm is fast because it made many optimizations in implementing the LZ77 idea, sacrificing some compression ratio for extremely high speed. Its data stream format can be simplified to a repeating "sequence"; the format of each sequence is: [literal length][offset][match length] + [literal]; the token is a one-byte token at the beginning of each sequence; the token is divided into high 4 bits and low 4 bits: the high 4 bits represent the literal length, and if the value is equal to 15, it means that the literal length will continue to be expanded with the next byte (this is a variable-length integer encoding idea); the low 4 bits represent the match length, and similarly, if the value is equal to 15, it will also be expanded with the following bytes; A literal refers to the "new" segment of data in the original data that immediately follows the previous match and precedes the next match, without any repetitions. During compression, this segment of data is directly copied into the output stream. The match offset is a little-endian 2-byte integer (typically ranging from 1 to 32767). It indicates how many bytes to backtrack from the current output position to find the starting position of the match data. The match length refers to the actual length of the match, represented by the lower 4 bits of the token and its possible extension bytes. LZ4 specifies a minimum match length of 4 (which is why very short repeating strings may not be compressed).
[0047] The LZ4 algorithm features extremely simple decompression logic. The decompressor operates very simply, requiring only the copying of literals from the current output buffer and the copying of matching data from the beginning of the buffer. The hash table structure used in LZ4 compression is simple, and hash calculations are very fast (typically simple multiplication and shift operations). It employs a "lazy" matching strategy, not necessarily seeking the longest match, but quickly finding a sufficiently good match to save computation time. It supports dividing data into independent "blocks" for compression / decompression. This allows it to handle data streams larger than memory and facilitates multi-threaded parallel compression (different threads process different blocks). It is suitable for applications requiring fast compression to reduce bandwidth while simultaneously enabling extremely fast decompression at the receiver.
[0048] 4. Delta Encoding is a highly efficient specialized technique, particularly suitable for transmitting continuous and relatively static data; instead of sending data directly, it sends the difference between the current data and the previous data.
[0049] In the actual implementation of the present invention, decompression and compression are achieved in the VXLAN unpacking and VXLAN packet processing processes based on the LZ4 algorithm. In this embodiment, the LZ4 algorithm specifically includes the following process: T1, configure a hash table for matching and searching. The hash table is used to store the positions of data that have appeared in the most recent time period T, and read the original data frame. T2, select n bytes in the original data frame using a window box, and calculate the hash value of the n bytes; T3: Based on the hash value, search for the corresponding position in the hash table. If a matching position is found, generate a matching sequence based on the corresponding position. If no matching position is found, output the current byte directly as a literal and slide the window back to step T2.
[0050] Because the LZ4 algorithm typically has a lower compression ratio than other algorithms that pursue extreme compression, it achieves an effective balance between compression ratio, speed, and decompression speed, especially with its extreme decompression speed. In small 5G-based local area networks, under the condition that the air interface MTU meets 1500, it solves the problems caused by the change of MTU in TCP / UDP transmission, while optimizing the network's data throughput, with a throughput increase of more than 30%.
[0051] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for transmitting service data in a MTU-limited local area network scenario, characterized in that, The method comprises: The first transmission process: The wireless routing device receives service data from the wireless air interface and judges the VXLAN identifier of the service data; The wireless routing device directly performs routing judgment on the service data or performs routing judgment after VXLAN unpacking processing according to the VXLAN identifier of the service data; The VXLAN network port in the wireless routing device forwards the service data to the corresponding lead-in network port according to the routing judgment result, and the lead-in network port sends the corresponding service data to the service host; The second transmission process: After the service host receives the service data through the lead-in network port, the service data is forwarded to the wireless routing device, and the wireless routing device forwards the service data to the VXLAN network port based on routing judgment, and the kernel performs VXLAN packet processing on the service data, and then transmits the service data through the wireless air interface.
2. The data transmission method applied to the MTU limited local area network scene according to claim 1, characterized in that, The VXLAN identifier of the service data is automatically identified by the kernel.
3. The data transmission method applied to the MTU-limited LAN scene according to claim 2, characterized in that, The wireless routing device directly performs routing judgment on the service data or performs routing judgment after VXLAN unpacking processing according to the VXLAN identifier of the service data; The method comprises For service data belonging to VXLAN data packets, routing judgment is performed after VXLAN unpacking processing; For service data not belonging to VXLAN data packets, direct routing judgment is performed. The VXLAN packet processing method comprises:
4. The data transmission method for MTU-limited local area network scenarios according to claim 1, characterized in that, Compress the original data frame of the service data without data loss; Add a VXLAN header in front of the compressed original data frame; the VXLAN header comprises an outer MAC header, an outer IP header, an outer header and a VXLAN encapsulation header arranged in sequence; the VXLAN encapsulation header is added in front of the compressed original data frame. The VXLAN unpacking processing method comprises:
5. The data transmission method for MTU-limited local area network scenarios according to claim 4, characterized in that, Strip the outer MAC header, the outer IP header, the outer header and the VXLAN encapsulation header in front of the original data frame in sequence; Decompress the original data frame to obtain the original message data without data loss.
6. The data transmission method applied to the MTU-limited local area network scene according to claim 4, wherein In the VXLAN unpacking processing process, the original data frame is decompressed based on the LZ4 algorithm; In the VXLAN packet processing process, the original data frame is compressed based on the LZ4 algorithm. The service data is transmitted between the wireless air interfaces of different wireless routing devices through a base station.
7. The data transmission method for MTU-limited local area network scenarios according to claim 1, characterized in that, Compressing the original data frame based on the LZ4 algorithm comprises the following steps:
8. The data transmission method for MTU-limited local area network scenarios according to claim 6, characterized in that, T1, configure a hash table for matching search, the hash table is used to store the positions of data that have appeared in the recent time period T, and read the original data frame; T2, window frame selects n bytes in the original data frame, and calculates the hash value of the n bytes; T3, match the corresponding position in the hash table based on the hash value, if the corresponding position is matched, generate a matching sequence based on the corresponding position; if the corresponding position is not matched, output the current byte as a literal directly, and return to step T2 with a sliding window. 9. A data transmission system applied to an MTU-limited local area network scenario, characterized in that, The system comprises a wireless routing device and a service host for implementing the data transmission method applied to the MTU-limited LAN scenario according to any one of claims 1-8. In the first transmission process: The wireless routing device is configured to receive service data from a wireless air interface and determine a VXLAN identifier of the service data; The wireless routing device is further configured to determine, according to the VXLAN identifier of the service data, whether to directly perform routing determination on the service data or to perform routing determination after VXLAN unpacking processing; A VXLAN network port in the wireless routing device forwards the service data to a corresponding lead-in network port based on the routing determination result, and the lead-in network port sends the corresponding service data to the service host; In the second transmission process: The service host forwards the service data to the wireless routing device through the lead-in network port; The wireless routing device forwards the service data to the VXLAN network port based on the routing determination, and the kernel performs VXLAN packing processing on the service data before the service data is sent out through the wireless air interface.
10. A computer readable medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the data transmission method applied to the MTU-limited LAN scenario according to any one of claims 1-8.