Dynamic VPN tunnel switching method and system based on virtual private network technology

By defining performance indicators and weights in the VPN tunnel, and using the decision-making engine to select the best tunnel and automatically switch, it solves the problem of unstable VPN tunnel connections, achieves higher stability and reliability, and adapts to network changes.

CN117527480BActive Publication Date: 2024-09-27HUIZHIAN INFORMATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202311426571.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2024-09-27
Estimated Expiration
2043-10-31

AI Technical Summary

Technical Problem

The existing VPN tunnel connection is unstable and inconvenient to adjust. It requires manual switching and cannot adapt to network changes in real time.

Method used

Based on virtual private network technology, it defines performance indicators such as delay, packet loss rate and bandwidth utilization, and uses a decision-making engine to select the best VPN tunnel based on weight and automatically switch to ensure connection stability and reliability.

Benefits of technology

It realizes automatic switching of VPN connections, improves network stability and reliability, adapts to topology changes and fault recovery, and reduces network management complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117527480B
    Figure CN117527480B
Patent Text Reader

Abstract

The present invention proposes a dynamic VPN tunnel switching method and system based on virtual private network technology. The dynamic VPN tunnel switching method based on virtual private network technology includes: defining performance indicators for evaluating network status and link quality, and extracting weights of different performance indicators; configuring multiple VPN tunnel options in a VPN client or gateway, and monitoring the performance of each VPN tunnel in real time; selecting the best VPN tunnel according to the weights of the different performance indicators through a decision engine; and switching the VPN tunnel according to the best VPN tunnel. The system includes modules corresponding to the steps of the method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention proposes a dynamic VPN tunnel switching method and system based on virtual private network technology, belonging to the technical field of VPN tunnel switching. Background Art

[0002] A virtual private network establishes a virtual private network connection between multiple locations. These connections transmit data through encrypted channels to ensure data confidentiality and integrity. Some VPN clients establish a single node connection, which is unstable and often disconnects and requires maintenance. It cannot be adjusted in real time or it is not convenient to adjust. Sometimes you need to manually switch VPN tunnels. Summary of the invention

[0003] The present invention provides a dynamic VPN tunnel switching method and system based on virtual private network technology, which is used to solve the problems of unstable VPN tunnel connection and inconvenient adjustment in the prior art. The technical solutions adopted are as follows:

[0004] A dynamic VPN tunnel switching method based on virtual private network technology, the dynamic VPN tunnel switching method based on virtual private network technology comprising:

[0005] Define performance indicators for evaluating network status and link quality, and extract weights of different performance indicators;

[0006] Configure multiple VPN tunnel options in the VPN client or gateway and monitor the performance of each VPN tunnel in real time;

[0007] Selecting the best VPN tunnel according to the weights of the different performance indicators by a decision engine;

[0008] VPN tunnel switching is performed based on the best VPN tunnel.

[0009] Furthermore, performance indicators for evaluating network status and link quality are defined, and weights of different performance indicators are extracted, including:

[0010] Defining performance indicators for evaluating network status and link quality, wherein the performance indicators include delay, packet loss rate and bandwidth utilization;

[0011] Extracting a weight value corresponding to the performance indicator for the performance indicator;

[0012] For delay, a maximum allowed delay time corresponding to the delay index is set as a delay time threshold;

[0013] The maximum allowed packet loss rate corresponding to the packet loss rate indicator is set according to the packet loss rate as a packet loss rate threshold;

[0014] A minimum allowed bandwidth utilization corresponding to the bandwidth utilization indicator is set for the bandwidth utilization as a bandwidth utilization threshold.

[0015] Furthermore, multiple VPN tunnel options can be configured in the VPN client or gateway to monitor the performance of each VPN tunnel in real time, including:

[0016] Scan the VPN clients or gateways in the network as target VPN clients or target gateways;

[0017] Arrange a plurality of VPN tunnel alternatives in the target VPN client or the target gateway; wherein the VPN tunnel alternatives include different VPN servers and different network paths;

[0018] Further, selecting the best VPN tunnel according to the weights of the different performance indicators by the decision engine includes:

[0019] Build a decision-making engine;

[0020] Controlling the decision engine to extract weights corresponding to the different performance indicators;

[0021] The decision engine extracts performance indicator thresholds corresponding to the different performance indicators, wherein the performance indicator thresholds include a delay time threshold, a packet loss rate threshold, and a bandwidth utilization threshold;

[0022] The tunnel performance evaluation parameter of each VPN tunnel in the VPN tunnel candidate is obtained according to the weights of the different performance indicators combined with the performance indicator thresholds corresponding to the different performance indicators; wherein the tunnel performance evaluation parameter is obtained by the following formula:

[0023] S=[1-X1-X2+X3]×S0

[0024] X1=(T-T0) / max(T,T0)

[0025] X2=(P-P0) / max(P,1.13P0)

[0026] X3=(Z-Z0) / max(Z,1.07Z0)

[0027] Wherein, S represents the tunnel performance evaluation parameter corresponding to each VPN tunnel; S0 represents the preset parameter reference value; X1, X2 and X3 represent the first parameter determination coefficient, the second parameter determination coefficient and the third parameter determination coefficient respectively; T represents the actual delay time of the network when each tunnel is currently running; T0 represents the delay time threshold; P represents the actual packet loss rate of the network when each tunnel is currently running; P0 represents the packet loss rate threshold; Z represents the actual bandwidth utilization rate of the network when each tunnel is currently running; Z0 represents the bandwidth utilization threshold;

[0028] The VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter is extracted as the best VPN tunnel.

[0029] Further, VPN tunnel switching is performed according to the best VPN tunnel, including:

