Implementation method, device and equipment for carrying a layer 2 jumbo frame over the internet based on intelligent routing technology
Through intelligent routing technology and error correction, the optimal link is dynamically cut and selected to transmit jumbo frames, solving the MTU limitation and transmission quality adaptation problems of the Internet's Layer 2 network, and improving transmission efficiency and reliability.
Patent Information
- Application Number
- CN202510804088.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-17
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2045-06-17
AI Technical Summary
Existing technologies, when carrying Layer 2 networks over the Internet, have MTU limitations and transmission quality adaptation issues, and are unable to dynamically adjust transmission strategies, resulting in low jumbo frame transmission efficiency and insufficient reliability.
Through intelligent routing technology, link quality is detected in real time, jumbo frames are dynamically cut and the optimal link is selected for transmission. Combined with error correction and retransmission optimization, link quality label matching and data packet assembly are achieved.
It improves the reliability and efficiency of jumbo frame transmission, avoids link idleness or overload, and reduces the redundant overhead of invalid transmission.
Smart Images

Figure CN120358203B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of SD-WAN technology, and in particular to an implementation method, apparatus, and device for carrying layer 2 jumbo frames over the Internet based on intelligent routing technology. Background Art
[0002] In recent years, as an extension of SD-WAN technology, solutions using Layer 2 networks over Layer 3 tunnels have become increasingly popular. The core principle is to encapsulate Layer 2 frames (such as Ethernet frames) and carry them via TCP or UDP protocols, ultimately transmitting them to remote devices via IP networks (especially the internet). From a protocol stack perspective, the encapsulated "Layer 2 link packets" are embedded within the Layer 3 tunnel, which can also be used to transmit other data (such as regular IP traffic). The entire tunnel relies on the internet for transmission. This technology enables Layer 2 communications (such as ARP and MAC address learning), traditionally limited to LANs, to cross the WAN, making it suitable for scenarios such as enterprise remote networking and cloud migration.
[0003] However, when transporting Layer 2 traffic over the internet, there are two key issues: MTU limitations and transmission quality adaptation. First, the internet's standard MTU typically does not exceed 1500 bytes, while Layer 2 networks (especially data centers or storage networks) often use jumbo frames, which typically reach 9000 bytes in length, far exceeding the internet's carrying capacity. When the length of an L2 packet exceeds the tunnel's effective MTU, the original frame cannot be transmitted directly and must be fragmented or discarded, resulting in reduced efficiency or even communication failure. Second, different Layer 2 data frames have different network quality requirements. For example, jumbo frame transmission requires higher bandwidth and more stable connections because retransmitting the entire jumbo frame in the event of packet loss is extremely costly. Meanwhile, smaller frames (such as VoIP data) are more sensitive to latency. Traditional solutions lack dynamic adaptation capabilities and cannot intelligently adjust transmission strategies for different services.
[0004] To address these issues, a comprehensive solution is urgently needed. Its core features should include: a dynamic MTU negotiation mechanism (such as path MTU discovery and fragmentation optimization), intelligent routing technology (selecting the optimal link based on frame size and service requirements), and error correction and retransmission optimization (such as block-level checksum and selective retransmission). For example, within an SD-WAN architecture, edge devices can detect the MTU and quality (packet loss rate and latency) of each link in real time, appropriately fragmenting jumbo frames and transmitting them over highly reliable links (such as dedicated lines), while flexibly dispatching small frames to low-latency paths (such as 5G). This solution not only resolves MTU mismatches but also improves Layer 2 traffic transmission efficiency in complex network environments, providing reliable support for modern distributed services. Summary of the Invention
[0005] The present application provides an implementation method for carrying Layer 2 jumbo frames over the Internet based on intelligent routing technology, which is characterized by comprising:
[0006] Based on the User Datagram Protocol, all link quality data is obtained based on the detection packets transmitted between the sender and the receiver, and the quality weight calculation result is generated;
[0007] Based on the link's segmentation benchmark, the input Layer 2 network jumbo frame is segmented to obtain jumbo frame quality, the optimal link is selected, and error-corrected data packets are generated for transmission.
[0008] According to the received error correction data packet, it is verified and added to the splicing list, the integrity of the data packet in the list is checked, and assembly or validity judgment is performed.
[0009] Optionally, the acquiring of all link quality data based on the detection packets transmitted between the transmitting end and the receiving end based on the User Datagram Protocol and generating a quality weight calculation result may include:
[0010] The detection packet is a lightweight data packet containing a timestamp and sequence number, which is sent at a fixed frequency on all links and is used to measure the packet loss rate and delay data of each link;
[0011] The quality weight calculation result is generated by weighted calculation based on the packet loss rate and delay data of each link, and the quality scores of all links are sorted and link quality labels are added.
[0012] Optionally, the step of dividing the input layer 2 network jumbo frame into blocks according to the link cutting reference value to obtain jumbo frame quality, selecting the optimal link, and generating an error correction data packet for transmission includes:
[0013] The link cutting reference value is the minimum value of the maximum transmission unit values of all links;
[0014] The input layer 2 network jumbo frame is cut into blocks to obtain jumbo frame quality, which is a cutting benchmark value passing through the link, deducting the reserved bytes of the data packet, cutting the jumbo frame to obtain the number of blocks, and determining the quality of the current jumbo frame by setting a jumbo frame block number threshold and adding a jumbo frame quality tag;
[0015] The selecting the optimal link is to find a corresponding link quality label according to the jumbo frame quality label;
[0016] The error correction data packet is a secondary network jumbo frame split data packet generated after cutting, and an additional hash check value and sequence number are added to it, so as to detect transmission errors and identify the block sequence.
[0017] Optionally, performing verification based on the received error-corrected data packet and adding it to the splicing list, checking the integrity of the data packet in the list, and performing assembly or validity judgment may include:
[0018] The verification and addition to the splicing list is performed, and the receiving end obtains the sequence number and hash check value in the error-corrected data packet for judgment. If the sequence number is an expected or missing sequence number and the hash check value is verified to be correct, the data packet is added to the splicing list; otherwise, the data packet is discarded and requested to be retransmitted;
[0019] The check list checks the integrity of the data packets, and after receiving the data packets in the splicing list, determines the receiving status of the data packets, and starts assembling the data packets if they are complete, otherwise determines the validity of the current round of assembly.
[0020] Optionally, the selecting the optimal link is to determine a link that should be used for transmitting the jumbo frame by setting a jumbo frame block number threshold, including:
[0021] The jumbo frame block number threshold is set to n1 and n2 and n1 <n2,二层网络巨帧切割块数设为N;
[0022] When N≤n1, a low-quality jumbo frame tag is added to the jumbo frame, and the link with the worst quality tag is selected for data packet transmission;
[0023] When n1 <N≤n2时,为该巨帧添加中质量巨帧标签,选择链路质量标签为中间质量的链路进行数据包传输;
[0024] When N>n2, a high-quality jumbo frame tag is added to the jumbo frame, and the link with the best quality tag is selected for data packet transmission.
[0025] Optionally, the checking of the integrity of the data packets in the list is to determine the receiving status of the data packets after receiving the data packets in the splicing list, and to start data packet assembly if the data packets are complete, or to determine the validity of the current round of assembly if the data packets are complete, including:
[0026] The validity of the current round of assembly is determined by determining the sequence gap between the missing data packet and the latest received data packet;
[0027] When the gap is smaller than the set threshold, the current round of assembly is valid and the missing data packets are waiting to be resent;
[0028] When the gap is larger than the set threshold, the current round of assembly is invalid, the received data packets are cleared and restarted.
[0029] Optionally, the method for carrying Layer 2 jumbo frames over the Internet based on intelligent routing technology is characterized in that, when there is only one physical link between the sending end and the receiving end, it further includes:
[0030] The virtual link quality is distinguished by creating different front-line error correction coding strength in the physical link and by detecting the packet.
[0031] The application also provides an implementation device for carrying a two-layer jumbo frame over the Internet based on intelligent routing technology, characterized in that the device comprises:
[0032] A link test module is configured to obtain all link quality data and generate quality weight calculation results according to the detection packet transmitted between the sending end and the receiving end.
[0033] An intelligent routing module is configured to select the optimal link and generate error correction data packets for transmission according to the cutting reference value of the link and the jumbo frame quality obtained by cutting and blocking the input two-layer network jumbo frame.
[0034] A receiving and assembling module is configured to check the completeness of the data packets in the splicing list, assemble or judge the validity according to the received error correction data packets and perform verification and splicing list addition.
[0035] Optionally, the intelligent routing module comprises:
[0036] A link selection module is configured to sort the quality of all links and select the link with corresponding quality according to the size of the two-layer network jumbo frame cutting.
[0037] A jumbo frame cutting module is configured to cut the two-layer network jumbo frame and generate data packets containing error correction information.
[0038] The application also provides an electronic device, characterized in that it is used to implement any of the implementation methods for carrying a two-layer jumbo frame over the Internet based on intelligent routing technology, and comprises:
[0039] A first SD-WAN edge device is deployed at the sending end and is configured to send a link detection packet, dynamically cut a maximum transmission unit value, encapsulate a data packet and perform intelligent routing.
[0040] A second SD-WAN edge device is deployed at the receiving end and is configured to feed back the link quality, check the received data packet, and perform data packet error correction and recombination.
[0041] The application has the beneficial effects that the intelligent routing is used to make larger jumbo frames use higher quality links, improve the reliability of jumbo frame transmission, and avoid the idle or overload caused by fixed paths. The error correction information of the data packet is verified, and only the data packet that fails the verification is retransmitted, so that the invalid transportation is reduced. BRIEF DESCRIPTION OF DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required in the embodiments or the description of the prior art. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0043] Figure 1 A flowchart illustrating an implementation method for carrying Layer 2 jumbo frames over the Internet based on intelligent routing technology disclosed in this application is shown;
[0044] Figure 2 A schematic diagram showing the protocol stack structure of an implementation method for carrying Layer 2 jumbo frames over the Internet based on intelligent routing technology disclosed in this application;
[0045] Figure 3 A schematic diagram of a Layer 2 network jumbo frame illustrating an implementation method for carrying Layer 2 jumbo frames over the Internet based on intelligent routing technology disclosed in this application;
[0046] Figure 4 A schematic diagram illustrating a maximum transmission unit value cutting method for carrying layer 2 jumbo frames over the Internet based on intelligent routing technology disclosed in this application is shown;
[0047] Figure 5 A diagram showing a Layer 2 link data packet cutting mechanism for an implementation method of carrying Layer 2 jumbo frames over the Internet based on intelligent routing technology disclosed in this application;
[0048] Figure 6 A logical diagram showing a receiving end receiving and assembling a sequence of cut L2 data packets in an implementation method of carrying Layer 2 jumbo frames over the Internet based on intelligent routing technology disclosed in this application
[0049] Figure 7 A schematic diagram showing a link of an implementation method for carrying Layer 2 jumbo frames over the Internet based on intelligent routing technology disclosed in this application;
[0050] Figure 8 A schematic diagram of a device for implementing a method for carrying layer 2 jumbo frames over the Internet based on intelligent routing technology disclosed in this application is shown. DETAILED DESCRIPTION
[0051] Various exemplary embodiments, features, and aspects of the present application will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise indicated.
[0052] The terms "first", "second", etc. are used only for the purpose of description and do not imply or suggest a relative importance or a specific number of the technical features indicated. Thus, the features defined with "first", "second", etc. can include one or more of the features explicitly or implicitly. In the description of the present application, the meaning of "a plurality" is two or more, unless otherwise explicitly specified.
[0053] The word "exemplary" is used herein to mean "serving as an example, instance, or illustration." Any implementation described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other implementations.
[0054] In addition, for the purpose of better illustrating the present application, numerous specific details are set forth in the following detailed description. One skilled in the art will understand, however, that the present application can be practiced without certain of the specific details herein. In some instances, well-known methods, structures, elements, and circuits have not been described in detail in order to avoid obscuring the present application.
[0055] The present application is an implementation method for carrying two-layer jumbo frames over the Internet based on intelligent routing technology. In the present application, the packet loss rate and delay of each path are detected in real time through dynamic link quality assessment, the links are sorted and labeled with quality tags according to quality. Based on the smallest maximum transmission unit value (MTU) in the whole link, the jumbo frame is cut, the quality level of the current jumbo frame is obtained according to the set jumbo frame block threshold, and the quality tag is added. The optimal link is selected for transmission by matching the quality tags of the link and the jumbo frame. Finally, through error correction and ordered reorganization, the data integrity and order are guaranteed by using hash value and sequence number.
[0056] Embodiment 1
[0057] As shown in the flowchart of an implementation method for carrying two-layer jumbo frames over the Internet based on intelligent routing technology according to an embodiment of the present application, the specific contents include the following: Figure 1
[0058] S100, based on the user data packet protocol, the quality weight calculation result is generated by obtaining all link quality data according to the detection packet transmitted between the sending end and the receiving end.
[0059] Specifically, in the present embodiment, the sending end sends detection packets to all links at a fixed frequency, and the receiving end receives the detection packets. The packet loss rate and delay of each link are obtained according to the number of lost packets and the time stamp of the detection packet. Then, the quality scores of each link are generated by weighting calculation through the pre-set weight, and the links of different qualities are distinguished and labeled with corresponding link quality tags according to the scores.
[0060] S200 , based on the link cutting reference value, the input layer 2 network jumbo frame is cut into blocks to obtain the jumbo frame quality, the optimal link is selected, and an error correction data packet is generated for transmission.
[0061] Specifically, in this embodiment, a jumbo frame block number threshold for the jumbo frame size of the Layer 2 network is set. The threshold is used to determine the quality of the link that should be used for the transmission of the jumbo frame. The MTU of the link used is then obtained in real time to perform jumbo frame cutting, and a data packet containing an error correction mechanism is generated for transmission.
[0062] S300: Verify the received error-corrected data packet and add it to the splicing list, check the integrity of the data packet in the list, and perform assembly or validity judgment.
[0063] Specifically, in this embodiment, after receiving a data packet, the receiving end uses the sequence number to determine whether the packet is the currently expected or missing packet, and uses the hash checksum to determine the data integrity of the packet. The packet is then added to the concatenation list and the completeness of the packets in the list is determined. If the packets are complete, assembly is immediately performed; if not, the validity of the current round of assembly is determined.
[0064] Under the current technical background, as an extension of SD-WAN technology, layer 2 network transmission based on layer 3 tunnels has become popular recently. Its core principle is to encapsulate the layer 2 network frame and transmit it to remote devices through the IP network (especially the Internet) in TCP or UDP mode. Figure 2 As shown in Figure 1, the "Layer 2 link data packet" is the encapsulated Layer 2 network frame, which is carried on (in) the tunnel. This tunnel can also be used to carry "other data", and the tunnel is carried on the Internet. Currently, there are two problems with the Internet-based Layer 2 network: First, Figure 3 As shown, the Internet's MTU typically does not exceed 1500 bytes. However, Layer 2 networks often carry larger frames, particularly jumbo frames, with typical packet lengths of around 9000 bytes, far exceeding the MTU that the Internet can carry. When L2 link data packets far exceed the packet length of Internet-based tunnels, smaller packets cannot accommodate larger packets. Secondly, different Layer 2 network data frames require different transmission qualities to meet varying needs. Jumbo frames, in particular, require greater bandwidth and more stable network quality (due to the high retransmission cost), which traditional solutions lack.
[0065] In summary, this application significantly optimizes the efficiency and reliability of Internet-based Layer 2 jumbo frame transmission through intelligent routing and dynamic MTU cutting technology. First, UDP detection packets are used to evaluate link quality in real time and add labels, dynamically distinguishing link quality to ensure that routing accurately adapts to network status. Secondly, the jumbo frame block number threshold is used as a judgment basis, and quality labels are added according to the number of jumbo frame blocks. Intelligent routing is performed by matching jumbo frames with link labels. Finally, block-level error correction is achieved through sequence numbers and hash checks. The receiving end can quickly identify out-of-order or damaged data packets and only needs to retransmit invalid blocks, reducing redundant overhead.
[0066] As an optional implementation scheme of the present application, optionally, in step S100, based on the User Data Packet Protocol, all link quality data is obtained according to the detection packets transmitted between the sending end and the receiving end, and a quality weight calculation result is generated, including:
[0067] S101, the detection packet is a lightweight data packet containing a timestamp and a sequence number, which is sent at a fixed frequency in all links and is used to measure the packet loss rate and delay data of each link.
[0068] Specifically, since this application is designed based on the User Datagram Protocol (UDP), the detection packet used is a lightweight UDP packet. Figure 7 As shown, the detection packet is configured to be transmitted from the sending end to the receiving end, and a 64-byte detection packet is sent at a frequency of once every 1 second to test the link quality.
[0069] The link quality test measures the link delay and packet loss rate of the link used by the detection packet by measuring the timestamp and sequence number in the detection packet. The jitter parameter can also be obtained through the delay (RTT) to obtain the link quality indicator.
[0070] S102, generating a quality weight calculation result, which is a weighted calculation of all link quality scores based on the packet loss rate and delay data of each link, sorting them and adding link quality labels.
[0071] Specifically, the link quality score is obtained by multiplying the quality indicator data (packet loss rate and latency) by the corresponding weight. The weight can be set to different values according to different usage scenarios. In this embodiment, in the Layer 2 network jumbo frame transmission scenario, the packet loss rate weight is set to 80%, and the latency weight is set to 20%. The weighted calculation formula for the link quality score is:
[0072] .
[0073] The ranking of all link scores is to arrange the links of different qualities from low to high according to the scores.
[0074] For example, the link A has a packet loss rate of 0.5% and a delay of 40 ms; the link B has a packet loss rate of 2% and a delay of 30 ms; and the link C has a packet loss rate of 1% and a delay of 60 ms. The quality scores of the three links are:
[0075] ;
[0076] ;
[0077] .
[0078] Since the lower the score is, the higher the link quality is, the ranking result is link A > link C > link B. The link quality label of link A is the best quality link, the link quality label of link C is the intermediate quality link, and the link quality label of link B is the worst quality link.
[0079] In addition, the link is a virtual communication channel established by tunnel technology. Each tunnel is composed of two logical interfaces at both ends, and each interface is assigned an independent IP address for data routing. The system dynamically assigns a quality level label to each logical interface by continuously monitoring the transmission quality parameters (including packet loss rate, delay, jitter, etc.) of each link using intelligent algorithms. For example, label No. 1 represents the best quality link, label No. 2 represents the intermediate quality link, and so on. During data transmission, the sending end automatically matches the corresponding quality level label according to the number of blockings of the two-layer jumbo frame, thereby selecting the most suitable transmission channel.
[0080] As an optional embodiment of the present application, in step S200, the input two-layer network jumbo frame is cut and blocked according to the cutting reference value of the link to obtain the jumbo frame quality, the optimal link is selected, and the error correction data packet is generated for transmission, including:
[0081] S201, the cutting reference value of the link is the minimum value in the maximum transmission unit values of all links.
[0082] Specifically, as shown in Figure 3 , the MTU of the two-layer network jumbo frame is much larger than the MTU of the tunnel packet based on the Internet, so it needs to be cut and generate split data packets for transmission in the form shown in Figure 4 , and then assembled by the receiving end. The cutting reference value of the link in the present application is the minimum value in the MTU of all links between the sending end and the receiving end, and the reserved bytes are subtracted to form the cutting reference value.
[0083] S202, the input layer 2 network jumbo frame is cut into blocks to obtain the jumbo frame quality, the cutting benchmark value passing through the link is deducted from the reserved bytes of the data packet, the jumbo frame is cut to obtain the number of blocks, and the quality of the current jumbo frame is judged by setting the jumbo frame block number threshold and a jumbo frame quality label is added.
[0084] Specifically, the MTU of all links is detected and the minimum value is selected as the cutting reference value. The jumbo frame cutting process is performed based on the MTU value. When cutting, the reserved bytes should be reserved before cutting. The specific form is:
[0085] .
[0086] Cutting process as Figure 5 As shown, the process first receives a complete Layer 2 jumbo frame, then obtains a segmentation threshold and determines whether the remaining jumbo frame data can be accommodated within the MTU. If so, the frame is encapsulated with UDP and sent through a tunnel. If not, the frame is segmented based on the MTU, the segmented portion is encapsulated with UDP and sent through a tunnel. The process then determines whether any jumbo frame data remains after the jumbo frame is sent. If not, the current round of segmentation ends and the process awaits new Layer 2 data. If so, the process again determines whether the MTU can accommodate the remaining jumbo frame data. This cycle continues until no more data remains.
[0087] The jumbo frame block number thresholds are set to n1 and n2, and n1 <n2,若二层网络巨帧切割块数小于n1则该巨帧的巨帧质量标签为低质量巨帧,若二层网络巨帧切割块数大于n1且小于n2则该巨帧的巨帧质量标签为中质量巨帧,若二层网络巨帧切割块数大于n2则该巨帧的巨帧质量标签为高质量巨帧。
[0088] S203 , the selecting the optimal link is to find a corresponding link quality label according to the jumbo frame quality label.
[0089] Specifically, jumbo frames are mapped to links through labels. High-quality jumbo frames use the best-quality link, medium-quality jumbo frames use the middle-quality link, and low-quality jumbo frames use the worst-quality link.
[0090] For example, let the jumbo frame block number thresholds n1=2 and n2=7, and the number of jumbo frame cutting blocks in the Layer 2 network be N;
[0091] When N≤2, a low-quality jumbo frame tag is added to the jumbo frame, and the link with the worst quality tag is selected for data packet transmission.
[0092] When 2 <N≤7时,为该巨帧添加中质量巨帧标签,选择链路质量标签为中间质量的链路进行数据包传输;
[0093] When N>7, a high-quality jumbo frame tag is added to the jumbo frame, and the link with the best quality tag is selected for data packet transmission.
[0094] S204, the error correction data packet is an additional hash check value and a sequence number added to the secondary network jumbo frame split data packet generated after cutting, which is used to detect transmission errors and identify the block sequence.
[0095] Specifically, the hash check value is used by the receiving end to determine whether the data block has been tampered with or damaged during the transmission process through the check value. The verification process is that the sending end calculates the hash for each data packet and attaches it to the data packet when packaging. Then, when the receiving end receives the data packet, it recalculates the hash and compares it with the hash value in the packet. If they match, it means that the data is valid and can continue to be processed. If they do not match, it means that the data is invalid, and the receiving end transmits a retransmission request for the data packet to the sending end.
[0096] In addition, the sequence numbers are allocated in an incremental manner to the cut and split Layer 2 network jumbo frame data packets, so that the receiving end can rearrange the disordered data packets according to the sequence numbers, and can determine whether there are data packets missing during the transmission process based on the continuity of the sequence numbers. If missing, the receiving end transmits a retransmission request for the data packet to the sending end.
[0097] As an optional implementation of the present application, optionally, in step S300, based on the received error-corrected data packet, verification is performed and the data packet is added to the splicing list, the integrity of the data packet in the list is checked, and assembly or validity judgment is performed, including:
[0098] Specifically, the splicing and assembly process is as follows: Figure 6 As shown:
[0099] After receiving the data packet, the receiving end obtains the sequence number and hash check value in the data packet, and confirms the data validity of the data packet by matching the hash value in the data packet with the hash value calculated by the receiving end. The sequence number is used to determine whether the data packet is required by the current splicing list or is currently missing. If any of these two checks fails, the data packet is discarded and requested to be resent. If both pass, the data packet is added to the splicing list.
[0100] The receiving end then determines whether the splicing list has collected all the data packets. If so, the data packet assembly work is immediately carried out. If not, the missing data packet situation is determined.
[0101] The missing packet determination involves the receiving end determining whether the difference between the sequence number of the most recently received packet and the sequence number of the missing packet is greater than a set threshold. In this embodiment, the threshold is set to 5. If the difference is less than or equal to the threshold, the current assembly round is considered valid and the receiving end continues to wait for the packet to be transmitted. If the difference is greater than the threshold, the current assembly round is considered invalid, the receiving end clears all packets in the splicing list, and transmits a request to the sending end to restart.
[0102] As an optional implementation scheme of the present application, optionally, when there is only one physical link between the transmitting end and the receiving end, the method further includes:
[0103] Specifically, within a single physical link, several forward error correction (FEC) tunnels with varying degrees of redundancy are pre-established between the transmitter and receiver. The detection packets in step S100 are sent to these FEC tunnels to obtain and rank the quality of these FEC tunnels. Layer 2 jumbo frames can then be transmitted according to steps S200 and S300.
[0104] FEC technology, by adding redundant checksum information to data packets, enables error detection and correction during network transmission. Its core value lies in significantly reducing packet loss and improving transmission reliability by enhancing FEC's error correction strength when link transmission quality degrades. However, greater error correction strength requires more redundant data, which reduces effective transmission bandwidth utilization and increases transmission latency due to increased encoding and decoding processing time. Therefore, in practical applications, a dynamic trade-off between error correction capability and transmission efficiency must be made based on link quality to achieve optimal transmission results.
[0105] Example 2
[0106] Based on the same principle as the above method, a device for carrying layer 2 jumbo frames over the Internet based on intelligent routing technology is also proposed. Figure 8 An implementation device 100 for carrying Layer 2 jumbo frames over the Internet based on intelligent routing technology according to an embodiment of the present disclosure includes:
[0107] 110, a link test module, configured to obtain all link quality data based on detection packets transmitted between a transmitting end and a receiving end, and generate a quality weight calculation result;
[0108] 120, an intelligent routing module, configured to segment the input Layer 2 network jumbo frame into blocks according to a link segmentation benchmark value to obtain jumbo frame quality, select an optimal link, and generate error-corrected data packets for transmission;
[0109] 130, a receiving and assembling module, configured to verify the received error-corrected data packet and add it to a splicing list, check the integrity of the data packet in the list, and perform assembly or validity judgment.
[0110] As an optional implementation scheme of the present application, optionally, the intelligent routing module 120 includes:
[0111] 121, a link selection module, configured to sort the quality of all links and select a link of corresponding quality according to the size of the jumbo frame cut in the Layer 2 network;
[0112] 122, a jumbo frame cutting module, is used to cut jumbo frames in the layer 2 network and generate data packets containing error correction information.
[0113] Obviously, those skilled in the art should understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned control methods. The modules or steps of the present invention can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Alternatively, they can be implemented by program codes executable by the computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the present invention is not limited to any specific combination of hardware and software.
[0114] Those skilled in the art will appreciate that all or part of the processes in the above-described embodiments can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When executed, the program can include the processes of the above-described control method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD). The storage medium can also include a combination of the above-mentioned types of memory.
[0115] Example 3
[0116] Furthermore, the present application proposes an electronic device, characterized by being used for implementing any of the aforementioned methods for carrying Layer 2 jumbo frames over the Internet based on intelligent routing technology, comprising:
[0117] The first SD-WAN edge device is deployed at the transmitting end and is used to send link detection packets, dynamically cut the maximum transmission unit value, encapsulate data packets, and perform intelligent routing;
[0118] The second SD-WAN edge device is deployed at the receiving end to provide link quality feedback, verify received data packets, and perform error correction and reassembly of data packets.
[0119] It should be noted that the first SD-WAN edge device, deployed at the data transmission end, features high-performance encapsulation and dynamic routing capabilities. The device uses UDP detection packets to detect the packet loss rate and latency of each link in real time, calculates a quality score based on preset weights, and constructs a dynamic link quality table. For incoming Layer 2 jumbo frames (such as 10 Gigabit Ethernet frames), the device segments them into blocks based on the minimum MTU of the entire link and intelligently selects a link based on the number of blocks. A hash checksum and sequence number are appended to each block of data, encapsulating it into an error-correcting data packet. The device supports multi-link parallel scheduling, ensuring low packet loss while maximizing throughput, making it suitable for demanding scenarios such as financial synchronization and video surveillance.
[0120] The second SD-WAN edge device is deployed at the receiving end, focusing on data verification and reassembly to ensure transmission reliability. The device feeds back link quality data to the sending end in real time to assist it in dynamically adjusting the routing strategy. When receiving a data packet, the device first checks the sequence number to identify disorder or packet loss, and verifies the data integrity through the hash value. If the verification fails, a retransmission request is immediately initiated, and only specific blocks need to be retransmitted instead of the entire frame. All valid data packets are cached in the splicing list according to the sequence number, and are automatically reassembled into the original jumbo frame when consecutive blocks are collected; if some blocks arrive late, the device determines the availability of the current data based on the service tolerance threshold. This design significantly reduces the reassembly delay and is particularly suitable for scenarios that are sensitive to latency and integrity, such as virtual machine migration and industrial Internet of Things.
[0121] Specifically, the first SD-WAN edge device, deployed at the transmitting end, sends detection packets at a fixed frequency to test the quality of each link and rank the link quality. Upon receiving a Layer 2 jumbo frame, the first SD-WAN edge device segments the jumbo frame, determines its quality based on a jumbo frame block count threshold, selects a link with the appropriate quality for transmission, and generates a data packet with an error correction mechanism for transmission over the link to the second SD-WAN edge device.
[0122] The second SD-WAN edge device is deployed at the receiving end. After receiving the data packet sent by the first SD-WAN edge device, it verifies the data validity of the data packet by verifying the hash value. If the data packet fails the verification, the second SD-WAN edge device sends feedback information to retransmit the data packet. Then, the sequence number is used to confirm whether the data packet is expected or missing in the splicing list. If it is, the data packet is added to the splicing list and waits for assembly. If not, the data packet is discarded. Next, the second SD-WAN edge device checks whether the data packets in the splicing list are complete. If so, it immediately assembles to complete the current round of assembly. If not, it checks whether the difference between the latest sequence number and the missing sequence number is greater than a threshold. If it is less than the threshold, the second SD-WAN edge device considers that the current round of assembly is still valid and continues to wait for the missing data packet. If it is greater than the threshold, the second SD-WAN edge device considers that the current round of assembly is invalid, clears all data packets in the splicing list, and sends a restart request to the first SD-WAN edge device.
[0123] The embodiments of the present application have been described above. The above description is illustrative and not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is selected to best explain the principles of the embodiments, their practical applications, or improvements to the technology in the market, or to enable other persons skilled in the art to understand the embodiments disclosed herein.
Claims
1. A method for carrying Layer 2 jumbo frames over the Internet based on intelligent routing technology, characterized in that: It includes: Based on the User Datagram Protocol, obtain all link quality data according to the detection packets transmitted between the sender and the receiver, and generate a quality weight calculation result; According to the cutting reference value of the link, cut and divide the input Layer 2 network jumbo frame to obtain the jumbo frame quality, select the optimal link, and generate an error correction data packet for transmission; The cutting reference value of the link is the minimum value among the maximum transmission unit values of all links; The operation of cutting and dividing the input Layer 2 network jumbo frame to obtain the jumbo frame quality is to subtract the reserved bytes of the data packet from the cutting reference value of the link, cut the jumbo frame to obtain the number of blocks, and judge the quality of the current jumbo frame and add a jumbo frame quality label by setting a jumbo frame block number threshold; The selection of the optimal link is to find the corresponding link quality label according to the jumbo frame quality label, including: The jumbo frame block number threshold is set to n1 and n2, and n1 < n2. The number of cut blocks of the Layer 2 network jumbo frame is set to N; When N ≤ n1, add a low-quality jumbo frame label to this jumbo frame, and select the link with the worst quality label for data packet transmission; [[ID=A]]When n1 < N ≤ n2, add a medium-quality jumbo frame label to this jumbo frame, and select the link with the medium quality label for data packet transmission; When N > n2, add a high-quality jumbo frame label to this jumbo frame, and select the link with the optimal quality label for data packet transmission; The error correction data packet is an additional hash check value and sequence number added to the split data packets of the secondary network jumbo frame generated after cutting, which is used to detect transmission errors and identify the block sequence; According to the received error correction data packet, perform verification and add it to the splicing list, check the integrity of the data packets in the list, and perform assembly or validity judgment.
2. The method for carrying Layer 2 jumbo frames over the Internet based on intelligent routing technology according to claim 1, wherein: The operation of obtaining all link quality data based on the User Datagram Protocol according to the detection packets transmitted between the sender and the receiver and generating a quality weight calculation result includes: The detection packet is a lightweight data packet containing a timestamp and a sequence number, which is sent at a fixed frequency in all links and is used to measure the packet loss rate and delay data of each link; The generation of the quality weight calculation result is to generate the quality scores of all links through weighted calculation according to the packet loss rate and delay data of each link, perform sorting, and add link quality labels.
3. The method for carrying Layer 2 jumbo frames over the Internet based on intelligent routing technology according to claim 1, wherein: The operation of performing verification and adding it to the splicing list according to the received error correction data packet, checking the integrity of the data packets in the list, and performing assembly or validity judgment includes: The operation of performing verification and adding it to the splicing list is for the receiver to obtain the sequence number and hash check value in the error correction data packet for judgment. If the sequence number is the expected or missing sequence number and the hash check value is verified correctly, the data packet is added to the splicing list, otherwise this data packet is discarded and a retransmission is requested; The operation of checking the integrity of the data packets in the list is to judge the reception status of the data packet after the splicing list receives the data packet. If all are received, start data packet assembly, otherwise judge the validity of this round of assembly.
4. The method for carrying Layer 2 jumbo frames over the Internet based on intelligent routing technology according to claim 3, wherein: The operation of checking the integrity of the data packets in the list is to judge the reception status of the data packet after the splicing list receives the data packet. If all are received, start data packet assembly, otherwise judge the validity of this round of assembly, including: It should be noted that in the original text, there is no content in item ID=8 in the Chinese text you provided. I have translated it according to the format requirements, but there may be some inaccuracies due to the lack of corresponding content. You can check and correct it according to the actual situation. The judgment of the validity of the current round of assembly is to judge the sequence gap between the missing data packet and the latest received data packet; When the gap is less than the set threshold, the current round of assembly is valid, and wait for the missing data packet to be resent; When the gap is greater than the set threshold, the current round of assembly is invalid, clear the received data packets and start over.
5. The method for carrying Layer 2 jumbo frames over the Internet based on intelligent routing technology according to claim 1, wherein: When there is only one physical link between the sender and the receiver, it further includes: Create virtual links with different forward error correction coding strengths in the physical link, and distinguish the quality of the virtual links through detection packets to perform jumbo frame transmission.
6. An implementation device for carrying Layer 2 jumbo frames over the Internet based on intelligent routing technology, characterized in that: The device includes: A link test module, used to obtain all link quality data based on the detection packets transmitted between the sender and the receiver, and generate a quality weight calculation result; An intelligent routing module, used to cut and divide the input layer-2 network jumbo frame according to the link cut-off reference value to obtain the jumbo frame quality, select the optimal link, and generate error correction data packets for transmission; The link cut-off reference value is the minimum value among the maximum transmission unit values of all links; The cutting and dividing of the input layer-2 network jumbo frame to obtain the jumbo frame quality is to cut the jumbo frame to obtain the number of blocks through the link cut-off reference value minus the reserved bytes of the data packet, and judge the quality of the current jumbo frame and add a jumbo frame quality label by setting a jumbo frame block number threshold; The selection of the optimal link is to find the corresponding link quality label according to the jumbo frame quality label, including: The jumbo frame block number threshold is set to n1 and n2 and n1 < n2, and the number of cut blocks of the layer-2 network jumbo frame is set to N; When N ≤ n1, add a low-quality jumbo frame label to this jumbo frame, and select the link with the worst quality link quality label for data packet transmission; When n1 < N ≤ n2, add a medium-quality jumbo frame label to this jumbo frame, and select the link with the medium-quality link quality label for data packet transmission; When N > n2, add a high-quality jumbo frame label to this jumbo frame, and select the link with the optimal-quality link quality label for data packet transmission; A receiving and assembly module, used to check and add to the splicing list according to the received error correction data packets, check the integrity of the data packets in the list, and perform assembly or validity judgment.
7. The implementation device for carrying layer-2 jumbo frames over the Internet based on intelligent routing technology according to claim 6, wherein the intelligent routing module includes: A link selection module, used to sort the quality of all links and select the corresponding quality link according to the size of the cut of the layer-2 network jumbo frame; A jumbo frame cutting module, used to cut the layer-2 network jumbo frame and generate data packets containing error correction information.
8. An electronic device, characterized in that: The implementation method for carrying layer-2 jumbo frames over the Internet based on intelligent routing technology according to any one of claims 1 to 5, includes: The first SD-WAN edge device is deployed at the sender, used to send link detection packets, perform dynamic maximum transmission unit value cutting, encapsulate data packets, and perform intelligent routing; The second SD-WAN edge device is deployed at the receiver, used to provide link quality feedback, check the received data packets, and perform data packet error correction and recombination.
Citation Information
Patent Citations
Data transmission method and device, communication equipment and storage medium
CN116017559A
Data packet transmission method, device, equipment, medium and computer program product
CN117081973A
MBB multipath local aggregation superposition transmission method and system
CN119485497A