VPN (Virtual Private Network) communication method based on network fault tolerance in severe environment in field of information communication

By using diffusion parameters and error correction parameters in the VPN communication system to construct diffusion packets and perform data packet reconstruction, the problem of low VPN communication efficiency in harsh network environments is solved, and the reliable transmission of VPN data in harsh environments is realized, which improves the improvement of Transmission efficiency and reliability.

CN118921143APending Publication Date: 2024-11-08XINGTANG TELECOMM TECH CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310505018.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-06
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

In harsh network environments, the data transmission efficiency of the existing VPN communication system is poor, the connection establishment time is long, and it is difficult for existing systems to implement protocol transformation to improve network transmission efficiency.

Method used

By calculating the network packet loss rate and delay parameters at the VPN data sending end, and constructing the diffusion packets on the receiving end, and using the diffusion parameters and error correction parameters to perform packet segmentation and replication, the fault-tolerant transmission of data packets is achieved.

Benefits of technology

In a harsh network environment, the transmission efficiency and reliability of VPN communication are improved, and the reliable transmission of data is ensured. There is no need to modify the application system, and only the VPN needs to be modified.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921143A_ABST
    Figure CN118921143A_ABST
Patent Text Reader

Abstract

The invention relates to a VPN (Virtual Private Network) communication method based on network fault tolerance in a severe environment in the field of information communication, and belongs to the field of information communication. The invention provides a VPN (Virtual Private Network) communication method based on network fault tolerance in a severe environment in the field of information communication. The VPN communication method comprises the following steps: a VPN data sending end calculates diffusion parameters based on a network packet loss rate and network delay of a current network environment; the VPN data sending end constructs a diffusion data packet based on the diffusion parameter and a to-be-sent data packet; the VPN data sending end sends the diffusion data packet to a VPN data receiving end; and the VPN data receiving end performs data packet reconstruction based on the received diffusion data packet. According to the method, the current network environment is analyzed, the data packet diffusion strategy is automatically matched according to the network environment parameters for interactive transmission, data packet restoration is completed through the receiving end data packet error correction technology, and finally reliable VPN data communication in the severe network environment is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of information communication, and in particular relates to a VPN communication method based on network fault tolerance in harsh environments in the field of information communication. Background Art

[0002] As the scale of the network gradually expands, the coverage area is getting wider and wider. However, in some underdeveloped areas, the network infrastructure is weak, the network environment quality is poor, and there are even harsh environments such as extremely high packet loss rates, which makes it impossible for the client and server to establish a network connection and unable to exchange data.

[0003] Currently, most application systems interact with each other using the TCP protocol. In a harsh network environment with a high packet loss rate, the receiving window of the TCP connection cannot reach the optimal level, the network transmission efficiency is poor, and even problems such as connection interruption and transmission failure may occur.

[0004] VPN (Virtual Private Network) products that provide security protection for the transmission of application systems encrypt and encapsulate the data of application systems before transmission, so as to protect the data exchanged between the client and the server of the application system. In the above-mentioned harsh network environment, the data exchanged by the application system using the TCP protocol is encrypted by VPN before transmission. The VPN handshake part uses the Reliability-layer for reliable transmission, and will timeout and retransmit when the packet is lost, which can ensure that the data packet arrives correctly. However, due to the large number of interactions in the handshake part, data retransmission under high packet loss rate causes the time spent on establishing the connection to be too long, triggering the handshake timeout mechanism and causing the connection establishment to fail.

[0005] In order to solve the problem of poor data transmission efficiency in harsh network environments, the QUIC protocol can effectively improve network transmission efficiency and response speed. QUIC is a UDP-based transport layer protocol that establishes connections through 0-RTT handshakes and solves congestion problems through multiplexing, so that services can remain available in weak network environments.

[0006] However, the above method requires the application system and VPN to transform the basic protocols used, which is almost impossible to implement for existing systems. Summary of the invention

[0007] In view of the above analysis, the present invention aims to provide a VPN communication method based on network fault tolerance in harsh environments in the field of information communication, which specifically includes the following steps:

