Efficient data packet recovery method based on local link retransmission technology
By monitoring data packets in real time within the switch and dynamically adjusting the retransmission strategy, local link retransmission technology is used to solve the loss problem caused by link failures during data packet transmission, improve network stability and success rate, and improve network communication performance. .
Patent Information
- Application Number
- CN202411266807.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, the stability and success rate of network communication are not effectively guaranteed due to the loss problem caused by link failure during data packet transmission, and the traditional retransmission strategy cannot be optimized when the environment is congested, affecting network performance.
Adopt an efficient data packet recovery method based on local link retransmission technology, monitor data packets in real time by deploying a monitoring mechanism in the switch, detect loss, and dynamically adjust the retransmission strategy based on the delay data set and packet loss rate, using delay or Overlay retransmission policies to optimize packet retransmissions.
It improves the stability and reliability of network transmission, reduces network burden, improves the success rate of data packet recovery and network communication performance, and solves the shortcomings of traditional retransmission mechanisms in responding to changes in the network environment.
Smart Images

Figure CN118802811A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data packet recovery, in particular to a high-efficiency data packet recovery method based on local link retransmission technology. Background Art
[0002] Packet recovery is the process of recovering lost, damaged or unreadable data packets through technical means. Data packets may be lost during transmission or damaged due to storage device failure, misoperation, virus attack, etc. Packet recovery technology can detect and repair these problems, thereby restoring data integrity and availability.
[0003] The existing application publication number is CN105119819A, and its name is a method and system for recovering an Internet of Things data transmission path. The method includes initializing a header file of the data packet at a source node; modifying the header file of the data packet at the relay node in real time according to the relay node at which the data packet arrives; searching a database according to the header file of the data packet at a destination node, and if a matching header file is obtained and the transmission path of the data packet corresponding to the matching header file has been restored, the transmission path of the corresponding data packet is used as the transmission path of the data packet; otherwise, the sparse reproduction method and the compressed sensing method are combined to solve the transmission path of the data packet. The present invention realizes that the query and solution methods are combined to effectively improve the efficiency of data transmission path recovery; it is simple and convenient to achieve without obtaining the internal data packet correlation in the wireless sensor network, and the resource consumption is low; and the data transmission path can be efficiently restored when the topology changes and the data packet loss rate is high; but the stability and success rate of data packet transmission are not effectively guaranteed.
[0004] In combination with the above documents and prior art: For two servers and a switch as an intermediate device used together, in a data center network, there are two servers A and B that are transmitting data through a switch. During the transmission process, due to a link failure, a data packet sent from server A to server B is lost at the switch. In a traditional network, after server B finds that the transmitted data packet is incomplete, it needs to notify server A to resend the entire data packet or the lost part, which will cause additional delays and may occupy more network bandwidth. In network communication, data packets need to be retransmitted after being lost. In the process of executing a specific retransmission strategy, problems such as incomplete data and transmission interruption may occur due to environmental congestion or excessive packet loss rate, and detailed adjustments or optimizations cannot be made, thereby affecting the overall performance of network communication. Summary of the invention
[0005] 1. Technical issues to be resolved In view of the shortcomings of the prior art, the present invention provides an efficient data packet recovery method based on local link retransmission technology, which improves the stability and reliability of network transmission, reduces the network burden, and increases the success rate of data packet recovery by dynamically adjusting and optimizing the retransmission strategy. At the same time, it also improves the overall performance of network communication and solves the problems raised in the background technology.
[0006] (II) Technical solution To achieve the above objectives, the present invention is implemented through the following technical solutions: An efficient data packet recovery method based on local link retransmission technology includes: Packet monitoring: When data is transmitted between any two servers through a switch, a monitoring mechanism is deployed in the switch to monitor all passing data packets in real time and record key information of the data packets. Loss detection: Use the sequence number in the key information to track the data packets that continuously pass through the switch. When it is detected that the sequence number is discontinuous or the data packet does not arrive within the set estimated time window, it means that the data packet is lost and an early warning signal is issued; The process of calculating the set time window is as follows: Mark the next hop of the data packet. When the next hop is a switch, collect the delay data set with the switch as the terminal, build a comprehensive calculation framework, and generate the corresponding estimated time window under the switch. Local link retransmission: When a warning signal is detected, the switch starts the local link retransmission mechanism. Based on the key information, it identifies the content and source address of the lost data packet and requests the source address to retransmit the lost data packet. After receiving the retransmission request, the source address executes the retransmission strategy and resends the lost data packet to the switch. Retransmission strategy adjustment: The congestion factor is calculated based on the interface utilization and queue length extracted from the delay data set. When the congestion factor exceeds the preset standard threshold, the delayed retransmission strategy is adopted. Retransmission strategy optimization: Get the real-time packet loss rate, and use the superposition retransmission strategy when the packet loss rate exceeds the set evaluation threshold.
[0007] Furthermore, the key information also includes: source address, destination address, timestamp and QoS tag.
[0008] Furthermore, the delay data set also includes transmission delay and processing delay; wherein the transmission delay calculation formula is:
[0009] In the formula, yc represents the transmission delay, bk represents the packet size, and kd represents the network bandwidth; Processing latency is measured by monitoring tools to measure the actual latency of the corresponding device when processing data packets.
[0010] Furthermore, the process of building a comprehensive calculation framework and generating an estimated time window is as follows: , , In formula (1), Tw represents the estimated time window, ck represents the processing delay, and G represents the congestion factor; In formula (2), ut represents the interface utilization, ql represents the queue length, Indicates the maximum queue length.
[0011] Furthermore, regardless of whether the congestion factor exceeds a preset standard threshold, it is synchronously extracted from key information to determine whether there is a QoS mark in the lost data packet, and the lost data packet with the QoS mark is preferentially retransmitted.
[0012] Furthermore, the process of adopting the delayed retransmission strategy is as follows: According to the congestion factor and the standard threshold, a function based on exponential decay is set to estimate the delay time, and the data packet is retransmitted according to the estimated delay. The formula for calculating the estimated delay is as follows: , Where Pre represents the estimated delay, T_base represents the basic delay time, k represents the attenuation coefficient, and the value of k is 0~1, e represents the base of the natural logarithm, Δ represents the difference between the congestion factor and the standard threshold; (e^(-k*Δ)) represents the exponential decay function, and T_min represents the minimum delay time; The calculation formula for the difference Δ of the congestion factor exceeding the standard threshold is: Δ=G-By, where By represents the standard threshold.
[0013] Furthermore, the process of adopting the superposition retransmission strategy is as follows: According to the real-time packet loss rate and evaluation threshold, a calculation prediction model is built to generate an increased estimated number of retransmissions, and the number of retransmissions of the corresponding data packet is increased according to the cumulative value of the estimated number of retransmissions and the established number of retransmissions.
[0014] Furthermore, the formula for calculating the increased estimated number of retransmissions is as follows: , where Zgs represents the increased estimated number of retransmissions, ceil is the upward rounding function, a and b are adjustment coefficients, and the value range of a and b is [1, 5], dl represents the real-time packet loss rate, and Py represents the evaluation threshold.
[0015] (III) Beneficial effects The present invention provides an efficient data packet recovery method based on local link retransmission technology, which has the following beneficial effects: (1) By real-time monitoring of data packets passing through the switch and capturing key information, the comprehensive tracking and management of data packets is achieved, and the loss of data packets is detected by using sequence numbers, which improves the reliability of data transmission. At the same time, the estimated time window is dynamically generated through a comprehensive computing framework, combined with the calculation of congestion factors, which more accurately reflects the ever-changing network environment, can promptly discover and solve network problems, optimize network performance, and improve network reliability. (2) The local link retransmission mechanism can be triggered after detecting data packet loss. By directly requesting retransmission from the source address, the lost data packet can be recovered, ensuring the integrity and continuity of data transmission. Since the retransmission request is local and only performed on directly connected links, unnecessary network congestion and delays are avoided, thereby improving the overall efficiency of the network. (3) By dynamically adjusting and optimizing the retransmission strategy, the stability and reliability of network transmission are improved, the network burden is reduced, and the success rate of data packet recovery is increased. The shortcomings of the traditional retransmission mechanism in coping with changes in the network environment are solved, and the overall performance of network communication is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a schematic diagram of the overall steps of the efficient data packet recovery method based on the local link retransmission technology in the present invention; Figure 2 It is a schematic diagram of a data packet in a transmission state between a server and a switch in the present invention; Figure 3 It is a modular schematic diagram of the efficient data packet recovery system based on the local link retransmission technology in the present invention. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] Technical concept: In a data center network, two servers A and B are transmitting data through a switch. During the transmission process, due to a link failure, a data packet sent from server A to server B is lost at the switch. In a traditional network, after server B finds that the transmitted data packet is incomplete, it needs to notify server A to resend the entire data packet or the lost part, which will cause additional delays and may occupy more network bandwidth. If the local link retransmission technology is used in the network, the situation will be different. The switch determines the content and source address (server A) of the lost data packet based on the previously recorded information. Then, the switch will directly send a retransmission request to server A. After receiving the request, server A will immediately resend the lost data packet to the switch. After receiving the retransmitted data packet, the switch will forward it to server B, thus completing the data packet recovery process. In the above process, due to the use of local link retransmission technology, the retransmission process of the data packet is completed inside the switch without passing through the entire network, thereby greatly reducing network congestion and delay, and improving the efficiency and reliability of data transmission. For the above application scenario, it only briefly explains the general direction of using the local link retransmission technology, but does not explain how to implement, determine, detect and analyze it in detail; An efficient data packet recovery method based on local link retransmission technology is designed to reduce data packet loss caused by link damage in data center networks. This method implements a local link retransmission mechanism inside a network switch so that when a link failure or data packet loss is detected, the relevant data packets can be quickly retransmitted without leaving the switch. This method not only reduces network congestion and latency, but also improves the overall efficiency and reliability of data transmission. The implementation method of this technology is described in detail in the following design embodiments, including data packet monitoring, loss detection, retransmission strategy, and how to optimize this process to adapt to different network environments.
[0019] Example 1, please refer to Figure 1 and Figure 2 This embodiment provides an efficient data packet recovery method based on local link retransmission technology, and the method includes the following specific steps: S1. Packet monitoring: When data is transmitted between any two servers through a switch, a monitoring mechanism is deployed in the switch to monitor all passing packets in real time and record key information of the packets for subsequent packet tracking and management. Among them, real-time monitoring of all passing data packets is packet capture: The switch needs to capture all the data packets passing through it, which is achieved through the mirror port of the switch or a specific monitoring function. In this embodiment, the mirror port is used for capturing; Key information includes but is not limited to: Source address, destination address (used to track the source and destination of data packets), sequence number (used in protocols such as TCP to ensure the order and integrity of data), timestamp (records the time when the data packet arrives at the switch, which helps analyze network latency and performance), and quality of service (QoS) tag (helps network devices determine the priority of data packets so that reasonable traffic scheduling can be carried out when the network is congested); The above timestamp is used to determine whether the subsequent data packet arrives within the set estimated time window; The recorded information will be used for data packet tracking and management; For example, by analyzing the source and destination addresses, network administrators can identify which devices are communicating with each other; sequence numbers can help detect whether any packets are lost or out of order.
[0020] S2, loss detection: Use the sequence number to track the data packets that continuously pass through the switch. When it is detected that the sequence number is discontinuous or the data packet does not arrive within the set estimated time window, it is determined that the data packet is lost and an early warning signal is issued; otherwise (indicating that the above situation does not occur), it is determined that the data packet is not lost and there is no response; The process of calculating the set time window is as follows: Mark the next hop of the packet, including switches and end servers; When the next hop is a switch, the delay data set with the switch as the terminal is collected, and a comprehensive calculation framework is built to generate the corresponding estimated time window under the switch; when the next hop is a terminal server, the delay data set with the terminal server as the terminal is collected, and the comprehensive calculation framework is used to generate the corresponding estimated time window under the terminal server; The latency data set includes transmission latency, processing latency, and interface utilization and queue length; Transmission delay: depends on the size of the data packet, network bandwidth and transmission distance. Generally speaking, the larger the data packet, the smaller the network bandwidth and the longer the transmission distance, the higher the transmission delay. The transmission delay estimation formula is:
[0021] In the formula, yc represents the transmission delay, bk represents the packet size, and kd represents the network bandwidth; Processing delay: Processing delay includes the processing time of the network device (such as the switch) for the data packet and the processing time of the server. This delay depends on the performance of the device, such as CPU speed, memory size, etc. High-performance devices usually have lower processing delay. The actual delay of the corresponding device when processing the data packet is measured through monitoring tools. Interface utilization and queue length: The two together constitute the reference data for calculating the congestion factor. The utilization of the monitoring device interface can reflect the degree of network congestion. When the interface utilization is close to or reaches 100%, it means that the network is seriously congested and the congestion factor should be increased accordingly. Check the queue length of the data packets in the device. If the queue length increases, it means that there are more data packets waiting to be processed and the network may be in a congested state. At this time, the congestion factor should be increased. In actual applications, these parameter data are obtained through professional network monitoring and management tools, such as SNMP (Simple Network Management Protocol) tools, NetFlow or sFlow and other traffic analysis tools; The process of building a comprehensive calculation framework and generating an estimated time window is as follows:
[0022]
[0023] In formula (1), Tw represents the estimated time window, ck represents the processing delay, and G represents the congestion factor; In formula (2), ut represents the interface utilization, ql represents the queue length, Indicates the maximum length of the queue; Logical explanation: The framework in formula (1) emphasizes the use of real-time measured network parameters, such as real-time bandwidth, device processing delay, and congestion, to more accurately estimate the time window. The introduction of the congestion factor is to reflect the impact of network congestion on packet transmission delay. When the network is busy, the congestion factor will increase, thereby extending the estimated time window. Formula (2) calculates the current congestion factor based on the interface utilization and queue length. The formula combines these two parameters and maps them to the range of 0 to 1. By multiplying the interface utilization and the queue length ratio, we get a congestion factor with a value range between 0 and 1. The interface utilization is normalized (i.e., divided by 100) and the ratio of the queue length to the maximum queue length is considered. The calculated congestion factor has a value range between 0 and 1. This factor can intuitively reflect the degree of network congestion and facilitate subsequent time window calculations and resource scheduling decisions.
[0024] By real-time monitoring of data packets passing through the switch and capturing key information, comprehensive tracking and management of data packets are achieved, and the loss of data packets is detected using sequence numbers, which improves the reliability of data transmission. At the same time, the estimated time window is dynamically generated through a comprehensive computing framework, combined with the calculation of congestion factors, which more accurately reflects the ever-changing network environment, can promptly discover and solve network problems, optimize network performance, and improve network reliability. In short, this solution realizes effective monitoring of data packets, loss detection, and adaptation to the network environment, providing strong support for network management. Among them, the estimated time window is dynamically generated through a comprehensive computing framework. The framework takes into account a variety of real-time network parameters, such as transmission delay, processing delay, and introduces a congestion factor. It takes into account interface utilization and queue length, and can intuitively reflect the degree of network congestion. This helps to adjust the estimated time window when the network is congested and improve the accuracy of loss detection. At the same time, it also makes the estimated time window more accurate and able to adapt to the ever-changing network environment.
[0025] S3, local link retransmission: When the warning signal is detected, the switch will immediately start the local link retransmission mechanism, and identify the specific content and source address of the lost data packet based on the recorded key information of the data packet; the switch directly requests the retransmission of the lost data packet from the source address without forwarding the data packet to other network parts; after receiving the retransmission request, the source address executes the retransmission strategy and resends the lost data packet to the switch; Among them, local link retransmission is a remedial measure taken when data packets are lost during network communication; Start the local link retransmission mechanism: When the switch detects packet loss through its internal monitoring and detection mechanisms, it immediately triggers the local link retransmission mechanism, which is designed to quickly recover lost packets to ensure the integrity and reliability of data transmission; Identify lost packet information: Before this, the switch may have saved the information of the data packets passing through it through its data recording function, including the specific content of the data packets and the source address of the data packets. This information becomes crucial at this moment because it can help the switch accurately identify and locate the lost data packets and the source of the data packets. Request retransmission of lost packets: The switch uses the previously recorded source address information to directly send a retransmission request to the address. This request is local, which means that it is only performed on directly connected links and will not affect other parts of the network, thus avoiding unnecessary network congestion and delays; this local retransmission request is efficient because it reduces redundant data transmission in the network and only operates on necessary links; Source address retransmitted data packet: Once the source address receives the retransmission request from the switch, it will resend the lost data packet based on the information provided in the request; this process is automated, ensuring the continuity and accuracy of data transmission; the source address may check its local packet cache or history to find the corresponding packet content for retransmission; The switch receives and re-forwards the packet: When the switch receives the data packet resent by the source address, it will send the data packet to the original destination according to the normal data packet forwarding process, so that the data flow that was originally interrupted due to loss can be restored; In general, the local link retransmission mechanism is an efficient and accurate method for recovering lost data packets in network communications. It relies on the switch's ability to record and monitor data packets and accurately identify the source address. In this way, the impact of data packet loss on network communication quality can be minimized and the complete transmission of data can be ensured.
[0026] The local link retransmission mechanism can be triggered after detecting data packet loss. By directly requesting retransmission from the source address, it realizes the recovery of lost data packets and ensures the integrity and continuity of data transmission. Since the retransmission request is local and only performed on directly connected links, unnecessary network congestion and delays are avoided, thereby improving the overall efficiency of the network.
[0027] S4, retransmission strategy adjustment: dynamically adjust the retransmission strategy according to the real-time status of the network environment; When the congestion factor exceeds the preset standard threshold, it indicates that the network is congested, and a delayed retransmission strategy is adopted to reduce the network burden; when the congestion factor does not exceed the preset standard threshold, it indicates that the network is in good condition, and the established local link retransmission mechanism is maintained to minimize the impact of data packet loss on transmission efficiency; no matter which strategy is adopted, it is necessary to synchronously extract and determine whether there is a QoS mark in the lost data packet from the key information, and give priority to retransmitting the lost data packet with the QoS mark, where multiple groups of the same type of lost data are retransmitted in the order of the established or sequence number; The process of adopting the delayed retransmission strategy is as follows: According to the congestion factor and the standard threshold, an exponential decay-based function is set to estimate the delay time, and the data packet is retransmitted according to the estimated delay. The formula for calculating the estimated delay is as follows:
[0028] Where Pre represents the estimated delay; T_base represents the basic delay time. When the network just starts to be slightly congested (i.e., Δ is small), the estimated delay will be close to this basic value, which provides an initial buffer time to avoid immediate retransmission when the network just starts to be congested; k represents the attenuation coefficient, which controls the steepness of the function curve, and the value of k is 0~1. In this embodiment, k=0.1. This coefficient determines the sensitivity of the estimated delay to the change of Δ. A larger k value will cause the estimated delay to decrease faster as Δ increases, while a smaller k value will make the change more gradual; e represents the base of the natural logarithm, Δ=G-By, where By represents Standard threshold, Δ represents the difference between the congestion factor and the standard threshold; (e^(-k×Δ)) represents the exponential decay function: as the difference Δ between the congestion factor and the standard threshold increases, the exponential function will cause the estimated delay to decrease rapidly, which reflects that when network congestion intensifies, the system tends to reduce the delay to resend data packets faster, but not immediately, to avoid further increasing the network burden; T_min represents the minimum delay time, which is set according to actual needs. No matter how serious the network congestion is, the estimated delay will not be lower than this minimum value. This is to avoid the system retransmitting data packets too frequently when the network is extremely congested, thereby bringing greater pressure to the network; When the network is more congested, the estimated delay will usually be less when executing the delayed retransmission strategy; this design is to reduce the risk of further network congestion and improve the efficiency of data transmission; the following is an explanation of this strategy: Avoiding increased congestion: When the network is congested, it means that the number of data packets in the network has approached or exceeded the network's processing capacity. If data packets continue to be sent or retransmitted at a normal rate, more data packets will accumulate in the network, further aggravating congestion. By reducing the estimated delay, the system can resend lost data packets faster, but this does not mean immediate transmission, but it reduces the waiting time compared to when the network is unobstructed. Improve transmission efficiency: In the case of network congestion, the packet loss rate may increase; in order to reduce the transmission delay caused by packet loss, the system needs to resend these lost packets faster; by reducing the estimated delay, the system can recover the lost data faster, thereby improving the overall transmission efficiency; Dynamic Adaptation: Reducing estimated latency is a strategy to dynamically adapt to changing network conditions. By monitoring network congestion in real time and adjusting estimated latency accordingly, the system can better cope with challenges brought by network congestion. This dynamic adjustment helps maintain the stability and reliability of network transmission. However, it should be noted that the reduction in estimated delay is not unlimited. In order to avoid excessive retransmissions that further increase the network burden, the system will set a minimum delay time (such as T_min mentioned above); this minimum delay time ensures that even in extremely congested conditions, the system will not retransmit data packets too frequently; In summary, the more congested the network is, the less the estimated delay is when executing the delayed retransmission strategy. This is to dynamically adapt to network conditions, avoid increased congestion, and improve transmission efficiency.
[0029] Maintaining the established local link retransmission mechanism means: If the network is in good condition, once data packet loss is detected, the system will immediately trigger the retransmission mechanism without introducing additional delay; S5, retransmission strategy optimization: obtain the real-time packet loss rate of the network environment to optimize the retransmission strategy; When the packet loss rate exceeds the set evaluation threshold, it indicates that the environment is in a high packet loss rate, and the superposition retransmission strategy is adopted to increase the number of retransmissions to improve the success rate of data packet recovery; when the packet loss rate does not exceed the set evaluation threshold, it indicates that the environment is in a low packet loss rate, and the established number of retransmissions is maintained; in addition, the number of retransmissions can also be reduced to reduce the network burden. The specific technical solution is the opposite of the superposition retransmission strategy, and the principle is the same. However, when the number of retransmissions is reduced to exceed the established number of retransmissions, it is still executed according to the established number of retransmissions, which will not be elaborated here; The evaluation threshold is used to define a high or low packet loss rate, similar to how many degrees a person has a fever, and if the temperature does not exceed the number, the person is not feverish, that is, normal. The evaluation threshold here is the same as the standard threshold mentioned above, and the acquisition method is set according to the actual situation. The process of using the overlay retransmission strategy is as follows: According to the real-time packet loss rate and evaluation threshold, a calculation prediction model is built to generate the increased estimated number of retransmissions, and the number of retransmissions of the corresponding data packet is increased according to the cumulative value of the estimated number of retransmissions and the established number of retransmissions. The formula for calculating the increased estimated number of retransmissions is as follows:
[0030] Where Zgs represents the increased estimated number of retransmissions, ceil is a rounding function to ensure that the estimated number is an integer, a and b are adjustment coefficients that can be set according to actual conditions, a is used to control the growth rate of the estimated number, and b controls the sensitivity of the difference between the packet loss rate and the evaluation threshold to the estimated number, and the value range of a and b is [1, 5], dl represents the real-time packet loss rate, and Py represents the evaluation threshold; Logic description: The logarithmic function log(1 + x) is used because it grows faster when x is small and slower when x is large, which meets our needs. That is, when the packet loss rate just exceeds the threshold, we want to quickly increase the number of retransmissions to cope with the packet loss, but when the packet loss rate is very high, we do not want the number of retransmissions to grow indefinitely; The role of the adjustment coefficient: The two adjustment coefficients a and b allow us to adjust the behavior of the formula according to the specific network environment; for example, if the network environment changes greatly, we can increase the value of b to make the formula more sensitive to changes in the packet loss rate; Round up: Use the ceil function to ensure that the estimated number we get is an integer, because the number of retransmissions cannot be a decimal; Example: Assume we have the following parameter settings: a = 2; b = 5; Evaluation threshold = 0.1 (i.e. 10% packet loss rate); Now consider several different real-time packet loss rate scenarios: Real-time packet loss rate = 0.12 (slightly higher than the threshold); increased estimated number of retransmissions = ceil(2 * log(1 + 5* (0.12 - 0.1))) = ceil(2 * log(1.1)) ≈ ceil(0.83) = 1 time Real-time packet loss rate = 0.2 (packet loss rate increased significantly); increased estimated number of retransmissions = ceil(2 * log(1+ 5 * (0.2 - 0.1))) = ceil(2 * log(1.5)) ≈ ceil(1.76) = 2 times Real-time packet loss rate = 0.4 (very high packet loss rate); increased estimated number of retransmissions = ceil(2 * log(1+ 5 * (0.4 - 0.1))) = ceil(2 * log(2.5)) ≈ ceil(2.32) = 3 times From this example, we can see that as the packet loss rate increases, the estimated number of retransmissions will also increase, but the rate of increase will gradually slow down. This is due to the characteristics of the logarithmic function. In this way, we can dynamically adjust the retransmission strategy according to the real-time network conditions to improve the success rate of data packet recovery.
[0031] Although both S4 and S5 discuss how to adjust the retransmission strategy according to the network environment, their emphases are different; S4 mainly focuses on dynamically adjusting the retransmission strategy according to the real-time congestion of the network. When the network is congested, delayed retransmission may be selected to reduce the network burden; when the network is in good condition, a fast retransmission strategy will be adopted to minimize the impact of data packet loss on transmission efficiency. The core of this step is to select the most appropriate delay level according to the degree of network congestion; S5 focuses more on optimizing the retransmission strategy based on the real-time data of the network environment, that is, the packet loss rate. In an environment with a high packet loss rate, the number of retransmissions will be increased to improve the success rate of data packet recovery; in an environment with a low packet loss rate, the number of retransmissions will be maintained. The key to this step is to fine-tune the retransmission strategy based on the specific network environment data; In short, S4 adjusts the retransmission delay according to network congestion, while S5 adjusts the specific retransmission strategy according to specific network environment parameters; the two complement each other and together form a comprehensive and flexible retransmission strategy adjustment solution; By adopting the above technical solution, the retransmission strategy can be dynamically adjusted according to the real-time status of the network environment. This dynamic adaptability enables the system to better cope with changes in network conditions and improves the stability and reliability of network transmission. When the network is congested, the delayed retransmission strategy is adopted to reduce the retransmission frequency by estimating the delay, thereby reducing the network burden, which helps to avoid further network congestion and improves the overall network efficiency. In a high packet loss rate environment, the superposition retransmission strategy is adopted to increase the success rate of data packet recovery by increasing the number of retransmissions, which helps to reduce data loss and ensure the integrity and reliability of data transmission. The solution also takes into account the QoS marking in the data packet and gives priority to retransmitting the lost data packets with QoS marking, which ensures the timely recovery of key data packets and meets the different requirements of different applications for data transmission quality. In summary, this technical solution improves the stability and reliability of network transmission, reduces network burden, and increases the success rate of data packet recovery by dynamically adjusting and optimizing the retransmission strategy. These technical effects jointly solve the shortcomings of traditional retransmission mechanisms in dealing with changes in network environment and improve the overall performance of network communications.
[0032] Example 2, please refer to Figure 3 Based on Example 1, this embodiment also provides an efficient data packet recovery system based on local link retransmission technology, the system comprising: The monitoring module deploys a monitoring mechanism in the switch when data is transmitted between any two servers through the switch, monitors all data packets passing through in real time, and records the key information of the data packets; The loss detection module uses the sequence number in the key information to track the data packets that continuously pass through the switch. When it detects that the sequence number is discontinuous or the data packet does not arrive within the set estimated time window, it indicates that the data packet is lost and sends a warning signal; The process of calculating the set time window is as follows: Mark the next hop of the data packet. When the next hop is a switch, collect the delay data set with the switch as the terminal, build a comprehensive calculation framework, and generate the corresponding estimated time window under the switch. The retransmission module has built-in adjustment submodule and optimization submodule. When the warning signal is detected, the switch starts the local link retransmission mechanism, calibrates the content and source address of the lost data packet according to the key information, and requests the retransmission of the lost data packet from the source address. After receiving the retransmission request, the source address executes the retransmission strategy and resends the lost data packet to the switch; The adjustment submodule calculates the congestion factor based on the interface utilization and queue length extracted from the delay data set; when the congestion factor exceeds the preset standard threshold, a delayed retransmission strategy is adopted; the optimization submodule obtains the real-time packet loss rate, and when the packet loss rate exceeds the set evaluation threshold, an overlay retransmission strategy is adopted.
[0033] In the application, the several formulas involved are all calculated by taking their numerical values after removing the dimensions, and the formulas are established by collecting a large amount of data and performing software simulation to obtain a formula for the most recent actual situation. Some coefficients or weights in the formulas are set by technical personnel in this field according to actual conditions, so they will not be elaborated here.
[0034] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented using software, the above embodiments may be implemented in whole or in part in the form of a computer program product. A person of ordinary skill in the art may appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution.
[0035] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0036] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. An efficient data packet recovery method based on local link retransmission technology, characterized in that: The steps include: Packet monitoring: When data is transmitted between any two servers through a switch, a monitoring mechanism is deployed in the switch to monitor all passing data packets in real time and record key information of the data packets. Loss detection: Use the sequence number in the key information to track the data packets that continuously pass through the switch. When it is detected that the sequence number is discontinuous or the data packet does not arrive within the set estimated time window, it means that the data packet is lost and an early warning signal is issued; The process of calculating the set time window is as follows: Mark the next hop of the data packet. When the next hop is a switch, collect the delay data set with the switch as the terminal, build a comprehensive calculation framework, and generate the corresponding estimated time window under the switch. Local link retransmission: When a warning signal is detected, the switch starts the local link retransmission mechanism. Based on the key information, it identifies the content and source address of the lost data packet and requests the source address to retransmit the lost data packet. After receiving the retransmission request, the source address executes the retransmission strategy and resends the lost data packet to the switch. Retransmission strategy adjustment: The congestion factor is calculated based on the interface utilization and queue length extracted from the delay data set. When the congestion factor exceeds the preset standard threshold, the delayed retransmission strategy is adopted. Retransmission strategy optimization: Get the real-time packet loss rate, and use the superposition retransmission strategy when the packet loss rate exceeds the set evaluation threshold.
2. The efficient data packet recovery method based on local link retransmission technology according to claim 1 is characterized in that: Key information also includes: source address, destination address, timestamp and QoS tag.
3. The efficient data packet recovery method based on local link retransmission technology according to claim 2 is characterized in that: The delay data set also includes transmission delay and processing delay; The transmission delay calculation formula is: , In the formula, yc represents the transmission delay, bk represents the packet size, and kd represents the network bandwidth; Processing latency is measured by monitoring tools to measure the actual latency of the corresponding device when processing data packets.
4. The efficient data packet recovery method based on local link retransmission technology according to claim 3 is characterized in that: The process of building a comprehensive calculation framework and generating an estimated time window is as follows: , , In formula (1), Tw represents the estimated time window, ck represents the processing delay, and G represents the congestion factor; In formula (2), ut represents the interface utilization, ql represents the queue length, Indicates the maximum queue length.
5. The efficient data packet recovery method based on local link retransmission technology according to claim 4 is characterized in that: Regardless of whether the congestion factor exceeds the preset standard threshold, the key information is synchronously extracted and judged whether there is a QoS mark in the lost data packet, and the lost data packet with the QoS mark is retransmitted preferentially.
6. The efficient data packet recovery method based on local link retransmission technology according to claim 5 is characterized in that: The process of using the delayed retransmission strategy is as follows: According to the congestion factor and the standard threshold, a function based on exponential decay is set to estimate the delay time, and the data packet is retransmitted according to the estimated delay. The formula for calculating the estimated delay is as follows: , Where Pre represents the estimated delay, T_base represents the basic delay time, k represents the attenuation coefficient, and the value of k is 0~1, e represents the base of the natural logarithm, Δ represents the difference between the congestion factor and the standard threshold; (e^(-k*Δ)) represents the exponential decay function, and T_min represents the minimum delay time.
7. The efficient data packet recovery method based on local link retransmission technology according to claim 6 is characterized in that: The calculation formula for the difference Δ of the congestion factor exceeding the standard threshold is: Δ=G-By, where By represents the standard threshold.
8. The efficient data packet recovery method based on local link retransmission technology according to claim 7 is characterized in that: The process of using the overlay retransmission strategy is as follows: According to the real-time packet loss rate and evaluation threshold, a calculation prediction model is built to generate an increased estimated number of retransmissions, and the number of retransmissions of the corresponding data packet is increased according to the cumulative value of the estimated number of retransmissions and the established number of retransmissions.
9. The efficient data packet recovery method based on local link retransmission technology according to claim 8, characterized in that: The formula for calculating the increased estimated number of retransmissions is as follows: , Where Zgs represents the increased estimated number of retransmissions, ceil is the upward rounding function, a and b are adjustment coefficients, and the value range of a and b is [1, 5], dl represents the real-time packet loss rate, and Py represents the evaluation threshold.
Citation Information
Patent Citations
Wireless network maximum retransmission times optimization method based on network channel state
CN101938770A
Method, equipment and system for rapidly recovering after FCoE (Fibre Channel Over Ethernet) network packet loss
CN104683023A
Multi-link aggregated data transmission method, system and device and storage medium
CN114422425A
Network congestion control method and device and storage medium
CN116684359A
Dynamic performance enhancement agent setting method based on large-scale satellite network
CN116865827A