[0030] After the VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter is taken as the best VPN tunnel, the tunnel performance evaluation parameter of the best VPN tunnel is monitored within a preset time period;

[0031] When the tunnel performance evaluation parameter always maintains a maximum value within a preset time period, the VPN tunnel is switched to the best VPN tunnel at the end of the preset time period;

[0032] When the tunnel performance evaluation parameter does not remain at the maximum value within the preset time period, the VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter that appears within the preset time period is used as the new optimal VPN tunnel at the end of the preset time period, and the VPN tunnel is switched to become the optimal VPN tunnel.

[0033] A dynamic VPN tunnel switching system based on virtual private network technology, the dynamic VPN tunnel switching system based on virtual private network technology includes:

[0034] A performance indicator definition module is used to define performance indicators for evaluating network status and link quality, and to extract weights of different performance indicators;

[0035] VPN tunnel alternative configuration module, used to configure multiple VPN tunnel alternatives in VPN client or gateway, and monitor the performance of each VPN tunnel in real time;

[0036] An optimal VPN tunnel selection module, configured to select an optimal VPN tunnel according to the weights of the different performance indicators through a decision engine;

[0037] The VPN tunnel switching execution module is used to switch the VPN tunnel according to the best VPN tunnel.

[0038] Furthermore, the performance indicator definition module includes:

[0039] A performance indicator definition execution module, used to define performance indicators for evaluating network status and link quality, wherein the performance indicators include delay, packet loss rate and bandwidth utilization;

[0040] A weight value extraction module, used to extract the weight value corresponding to the performance indicator for the performance indicator;

[0041] A delay time threshold acquisition module is used to set a maximum allowable delay time corresponding to the delay index for the delay as a delay time threshold;

[0042] A packet loss rate threshold acquisition module is used to set a maximum allowable packet loss rate corresponding to the packet loss rate indicator according to the packet loss rate as a packet loss rate threshold;

[0043] The bandwidth utilization threshold acquisition module is used to set a minimum allowed bandwidth utilization corresponding to the bandwidth utilization index as a bandwidth utilization threshold for the bandwidth utilization.

[0044] Furthermore, the VPN tunnel alternative configuration module includes:

[0045] A network scanning module is used to scan VPN clients or gateways existing in the network as target VPN clients or target gateways;

[0046] A tunnel alternative configuration module, used to configure a plurality of VPN tunnel alternatives in the target VPN client or the target gateway; wherein the VPN tunnel alternatives correspond to different VPN servers and different network paths;

[0047] Furthermore, the optimal VPN tunnel selection module includes:

[0048] A decision engine building module, used to build a decision engine;

[0049] A weight extraction module, used to control the decision engine to extract weights corresponding to the different performance indicators;

[0050] A performance indicator threshold extraction module, used for the decision engine to extract performance indicator thresholds corresponding to the different performance indicators, wherein the performance indicator thresholds include a delay time threshold, a packet loss rate threshold, and a bandwidth utilization threshold;

[0051] A tunnel performance evaluation parameter setting module is used to obtain the tunnel performance evaluation parameter of each VPN tunnel in the VPN tunnel candidate according to the weights of the different performance indicators combined with the performance indicator thresholds corresponding to the different performance indicators; wherein the tunnel performance evaluation parameter is obtained by the following formula:

[0052] S=[1-X1-X2+X3]×S0

[0053] X1=(T-T0) / max(T,T0)

[0054] X2=(P-P0) / max(P,1.13P0)

[0055] X3=(Z-Z0) / max(Z,1.07Z0)

[0056] Wherein, S represents the tunnel performance evaluation parameter corresponding to each VPN tunnel; S0 represents the preset parameter reference value; X1, X2 and X3 represent the first parameter determination coefficient, the second parameter determination coefficient and the third parameter determination coefficient respectively; T represents the actual delay time of the network when each tunnel is currently running; T0 represents the delay time threshold; P represents the actual packet loss rate of the network when each tunnel is currently running; P0 represents the packet loss rate threshold; Z represents the actual bandwidth utilization rate of the network when each tunnel is currently running; Z0 represents the bandwidth utilization threshold;

[0057] The best VPN tunnel determination module is used to extract the VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter as the best VPN tunnel.

[0058] Furthermore, the VPN tunnel switching execution module includes:

[0059] A tunnel performance evaluation parameter monitoring module, configured to monitor the tunnel performance evaluation parameters of the best VPN tunnel within a preset time period after the VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter is taken as the best VPN tunnel;

[0060] A first optimal VPN tunnel switching module, configured to switch the VPN tunnel to an optimal VPN tunnel at the end of a preset time period when the tunnel performance evaluation parameter always maintains a maximum value within a preset time period;

[0061] The second optimal VPN tunnel switching module is used to, when the tunnel performance evaluation parameter does not remain at the maximum value within a preset time period, use the VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter that appears within the preset time period as the new optimal VPN tunnel at the end of the preset time period, and switch the VPN tunnel to the optimal VPN tunnel.

[0062] Beneficial effects of the present invention:

[0063] The dynamic VPN tunnel switching method and system based on virtual private network technology proposed by the present invention monitors factors such as network status and link quality. The VPN client or gateway performs intelligent tunnel selection according to the current network conditions and performance indicators during operation, and automatically switches VPN tunnels to ensure the stability and reliability of VPN connections. The VPN network can adapt to topology changes and fault recovery, providing higher connection reliability, stability and security to meet different application scenarios and requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 is a flow chart of the method of the present invention;

[0065] Figure 2The system block diagram of the system of the present invention. DETAILED DESCRIPTION