[0008] The VPN data sender calculates diffusion parameters based on the network packet loss rate and network delay of the current network environment;

[0009] The VPN data sending end constructs a diffusion data packet based on the diffusion parameters and the data packet to be sent;

[0010] The VPN data sending end sends the diffusion data packet to the VPN data receiving end;

[0011] The VPN data receiving end performs data packet reconstruction based on the received diffusion data packet.

[0012] Furthermore, the diffusion parameter is calculated using the following formula:

[0013]

[0014] Wherein, m represents the diffusion parameter. When the calculated value of m is greater than 7, m=7; Los represents the network packet loss rate; Delay represents the network delay in milliseconds; ɑ is the adjustable configuration coefficient.

[0015] Further, the VPN data sending end constructs a diffusion data packet based on the diffusion parameter and the data packet to be sent, including:

[0016] Dividing and filling the data of the data packet to be sent into a plurality of fixed-length data packets;

[0017] Grouping a number of the fixed-length data packets, obtaining an error correction packet corresponding to the group based on the fixed-length data packets in each group, and adding the error correction packet to the corresponding group to obtain a corresponding error correction packet;

[0018] Based on the diffusion parameters, the fixed-length data packets and error correction packets in each error correction group are diffused to obtain diffused data packets.

[0019] Furthermore, the method also includes: determining an error correction parameter based on the diffusion parameter, and determining the number of fixed-length data packets in each of the error correction groups based on the error correction parameter.

[0020] Furthermore, the error correction packet corresponding to the group is obtained based on the byte-by-byte XOR of the fixed-length data packets in each group.

[0021] Furthermore, the method of diffusing the fixed-length data packets and error correction packets in each error correction group based on the diffusion parameter to obtain the diffused data packets includes: based on the diffusion parameter, respectively copying the fixed-length data packets and error correction packets to obtain the fixed-length data packets and error correction packets of multiples of the diffusion parameter.

[0022] Furthermore, the fixed-length data packet includes data after the data packet to be sent is segmented, FLAG information and grouping information;

[0023] The FLAG information includes error correction parameters and diffusion parameters;

[0024] The grouping information includes a group ID, a packet type and a packet sequence number within the group; the packet type of the fixed-length data packet is a common packet, and the packet type of the error-correcting data packet is an error-correcting packet.

[0025] Further, the VPN data receiving end performs data packet reconstruction based on the received diffusion data packet, including:

[0026] The VPN data receiving end determines whether the corresponding fixed-length data packet or error correction packet has been received based on the packet ID, packet type and packet sequence number in the received diffusion data packet, and if so, discards it; if not, saves the fixed-length data packet or error correction packet;

[0027] The VPN data receiving end determines whether the number of data packets stored in each group reaches the error correction parameter value, and if not, continues to receive data; if yes, reconstructs the data packets based on the data packets stored in the group.

[0028] Further, the data packet reconstruction based on the data packet stored in the group includes:

[0029] Check whether the saved data packets in the group are all the fixed-length data packets. If so, reconstruct the group based on the packet sequence number in the group; if not, perform byte-by-byte XOR on the saved data packets in the group to obtain the fixed-length data packets that have not been received in the group, and reconstruct the group based on the fixed-length data packets and the fixed-length data packets in the saved data packets.

[0030] Furthermore, it also includes: step S05, the VPN data receiving end constructs a return data packet according to the diffusion parameters and error correction parameters carried in the received diffusion data packet using step S02 and step S03 and sends it to the VPN data sending end, and after receiving the return data packet, the VPN data sending end reconstructs the data packet in the same manner as step S04.

[0031] The present invention can achieve at least one of the following beneficial effects:

[0032] By adopting data packet transmission fault-tolerant technology, only the VPN needs to be modified, and the application system does not need to be modified. In this way, the transmission efficiency is improved in harsh network environments and the reliability of network transmission is guaranteed.

