VPN channel networking method, device, equipment and medium
By establishing communication connections between multiple gateways, determining and switching VPN channels, it solves the problem of VPN channel interruption affecting business, realizes automatic switching and load sharing of business traffic, and improves business availability and stability.
Patent Information
- Application Number
- CN201911159343.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-22
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2039-11-22
AI Technical Summary
In existing VPN channel networking, when a certain VPN channel is interrupted, it will affect the availability of associated services, requiring manual intervention to change the IP address and other methods for switching, affecting business continuity.
By establishing physical link communication connections between multiple different gateways in the first unit, the interruption status of the VPN channel is determined, and when the interruption occurs, the second VPN channel network is re-run by re-running the preset routing protocol, and the access processing is switched to ensure Business continuity.
It realizes automatic switching of VPN channels and load sharing of business traffic, avoids the business impact when a single channel is interrupted, and improves the availability and stability of associated services.
Smart Images

Figure CN110891009B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of financial technology (Fintech), and in particular to a VPN channel networking method, device, equipment and medium. Background Art
[0002] With the continuous development of Fintech, especially Internet technology finance, more and more technologies are applied in the financial field. Among them, VPN channel networking in the financial field involves many technical applications. At present, various units such as enterprises or groups need to establish VPN (Virtual Private Network) channels because of the need for data connection. For enterprises or groups, there are generally multiple access points or access gateways. Therefore, different enterprises or groups often establish more than one VPN channel. The existing different VPN channels are independent of each other at the network level, that is, multiple VPN channels between enterprises or groups are not interoperable. When a VPN channel is interrupted, the associated services of the interrupted VPN channel will be interrupted. Generally, manual intervention is required to modify the access IP address and other methods to cut off the associated services, which affects the availability of the associated services. Summary of the invention
[0003] The main purpose of the present invention is to provide a VPN channel networking method, device, equipment and medium, aiming to solve the technical problem that the corresponding associated services are easily affected by the interruption of a VPN channel in the existing VPN channel networking.
[0004] To achieve the above object, an embodiment of the present invention provides a VPN channel networking method, the VPN channel networking method comprising:
[0005] A plurality of different gateways in the first unit establish communication connections via physical links;
[0006] When receiving the first traffic access instruction of the second unit, determining whether the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in an interrupted state corresponding to the first VPN channel;
[0007] If the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in a first VPN channel interruption state, the second VPN channel networking is re-performed through different gateways of the first unit that are in a state of mutual communication to switch access processing of the first traffic access instruction.
[0008] Optionally, the step of re-networking the second VPN channel through different gateways of the first unit in a state of mutual communication to perform a switching access processing step on the first traffic access instruction includes:
[0009] Through the different gateways of the first unit in a state of mutual communication, a preset first routing protocol or a preset second routing protocol is run to re-network the second VPN channel to perform switch access processing on the first traffic access instruction.
[0010] Optionally, the step of running a preset first routing protocol or a preset second routing protocol through different gateways of the first unit in a state of mutual communication, and re-forming a second VPN channel network to perform a switching access processing step on the first traffic access instruction includes:
[0011] Running a preset first routing protocol or a preset second routing protocol through different gateways of the first unit in a state of mutual communication, and determining a third gateway of the first unit that communicates with the second gateway of the second unit in a routing convergence manner;
[0012] Re-networking the second VPN channel according to the third gateway;
[0013] The first traffic access instruction is sent to a third gateway of the first unit based on the second VPN channel networking, so that the third gateway processes the first traffic access instruction.
[0014] Optionally, the step of determining the third gateway of the first unit communicating with the second gateway of the second unit in a routing convergence manner includes:
[0015] Obtaining respective numbers of second traffic access instructions to be processed by other gateways other than the first gateway of the first unit;
[0016] The third gateway of the first unit that communicates with the second gateway of the second unit is determined by the respective numbers of the second traffic access instructions and the routing convergence mode.
[0017] Optionally, the step of determining whether the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in an interrupted state corresponding to the first VPN channel includes:
[0018] Calling a preset detection tool to detect network delay and network packet loss on the first VPN channel at intervals of a first preset time period;
[0019] If it is detected that there is a network delay phenomenon or a packet loss phenomenon that exceeds a preset number of times under the first VPN channel, it is determined that the corresponding first VPN channel is in an interrupted state.
[0020] Optionally, the second unit includes a plurality of different gateways, and the plurality of different gateways of the second unit are in a state of mutual communication;
[0021] The step of re-networking the second VPN channel through different gateways of the first unit in a state of mutual communication to switch access processing of the first traffic access instruction includes:
[0022] Through the different gateways of the first unit in a state of mutual communication and the different gateways of the second unit in a state of mutual communication, the second VPN channel networking is re-performed to perform switching access processing on the first traffic access instruction.
[0023] Optionally, the first unit includes a plurality of different gateways, and the step of the plurality of different gateways of the first unit being in mutual communication includes:
[0024] The first unit includes multiple different gateways, the multiple different gateways of the first unit are in a preset routing domain, and the multiple different gateways of the first unit are configured with all IP network segments in the preset routing domain, and the multiple different gateways of the first unit are in a state of mutual communication.
[0025] The present invention also provides a VPN channel networking device, the VPN channel networking method is applied to a first unit, and the VPN channel networking device includes:
[0026] A communication connection module, used for establishing communication connections between multiple different gateways in the first unit through physical links;
[0027] a judgment module, configured to, upon receiving a first traffic access instruction from a second unit, judge whether a second gateway of the second unit that sends the first traffic access instruction and a first gateway of the first unit that receives the first traffic access instruction are in an interrupted state corresponding to a first VPN channel;
[0028] A networking module is used to re-network the second VPN channel through different gateways of the first unit that are in a state of mutual communication, so as to switch access processing of the first traffic access instruction if the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in a first VPN channel interruption state.
[0029] Optionally, the networking module includes:
[0030] The switching unit is used to run the preset first routing protocol or the preset second routing protocol through different gateways of the first units in a state of mutual communication, and re-network the second VPN channel to switch access processing for the first traffic access instruction.
[0031] Optionally, the switching unit includes:
[0032] a determination subunit, configured to run a preset first routing protocol or a preset second routing protocol through different gateways of the first units in a state of mutual communication, and determine a third gateway of the first unit that communicates with the second gateway of the second unit in a routing convergence manner;
[0033] A first re-networking subunit, configured to re-network the second VPN channel according to the third gateway;
[0034] The sending subunit is used to send the first traffic access instruction to the third gateway of the first unit based on the second VPN channel networking, so that the third gateway processes the first traffic access instruction.
[0035] Optionally, the determining subunit is used to implement:
[0036] Obtaining respective numbers of second traffic access instructions to be processed by other gateways other than the first gateway of the first unit;
[0037] The third gateway of the first unit that communicates with the second gateway of the second unit is determined by the respective numbers of the second traffic access instructions and the routing convergence mode.
[0038] Optionally, the judging module includes:
[0039] A calling unit, configured to call a preset detection tool to detect network delay and network packet loss on the first VPN channel at intervals of a first preset time period;
[0040] The determination unit is configured to determine that the corresponding first VPN channel is in an interrupted state if it is detected that a network delay phenomenon exists in the first VPN channel or a packet loss phenomenon exists for a period exceeding a preset number of times.
[0041] Optionally, the second unit includes a plurality of different gateways, and the plurality of different gateways of the second unit are in a state of mutual communication;
[0042] The networking module includes:
[0043] The second re-networking sub-unit is used to re-network the second VPN channel through different gateways of the first unit in a state of mutual communication and different gateways of the second unit in a state of mutual communication, so as to switch access processing for the first traffic access instruction.
[0044] Optionally, the networking module includes:
[0045] A networking unit, used for the first unit, includes multiple different gateways, the multiple different gateways of the first unit are in a preset routing domain, and the multiple different gateways of the first unit are configured with all IP network segments in the preset routing domain, and the multiple different gateways of the first unit are in a state of mutual communication.
[0046] The present invention also provides a VPN channel networking device, which includes: a memory, a processor, and a VPN channel networking program stored in the memory and executable on the processor, wherein the VPN channel networking program implements the steps of the VPN channel networking method described above when executed by the processor.
[0047] The present invention also provides a medium, on which a VPN channel networking program is stored, and when the VPN channel networking program is executed by a processor, the steps of the VPN channel networking method as described above are implemented.
[0048] Multiple different gateways in the first unit of the present invention establish a communication connection through a physical link. When receiving a first traffic access instruction from a second unit, it is determined whether the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in an interrupted state corresponding to the first VPN channel; if the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in an interrupted state of the first VPN channel, the second VPN channel networking is re-performed through the different gateways of the first unit that are in a state of mutual communication to perform switching access processing on the first traffic access instruction. In the present application, the VPN channels established between the second unit and the first unit are no longer unrelated to each other. Instead, when the first unit includes multiple different gateways, the multiple different gateways of the first unit are in a state of mutual communication to achieve that if the second gateway of the second unit sending the first traffic access instruction and the first gateway of the first unit receiving the first traffic access instruction are in a state of interruption of the first VPN channel, the second VPN channel networking can be re-performed through the different gateways of the first unit in a state of mutual communication to switch access processing of the first traffic access instruction, thereby avoiding affecting the corresponding associated services or reducing the availability of the associated services when the second gateway of the second unit sending the first traffic access instruction and the first gateway of the first unit receiving the first traffic access instruction are in a corresponding VPN channel interruption state. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A schematic diagram of the flow of the first embodiment of the VPN channel networking method of the present invention;
[0050] Figure 2 A detailed flow chart of the step of obtaining the node to be processed based on the contents of all the files in the second embodiment of the VPN channel networking method of the present invention;
[0051] Figure 3 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.
[0052] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0053] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0054] The present invention provides a VPN channel networking method. In an embodiment of the VPN channel networking method, referring to Figure 1 The VPN channel networking method is applied to a first unit, and the VPN channel networking method includes:
[0055] Step S10, multiple different gateways in the first unit establish communication connections through physical links;
[0056] Step S20, when receiving the first traffic access instruction of the second unit, determining whether the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in an interrupted state corresponding to the first VPN channel;
[0057] Step S30, if the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in a first VPN channel interruption state, the second VPN channel networking is re-performed through different gateways of the first unit that are in a state of mutual communication to switch access processing of the first traffic access instruction.
[0058] The specific steps are as follows:
[0059] Step S10, multiple different gateways in the first unit establish communication connections through physical links;
[0060] Step S20, when receiving the first traffic access instruction of the second unit, determining whether the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in an interrupted state corresponding to the first VPN channel;
[0061] In this embodiment, the VPN channel networking method is applied to the first unit, which can be various financial enterprises or various groups, etc. The second unit is similar, which can also be various financial enterprises or various groups, etc. It should be noted that the first unit is provided with various gateways, such as the first gateway, the third gateway, the fourth gateway, etc., and each gateway is a connection point or access point of different VPN channels, and the multiple different gateways and the corresponding gateway of the second unit are in a state where a VPN channel can be generated, wherein the VPN channel generation process can be: establishing a virtual link channel or a virtual data link between two VPN nodes (different gateways), and the network information of the two gateways, such as IP addresses, tunnel names, keys of both parties, encryption, authentication algorithms, etc., can reach each other through this virtual data link. Among them, multiple gateways in the first unit and multiple gateways in the second unit, or multiple gateways in the first unit and one gateway of the second unit are in a state where a VPN channel can be generated. That is, the multiple different gateways in the first unit and the corresponding multiple gateways of the second unit can be in a one-to-one correspondence or a one-to-many correspondence. That is, for the first unit, each gateway of the first unit can generate a VPN channel with a gateway of the second unit, or each gateway of the first unit can generate a VPN channel with multiple gateways of the second unit. In addition to the various gateways set in the first unit, the multiple different gateways of the first unit are in a state of mutual communication.
[0062] It should be noted that the existing different VPN channels are independent of each other at the network level. That is to say, in the prior art, each gateway of the first unit does not communicate with each other. Therefore, when a VPN channel is interrupted, the associated services of the interrupted VPN channel will be interrupted. In this embodiment, the multiple different gateways of the first unit are in a state of mutual communication. Specifically, the multiple different gateways of the first unit can be connected through physical lines to be in a state of mutual communication. Therefore, after a VPN channel is interrupted, the multiple different gateways are in a state of mutual communication, so the switching of the VPN channel can be achieved.
[0063] When a first traffic access instruction of a second unit is received, the first traffic refers to various types of instructions such as data sending and data request. It is determined whether the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in an interrupted state corresponding to the first VPN channel. The purpose of determining whether the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in an interrupted state corresponding to the first VPN channel is to determine whether it is necessary to switch the VPN channel based on other gateways that are in a state of mutual communication.
[0064] The first unit includes a plurality of different gateways, and the steps of the plurality of different gateways of the first unit being in a state of mutual communication include:
[0065] The first unit includes multiple different gateways, the multiple different gateways of the first unit are in a preset routing domain, and the multiple different gateways of the first unit are configured with all IP network segments in the preset routing domain, and the multiple different gateways of the first unit are in a state of mutual communication.
[0066] In this embodiment, in order to realize that the multiple different gateways of the first unit are in a state of mutual communication, the multiple different gateways of the first unit are placed in a preset routing domain, and the multiple different gateways of the first unit are configured with all the IP network segments in the preset routing domain. Since the multiple different gateways of the first unit are configured with all the IP network segments in the preset routing domain, when a VPN channel is in an interrupted state, it is possible to obtain the IP network segment corresponding to the affected business, and switch the IP network segment corresponding to the affected business to other gateways, thereby laying a foundation for realizing the switching of the VPN channel.
[0067] For example, the two access gateways of enterprise A and the gateway of enterprise B have established a VPN channel 1 and channel 2 respectively. The IP network segments of the interested flows of channel 1 and channel 2 are no longer just configured with the IP network segments required by the channel itself, but also with the IP network segments of the interested flows of the other channel, so that when the channel is switched, the traffic of the channel can pass through the other channel. After switching part of the IP traffic of channel 1 to channel 2, the load sharing of the traffic is realized, avoiding the business impact range when a single channel is interrupted.
[0068] Step S20, if the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in a first VPN channel interruption state, the second VPN channel networking is re-performed through different gateways of the first unit that are in a state of mutual communication to switch access processing of the first traffic access instruction.
[0069] If the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in a first VPN channel interruption state, the second VPN channel networking is re-performed through different gateways of the first unit that are in a state of mutual communication, and the second VPN channel is different from the first VPN channel, so as to perform switching access processing on the first traffic access instruction. For example, when the first VPN channel corresponding to the second gateway a and the first gateway b is in an interrupted state, a VPN channel is re-established based on other gateways c and the first gateway b, so as to perform switching access processing on the first traffic access instruction.
[0070] The step of re-networking the second VPN channel through different gateways of the first unit in a state of mutual communication to switch access processing of the first traffic access instruction includes:
[0071] Step S21, running a preset first routing protocol or a preset second routing protocol through different gateways of the first unit in a state of mutual communication, re-forming a second VPN channel network to perform a switch access process on the first traffic access instruction.
[0072] Among them, the preset first routing protocol can be selected as a preset dynamic routing protocol, that is, the required routing table is generated and maintained through the exchange of routing information, that is, when the network topology changes, the first routing protocol can automatically update the routing table and determine the best path for data transmission; the preset second routing protocol can be selected as a preset static routing protocol, that is, the routing entry or routing path is manually configured rather than dynamically determined. In addition, in other embodiments, a third route can be preset for routing to realize the second VPN channel networking, and the third route can be selected as a preset direct route. The preset direct route is discovered by the link layer protocol, generally referring to the path to the network segment where the interface address of the router is located. The path information does not need to be maintained by the network administrator, nor does it need to be calculated by the router through a certain algorithm. As long as the interface is active (Active), the router will fill in the routing information leading to the network segment into the routing table. The direct route cannot enable the router to obtain routing information that is not directly connected to it. In this embodiment, the preset first routing protocol can also be a preset static routing protocol, a preset dynamic routing protocol, etc., and the preset second routing protocol is also, which is not specifically limited here.
[0073] Through the different gateways of the first unit in a state of mutual communication, a preset first routing protocol or a preset second routing protocol is run to re-network the second VPN channel to perform switch access processing on the first traffic access instruction.
[0074] The step of running a preset first routing protocol or a preset second routing protocol through different gateways of the first unit in a state of mutual communication, re-forming a second VPN channel network, and performing a switching access processing step for the first traffic access instruction includes:
[0075] Step S211, running a preset first routing protocol or a preset second routing protocol through different gateways of the first unit in a state of mutual communication, and determining a third gateway of the first unit that communicates with the second gateway of the second unit through a routing convergence method;
[0076] In this embodiment, a preset first routing protocol or a preset second routing protocol is run through different gateways of the first unit that are in a state of mutual communication, and a third gateway of the first unit that communicates with the second gateway of the second unit is determined through a routing convergence method, wherein the routing convergence method refers to abandoning the existing path and starting the converged path (because the existing path is abandoned, the alternative paths are reduced and therefore converged accordingly), and enabling the backup path with the least resource consumption through a preset routing calculation formula, wherein the preset routing calculation formula can be a calculation formula for obtaining the gateway nodes that each backup path needs to pass through, and when fewer gateway nodes are passed through, less resources are consumed, and the third gateway is obtained according to the backup path with the least resource consumption.
[0077] Step S212, re-networking the second VPN channel according to the third gateway;
[0078] Step S213: sending the first traffic access instruction to the third gateway of the first unit based on the second VPN channel networking, so that the third gateway processes the first traffic access instruction.
[0079] The second VPN channel networking is re-performed according to the third gateway to determine the processing path of the first traffic access instruction, that is, the first traffic access instruction is sent to the third gateway of the first unit based on the second VPN channel networking, so that the third gateway can process the first traffic access instruction.
[0080] For example, when the local channel is interrupted, the main route from the local gateway to enterprise B disappears due to the detection of the interruption. The route will converge to the interconnected link to reach the remote gateway, and then reach enterprise B through the remote gateway and the channel of enterprise B. Gateway 1 of enterprise B is also configured with a backup route to reach a gateway on the other end, pointing to another gateway on the other end. When one channel is interrupted, the route automatically converges to another channel due to the detection of the interruption, thereby realizing automatic switching of the round-trip traffic and continuing business access.
[0081] Multiple different gateways in the first unit of the present invention establish a communication connection through a physical link. When receiving a first traffic access instruction from a second unit, it is determined whether the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in an interrupted state corresponding to the first VPN channel; if the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in an interrupted state of the first VPN channel, the second VPN channel networking is re-performed through the different gateways of the first unit that are in a state of mutual communication to perform switching access processing on the first traffic access instruction. In the present application, the VPN channels established between the second unit and the first unit are no longer unrelated to each other. Instead, when the first unit includes multiple different gateways, the multiple different gateways of the first unit are in a state of mutual communication to achieve that if the second gateway of the second unit sending the first traffic access instruction and the first gateway of the first unit receiving the first traffic access instruction are in a state of interruption of the first VPN channel, the second VPN channel networking can be re-performed through the different gateways of the first unit in a state of mutual communication to switch access processing of the first traffic access instruction, thereby avoiding affecting the corresponding associated services or reducing the availability of the associated services when the second gateway of the second unit sending the first traffic access instruction and the first gateway of the first unit receiving the first traffic access instruction are in a corresponding VPN channel interruption state.
[0082] Further, based on the first embodiment, the present invention provides another embodiment of the VPN channel networking method. In this embodiment, the step of determining the third gateway of the first unit communicating with the second gateway of the second unit by means of routing convergence includes:
[0083] Step A1, obtaining the respective numbers of second traffic access instructions to be processed by other gateways other than the first gateway of the first unit;
[0084] In this embodiment, the respective numbers of the second traffic access instructions to be processed by other gateways other than the first gateway of the first unit are obtained. The purpose of obtaining the respective numbers is to select a third gateway to process the first traffic access instructions in a timely manner.
[0085] Step A2: determining the third gateway of the first unit that communicates with the second gateway of the second unit according to the number of each of the second traffic access instructions and the routing convergence mode.
[0086] The gateway that currently processes the least number of second traffic access instructions is selected as the third gateway through a routing convergence method. The routing convergence method refers to abandoning the existing path and selecting the gateway that currently processes the least number of second traffic access instructions from the converged path (because the existing path is abandoned, the alternative paths are reduced and converged accordingly) as the third gateway.
[0087] In this embodiment, by obtaining the respective numbers of the second traffic access instructions to be processed by other gateways other than the first gateway of the first unit, and determining the third gateway of the first unit that communicates with the second gateway of the second unit according to the respective numbers of the second traffic access instructions and the routing convergence mode, the first traffic access instruction is quickly processed.
[0088] Further, based on the first embodiment, the present invention provides another embodiment of the VPN channel networking method, wherein the step of determining whether the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in an interrupted state corresponding to the first VPN channel includes:
[0089] Step B1, calling a preset detection tool to detect network delay and network packet loss of the first VPN channel at intervals of a first preset time period;
[0090] Step B2: if it is detected that there is a network delay phenomenon or a packet loss phenomenon that exceeds a preset number of times under the first VPN channel, it is determined that the corresponding first VPN channel is in an interrupted state.
[0091] In this embodiment, there is a preset detection tool, which detects network delay and network packet loss of the first VPN channel at intervals of a first preset time period.
[0092] If it is detected that the first VPN channel has a network delay or a periodic packet loss phenomenon exceeding a preset number of times, it is determined that the corresponding first VPN channel is in an interrupted state. Among them, if it is detected that the second gateway of the first VPN channel has not received the target reception packet within the corresponding time period, it means that there is a network delay in the first VPN channel. In addition, if it is detected that the first VPN channel has more than 3 periodic packet losses and all of them are the second-ranked data packets lost, it is determined that the first VPN channel has a periodic packet loss phenomenon of a preset number of times.
[0093] After obtaining the first VPN channel in the abnormal state, isolating the first VPN channel in the abnormal state.
[0094] In this embodiment, a preset detection tool is called to detect network delay and network packet loss for the first VPN channel at intervals of a first preset time period; if a network delay phenomenon or a packet loss phenomenon exceeding a preset number of periods is detected under the first VPN channel, it is determined that the corresponding first VPN channel is in an interrupted state. This embodiment can accurately determine the first VPN channel in an interrupted state.
[0095] Further, based on the first embodiment, the present invention provides another embodiment of the VPN channel networking method, in which the second unit includes a plurality of different gateways, and the plurality of different gateways of the second unit are in a state of mutual communication;
[0096] The step of re-networking the second VPN channel through different gateways of the first unit in a state of mutual communication to switch access processing of the first traffic access instruction includes:
[0097] Step C1, re-networking the second VPN channel through different gateways of the first unit in a state of mutual communication and different gateways of the second unit in a state of mutual communication, so as to perform switch access processing on the first traffic access instruction.
[0098] In this embodiment, the second VPN channel networking is re-performed through different gateways of the first unit in a state of mutual communication and different gateways of the second unit in a state of mutual communication to switch access processing of the first traffic access instruction. That is, in this embodiment, the second unit includes multiple different gateways, and the multiple different gateways of the second unit are in a state of mutual communication. Since the multiple different gateways of the second unit are in a state of mutual communication, the second VPN channel networking is not only performed through the third gateway, but the networking scope of the second VPN channel networking is broadened, thereby potentially improving the processing efficiency of the first traffic access instruction access.
[0099] Reference Figure 3 , Figure 3 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.
[0100] The VPN channel networking device in the embodiment of the present invention may be a PC, or may be a terminal device such as a smart phone, a tablet computer, or a portable computer.
[0101] like Figure 3As shown, the VPN channel networking device may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize the connection and communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0102] Optionally, the VPN channel networking device may also include a target user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, etc. The target user interface may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional target user interface may also include a standard wired interface and a wireless interface. The network interface may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
[0103] Those skilled in the art will understand that Figure 3 The VPN channel networking device structure shown in the figure does not constitute a limitation on the VPN channel networking device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0104] like Figure 3 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module and a VPN channel networking program. The operating system is a program that manages and controls the hardware and software resources of the VPN channel networking device, and supports the operation of the VPN channel networking program and other software and / or programs. The network communication module is used to realize the communication between the components inside the memory 1005, and the communication with other hardware and software in the VPN channel networking device.
[0105] exist Figure 3 In the VPN channel networking device shown, the processor 1001 is used to execute the VPN channel networking program stored in the memory 1005 to implement the steps of any of the above-mentioned VPN channel networking methods.
[0106] The specific implementation of the VPN channel networking device of the present invention is basically the same as the above-mentioned VPN channel networking method embodiments, and will not be repeated here.
[0107] In addition, an embodiment of the present invention further provides a VPN channel networking device, which is applied to a first unit and includes:
[0108] a judgment module, configured to, upon receiving a first traffic access instruction from a second unit, judge whether a second gateway of the second unit that sends the first traffic access instruction and a first gateway of the first unit that receives the first traffic access instruction are in an interrupted state corresponding to a first VPN channel;
[0109] A networking module is used to re-network the second VPN channel through different gateways of the first unit that are in a state of mutual communication, so as to switch access processing of the first traffic access instruction if the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in a first VPN channel interruption state.
[0110] Optionally, the networking module includes:
[0111] The switching unit is used to run the preset first routing protocol or the preset second routing protocol through different gateways of the first units in a state of mutual communication, and re-network the second VPN channel to switch access processing for the first traffic access instruction.
[0112] Optionally, the switching unit includes:
[0113] a determination subunit, configured to run a preset first routing protocol or a preset second routing protocol through different gateways of the first units in a state of mutual communication, and determine a third gateway of the first unit that communicates with the second gateway of the second unit in a routing convergence manner;
[0114] A first re-networking subunit, configured to re-network the second VPN channel according to the third gateway;
[0115] The sending subunit is used to send the first traffic access instruction to the third gateway of the first unit based on the second VPN channel networking, so that the third gateway processes the first traffic access instruction.
[0116] Optionally, the determining subunit is used to implement:
[0117] Obtaining respective numbers of second traffic access instructions to be processed by other gateways other than the first gateway of the first unit;
[0118] The third gateway of the first unit that communicates with the second gateway of the second unit is determined by the respective numbers of the second traffic access instructions and the routing convergence mode.
[0119] Optionally, the judging module includes:
[0120] A calling unit, configured to call a preset detection tool to detect network delay and network packet loss on the first VPN channel at intervals of a first preset time period;
[0121] The determination unit is configured to determine that the corresponding first VPN channel is in an interrupted state if it is detected that a network delay phenomenon exists in the first VPN channel or a packet loss phenomenon exists for a period exceeding a preset number of times.
[0122] Optionally, the second unit includes a plurality of different gateways, and the plurality of different gateways of the second unit are in a state of mutual communication;
[0123] The networking module includes:
[0124] The second re-networking sub-unit is used to re-network the second VPN channel through different gateways of the first unit in a state of mutual communication and different gateways of the second unit in a state of mutual communication, so as to switch access processing for the first traffic access instruction.
[0125] Optionally, the networking module includes:
[0126] A networking unit, used for the first unit, includes multiple different gateways, the multiple different gateways of the first unit are in a preset routing domain, and the multiple different gateways of the first unit are configured with all IP network segments in the preset routing domain, and the multiple different gateways of the first unit are in a state of mutual communication.
[0127] The specific implementation of the VPN channel networking device is basically the same as the above-mentioned VPN channel networking method embodiments, and will not be repeated here.
[0128] In addition, the present invention also provides a computer medium, which stores one or more programs. The one or more programs can also be executed by one or more processors to implement the steps of each embodiment of the above-mentioned VPN channel networking method.
[0129] The extended contents of the specific implementation methods of the device and medium (ie, computer medium) of the present invention are basically the same as those of the above-mentioned VPN channel networking method embodiments, and are not described in detail here.
[0130] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0131] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0132] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0133] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A VPN channel networking method, It is characterized in that The VPN channel networking method is applied to a first unit, and the VPN channel networking method includes: A plurality of different gateways in the first unit establish communication connections via physical links; When receiving the first traffic access instruction of the second unit, determining whether the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in an interrupted state corresponding to the first VPN channel; If the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in a first VPN channel interruption state, the second VPN channel networking is re-performed through the different gateways of the first unit that are in a state of mutual communication to switch access processing for the first traffic access instruction; each gateway of the first unit generates a VPN channel with a gateway of the second unit; multiple different gateways of the first unit are placed in a preset routing domain, and the multiple different gateways of the first unit are configured with all IP network segments in the preset routing domain to achieve acquisition of IP network segments corresponding to the affected services; The IP network segment corresponding to the affected service is switched to another gateway, thereby achieving the switching of the VPN channel.
2. The VPN channel networking method according to claim 1, It is characterized in that The step of re-networking the second VPN channel through different gateways of the first unit in a state of mutual communication to switch access processing of the first traffic access instruction includes: Through the different gateways of the first unit in a state of mutual communication, a preset first routing protocol or a preset second routing protocol is run to re-network the second VPN channel to perform switch access processing on the first traffic access instruction.
3. The VPN channel networking method according to claim 2, It is characterized in that The step of running a preset first routing protocol or a preset second routing protocol through different gateways of the first unit in a state of mutual communication, re-forming a second VPN channel network, and performing a switching access processing step for the first traffic access instruction includes: Running a preset first routing protocol or a preset second routing protocol through different gateways of the first unit in a state of mutual communication, and determining a third gateway of the first unit that communicates with the second gateway of the second unit in a routing convergence manner; Re-networking the second VPN channel according to the third gateway; The first traffic access instruction is sent to a third gateway of the first unit based on the second VPN channel networking, so that the third gateway processes the first traffic access instruction.
4. The VPN channel networking method according to claim 3, It is characterized in that The step of determining the third gateway of the first unit communicating with the second gateway of the second unit by means of routing convergence comprises: Obtaining respective numbers of second traffic access instructions to be processed by other gateways other than the first gateway of the first unit; The third gateway of the first unit that communicates with the second gateway of the second unit is determined by the respective numbers of the second traffic access instructions and the routing convergence mode.
5. The VPN channel networking method according to any one of claims 1 to 4, It is characterized in that The step of determining whether the second gateway of the second unit that sends the first traffic access instruction and the first gateway of the first unit that receives the first traffic access instruction are in an interrupted state corresponding to the first VPN channel includes: Calling a preset detection tool to detect network delay and network packet loss on the first VPN channel at intervals of a first preset time period; If it is detected that there is a network delay phenomenon or a packet loss phenomenon that exceeds a preset number of times under the first VPN channel, it is determined that the corresponding first VPN channel is in an interrupted state.
6. The VPN channel networking method according to claim 1, It is characterized in that The second unit includes a plurality of different gateways, and the plurality of different gateways of the second unit are in a state of mutual communication; The step of re-networking the second VPN channel through different gateways of the first unit in a state of mutual communication to switch access processing of the first traffic access instruction includes: Through the different gateways of the first unit in a state of mutual communication and the different gateways of the second unit in a state of mutual communication, the second VPN channel networking is re-performed to perform switching access processing on the first traffic access instruction.
7. The VPN channel networking method according to claim 1, It is characterized in that The first unit includes a plurality of different gateways, and the steps of the plurality of different gateways of the first unit being in a state of mutual communication include: The first unit includes multiple different gateways, the multiple different gateways of the first unit are in a preset routing domain, and the multiple different gateways of the first unit are configured with all IP network segments in the preset routing domain, and the multiple different gateways of the first unit are in a state of mutual communication.
8. A VPN channel networking device, It is characterized in that The VPN channel networking device is applied to a first unit, and the VPN channel networking device includes: A communication connection module, used for establishing communication connections between multiple different gateways in the first unit through physical links; a judgment module, configured to, upon receiving a first traffic access instruction from a second unit, judge whether a second gateway of the second unit that sends the first traffic access instruction and a first gateway of the first unit that receives the first traffic access instruction are in an interrupted state corresponding to a first VPN channel; A networking module, used for re-networking the second VPN channel through different gateways of the first unit in a state of mutual communication to switch access processing for the first traffic access instruction if the second gateway of the second unit sending the first traffic access instruction and the first gateway of the first unit receiving the first traffic access instruction are in a first VPN channel interruption state; each gateway of the first unit generates a VPN channel with a gateway of the second unit; multiple different gateways of the first unit are placed in a preset routing domain, and the multiple different gateways of the first unit are configured with all IP network segments in the preset routing domain, so as to obtain the IP network segments corresponding to the affected services; The IP network segment corresponding to the affected service is switched to another gateway, thereby achieving the switching of the VPN channel.
9. A VPN channel networking device, It is characterized in that The device comprises: a memory, a processor, and a VPN channel networking program stored in the memory and executable on the processor. When the VPN channel networking program is executed by the processor, the steps of the VPN channel networking method according to any one of claims 1 to 7 are implemented.
10. A medium, It is characterized in that The medium stores a VPN channel networking program, which, when executed by a processor, implements the steps of the VPN channel networking method according to any one of claims 1 to 7.