[0066] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0067] The embodiment of the present invention proposes a dynamic VPN tunnel switching method based on virtual private network technology, such as Figure 1 As shown, the dynamic VPN tunnel switching method based on virtual private network technology includes:

[0068] S1. Define performance indicators for evaluating network status and link quality, and extract weights of different performance indicators;

[0069] S2. Configure multiple VPN tunnel options in the VPN client or gateway and monitor the performance of each VPN tunnel in real time;

[0070] S3, selecting the best VPN tunnel according to the weights of the different performance indicators through a decision engine;

[0071] S4. Switch the VPN tunnel according to the best VPN tunnel.

[0072] The working principle of the above technical solution is as follows: Define performance indicators and weights (S1): First, define a set of performance indicators for evaluating network conditions and link quality. Each performance indicator may include bandwidth, delay, packet loss rate, etc. Assign a weight to each performance indicator to determine its relative importance.

[0073] Configure multiple VPN tunnel alternatives (S2): Configure multiple alternative VPN tunnels in the VPN client or gateway. These tunnels can connect to different servers or network locations. Monitor the performance of each VPN tunnel in real time, including the performance indicators defined above.

[0074] Decision engine selects the best VPN tunnel (S3): Uses a decision engine that evaluates the performance of each VPN tunnel based on the weights of different performance indicators. The engine takes into account various performance indicators and selects the best VPN tunnel based on the defined weights.

[0075] VPN tunnel switching (S4): Once the decision engine selects the best VPN tunnel, the system automatically performs VPN tunnel switching, switching the network connection from the current tunnel to the best tunnel. This helps optimize network performance and connection quality.

[0076] The effects of the above technical solution are: Improving network performance: By monitoring the performance of different VPN tunnels in real time and selecting the best tunnel, network performance can be significantly improved, including better bandwidth, lower latency and lower packet loss rate.

[0077] Automatic switching: The method uses an automatic decision engine to achieve automatic switching of VPN tunnels without manual intervention. This reduces the complexity of network management.

[0078] Improved availability: By switching to a VPN tunnel with better performance, you can improve network availability and robustness, ensuring that connections can be maintained when network problems occur.

[0079] Adaptability: By adjusting the weights of performance indicators, the above technical solution of this embodiment can be adjusted according to specific network requirements and application scenarios, so as to better adapt to different usage scenarios.

[0080] In summary, the technical solution of this embodiment allows dynamic switching of VPN tunnels to optimize network connections, and can be customized according to the weights of performance indicators to meet different network performance requirements.

[0081] An embodiment of the present invention defines performance indicators for evaluating network status and link quality, and extracts weights of different performance indicators, including:

[0082] S101. Define performance indicators for evaluating network status and link quality, wherein the performance indicators include delay, packet loss rate, and bandwidth utilization;

[0083] S102, extracting a weight value corresponding to the performance indicator for the performance indicator;

[0084] S103, setting a maximum allowable delay time corresponding to the delay index as a delay time threshold;

[0085] S104, setting a maximum allowable packet loss rate corresponding to the packet loss rate indicator as a packet loss rate threshold according to the packet loss rate;

[0086] S105: For bandwidth utilization, set a minimum allowed bandwidth utilization corresponding to the bandwidth utilization index as a bandwidth utilization threshold.

[0087] The working principle of the above technical solution is as follows: Defining performance indicators (S101): First, in order to evaluate the network status and link quality, a set of performance indicators needs to be defined. In this case, the defined performance indicators include delay, packet loss rate and bandwidth utilization.

[0088] Extracting performance indicator weights (S102): assigning corresponding weight values ​​to each performance indicator to reflect their relative importance in evaluating network conditions and link quality. These weight values ​​can be defined according to specific needs and application scenarios.

[0089] Setting thresholds (S103-S105): According to each performance indicator, specific thresholds can be set, which are used to determine whether the performance meets the requirements. For example, for the delay indicator, the maximum allowed delay time can be set as the delay time threshold; for the packet loss rate indicator, the maximum allowed packet loss rate can be set as the packet loss rate threshold; for the bandwidth utilization indicator, the minimum allowed bandwidth utilization rate can be set as the bandwidth utilization threshold.

[0090] The effects of the above technical solution are: Weight adjustment: By assigning weights to different performance indicators, flexible configuration can be performed according to the needs of network and link quality. For example, if low latency is critical to the application, a higher weight can be assigned to latency.

[0091] Custom thresholds: Setting thresholds allows measuring performance compliance based on specific needs. This helps network administrators configure based on specific situations.

[0092] Real-time performance monitoring: The definition of these performance indicators and weights and the setting of thresholds can be used to monitor network status and link quality in real time so that timely actions can be taken, such as selecting the best VPN tunnel.

[0093] In summary, the working principle and technical effect of the above technical solution of this embodiment are helpful to evaluate the network status and link quality according to the performance indicators and their relative importance, and configure and monitor according to specific needs. This can help optimize the selection and switching of VPN tunnels.

[0094] In one embodiment of the present invention, multiple VPN tunnel options are configured in a VPN client or a gateway to monitor the performance of each VPN tunnel in real time, including:

[0095] S201, scanning VPN clients or gateways existing in the network as target VPN clients or target gateways;

[0096] S202: deploy multiple VPN tunnel options in the target VPN client or target gateway; wherein the VPN tunnel options correspond to different VPN servers and different network paths.

[0097] The working principle of the above technical solution is as follows: Scan target VPN clients or gateways (S201): First, the system needs to scan VPN clients or gateways existing in the network, which will be used as potential target VPN connection points. This can be achieved through network discovery and identification.

[0098] Configuring multiple VPN tunnel options (S202): In each target VPN client or gateway, multiple VPN tunnel options are configured. These options may include connecting to different VPN servers, using different network paths or protocols. Each option allows the system to establish multiple potential VPN connections.