[0033] By analyzing and identifying the current network environment, the data packet diffusion strategy is automatically matched according to the network environment parameters for interactive transmission, and then the data packet restoration is completed through the receiving end data packet error correction technology, ultimately achieving reliable VPN data transmission in harsh network environments.

[0034] Other features and advantages of the present invention will be described in the following description, and some advantages may become apparent from the description, or may be understood by practicing the present invention. The purpose and other advantages of the present invention may be realized and obtained through the contents particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings are only used for the purpose of illustrating specific embodiments and are not to be considered as limiting the present invention. In the entire drawings, the same reference symbols represent the same components;

[0036] Figure 1 This is a flow chart of the VPN communication method of the present invention. DETAILED DESCRIPTION

[0037] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.

[0038] Example 1

[0039] A specific embodiment of the present invention discloses a VPN communication method based on network fault tolerance in a harsh environment in the field of information communication, which specifically includes the following steps:

[0040] Step S01, the VPN data sending end calculates diffusion parameters based on the network packet loss rate and network delay of the current network environment;

[0041] Step S02, the VPN data sending end constructs a diffusion data packet based on the diffusion parameters and the data packet to be sent;

[0042] Step S03, the VPN data sending end sends the diffusion data packet to the VPN data receiving end;

[0043] Step S04: The VPN data receiving end reconstructs the data packet based on the received diffusion data packet.

[0044] When the VPN receiving end needs to send return data to the VPN sending end, step S05 may be further included after step S04.

[0045] Specifically, in step S05, the VPN receiving end constructs a return data packet according to the diffusion parameters and error correction parameters carried in the received diffusion data packet using steps S02 and S03 and sends it to the VPN sending end. After receiving the return data packet, the VPN sending end reconstructs the data packet in the same manner as step S04.

[0046] Specifically, in step S01, after the VPN data sending end is started, a network detection data packet is sent in the current network environment, and a network packet loss rate Los and a network delay Delay are calculated according to the received response packet. The network packet loss rate and the network delay reflect the status of the current network environment.

[0047] Specifically, in step S01, the diffusion parameter is calculated using the following diffusion parameter formula:

[0048]

[0049] Wherein, m represents the diffusion parameter (m≤7, that is, when the calculated result is greater than 7, m is 7); the unit of Delay is milliseconds; ɑ is an adjustable configuration coefficient, which is generally an empirical value, preferably, ɑ=0.4.

[0050] The following is an explanation of the diffusion parameter formula and the principle of ɑ value selection:

[0051] Specifically, a large network delay is more likely to cause network packet loss, so the diffusion parameter formula considers both the network packet loss rate Los and the network delay Delay to calculate the diffusion parameter; further, since the size of the diffusion parameter in the formula is linearly related to the size of the network delay, when the network delay increases, the diffusion parameter will also increase, thereby increasing the number of diffusion packets, which will cause network congestion, so an adjustable configuration coefficient ɑ is further used in the formula: Specifically, the increase or decrease of the ɑ value needs to be tested according to actual network conditions; as the ɑ value increases, when the network delay is large, the number of diffusion packets will be more, which may make the actual effect of the diffusion scheme better, but if the number of diffusion packets is too large, it may cause network congestion, making the diffusion effect worse; preferably, according to the empirical value of network testing, ɑ=0.4.

[0052] Specifically, step S02 includes steps S021-S023:

[0053] S021, dividing the data of the data packet to be sent and filling it into a plurality of fixed-length data packets;

[0054] Specifically, the length of the fixed-length data packet does not exceed the length of data that can be carried by the MTU (maximum transmission unit); preferably, the length of the fixed-length data packet is 1024 bytes;

[0055] Specifically, in the fixed-length data packet, 1 byte is reserved for filling in FLAG information and 4 bytes are reserved for filling in grouping information.

[0056] S022, grouping a plurality of the fixed-length data packets, obtaining an error correction packet corresponding to the group based on the fixed-length data packets in each group, and adding the error correction packet to the corresponding group to obtain a corresponding error correction packet;

