CN109257235A - Network Abnormal restoration methods, device, equipment and computer readable storage medium - Google Patents

Network Abnormal restoration methods, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN109257235A
CN109257235A CN201811349521.2A CN201811349521A CN109257235A CN 109257235 A CN109257235 A CN 109257235A CN 201811349521 A CN201811349521 A CN 201811349521A CN 109257235 A CN109257235 A CN 109257235A
Authority
CN
China
Prior art keywords
configuration
message
forwarding
forwarding process
abnormal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811349521.2A
Other languages
Chinese (zh)
Other versions
CN109257235B (en
Inventor
李帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN201811349521.2A priority Critical patent/CN109257235B/en
Publication of CN109257235A publication Critical patent/CN109257235A/en
Application granted granted Critical
Publication of CN109257235B publication Critical patent/CN109257235B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0659Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
    • H04L41/0661Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities by reconfiguring faulty entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1408Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
    • H04L63/1425Traffic logging, e.g. anomaly detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of Network Abnormal restoration methods; this method comprises: when receiving the configuration message that control plane issues; configuration load operation corresponding with the configuration message is executed respectively by preset configuration backup process and the first forwarding process; wherein, the first forwarding process is the copy of the configuration backup process;During executing the configuration load operation, detect whether the first forwarding process is abnormal;When detecting that the first forwarding process is abnormal, according to one the second forwarding process of the configuration backup process creation being currently running, the second forwarding process is the copy for the configuration backup process being currently running, and executes the configuration load operation by the second forwarding process of creation.The invention also discloses a kind of Network Abnormal recovery device, equipment and a kind of computer readable storage mediums.The present invention can reduce the recovery time of forwarded service exception.

Description

Network Abnormal restoration methods, device, equipment and computer readable storage medium
Technical field
The present invention relates to network communication technology field more particularly to Network Abnormal restoration methods, device, equipment and computers Readable storage medium storing program for executing.
Background technique
Existing application layer network system is generally divided into control plane (Control Plane) and data plane (Data Plane, also referred to as Forwarding plane), wherein control plane refers to the part for being used to transmit message, calculate list item in system, such as agreement Message forwarding, protocol item calculate, maintenance etc. belong to control plane scope, and Forwarding plane refer in system be used to counted According to the part of encapsulation, the forwarding of message, reception, decapsulation, encapsulation, forwarding of data message etc. belong to Forwarding plane Scope.
In the prior art, Forwarding plane may be abnormal due to itself loophole, by external attack etc., when Forwarding plane occur it is abnormal and when exiting, can only restore to forward by way of restarting Forwarding plane or forwarding process into Journey, and the process for reacquiring configuration from control plane including one of restarting of process is forwarded, in the case where configuring more, obtain Take the time of configuration can be longer, this will lead to whole network forwarding service and interrupts the long period, to influence the upper dictyosome of user It tests.
Summary of the invention
It is a primary object of the present invention to propose a kind of Network Abnormal restoration methods, device, equipment and computer-readable deposit Storage media, it is intended to reduce the recovery time of forwarded service exception.
To achieve the above object, the present invention provides a kind of Network Abnormal restoration methods, the Network Abnormal restoration methods packet Include following steps:
When receiving the configuration message that control plane issues, pass through preset configuration backup process and the first forwarding process Configuration load operation corresponding with the configuration message is executed respectively, wherein the first forwarding process is the configuration backup The copy of process;
During executing the configuration load operation, detect whether the first forwarding process is abnormal;
When detecting that the first forwarding process is abnormal, according to the configuration backup process creation being currently running One second forwarding process, the second forwarding process is the copy for the configuration backup process being currently running, and passes through creation The second forwarding process execute configuration load and operate.
Preferably, described when receiving the configuration message that control plane issues, by preset configuration backup process and Before the step of first forwarding process executes configuration load operation corresponding with the configuration message respectively, further includes:
In the starting of Forwarding plane system, a preset configuration backup process is enabled;
Fork bifurcated function is called in the configuration backup process, is father to create one with the configuration backup process First forwarding process of process;
Initialize static configuration list item, network interface card resource and the kernel of the configuration backup process and the first forwarding process Mutual resource.
Preferably, described when receiving the configuration message that control plane issues, by preset configuration backup process and First forwarding process executes the step of corresponding with configuration message configuration load operation respectively and includes:
The configuration message that control plane issues is received by preset configuration backup process, and judges that the configuration message is Synchronization message or asynchronous message;
When the configuration message is synchronization message, the configuration message is sent to the first forwarding process, so that The first forwarding process executes configuration load operation corresponding with the configuration message;It is received by the configuration backup process The configuration result information that the first forwarding process returns, and the configuration result information is fed back into the control plane;When When the configuration result information is configuration successful, controls the configuration backup process and execute configuration corresponding with the configuration message Load operation;
When the configuration message is asynchronous message, the configuration message is sent to the first forwarding process, and control It makes the configuration backup process and the first forwarding process is performed simultaneously configuration load operation corresponding with the configuration message.
Preferably, the synchronization message includes interface creation message, described when the configuration message is synchronization message, will The configuration message is sent to the first forwarding process, so that the first forwarding process execution is corresponding with the configuration message Configuration load operation the step of include:
When the configuration message be interface create message when, by the interface creation message be sent to described first forward into Journey connects so that the first forwarding process creates message establishing one corresponding kernel virtual network device according to the interface Mouthful, and obtain filec descriptor corresponding with the kernel virtual network device interface;
It is described when the configuration result information is configuration successful, control the configuration backup process and execute and the configuration The corresponding configuration of message loads the step of operating
When the kernel virtual network device interface creates successfully, the configuration backup process is controlled from described first turn Hair process obtains the filec descriptor, and the filec descriptor that will acquire is saved.
Preferably, described during executing the configuration load operation, detect whether the first forwarding process is sent out Before raw abnormal step, further includes:
Father and son's pipeline is established between the configuration backup process and the first forwarding process;
It is described during executing configuration load operation, whether detection the first forwarding process is abnormal Step includes:
During executing the configuration load operation, the first forwarding process is carried out by father and son's pipeline It monitors in real time;
When listening to the Surface Rupture Events of father and son's pipeline, determine that the first forwarding process is abnormal.
Preferably, described when detecting that the first forwarding process is abnormal, according to the configuration being currently running Backup process create one second forwarding process the step of include:
When detecting that the first forwarding process is abnormal, called in the configuration backup process being currently running Fork bifurcated function, using creation one using the configuration backup process being currently running as the second forwarding process of parent process;
Initialize the second forwarding process.
Preferably, described after detecting that the first forwarding process is abnormal, the basis is currently being transported Before capable one the second forwarding process of configuration backup process creation, further includes:
It is sent by the configuration backup process to the control plane and prevents message to prevent the control plane from carrying out Configuration message issues;
Before described the step of executing the configuration load operation by the second forwarding process of creation, further includes:
When the second forwarding process creation success, the control plane is notified to put wildcard and set issuing for message.
In addition, to achieve the above object, the present invention also provides a kind of Network Abnormal recovery device, the Network Abnormal restores Device includes:
Loading module is configured, for passing through preset configuration backup when receiving the configuration message that control plane issues Process and the first forwarding process execute configuration load operation corresponding with the configuration message respectively, wherein first forwarding Process is the copy of the configuration backup process;
Detection module, for whether during executing the configuration load operation, detecting the first forwarding process It is abnormal;
Recovery module, for being matched according to what is be currently running when detecting that the first forwarding process is abnormal It purchases one the second forwarding process of part process creation, the second forwarding process is the configuration backup process being currently running Copy executes the configuration load operation by the second forwarding process of creation.
In addition, to achieve the above object, the present invention also provides a kind of Network Abnormal restorer, the Network Abnormal restores Equipment includes: memory, processor and to be stored in the Network Abnormal that can be run on the memory and on the processor extensive Multiple program, the Network Abnormal recovery routine realize Network Abnormal restoration methods as described above when being executed by the processor Step.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium Network Abnormal recovery routine is stored on storage medium, the Network Abnormal recovery routine realizes institute as above when being executed by processor The step of Network Abnormal restoration methods stated.
Network Abnormal restoration methods proposed by the present invention, due to configuration backup process perform it is identical as the first forwarding process Configuration load operation, therefore it can back up all configurations before the first forwarding process is abnormal, when first forward into When Cheng Yichang, only subsequent configuration need to be executed according to the configuration backup process creation being currently running one new forwarding process Load operation, can be realized the recovery of Network Abnormal, and compared with the prior art, the present invention is not necessarily to match from configuration plane reacquisition It sets, so as to reduce the recovery time of forwarded service exception, promotes the online experience of user.
Detailed description of the invention
Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of inventive network abnormal restoring method first embodiment;
Fig. 3 is the composition schematic diagram of application layer network system in the embodiment of the present invention;
Fig. 4 is the module diagram of one embodiment of inventive network abnormal restoring device.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are: when receiving the configuration message that control plane issues, by pre- If configuration backup process and the first forwarding process executes corresponding with configuration message configuration respectively and loads and operate, wherein The first forwarding process is the copy of the configuration backup process;During executing the configuration load operation, detection Whether the first forwarding process is abnormal;When detecting that the first forwarding process is abnormal, according to currently One second forwarding process of configuration backup process creation of operation, the second forwarding process are to be currently running with purchasing The copy of part process, the second forwarding process for passing through creation execute the configuration load operation.
In the prior art, Forwarding plane may be abnormal due to itself loophole, by external attack etc., when Forwarding plane occur it is abnormal and when exiting, can only restore to forward by way of restarting Forwarding plane or forwarding process into Journey, and the process for reacquiring configuration from control plane including one of restarting of process is forwarded, in the case where configuring more, obtain Take the time of configuration can be longer, this will lead to whole network forwarding service and interrupts the long period, to influence the upper dictyosome of user It tests.
Network Abnormal restoration methods proposed by the present invention, due to configuration backup process perform it is identical as the first forwarding process Configuration load operation, therefore it can back up all configurations before the first forwarding process is abnormal, when first forward into When Cheng Yichang, only subsequent configuration need to be executed according to the configuration backup process creation being currently running one new forwarding process Load operation, can be realized the recovery of Network Abnormal, and compared with the prior art, the present invention is not necessarily to match from configuration plane reacquisition It sets, so as to reduce the recovery time of forwarded service exception, promotes the online experience of user.
As shown in Figure 1, Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
Network Abnormal restorer of the embodiment of the present invention can be PC machine, server, interchanger or gateway.
As shown in Figure 1, the Network Abnormal restorer may include: processor 1001, such as CPU, network interface 1004, User interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing between these components Connection communication.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional User interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include standard Wireline interface, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable Memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned The storage device of processor 1001.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 1, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe module, Subscriber Interface Module SIM and Network Abnormal recovery routine.
In terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server Data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data communication with client;And processor 1001 can be used for calling the Network Abnormal recovery routine stored in memory 1005, and execute following Network Abnormal restoration methods Operation in embodiment.
Based on above-mentioned hardware configuration, inventive network abnormal restoring method embodiment is proposed.
It is the flow diagram of inventive network abnormal restoring method first embodiment, the method packet referring to Fig. 2, Fig. 2 It includes:
Step S10 passes through preset configuration backup process and first when receiving the configuration message that control plane issues Forwarding process executes configuration load operation corresponding with the configuration message respectively, wherein the first forwarding process is described The copy of configuration backup process;
It is the composition schematic diagram of application layer network system in the embodiment of the present invention referring to Fig. 3, Fig. 3.Existing application layer net Network system is generally divided into control plane (Control Plane) and data plane (Data Plane, also referred to as Forwarding plane), In, control plane is responsible for external configuration interface and configuration inspection storage etc., and Forwarding plane is responsible for network service, and message turns The processing etc. of hair.The present embodiment Network Abnormal restoration methods are applied to the Forwarding plane in application layer network system.
In the present embodiment, there are a configuration backup process and one first forwarding process, the configurations in Forwarding plane For backup process for backing up to the first forwarding process, which is the copy of the configuration backup process.
When carrying out business forwarding and processing, Forwarding plane receives the configuration message that control plane issues first, then leads to It crosses preset configuration backup process and the first forwarding process executes configuration load operation corresponding with the configuration message respectively, In, configuration load operation includes but is not limited to that assembly function configuration, routing interface configuration and rule issue.
It further, can be comprising steps of enabling one in the starting of Forwarding plane system before above-mentioned steps S10 A preset configuration backup process;Fork bifurcated function is called in the configuration backup process, is matched with creation with described for one Set the first forwarding process that backup process is parent process;It initializes the configuration backup process and described first and forwards the quiet of process State configures list item, network interface card resource and kernel mutual resource.
In the present embodiment, in the starting of Forwarding plane system, a preset configuration backup process is enabled, is then matched at this Calling fork bifurcated function in backup process is set, it is possible thereby to create one using the configuration backup process as a son of parent process Process, i.e., the first forwarding process, the first forwarding process are the copy of the configuration backup process, and it is empty that it will obtain parent process data Between, the copies of the resources such as heap, stack;And then initialize the static configuration list item, net of the configuration backup process He the forwarding process Card resource and kernel mutual resource, specifically, the first first forwarding process is at the beginning of the progress such as network interface card, forwarding table and forwarding queue Beginningization, and configure process only to some static configuration list items, such as NAT (Network Address Translation, network Location conversion) table initialized, and then the first forwarding process sends some network interface card resources and kernel mutual resource to purchasing Part process, is saved by configuration backup process, thus completes the initialization of configuration backup process and the first forwarding process.
By calling the copy of fork bifurcated function creation configuration backup process, and by the pair of configuration backup process and creation This process carries out initialization process, and the program is simple and easy, and provides premise for subsequent network abnormal restoring.Certainly, It, can also be flexibly using the side of other copies that can be realized creation configuration backup process when specific implementation in addition to fork bifurcated function Formula.
Step S20, during executing the configuration load operation, it is different whether detection the first forwarding process occurs Often;
During executing configuration load operation, Forwarding plane can detecte whether the first forwarding process is abnormal. In one embodiment, Forwarding plane can directly monitor the first forwarding process by a default oracle listener, with Judge whether it is abnormal;It in another embodiment, can also include: described with purchasing before above-mentioned steps S20 Father and son's pipeline is established between part process and the first forwarding process;Step S20 may include: and match described in the execution at this time During setting load operation, the first forwarding process is monitored in real time by father and son's pipeline;When listening to When stating the Surface Rupture Events of father and son's pipeline, determine that the first forwarding process is abnormal.
Wherein, father and son's pipeline is a kind of one-way data channel between parent process and subprocess, its standard a process The input of the standard of output and another process links together, and in the present embodiment, the first forwarding process exception will will lead to it Therefore father and son's pipeline breaking between configuration backup process monitors the first forwarding process by father and son's pipeline in real time, When listening to the Surface Rupture Events of father and son's pipeline, that is, it can determine that the first forwarding process is abnormal.In this way, it realizes Accurate detection to the first forwarding process exception.
Step S30, when detecting that the first forwarding process is abnormal, according to the configuration backup being currently running One second forwarding process of process creation, the second forwarding process is the copy for the configuration backup process being currently running, The configuration load operation is executed by the second forwarding process of creation.
In the step, when detecting that the first forwarding process is abnormal, Forwarding plane is what basis was currently running One second forwarding process of configuration backup process creation, which is the configuration backup process being currently running Copy.Specific creation mode can be with are as follows: fork bifurcated function is called in the configuration backup being currently running carries out, with creation One using the configuration backup process being currently running as the second forwarding process of parent process, which is that this is current The copy for the configuration backup process being currently running, it will obtain the copy of the resources such as parent process data space, heap, stack, and inherit The current all configuration informations of configuration backup process;And then initialization the second forwarding process, including initialization interface information With dynamic entry etc., process initiation recovery can be completed.
Further, described after detecting that the first forwarding process is abnormal, the basis is currently Before one the second forwarding process of configuration backup process creation of operation, can also include: by the configuration backup process to The control plane, which is sent, prevents message to prevent the control plane from carrying out issuing for configuration message;The institute by creation It can also include: when the second forwarding process is created before stating the step of the second forwarding process executes the configuration load operation When building up function, the control plane is notified to put wildcard and set issuing for message.
When detecting that the first forwarding process is abnormal, it can be sent and be prevented to control plane by configuration backup process Message controls the transmission interprocess communication configuration of planar configuration process at this time and disappears to prevent control plane from carrying out issuing for configuration message Can be blocked when breath, configuration message will be stored in inter-process communication mechanisms caching in, with etc. process to be forwarded recovery;When When the second forwarding process creation success, reinforms control plane and put wildcard and set issuing for message, so that network recovery is normal.Pass through It is this that control plane is prevented to carry out the mode that configuration message issues during Network Abnormal restores, it ensure that during Network Abnormal The configuration message that control plane generates will not lose, to improve the reliability of Network Abnormal recovery.
The Network Abnormal restoration methods that the present embodiment proposes, since configuration backup process performs and the first forwarding process phase Same configuration loads operation, therefore it can back up all configurations before the first forwarding process is abnormal, when the first forwarding When process exception, only subsequent match need to be executed according to the configuration backup process creation being currently running one new forwarding process Load operation is set, the recovery of Network Abnormal can be realized, compared with the prior art, the present invention is not necessarily to reacquire from configuration plane Configuration, so as to reduce the recovery time of forwarded service exception, promotes the online experience of user.
Further, it is based on inventive network abnormal restoring method first embodiment, proposes inventive network abnormal restoring Method second embodiment.
In the present embodiment, described when receiving the configuration message that control plane issues, pass through preset configuration backup Process and the first forwarding process execute the step of corresponding with configuration message configuration load operation respectively and may include:
The configuration message that control plane issues is received by preset configuration backup process, and judges that the configuration message is Synchronization message or asynchronous message;When the configuration message is synchronization message, the configuration message is sent to described first Forwarding process, so that the first forwarding process executes configuration load operation corresponding with the configuration message;Matched by described It sets backup process and receives the configuration result information that the first forwarding process returns, and the configuration result information is fed back into institute State control plane;When the configuration result information is configuration successful, controls the configuration backup process and execute and the configuration The corresponding configuration load operation of message;When the configuration message is asynchronous message, the configuration message is sent to described the One forwarding process, and control the configuration backup process and the first forwarding process be performed simultaneously it is corresponding with the configuration message Configuration load operation.
Specifically, normal platform configuration, which issues, generally comprises two kinds of type of messages: 1, synchronization message, and control plane, which is given, to be turned It sends out plane and sends a configuration message, after needing that Forwarding plane processing is waited to complete and return the result, can just issue next match Set message;2, asynchronous message, control plane send configuration management message to Forwarding plane, are indifferent to the processing result of message, no Forwarding plane processing must be waited to complete and return the result.
Based on above two type of message, what Forwarding plane can be issued by configuration backup process reception control plane matches Message is set, and judges to configure message for synchronization message or asynchronous message.It, first will configuration when configuring message is synchronization message Message is sent to the first forwarding process, so that the first forwarding process executes configuration load corresponding with configuration message and operates, then, The configuration result information that the first forwarding process returns is received by configuration backup process, and configuration result information is fed back into control Plane, when configuration result information is configuration successful, control configuration backup process executes configuration corresponding with the configuration message and adds Operation is carried, it is thus achieved that configuration backup process is synchronous with the configuration of the first forwarding process under synchronization message type.Work as configuration When message is asynchronous message, then the configuration message is sent to the first forwarding process, and control configuration backup process and first turn Hair process is performed simultaneously configuration load operation corresponding with the configuration message, realizes configuration backup under asynchronous message type extremely Process is synchronous with the configuration of the first forwarding process.
Further, above-mentioned synchronization message includes interface creation message, described when the configuration message is synchronization message, The configuration message is sent to the first forwarding process, so that the first forwarding process executes and the configuration message pair The step of configuration load operation answered may include: to create the interface when the configuration message is that interface creates message Message is sent to the first forwarding process, so that the first forwarding process is right according to interface creation message establishing one The kernel virtual network device interface answered, and obtain filec descriptor corresponding with the kernel virtual network device interface;
It is described when the configuration result information is configuration successful, control the configuration backup process and execute and the configuration The step of corresponding configuration load of message operates includes: to control institute when the kernel virtual network device interface creates successfully It states configuration backup process and obtains the filec descriptor, and the filec descriptor that will acquire from the first forwarding process It is saved.
Specifically, when configuration backup process receives interface creation message, interface creation message is sent to first First forwarding process, so that the first forwarding process creates message establishing one corresponding kernel virtual network device according to the interface Interface, and obtain filec descriptor corresponding with the kernel virtual network device interface, wherein kernel virtual network device interface The interfaces such as including but not limited to tun/tap;When kernel virtual network device interface creates successfully, control configuration backup process from First forwarding process obtains filec descriptor, and the filec descriptor that will acquire is saved, in this way, since two processes are same This corresponding filec descriptor of kernel virtual network device interface of Shi Chiyou, when forwarding process exception to exit, this kernel Resource will not wither away, and can directly inherit kernel money according to the second forwarding process that configuration backup process is rebuild later Source eliminates the process of kernel resources reconstruction, further reduces the time of Network Abnormal recovery.
Above-mentioned Network Abnormal recovery process eliminates the operation for reloading configuration reading configuration, and eliminates kernel money The reconstruction and configuration in source realize second grade quick restoring mechanism below.
The present invention also provides a kind of Network Abnormal recovery devices, are inventive network abnormal restoring device referring to Fig. 4, Fig. 4 The module diagram of one embodiment, in the present embodiment, described device includes:
Loading module 10 is configured, for when receiving the configuration message that control plane issues, by preset with purchasing Part process and the first forwarding process execute configuration load operation corresponding with the configuration message respectively, wherein described first turn Hair process is the copy of the configuration backup process;
Detection module 20, for during executing the configuration load operation, detecting the first forwarding process to be It is no to be abnormal;
Recovery module 30, for when detecting that the first forwarding process is abnormal, according to what is be currently running One second forwarding process of configuration backup process creation, the second forwarding process is the configuration backup process being currently running Copy, the second forwarding process for passing through creation executes configuration load and operates.
The method of above-mentioned each Implement of Function Module can refer to inventive network abnormal restoring method embodiment, no longer superfluous herein It states.
The Network Abnormal recovery device that the present embodiment proposes, since configuration backup process performs and the first forwarding process phase Same configuration loads operation, therefore it can back up all configurations before the first forwarding process is abnormal, when the first forwarding When process exception, only subsequent match need to be executed according to the configuration backup process creation being currently running one new forwarding process Load operation is set, the recovery of Network Abnormal can be realized, compared with the prior art, the present embodiment without obtaining again from configuration plane Configuration is taken, so as to reduce the recovery time of forwarded service exception, promotes the online experience of user.
The present invention also provides a kind of computer readable storage mediums.
Network Abnormal recovery routine, the Network Abnormal recovery routine are stored on computer readable storage medium of the present invention The step of Network Abnormal restoration methods as described above are realized when being executed by processor.
Wherein, the Network Abnormal recovery routine run on the processor, which is performed realized method, can refer to this The each embodiment of invention Network Abnormal restoration methods, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including several message are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of Network Abnormal restoration methods, which is characterized in that the Network Abnormal restoration methods include the following steps:
When receiving the configuration message that control plane issues, pass through preset configuration backup process and the first forwarding process difference Execute configuration load operation corresponding with the configuration message, wherein the first forwarding process is the configuration backup process Copy;
During executing the configuration load operation, detect whether the first forwarding process is abnormal;
When detecting that the first forwarding process is abnormal, according to the configuration backup process creation being currently running one Second forwarding process, the second forwarding process is the copy for the configuration backup process being currently running, and passes through the institute of creation It states the second forwarding process and executes the configuration load operation.
2. Network Abnormal restoration methods as described in claim 1, which is characterized in that described to receive what control plane issued When configuring message, match corresponding with the configuration message is executed by preset configuration backup process and the first forwarding process respectively Before the step of setting load operation, further includes:
In the starting of Forwarding plane system, a preset configuration backup process is enabled;
Fork bifurcated function is called in the configuration backup process, using creation one using the configuration backup process as parent process First forwarding process;
Initialize static configuration list item, network interface card resource and the kernel interaction of the configuration backup process and the first forwarding process Resource.
3. Network Abnormal restoration methods as described in claim 1, which is characterized in that described to receive what control plane issued When configuring message, match corresponding with the configuration message is executed by preset configuration backup process and the first forwarding process respectively Setting the step of load operates includes:
The configuration message that control plane issues is received by preset configuration backup process, and judges the configuration message to synchronize Message or asynchronous message;
When the configuration message is synchronization message, the configuration message is sent to the first forwarding process, so that described First forwarding process executes configuration load operation corresponding with the configuration message;By described in configuration backup process reception The configuration result information that first forwarding process returns, and the configuration result information is fed back into the control plane;When described When configuration result information is configuration successful, controls the configuration backup process and execute configuration load corresponding with the configuration message Operation;
When the configuration message is asynchronous message, the configuration message is sent to the first forwarding process, and control institute It states configuration backup process and the first forwarding process is performed simultaneously configuration load operation corresponding with the configuration message.
4. Network Abnormal restoration methods as claimed in claim 3, which is characterized in that the synchronization message includes that interface creation disappears Breath, it is described when the configuration message is synchronization message, the configuration message is sent to the first forwarding process, so that institute Stating the step of the first forwarding process executes configuration load operation corresponding with the configuration message includes:
When the configuration message is that interface creates message, interface creation message is sent to the first forwarding process, So that the first forwarding process creates message establishing one corresponding kernel virtual network device interface according to the interface, and Obtain filec descriptor corresponding with the kernel virtual network device interface;
It is described when the configuration result information is configuration successful, control the configuration backup process and execute and the configuration message The step of corresponding configuration load operation includes:
When the kernel virtual network device interface creates successfully, control the configuration backup process from described first forward into Journey obtains the filec descriptor, and the filec descriptor that will acquire is saved.
5. Network Abnormal restoration methods according to any one of claims 1 to 4, which is characterized in that described described in the execution During configuration load operation, before detecting the step of whether the first forwarding process is abnormal, further includes:
Father and son's pipeline is established between the configuration backup process and the first forwarding process;
It is described during executing configuration load operation, the step of whether detection the first forwarding process is abnormal Include:
During executing the configuration load operation, the first forwarding process is carried out by father and son's pipeline real-time It monitors;
When listening to the Surface Rupture Events of father and son's pipeline, determine that the first forwarding process is abnormal.
6. Network Abnormal restoration methods as described in claim 1, which is characterized in that it is described when detect described first forward into When journey is abnormal, include: according to the step of one second forwarding process of the configuration backup process creation being currently running
When detecting that the first forwarding process is abnormal, fork is called in the configuration backup process being currently running Bifurcated function, using creation one using the configuration backup process being currently running as the second forwarding process of parent process;
Initialize the second forwarding process.
7. Network Abnormal restoration methods as described in claim 1, which is characterized in that ought detect first forwarding described After process is abnormal, before one the second forwarding process of configuration backup process creation that the basis is currently running, Further include:
Being sent by the configuration backup process to the control plane prevents message to prevent the control plane from being configured Message issues;
Before described the step of executing the configuration load operation by the second forwarding process of creation, further includes:
When the second forwarding process creation success, the control plane is notified to put wildcard and set issuing for message.
8. a kind of Network Abnormal recovery device, which is characterized in that the Network Abnormal recovery device includes:
Loading module is configured, for passing through preset configuration backup process when receiving the configuration message that control plane issues Configuration load operation corresponding with the configuration message is executed respectively with the first forwarding process, wherein the first forwarding process For the copy of the configuration backup process;
Detection module, for detecting whether the first forwarding process occurs during executing the configuration load operation It is abnormal;
Recovery module, for when detecting that the first forwarding process is abnormal, according to being currently running with purchasing Part one second forwarding process of process creation, the second forwarding process is the pair for the configuration backup process being currently running This, executes the configuration load operation by the second forwarding process of creation.
9. a kind of Network Abnormal restorer, which is characterized in that the Network Abnormal restorer includes: memory, processor And it is stored in the Network Abnormal recovery routine that can be run on the memory and on the processor, the Network Abnormal restores The step of Network Abnormal restoration methods as described in any one of claims 1 to 7 are realized when program is executed by the processor.
10. a kind of computer readable storage medium, which is characterized in that it is different to be stored with network on the computer readable storage medium Normal recovery routine is realized as described in any one of claims 1 to 7 when the Network Abnormal recovery routine is executed by processor The step of Network Abnormal restoration methods.
CN201811349521.2A 2018-11-12 2018-11-12 Network anomaly recovery method, device, equipment and computer readable storage medium Active CN109257235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811349521.2A CN109257235B (en) 2018-11-12 2018-11-12 Network anomaly recovery method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811349521.2A CN109257235B (en) 2018-11-12 2018-11-12 Network anomaly recovery method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109257235A true CN109257235A (en) 2019-01-22
CN109257235B CN109257235B (en) 2022-03-22

Family

ID=65043896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811349521.2A Active CN109257235B (en) 2018-11-12 2018-11-12 Network anomaly recovery method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109257235B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984376A (en) * 2020-09-23 2020-11-24 杭州迪普科技股份有限公司 Protocol processing method, device, equipment and computer readable storage medium
CN114500289A (en) * 2021-12-15 2022-05-13 深信服科技股份有限公司 Control plane recovery method, device, control node and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1477509A (en) * 2002-08-19 2004-02-25 万达信息股份有限公司 Process automatic restoring method
CN1996257A (en) * 2006-12-26 2007-07-11 华为技术有限公司 Method and system for monitoring process
US7925932B1 (en) * 2004-09-20 2011-04-12 Symantec Operating Corporation Method and appartus for detecting an application process failure
CN102681891A (en) * 2012-05-04 2012-09-19 奇智软件(北京)有限公司 Process control method and device for browser input control
CN104572339A (en) * 2013-10-17 2015-04-29 捷达世软件(深圳)有限公司 Data backup restoring system and method based on distributed file system
CN106648870A (en) * 2016-12-28 2017-05-10 北京奇虎科技有限公司 Service restarting method and device
CN108289080A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of methods, devices and systems accessing file system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1477509A (en) * 2002-08-19 2004-02-25 万达信息股份有限公司 Process automatic restoring method
US7925932B1 (en) * 2004-09-20 2011-04-12 Symantec Operating Corporation Method and appartus for detecting an application process failure
CN1996257A (en) * 2006-12-26 2007-07-11 华为技术有限公司 Method and system for monitoring process
CN102681891A (en) * 2012-05-04 2012-09-19 奇智软件(北京)有限公司 Process control method and device for browser input control
CN104572339A (en) * 2013-10-17 2015-04-29 捷达世软件(深圳)有限公司 Data backup restoring system and method based on distributed file system
CN106648870A (en) * 2016-12-28 2017-05-10 北京奇虎科技有限公司 Service restarting method and device
CN108289080A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of methods, devices and systems accessing file system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984376A (en) * 2020-09-23 2020-11-24 杭州迪普科技股份有限公司 Protocol processing method, device, equipment and computer readable storage medium
CN111984376B (en) * 2020-09-23 2023-06-27 杭州迪普科技股份有限公司 Protocol processing method, device, equipment and computer readable storage medium
CN114500289A (en) * 2021-12-15 2022-05-13 深信服科技股份有限公司 Control plane recovery method, device, control node and storage medium
CN114500289B (en) * 2021-12-15 2023-12-29 深信服科技股份有限公司 Control plane recovery method, device, control node and storage medium

Also Published As

Publication number Publication date
CN109257235B (en) 2022-03-22

Similar Documents

Publication Publication Date Title
CN109582472B (en) Micro-service processing method and device
CN107590072B (en) Application development and test method and device
RU2379755C2 (en) System and method for sharing objects between computers over network
EP3837604B1 (en) In situ triggered function as a service within a service mesh
CN109165050B (en) Program running method and device, computing equipment and storage medium
CN108304247A (en) The method and apparatus of access camera, server, readable storage medium storing program for executing
CN108256118B (en) Data processing method, device, system, computing equipment and storage medium
CN103294559B (en) Mobile terminal applies exchange method and system
CN109542659A (en) Using more activating methods, equipment, data center's cluster and readable storage medium storing program for executing
CN103631652A (en) Method and system for achieving virtual machine migration
CN109257235A (en) Network Abnormal restoration methods, device, equipment and computer readable storage medium
CN107341059A (en) A kind of wechat public number concurrent message treatment mechanism
CN110673970B (en) Cross-process calling system and method based on web application
CN111416851A (en) Method for session synchronization among multiple load balancers and load balancer
CN111274047A (en) Information processing method, terminal, system, computer device and storage medium
CN108712298A (en) Upgrading network equipment method, apparatus, the network equipment and storage medium
CN108347456B (en) Application program downloading method and device
CN112511595B (en) Message pushing method and message service system
CN111905361B (en) Game service system, game processing method, storage medium and device
CN112637540B (en) Multi-client audio and video call connection method, device, equipment and storage medium
CN110971696B (en) System and method for realizing virtual electronic card communication
CN110413333B (en) Micro-service management method and device of Windows system based on NodeJS and PowerShell
CN112667441A (en) Service module scheduling method, system and storage medium based on fault-tolerant function
CN111416852A (en) Method for session synchronization among multiple load balancers and load balancer
CN115580667B (en) Data transmission method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Network anomaly recovery methods, devices, devices, and computer-readable storage media

Effective date of registration: 20231212

Granted publication date: 20220322

Pledgee: Shenzhen Branch of China Merchants Bank Co.,Ltd.

Pledgor: SANGFOR TECHNOLOGIES Inc.

Registration number: Y2023980070863