[0099] The effects of the above technical solution are: Redundancy and backup: Configuring multiple VPN tunnel alternatives provides a redundancy and backup mechanism. If a VPN tunnel fails or performance degrades, the system can switch to another alternative to ensure continuous VPN connection.

[0100] Performance monitoring: Since each alternative is associated with a different VPN server and network path, the system can monitor the performance of each VPN tunnel in real time. This includes monitoring performance indicators such as latency, packet loss rate, and bandwidth utilization.

[0101] Dynamic selection: By monitoring performance, the decision engine can select the best VPN tunnel based on predefined performance indicators and weights. This selection is usually based on the aforementioned performance indicators and their weights, allowing the system to automatically adjust to ensure optimal performance.

[0102] Real-time switching: If the performance of a VPN tunnel degrades, the decision engine can switch to another alternative in real time to maintain the stability and performance of the VPN connection.

[0103] In summary, configuring multiple VPN tunnel alternatives and monitoring their performance in real time can help improve VPN stability and performance while ensuring backup connections to deal with possible failures.

[0104] In one embodiment of the present invention, the optimal VPN tunnel is selected according to the weights of the different performance indicators by a decision engine, including:

[0105] S301, establish a decision engine;

[0106] S302, controlling the decision engine to extract weights corresponding to the different performance indicators;

[0107] S303, the decision engine extracts performance indicator thresholds corresponding to the different performance indicators, wherein the performance indicator thresholds include a delay time threshold, a packet loss rate threshold, and a bandwidth utilization threshold;

[0108] S304. Obtain a tunnel performance evaluation parameter of each VPN tunnel in the VPN tunnel candidate according to the weights of the different performance indicators combined with the performance indicator thresholds corresponding to the different performance indicators; wherein the tunnel performance evaluation parameter is obtained by the following formula:

[0109] S=[1-X1-X2+X3]×S0

[0110] X1=(T-T0) / max(T,T0)

[0111] X2=(P-P0) / max(P,1.13P0)

[0112] X3=(Z-Z0) / max(Z,1.07Z0)

[0113] Wherein, S represents the tunnel performance evaluation parameter corresponding to each VPN tunnel; S0 represents the preset parameter reference value; X1, X2 and X3 represent the first parameter determination coefficient, the second parameter determination coefficient and the third parameter determination coefficient respectively; T represents the actual delay time of the network when each tunnel is currently running; T0 represents the delay time threshold; P represents the actual packet loss rate of the network when each tunnel is currently running; P0 represents the packet loss rate threshold; Z represents the actual bandwidth utilization rate of the network when each tunnel is currently running; Z0 represents the bandwidth utilization threshold;

[0114] S305: Extract the VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter as the best VPN tunnel.

[0115] The working principle of the above technical solution is: Establish a decision engine (S301): First, the system establishes a decision engine for selecting the best VPN tunnel.

[0116] Extracting weights and performance indicator thresholds (S302 and S303): The system control decision engine extracts weights of different performance indicators and performance indicator thresholds. These performance indicators may include delay time, packet loss rate, and bandwidth utilization.

[0117] Calculate tunnel performance evaluation parameters (S304): The system calculates tunnel performance evaluation parameters for each VPN tunnel based on the weights of different performance indicators and performance indicator thresholds. These parameters represent the performance of each tunnel by combining different performance indicators and weights.

[0118] Select the best VPN tunnel (S305): The system extracts the VPN tunnel with the maximum tunnel performance evaluation parameter value as the best VPN tunnel. This means selecting the VPN tunnel with the best performance to meet the user's connection needs.

[0119] The effect of the above technical solution is: Comprehensive evaluation of multiple indicators: The above technical solution of this embodiment takes into account multiple performance indicators, such as latency, packet loss rate and bandwidth utilization, to comprehensively evaluate the performance of each VPN tunnel. This allows for more comprehensive tunnel selection to ensure that users get the best connection performance.

[0120] Weight control: By introducing weights, the system can adjust the importance of performance indicators according to different application scenarios and user needs. This provides greater customization.

[0121] Automated decision making: The use of a decision engine allows the system to automatically select the best VPN tunnel after real-time monitoring and evaluation of various performance indicators, reducing the need for manual intervention.

[0122] In summary, the above technical solution of this embodiment automatically selects the best VPN tunnel by comprehensively considering the weights of different performance indicators to provide the best network performance and user experience.

[0123] An embodiment of the present invention performs VPN tunnel switching according to the best VPN tunnel, including:

[0124] S401, after the VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter is taken as the best VPN tunnel, the tunnel performance evaluation parameter of the best VPN tunnel is monitored within a preset time period;

[0125] S402, when the tunnel performance evaluation parameter always maintains a maximum value within a preset time period, switching the VPN tunnel to an optimal VPN tunnel is performed at the end of the preset time period;

[0126] S403. When the tunnel performance evaluation parameter does not remain at a maximum value within a preset time period, the VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter that appears within the preset time period is used as a new optimal VPN tunnel at the end of the preset time period, and the VPN tunnel is switched to become the optimal VPN tunnel.

[0127] The working principle of the above technical solution is as follows: Monitoring the best VPN tunnel performance (S401): First, the system will identify the VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter as the best VPN tunnel. During a preset time period, the system will continue to monitor the performance of the best VPN tunnel and evaluate specific performance parameters, such as delay, packet loss rate, etc.

[0128] Performance parameter continues to be at maximum value (S402): If the performance parameter of the best VPN tunnel remains at the maximum value throughout the preset time period, the system will perform VPN tunnel switching at the end of the preset time period, changing the best VPN tunnel to the currently used VPN tunnel. This means that the original best VPN tunnel is still the best choice.