[0057] Specifically, based on the error correction parameter k, the number of fixed-length data packets in each error correction group is determined to be k, k ≥ 2; the smaller the k value, the more corresponding error correction packets, the stronger the error correction capability, and the more the sum of fixed-length data packets and error correction packets; further, when the k value is smaller, the increase in the total number of data packets may cause network congestion, which in turn leads to a worse diffusion effect; specifically, according to empirical values, when the k value is close to m, the diffusion and error correction effects are better, preferably, k = m;

[0058] Specifically, the FLAG information includes error correction parameters and diffusion parameters; Bit0 indicates whether diffusion is performed; Bit1-Bit3 indicate the diffusion multiple, that is, the value of the diffusion parameter m; Bit4 indicates whether error correction is performed, and Bit5-Bit7 indicate the number of fixed-length data packets of the error correction group, that is, the value of k;

[0059] Specifically, the grouping information includes the group ID, the packet type and the packet sequence number within the group; the group ID occupies 26 bits; the packet type occupies 2 bits, 00 represents a normal packet, which is the type of a fixed-length data packet, and 01 represents an error correction packet, which is the packet type of an error correction data packet; the packet sequence number within the group occupies 4 bits; the other bits are reserved for extension bits;

[0060] Specifically, the data of the error correction packet is obtained by XORing all fixed-length data packets of the error correction group byte by byte.

[0061] S023, based on the diffusion parameter, diffuse the fixed-length data packets and the error correction packets in each error correction group to obtain diffusion data packets;

[0062] Specifically, the fixed-length data packet and the error correction packet are respectively copied to obtain m times of the fixed-length data packet and the error correction packet to obtain a diffusion data packet.

[0063] Specifically, in step S03, the VPN data sending end and receiving end are respectively one end of a VPN client and a VPN server.

[0064] Specifically, step S04 includes steps S041 and S042:

[0065] S041, the VPN data receiving end determines whether the corresponding fixed-length data packet or error correction packet has been received based on the packet ID, packet type and packet sequence number in the received diffusion data packet, and if so, discards it; if not, saves the fixed-length data packet or error correction packet;

[0066] S042. The VPN data receiving end determines whether the number of data packets saved in each group reaches the error correction parameter value. If not, it continues to receive data. If yes, it reconstructs the data packets based on the data packets saved in the group.

[0067] Check whether the saved data packets in the group are all the fixed-length data packets. If so, reconstruct the group based on the packet sequence number within the group; if not, it indicates that the group has a common packet that has not been received but an error correction packet has been received. Perform byte-by-byte XOR on the saved data packets in the group (including the received fixed-length data packets and error correction packets) to obtain the fixed-length data packets that have not been received in the group, and then reconstruct the group based on the packet sequence number within the group using the fixed-length data packets and the fixed-length data packets in the saved data packets.

[0068] This embodiment discloses a VPN communication method based on network fault tolerance in harsh environments in the field of information communication. By adopting data packet transmission fault tolerance technology, only the VPN needs to be modified, and the application system does not need to be modified, the transmission efficiency is improved in a harsh network environment and the reliability of network transmission is guaranteed; by analyzing and identifying the current network environment, the data packet diffusion strategy is automatically matched according to the network environment parameters for interactive transmission, and then the data packet restoration is completed through the receiving end data packet error correction technology, finally realizing the reliable transmission of VPN data in a harsh network environment.

[0069] Example 2

[0070] Another specific embodiment of the present invention discloses a VPN communication method based on network fault tolerance in a harsh environment in the field of information communication. The method is the same as that in embodiment 1. Under the harsh network conditions of a network packet loss rate of 50% and a network delay of 500ms, the following steps are implemented:

[0071] Step S11, the VPN data sending end calculates the diffusion parameter based on the network packet loss rate and network delay of the current network environment, sets the coefficient ɑ=0.4, and uses the diffusion parameter formula to calculate the diffusion parameter

[0072]

[0073] Step S12, the VPN data sending end constructs a diffusion data packet based on the diffusion parameters and the data packet to be sent;

[0074] Specifically, let the error correction parameter k=m=7, and determine that the number of fixed-length data packets in each error correction group is 7; in the FLAG information: Bit0 is set to 1, indicating diffusion; Bit1-Bit3 are set to 111, which is the diffusion parameter m=7; Bit4 is set to 1, indicating error correction; Bit5-Bit7 are set to 111, that is, k=7; Specifically, the padding of the group information is the same as in Example 1;

[0075] The fixed-length data packet and the error correction packet are respectively copied to obtain 7 times the fixed-length data packet and the error correction packet to obtain a diffused data packet.

[0076] Step S13: The VPN data sending end sends the diffusion data packet to the VPN data receiving end.

[0077] Step S14, the VPN data receiving end performs data packet reconstruction based on the received diffusion data packet;

[0078] S141, the VPN data receiving end determines whether the corresponding fixed-length data packet or error correction packet has been received based on the packet ID, packet type and packet sequence number in the received diffusion data packet, and if so, discards it; if not, saves the fixed-length data packet or error correction packet;

[0079] S142, the VPN data receiving end determines whether the number of data packets saved in each group reaches the error correction parameter value, if not, continues to receive data, if yes, performs data packet reconstruction based on the data packets saved in the group:

[0080] Check whether the saved data packets in the group are all the fixed-length data packets. In one implementation process of this embodiment, the saved data packets in the group are all the fixed-length data packets, and the group is reconstructed with all the saved fixed-length data packets based on the packet sequence number within the group of each fixed-length data packet.

[0081] Step S15: The VPN data receiving end constructs a return data packet according to the diffusion parameters and error correction parameters carried in the received diffusion data packet and sends it to the VPN sending end. The VPN sending end receives the return data packet and reconstructs the data packet.

[0082] A VPN data communication method disclosed in this embodiment achieves reliable transmission of VPN data under the harsh network conditions described in this embodiment by calculating diffusion parameters and reasonably setting ɑ and error correction parameters.

[0083] Example 3

[0084] Another specific embodiment of the present invention discloses a VPN communication method based on network fault tolerance in a harsh environment in the field of information communication. The specific method is the same as that in Example 1. Under the harsh network conditions where the network packet loss rate is 50% and the network delay is 200ms:

[0085] Specifically, let the coefficient ɑ = 0.4 and use the diffusion parameter formula to calculate the diffusion parameter

[0086] Specifically, let the error correction parameter k=m=5, and determine that the number of fixed-length data packets in each error correction group is 5; in the FLAG information: Bit0 is set to 1, indicating diffusion; Bit1-Bit3 are set to 101, which is the diffusion parameter m=5; Bit4 is set to 1, indicating error correction; Bit5-Bit7 are set to 101, that is, k=5; Specifically, the padding of the group information is the same as in Example 1;

[0087] The fixed-length data packet and the error correction packet are respectively copied to obtain 5 times the fixed-length data packet and the error correction packet to obtain a diffusion data packet;

[0088] Specifically, in an implementation process of this embodiment, when the VPN data receiving end determines that the number of data packets saved in a certain group has reached the error correction parameter value, and checks that the data packets in the group are not all fixed-length data packets, it means that the saved data packets in the group include the received fixed-length data packets and error correction packets, and all the saved data packets in the group are XORed byte by byte to obtain the fixed-length data packets that have not been received in the group, and the group is reconstructed based on the fixed-length data packets and the saved fixed-length data packets.

[0089] A VPN data communication method disclosed in this embodiment achieves reliable transmission of VPN data under the harsh network conditions described in this embodiment by calculating diffusion parameters and reasonably setting ɑ and error correction parameters.

[0090] Example 4

[0091] Another specific embodiment of the present invention discloses a VPN communication method based on network fault tolerance in a harsh environment in the field of information communication. The specific steps are the same as those in Example 1. Under the harsh network conditions where the network packet loss rate is 30% and the network delay is 500ms:

[0092] Assume coefficient ɑ = 0.4 and use the diffusion parameter formula to calculate the diffusion parameter Assuming the error correction parameter k=m=5, reliable transmission of VPN data under the harsh network conditions described in this embodiment can be achieved.

[0093] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A VPN communication method based on network fault tolerance in harsh environments in the field of information communication, characterized in that: The steps include: Step S01, the VPN data sending end calculates diffusion parameters based on the network packet loss rate and network delay of the current network environment; Step S02, the VPN data sending end constructs a diffusion data packet based on the diffusion parameters and the data packet to be sent; Step S03, the VPN data sending end sends the diffusion data packet to the VPN data receiving end; Step S04: the VPN data receiving end reconstructs the data packet based on the received diffusion data packet.

2. The communication method according to claim 1, characterized in that: The diffusion parameter was calculated using the following formula: Wherein, m represents the diffusion parameter. When the calculated value of m is greater than 7, m=7; Los represents the network packet loss rate; Delay represents the network delay in milliseconds; ɑ is the adjustable configuration coefficient.

3. The communication method according to claim 2, characterized in that: The VPN data sending end constructs a diffusion data packet based on the diffusion parameter and the data packet to be sent, including: Dividing and filling the data of the data packet to be sent into a plurality of fixed-length data packets; Grouping a number of the fixed-length data packets, obtaining an error correction packet corresponding to the group based on the fixed-length data packets in each group, and adding the error correction packet to the corresponding group to obtain a corresponding error correction packet; Based on the diffusion parameters, the fixed-length data packets and error correction packets in each error correction group are diffused to obtain diffused data packets.

4. The communication method according to claim 3, characterized in that: Also includes: The number of fixed-length data packets in each of the error correction groups is determined based on the error correction parameters.

5. The communication method according to claim 4, characterized in that: Based on the fixed-length data packets in each group, the error correction packet corresponding to the group is obtained by XORing the byte by byte.

6. The communication method according to claim 5, characterized in that: The method of diffusing the fixed-length data packets and error correction packets in each error correction group based on the diffusion parameter to obtain the diffusion data packets includes: based on the diffusion parameter, respectively copying the fixed-length data packets and error correction packets to obtain the fixed-length data packets and error correction packets of multiples of the diffusion parameter.

7. The communication method according to claim 6, characterized in that: The fixed-length data packet includes the data after the data packet to be sent is segmented, FLAG information and grouping information; The FLAG information includes error correction parameters and diffusion parameters; The grouping information includes a group ID, a packet type and a packet sequence number within the group; the packet type of the fixed-length data packet is a common packet, and the packet type of the error-correcting data packet is an error-correcting packet.

8. The communication method according to claim 7, characterized in that: The VPN data receiving end performs data packet reconstruction based on the received diffusion data packet, including: The VPN data receiving end determines whether the corresponding fixed-length data packet or error correction packet has been received based on the packet ID, packet type and packet sequence number in the received diffusion data packet, and if so, discards it; if not, saves the fixed-length data packet or error correction packet; The VPN data receiving end determines whether the number of data packets stored in each group reaches the error correction parameter value, and if not, continues to receive data; if yes, reconstructs the data packets based on the data packets stored in the group.

9. The communication method according to claim 8, characterized in that: The data packet reconstruction based on the data packet stored in the group includes: Check whether the saved data packets in the group are all the fixed-length data packets. If so, reconstruct the group based on the packet sequence number in the group; if not, perform byte-by-byte XOR on the saved data packets in the group to obtain the fixed-length data packets that have not been received in the group, and reconstruct the group based on the fixed-length data packets and the fixed-length data packets in the saved data packets.

10. The communication method according to any one of claims 1 to 9, characterized in that: Also includes: Step S05, the VPN data receiving end constructs a return data packet according to the diffusion parameters and error correction parameters carried in the received diffusion data packet using steps S02 and S03 and sends it to the VPN data sending end. After receiving the return data packet, the VPN data sending end reconstructs the data packet in the same manner as step S04.