[0129] Performance parameter change (S403): If the performance parameter of the best VPN tunnel does not remain at the maximum value during the preset time period, the system will mark the VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter that appears during the preset time period as the new best VPN tunnel at the end of the preset time period, and then switch the VPN tunnel to become the best VPN tunnel. This allows the system to select the new best VPN tunnel based on real-time performance performance.

[0130] The effect of the above technical solution is: Dynamically select the best VPN tunnel: The above technical solution of this embodiment allows the system to dynamically select the best VPN tunnel, rather than just relying on a one-time evaluation. It can adapt to changes in network conditions and select the VPN tunnel with the best performance.

[0131] Continuous performance monitoring: Through continuous performance monitoring, the system can more accurately evaluate the performance of the VPN tunnel, thereby improving the stability and performance of the VPN connection.

[0132] Automatic switching: The system is able to automatically switch to the best VPN tunnel, reducing the need for manual intervention and providing a smoother and more reliable VPN connection.

[0133] In summary, the above technical solution of this embodiment allows the network to automatically select the best VPN tunnel under changing conditions to provide better performance and availability.

[0134] The embodiment of the present invention proposes a dynamic VPN tunnel switching system based on virtual private network technology, such as Figure 2 As shown, the dynamic VPN tunnel switching system based on virtual private network technology includes:

[0135] A performance indicator definition module is used to define performance indicators for evaluating network status and link quality, and to extract weights of different performance indicators;

[0136] VPN tunnel alternative configuration module, used to configure multiple VPN tunnel alternatives in VPN client or gateway, and monitor the performance of each VPN tunnel in real time;

[0137] An optimal VPN tunnel selection module, configured to select an optimal VPN tunnel according to the weights of the different performance indicators through a decision engine;

[0138] The VPN tunnel switching execution module is used to switch the VPN tunnel according to the best VPN tunnel.

[0139] The working principle of the above technical solution is as follows: Define performance indicators and weights: First, define a set of performance indicators for evaluating network conditions and link quality. Each performance indicator can include bandwidth, latency, packet loss rate, etc. Assign weights to each performance indicator to determine its relative importance.

[0140] Configure multiple VPN tunnel alternatives: Configure multiple alternative VPN tunnels in the VPN client or gateway. These tunnels can connect to different servers or network locations. Monitor the performance of each VPN tunnel in real time, including the performance indicators defined above.

[0141] Decision engine selects the best VPN tunnel: Uses a decision engine that evaluates the performance of each VPN tunnel based on the weights of different performance indicators. The engine takes into account various performance indicators and selects the best VPN tunnel based on the defined weights.

[0142] VPN tunnel switching: Once the decision engine selects the best VPN tunnel, the system automatically performs VPN tunnel switching, switching the network connection from the current tunnel to the best tunnel. This helps optimize network performance and connection quality.

[0143] The effects of the above technical solution are: Improving network performance: By monitoring the performance of different VPN tunnels in real time and selecting the best tunnel, network performance can be significantly improved, including better bandwidth, lower latency and lower packet loss rate.

[0144] Automatic switching: The method uses an automatic decision engine to achieve automatic switching of VPN tunnels without manual intervention. This reduces the complexity of network management.

[0145] Improved availability: By switching to a VPN tunnel with better performance, you can improve network availability and robustness, ensuring that connections can be maintained when network problems occur.

[0146] Adaptability: By adjusting the weights of performance indicators, the above technical solution of this embodiment can be adjusted according to specific network requirements and application scenarios, so as to better adapt to different usage scenarios.

[0147] In summary, the technical solution of this embodiment allows dynamic switching of VPN tunnels to optimize network connections, and can be customized according to the weights of performance indicators to meet different network performance requirements.

[0148] In one embodiment of the present invention, the performance indicator definition module includes:

[0149] A performance indicator definition execution module, used to define performance indicators for evaluating network status and link quality, wherein the performance indicators include delay, packet loss rate and bandwidth utilization;

[0150] A weight value extraction module, used to extract the weight value corresponding to the performance indicator for the performance indicator;

[0151] A delay time threshold acquisition module is used to set a maximum allowable delay time corresponding to the delay index for the delay as a delay time threshold;

[0152] A packet loss rate threshold acquisition module is used to set a maximum allowable packet loss rate corresponding to the packet loss rate indicator according to the packet loss rate as a packet loss rate threshold;

[0153] The bandwidth utilization threshold acquisition module is used to set a minimum allowed bandwidth utilization corresponding to the bandwidth utilization index as a bandwidth utilization threshold for the bandwidth utilization.

[0154] The working principle of the above technical solution is as follows: Defining performance indicators: First, in order to evaluate the network status and link quality, a set of performance indicators needs to be defined. In this case, the defined performance indicators include delay, packet loss rate and bandwidth utilization.

[0155] Extract performance indicator weights: Assign corresponding weight values ​​to each performance indicator to reflect their relative importance in evaluating network status and link quality. These weight values ​​can be defined based on specific needs and application scenarios.

[0156] Set thresholds: For each performance indicator, you can set specific thresholds to determine whether the performance meets the requirements. For example, for the delay indicator, you can set the maximum allowed delay time as the delay time threshold; for the packet loss rate indicator, you can set the maximum allowed packet loss rate as the packet loss rate threshold; for the bandwidth utilization indicator, you can set the minimum allowed bandwidth utilization as the bandwidth utilization threshold.

[0157] The effects of the above technical solution are: Weight adjustment: By assigning weights to different performance indicators, flexible configuration can be performed according to the needs of network and link quality. For example, if low latency is critical to the application, a higher weight can be assigned to latency.

[0158] Custom thresholds: Setting thresholds allows measuring performance compliance based on specific needs. This helps network administrators configure based on specific situations.

[0159] Real-time performance monitoring: The definition of these performance indicators and weights and the setting of thresholds can be used to monitor network status and link quality in real time so that timely actions can be taken, such as selecting the best VPN tunnel.

[0160] In summary, the working principle and technical effect of the above technical solution of this embodiment are helpful to evaluate the network status and link quality according to the performance indicators and their relative importance, and configure and monitor according to specific needs. This can help optimize the selection and switching of VPN tunnels.

[0161] In one embodiment of the present invention, the VPN tunnel alternative configuration module includes:

[0162] A network scanning module is used to scan VPN clients or gateways existing in the network as target VPN clients or target gateways;

[0163] A tunnel alternative configuration module, used to configure a plurality of VPN tunnel alternatives in the target VPN client or the target gateway; wherein the VPN tunnel alternatives correspond to different VPN servers and different network paths;

[0164] The working principle of the above technical solution is as follows: Scan the target VPN client or gateway: First, the system needs to scan the VPN clients or gateways existing in the network, which will be used as potential target VPN connection points. This can be achieved through network discovery and identification.

[0165] Configure multiple VPN tunnel alternatives: In each target VPN client or gateway, configure multiple VPN tunnel alternatives. These alternatives can include connecting to different VPN servers, using different network paths or protocols. Each alternative allows the system to establish multiple potential VPN connections.

[0166] The effects of the above technical solution are: Redundancy and backup: Configuring multiple VPN tunnel alternatives provides a redundancy and backup mechanism. If a VPN tunnel fails or performance degrades, the system can switch to another alternative to ensure continuous VPN connection.

[0167] Performance monitoring: Since each alternative is associated with a different VPN server and network path, the system can monitor the performance of each VPN tunnel in real time. This includes monitoring performance indicators such as latency, packet loss rate, and bandwidth utilization.

[0168] Dynamic selection: By monitoring performance, the decision engine can select the best VPN tunnel based on predefined performance indicators and weights. This selection is usually based on the aforementioned performance indicators and their weights, allowing the system to automatically adjust to ensure optimal performance.

[0169] Real-time switching: If the performance of a VPN tunnel degrades, the decision engine can switch to another alternative in real time to maintain the stability and performance of the VPN connection.

[0170] In summary, configuring multiple VPN tunnel alternatives and monitoring their performance in real time can help improve VPN stability and performance while ensuring backup connections to deal with possible failures.

[0171] In one embodiment of the present invention, the optimal VPN tunnel selection module includes:

[0172] A decision engine building module, used to build a decision engine;

[0173] A weight extraction module, used to control the decision engine to extract weights corresponding to the different performance indicators;

[0174] A performance indicator threshold extraction module, used for the decision engine to extract performance indicator thresholds corresponding to the different performance indicators, wherein the performance indicator thresholds include a delay time threshold, a packet loss rate threshold, and a bandwidth utilization threshold;

[0175] A tunnel performance evaluation parameter setting module is used to obtain the tunnel performance evaluation parameter of each VPN tunnel in the VPN tunnel candidate according to the weights of the different performance indicators combined with the performance indicator thresholds corresponding to the different performance indicators; wherein the tunnel performance evaluation parameter is obtained by the following formula:

[0176] S=[1-X1-X2+X3]×S0

[0177] X1=(T-T0) / max(T,T0)

[0178] X2=(P-P0) / max(P,1.13P0)

[0179] X3=(Z-Z0) / max(Z,1.07Z0)

[0180] Wherein, S represents the tunnel performance evaluation parameter corresponding to each VPN tunnel; S0 represents the preset parameter reference value; X1, X2 and X3 represent the first parameter determination coefficient, the second parameter determination coefficient and the third parameter determination coefficient respectively; T represents the actual delay time of the network when each tunnel is currently running; T0 represents the delay time threshold; P represents the actual packet loss rate of the network when each tunnel is currently running; P0 represents the packet loss rate threshold; Z represents the actual bandwidth utilization rate of the network when each tunnel is currently running; Z0 represents the bandwidth utilization threshold;

[0181] The best VPN tunnel determination module is used to extract the VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter as the best VPN tunnel.

[0182] The working principle of the above technical solution is: Establish a decision engine: First, the system establishes a decision engine for selecting the best VPN tunnel.

[0183] Extract weights and performance indicator thresholds: The system control decision engine extracts weights of different performance indicators and performance indicator thresholds. These performance indicators may include latency, packet loss rate, and bandwidth utilization.

[0184] Calculate tunnel performance evaluation parameters: The system calculates tunnel performance evaluation parameters for each VPN tunnel based on the weights of different performance indicators and performance indicator thresholds. These parameters represent the performance of each tunnel by combining different performance indicators and weights.

[0185] Select the best VPN tunnel: The system extracts the VPN tunnel with the maximum tunnel performance evaluation parameter value as the best VPN tunnel. This means that the best-performing VPN tunnel is selected to meet the user's connection needs.

[0186] The effect of the above technical solution is: Comprehensive evaluation of multiple indicators: The above technical solution of this embodiment takes into account multiple performance indicators, such as latency, packet loss rate and bandwidth utilization, to comprehensively evaluate the performance of each VPN tunnel. This allows for more comprehensive tunnel selection to ensure that users get the best connection performance.

[0187] Weight control: By introducing weights, the system can adjust the importance of performance indicators according to different application scenarios and user needs. This provides greater customization.

[0188] Automated decision making: The use of a decision engine allows the system to automatically select the best VPN tunnel after real-time monitoring and evaluation of various performance indicators, reducing the need for manual intervention.

[0189] In summary, the above technical solution of this embodiment automatically selects the best VPN tunnel by comprehensively considering the weights of different performance indicators to provide the best network performance and user experience.

[0190] In one embodiment of the present invention, the VPN tunnel switching execution module includes:

[0191] A tunnel performance evaluation parameter monitoring module, configured to monitor the tunnel performance evaluation parameters of the best VPN tunnel within a preset time period after the VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter is taken as the best VPN tunnel;

[0192] A first optimal VPN tunnel switching module, configured to switch the VPN tunnel to an optimal VPN tunnel at the end of a preset time period when the tunnel performance evaluation parameter always maintains a maximum value within a preset time period;

[0193] The second optimal VPN tunnel switching module is used to, when the tunnel performance evaluation parameter does not remain at the maximum value within a preset time period, use the VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter that appears within the preset time period as the new optimal VPN tunnel at the end of the preset time period, and switch the VPN tunnel to the optimal VPN tunnel.

[0194] The working principle of the above technical solution is as follows: Monitoring the best VPN tunnel performance: First, the system will identify the VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter as the best VPN tunnel. During a preset time period, the system will continue to monitor the performance of the best VPN tunnel and evaluate specific performance parameters such as latency, packet loss rate, etc.

[0195] Performance parameter continues to be the maximum value: If the performance parameter of the best VPN tunnel remains at the maximum value throughout the preset time period, the system will perform VPN tunnel switching at the end of the preset time period and change the best VPN tunnel to the currently used VPN tunnel. This means that the original best VPN tunnel is still the best choice.

[0196] Performance parameter change: If the performance parameter of the best VPN tunnel does not remain at the maximum value during the preset time period, the system will mark the VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter that appeared during the preset time period as the new best VPN tunnel at the end of the preset time period, and then switch the VPN tunnel to become the best VPN tunnel. This allows the system to select the new best VPN tunnel based on real-time performance performance.

[0197] The effect of the above technical solution is: Dynamically select the best VPN tunnel: The above technical solution of this embodiment allows the system to dynamically select the best VPN tunnel, rather than just relying on a one-time evaluation. It can adapt to changes in network conditions and select the VPN tunnel with the best performance.

[0198] Continuous performance monitoring: Through continuous performance monitoring, the system can more accurately evaluate the performance of the VPN tunnel, thereby improving the stability and performance of the VPN connection.

[0199] Automatic switching: The system is able to automatically switch to the best VPN tunnel, reducing the need for manual intervention and providing a smoother and more reliable VPN connection.

[0200] In summary, the above technical solution of this embodiment allows the network to automatically select the best VPN tunnel under changing conditions to provide better performance and availability.

[0201] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A dynamic VPN tunnel switching method based on virtual private network technology, characterized in that: The dynamic VPN tunnel switching method based on virtual private network technology includes: Define performance indicators for evaluating network status and link quality, and extract weights for different performance indicators; Configure multiple VPN tunnel options in the VPN client or gateway and monitor the performance of each VPN tunnel in real time; Selecting the best VPN tunnel according to the weights of the different performance indicators through a decision engine; Switch VPN tunnels based on the best VPN tunnel; The decision engine selects the best VPN tunnel according to the weights of the different performance indicators, including: Build a decision-making engine; Controlling the decision engine to extract weights corresponding to the different performance indicators; The decision engine extracts performance indicator thresholds corresponding to the different performance indicators, wherein the performance indicator thresholds include a delay time threshold, a packet loss rate threshold, and a bandwidth utilization threshold; A tunnel performance evaluation parameter of each VPN tunnel in the VPN tunnel candidate is obtained according to the weights of the different performance indicators and the performance indicator thresholds corresponding to the different performance indicators; wherein the tunnel performance evaluation parameter is obtained by the following formula: S=[1-X1-X2+X3]×S0 X1=(T-T0) / max(T,T0) X2=(P-P0) / max(P, 1.13P0) X3=(Z-Z0) / max(Z,1.07Z0) Where S represents the tunnel performance evaluation parameter corresponding to each VPN tunnel; S0 represents the preset parameter benchmark value; X1, X2, and X3 represent the first parameter determination coefficient, the second parameter determination coefficient, and the third parameter determination coefficient, respectively; T represents the actual network delay time when each tunnel is currently running; T0 represents the delay time threshold; P represents the actual network packet loss rate when each tunnel is currently running; P0 represents the packet loss rate threshold; Z represents the actual network bandwidth utilization when each tunnel is currently running; Z0 represents the bandwidth utilization threshold; The VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter is extracted as the optimal VPN tunnel.

2. The dynamic VPN tunnel switching method based on virtual private network technology according to claim 1, characterized in that: Define performance indicators for evaluating network status and link quality, and extract weights for different performance indicators, including: Defining performance indicators for evaluating network status and link quality, wherein the performance indicators include delay, packet loss rate, and bandwidth utilization; Extracting a weight value corresponding to the performance indicator for the performance indicator; For delay, set the maximum allowed delay time corresponding to the delay index as the delay time threshold; The maximum permissible packet loss rate corresponding to the packet loss rate indicator is set as a packet loss rate threshold. A minimum allowed bandwidth utilization corresponding to the bandwidth utilization indicator is set for the bandwidth utilization as a bandwidth utilization threshold.

3. The dynamic VPN tunnel switching method based on virtual private network technology according to claim 1 is characterized in that: Configure multiple VPN tunnel options in the VPN client or gateway and monitor the performance of each VPN tunnel in real time, including: Scan the VPN clients or gateways in the network as target VPN clients or target gateways; A plurality of VPN tunnel alternatives are deployed in the target VPN client or target gateway; wherein the VPN tunnel alternatives include different VPN servers and different network paths.

4. The dynamic VPN tunnel switching method based on virtual private network technology according to claim 1, characterized in that: VPN tunnel switching based on the best VPN tunnel, including: After the VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter is determined as the optimal VPN tunnel, the tunnel performance evaluation parameter of the optimal VPN tunnel is monitored within a preset time period; When the tunnel performance evaluation parameter always maintains a maximum value within a preset time period, the VPN tunnel is switched to the optimal VPN tunnel at the end of the preset time period; When the tunnel performance evaluation parameter does not remain at the maximum value within the preset time period, the VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter that appears within the preset time period is used as the new optimal VPN tunnel at the end of the preset time period, and the VPN tunnel is switched to the optimal VPN tunnel.

5. A dynamic VPN tunnel switching system based on virtual private network technology, characterized in that: The dynamic VPN tunnel switching system based on virtual private network technology includes: The performance indicator definition module is used to define performance indicators for evaluating network status and link quality, and to extract weights of different performance indicators; VPN tunnel alternative configuration module, used to configure multiple VPN tunnel alternatives in the VPN client or gateway, and monitor the performance of each VPN tunnel in real time; An optimal VPN tunnel selection module, configured to select an optimal VPN tunnel according to the weights of the different performance indicators through a decision engine; A VPN tunnel switching execution module, configured to perform VPN tunnel switching according to an optimal VPN tunnel; Wherein, the optimal VPN tunnel selection module includes: A decision engine building module is used to build a decision engine; A weight extraction module, configured to control the decision engine to extract weights corresponding to the different performance indicators; A performance indicator threshold extraction module, configured for the decision engine to extract performance indicator thresholds corresponding to the different performance indicators, wherein the performance indicator thresholds include a delay time threshold, a packet loss rate threshold, and a bandwidth utilization threshold; A tunnel performance evaluation parameter setting module is configured to obtain a tunnel performance evaluation parameter for each VPN tunnel in the VPN tunnel candidate according to the weights of the different performance indicators combined with the performance indicator thresholds corresponding to the different performance indicators; wherein the tunnel performance evaluation parameter is obtained by the following formula: S=[1-X1-X2+X3]×S0 X1=(T-T0) / max(T,T0) X2=(P-P0) / max(P, 1.13P0) X3=(Z-Z0) / max(Z,1.07Z0) Where S represents the tunnel performance evaluation parameter corresponding to each VPN tunnel; S0 represents the preset parameter benchmark value; X1, X2, and X3 represent the first parameter determination coefficient, the second parameter determination coefficient, and the third parameter determination coefficient, respectively; T represents the actual network delay time when each tunnel is currently running; T0 represents the delay time threshold; P represents the actual network packet loss rate when each tunnel is currently running; P0 represents the packet loss rate threshold; Z represents the actual network bandwidth utilization when each tunnel is currently running; Z0 represents the bandwidth utilization threshold; The best VPN tunnel determination module is used to extract the VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter as the best VPN tunnel.

6. The dynamic VPN tunnel switching system based on virtual private network technology according to claim 5, characterized in that: The performance indicator definition module includes: A performance indicator definition execution module, configured to define performance indicators for evaluating network status and link quality, wherein the performance indicators include delay, packet loss rate, and bandwidth utilization; A weight value extraction module, configured to extract a weight value corresponding to the performance indicator for the performance indicator; A delay time threshold acquisition module is used to set a maximum allowable delay time corresponding to the delay index as a delay time threshold; A packet loss rate threshold acquisition module is used to set a maximum allowable packet loss rate corresponding to the packet loss rate indicator as a packet loss rate threshold according to the packet loss rate; The bandwidth utilization threshold acquisition module is used to set a minimum allowed bandwidth utilization corresponding to the bandwidth utilization index as a bandwidth utilization threshold.

7. The dynamic VPN tunnel switching system based on virtual private network technology according to claim 5, characterized in that: The VPN tunnel alternative configuration module includes: A network scanning module is used to scan VPN clients or gateways existing in the network as target VPN clients or target gateways; The tunnel option deployment module is used to deploy multiple VPN tunnel options in the target VPN client or target gateway; wherein the VPN tunnel options correspond to different VPN servers and different network paths.

8. The dynamic VPN tunnel switching system based on virtual private network technology according to claim 5, characterized in that: The VPN tunnel switching execution module includes: a tunnel performance evaluation parameter monitoring module configured to monitor the tunnel performance evaluation parameters of the optimal VPN tunnel within a preset time period after the VPN tunnel corresponding to the maximum tunnel performance evaluation parameter is determined as the optimal VPN tunnel; a first optimal VPN tunnel switching module, configured to switch the VPN tunnel to the optimal VPN tunnel at the end of a preset time period when the tunnel performance evaluation parameter always maintains a maximum value within a preset time period; The second optimal VPN tunnel switching module is used to, when the tunnel performance evaluation parameter does not remain at the maximum value within the preset time period, use the VPN tunnel corresponding to the maximum value of the tunnel performance evaluation parameter that appears within the preset time period as the new optimal VPN tunnel at the end of the preset time period, and switch the VPN tunnel to the optimal VPN tunnel.

Citation Information

Patent Citations

  • VPN transmission tunnel scheduling method and device and VPN client server

    CN107624233A

  • Network game acceleration method and system

    CN108462622A

  • Path selection method, device and system and storage medium

    CN115460131A

  • Multi-link network path dynamic selection method and system

    CN116647498A

  • Cloud computing-based method for smart link selection in sd-wan network

    WO2022007244A1