CN105340226B - The method and device thereof of the main preparation system switching of dynamic routing equipment - Google Patents
The method and device thereof of the main preparation system switching of dynamic routing equipment Download PDFInfo
- Publication number
- CN105340226B CN105340226B CN201480036222.7A CN201480036222A CN105340226B CN 105340226 B CN105340226 B CN 105340226B CN 201480036222 A CN201480036222 A CN 201480036222A CN 105340226 B CN105340226 B CN 105340226B
- Authority
- CN
- China
- Prior art keywords
- lsa
- neighbours
- routing
- routing device
- information
- 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.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
- Telephonic Communication Services (AREA)
Abstract
This application discloses the method and device thereof of the main preparation system of dynamic routing equipment switching.Wherein, the method includes:Before active-standby switch, the standby system of the dynamic routing equipment obtains control information, neighbor state and LSA mark;When carrying out active-standby switch, the standby system is in the preset time that the main system last time apart from dynamic routing equipment sends the first message, according to the neighbor state to the second message of all neighbours' routing device active transmissions, so that neighbours' routing device and the dynamic routing equipment maintain adjacency state;The standby system, which is identified according to the LSA to neighbours' routing device, learns LSA information, and carries out routing update according to the LSA information.Through the above scheme, it can realize that routing is not interrupted in active-standby switch.
Description
【Technical field】
This application involves network communication field, method more particularly to the main preparation system switching of dynamic routing equipment and its
Device.
【Background technique】
The backup of neighbor state and routing iinformation is not present between the main preparation system of existing dynamic routing equipment.Work as dynamic routing
Device fails and when carrying out main preparation system switching, neighbours' routing device of the dynamic routing equipment is due to perceiving the dynamic
Routing device breaks down and actively exits neighborhood, and deletes all routing iinformations by neighbor learning.Meanwhile this is dynamic
State routing device equally can neighborhood between its neighbours' routing device interrupt, and arrived in main system by neighbor learning
Routing iinformation is deleted, and due to the standby system not backup to neighbor state and routing iinformation, is caused during active-standby switch
The routing iinformation of dynamic routing equipment is lost completely.After active-standby switch completion, the dynamic routing equipment and its neighbours road
Renegotiated by equipment establish neighborhood and, both sides again respectively carry out route learning recapture routing iinformation.
Therefore, during active-standby switch, dynamic routing equipment and its neighbours' routing device will appear long period road
By losing, i.e., routing is interrupted, and then uplink and downlink business is caused to be interrupted because of route querying failure.
【Summary of the invention】
The application provide dynamic routing equipment main preparation system switching method and device thereof, can in active-standby switch,
It can be realized routing not interrupt.
The application first aspect provides a kind of method of the main preparation system switching of dynamic routing equipment, and the dynamic routing is set
The standby mode operation with main preparation system, including:Before active-standby switch, the standby system of the dynamic routing equipment obtains control letter
Breath, neighbor state and connection status declaring LSA mark, wherein the neighbor state includes at least one and the dynamic routing
Equipment currently has the identification information of neighbours' routing device of syntople, and the control information is set for the dynamic routing
Negotiation standby, between neighbours' routing device is adjacent, and the LSA identifies LSA information for identification;It is described when carrying out active-standby switch
Standby system is in the preset time that the main system last time apart from the dynamic routing equipment sends the first message, according to the neighbours
State is to the second message of all neighbours' routing device active transmissions, so that neighbours' routing device and the dynamic routing
Equipment maintains adjacency state, wherein first message, the second message are used to that dynamic routing equipment, neighbours' routing is maintained to set
Adjacency state between standby;The standby system is identified according to the LSA to neighbours' routing device study LSA information, and according to
The LSA information carries out routing update.
With reference to first aspect, in the first possible embodiment of first aspect, the standby system is marked according to the LSA
Know information and learn LSA information to neighbours' routing device, and routing update is carried out according to the LSA information and includes:It is described standby
System is identified according to the LSA, is sent connection status to neighbours' routing device and is requested link state request packet, so that the neighbours road
Link state update packet is updated by device replied connection status corresponding with LSA mark;The standby system receives the link state update packet, root
Connection status database LSDB is established according to the link state update packet, and sends confirming electrical connection status LSACK to neighbours' routing device
Message, to prompt LSA update to terminate;The standby system completes router-level topology according to the LSDB, updates routing and topology information.
The first possible embodiment with reference to first aspect, in second of possible embodiment of first aspect, institute
It states standby system to be identified according to the LSA, sending connection status request link state request packet to neighbours' routing device includes:It is described standby
System is identified according to the LSA, sends link state request packet to neighbours' routing device, and be information load by neighbor state transition
State;The standby system receives the link state update packet, establishes connection status database LSDB according to the link state update packet, and to described
Neighbours' routing device sends confirming electrical connection status LSACK message:The standby system receives the link state update packet, according to described
Link state update packet establishes LSDB, and sends LSACK message to neighbours' routing device, and be complete by the neighbor state transition
Adjacency state.
With reference to first aspect or the first or second kind possible embodiment of first aspect, the third in first aspect can
In energy embodiment, the standby system of the dynamic routing equipment obtains control information, neighbor state and connection status declaring LSA mark
Knowledge includes:The standby system of the dynamic routing equipment obtains control information, neighbor state, the LSA mark that main system is backed up in realtime.
With reference to first aspect or first aspect first to any possible embodiment of third, the 4th of first aspect the
In kind possible embodiment, the standby system, which is identified according to the LSA to neighbours' routing device, learns LSA information, and root
Carrying out routing update later according to the LSA information further includes:The standby system is as new main system, to the master as new standby system
The control information of the dynamic routing equipment, neighbor state and LSA are identified at present for system backup.
With reference to first aspect or first to fourth any possible embodiment of first aspect, the 5th of first aspect the
In kind possible embodiment, further include:When main system breaks down or main system is upgraded, active-standby switch is executed.
The application second aspect provides a kind of standby system of dynamic routing equipment, and the dynamic routing equipment is with main preparation system
Mode operation, the standby system of the dynamic routing equipment includes receiving module, sending module and processing module, the reception mould
Block is used for before active-standby switch, obtains control information, neighbor state and connection status declaring LSA mark, wherein the neighbours
State includes the identification information that at least one currently has neighbours' routing device of syntople with the routing device, the control
Negotiation of the information processed between the dynamic routing equipment and neighbours' routing device is adjacent, and LSA believes the LSA mark for identification
Breath;The sending module is used for when carrying out active-standby switch, and the standby system is in the dynamic routing equipment main system
In the secondary preset time for sending the first message, the neighbor state obtained according to the receiving module is set to all neighbours' routings
Standby the second message of active transmission, so that neighbours' routing device and the dynamic routing equipment maintain adjacency state, wherein institute
State the first message, the second message is used to maintain the adjacency state between the dynamic routing equipment and neighbours' routing device;It is described
Processing module is used to be identified according to the LSA that the receiving module obtains to neighbours' routing device study LSA information, and according to
The LSA information carries out routing update.
In conjunction with second aspect, in the first possible embodiment of second aspect, the processing module is used for according to institute
The LSA for stating receiving module acquisition, which is identified, learns LSA information to neighbours' routing device, and carries out road according to the LSA information
It is specially by update:The LSA mark obtained according to the receiving module sends connection status request to neighbours' routing device
Link state request packet, so that neighbours' routing device, which replys connection status corresponding with LSA mark, updates link state update packet;Receive institute
Link state update packet is stated, connection status database LSDB is established according to the link state update packet, and send and connect to neighbours' routing device
State confirmation LSACK message, to prompt LSA update to terminate;Router-level topology is completed according to the LSDB, updates routing and topology letter
Breath.
In conjunction with the first possible embodiment of second aspect, in second of possible embodiment of second aspect, place
The LSA that reason module is used to be obtained according to the receiving module is identified, and is sent connection status to neighbours' routing device and is requested LSR
Message receives the link state update packet, establishes connection status database LSDB according to the link state update packet, and set to neighbours routing
Preparation send confirming electrical connection status LSACK message to be more specifically:The LSA mark obtained according to the receiving module, to the neighbours
Routing device sends link state request packet, and is information stress state by neighbor state transition;The link state update packet is received, according to described
Link state update packet establishes LSDB, and sends LSACK message to neighbours' routing device, and be complete by the neighbor state transition
Adjacency state.
In conjunction with second aspect or the first or second kind possible embodiment of second aspect, the third in second aspect can
In energy embodiment, the receiving module is specifically used for obtaining control information, the neighbor state, LSA mark that main system is backed up in realtime
Know.
In conjunction with second aspect or second aspect first to any possible embodiment of third, the 4th of second aspect the
In kind possible embodiment, the processing module is also used to identify according to the LSA to neighbours' routing device study LSA
Information, and after carrying out routing update according to the LSA information, the standby system is determined as new main system, to as newly standby
The main system of system backs up the control information of the dynamic routing equipment, neighbor state and LSA mark at present.
In conjunction with second aspect or first to fourth any possible embodiment of second aspect, the 5th of second aspect the
In kind possible embodiment, when main system breaks down or main system is upgraded, standby system executes active-standby switch.
The application third aspect provides a kind of standby system of dynamic routing equipment, and the dynamic routing equipment is with main preparation system
Mode operation, the standby system of the dynamic routing equipment includes processor and transmitter, the transmitter be used for it is described
There is dynamic routing equipment neighbours' routing device of syntople to send information;The processor is used for:Before active-standby switch,
Obtain control information, neighbor state and connection status declaring LSA mark, wherein the neighbor state includes at least one and institute
Dynamic routing equipment is stated currently and has the identification information of neighbours' routing device of syntople, the control information is for described dynamic
Negotiation between state routing device and neighbours' routing device is adjacent, and the LSA identifies LSA information for identification;Carrying out active and standby cut
When changing, in the preset time that the main system last time apart from the dynamic routing equipment sends the first message, according to the neighbours
State makes the transmitter to the second message of all neighbours' routing device active transmissions so that neighbours' routing device with
The dynamic routing equipment maintains adjacency state, wherein first message, the second message are used to maintain the dynamic routing
Adjacency state between equipment and neighbours' routing device;It is identified according to the LSA to neighbours' routing device and learns LSA information,
And routing update is carried out according to the LSA information.
It further include receiver, for receiving in the first possible embodiment of the third aspect in conjunction with the third aspect
State the information of neighbours' routing device;The processor, which is also used to be identified according to the LSA to neighbours' routing device, learns LSA
Information, and routing update is carried out according to the LSA information and is specially:It is identified according to the LSA, makes transmitter to the neighbours road
Connection status is sent by equipment and requests link state request packet, so that neighbours' routing device replys connection corresponding with LSA mark
State updates link state update packet;Connection status database LSDB is established according to the link state update packet that the receiver receives, and is made
Transmitter sends confirming electrical connection status LSACK message to neighbours' routing device, to prompt LSA update to terminate;According to described
LSDB completes router-level topology, updates routing and topology information.
In conjunction with the first possible embodiment of the third aspect, in second of possible embodiment of the third aspect, institute
Processor is stated for identifying according to the LSA, transmitter is made to send connection status request LSR report to neighbours' routing device
Text establishes connection status database LSDB according to the link state update packet that the receiver receives, and makes transmitter to the neighbours road
Confirming electrical connection status LSACK message is sent by equipment to be more specifically:It is identified according to the LSA, makes transmitter to the neighbours road
Link state request packet is sent by equipment, and is information stress state by neighbor state transition;Described in being received according to the receiver
Link state update packet establishes LSDB, and so that transmitter is sent LSACK message to neighbours' routing device, and the neighbor state is become
It moves to completely abut against state.
In conjunction with the third aspect or the first or second kind possible embodiment of the third aspect, the third in the third aspect can
In energy embodiment, the processor is also used to obtain control information, neighbor state, the LSA mark that main system is backed up in realtime.
In conjunction with the third aspect or the third aspect first to any possible embodiment of third, the 4th of the third aspect the
In kind possible embodiment, the processor is also used to identify according to the LSA to neighbours' routing device study LSA letter
Breath, and after carrying out routing update according to the LSA information, the standby system is determined as new main system, is to as newly standby
The main system of system backs up the control information of the dynamic routing equipment, neighbor state and LSA mark at present.
In conjunction with the third aspect or first to fourth any possible embodiment of the third aspect, the 5th of the third aspect the
In kind possible embodiment, when main system breaks down or main system is upgraded, standby system executes active-standby switch.
The application fourth aspect provides a kind of dynamic routing equipment, including main system and standby system, wherein the main system
For being identified to the standby system backup control information, neighbor state and connection status declaring LSA before active-standby switch;
The standby system is as described above for system.
Above scheme dynamic routing equipment is in active-standby switch, standby the second message of system elder generation active transmission, so that neighbours road
Syntople is maintained by equipment and the dynamic routing equipment, that is, realizes the neighbour of neighbours' routing device Yu the dynamic routing equipment room
It occupies relationship not interrupt, while dynamic routing equipment is identified before active-standby switch to standby system backup LSA, relative to LSA information,
The information content of LSA mark is small, and the standby system of the dynamic routing equipment is identified according to the LSA of backup to neighbours in active-standby switch
Routing device learns LSA information, so that complete LSA information is obtained to carry out routing update, when realizing main preparation system switching
Quick reparation to syntople, and the case where routing is interrupted is avoided, and in such a way that above-mentioned half backup half learns, dynamic
Routing device only back up a small amount of information can be realized routing do not interrupt.
【Detailed description of the invention】
Fig. 1 is the flow chart of one embodiment of method of the main preparation system switching of the application dynamic routing equipment;
Fig. 2 is the part-structure signal of the dynamic routing equipment network where before active-standby switch for the method shown in Fig. 1 that executes
Figure;
Fig. 3 is the part-structure signal of the dynamic routing equipment network where after active-standby switch for the method shown in Fig. 1 that executes
Figure;
Fig. 4 is the flow chart of another embodiment of method of the main preparation system switching of the application dynamic routing equipment;
Fig. 5 is the structural schematic diagram of one embodiment of standby system of the application dynamic routing equipment;
Fig. 6 is the structural schematic diagram of another embodiment of standby system of the application dynamic routing equipment.
【Specific embodiment】
In being described below, for illustration and not for limitation, propose such as specific system structure, interface, technology it
The detail of class, so as to provide a thorough understanding of the present application.However, it will be clear to one skilled in the art that there is no these specific
The application also may be implemented in the other embodiment of details.In other situations, omit to well-known device, circuit with
And the detailed description of method, so as not to obscure the description of the present application with unnecessary details.
It is one embodiment of method of the main preparation system switching of the application dynamic routing equipment to Fig. 3, Fig. 1 refering to fig. 1
Flow chart, Fig. 2 are the part-structure signals of the dynamic routing equipment network where before active-standby switch for the method shown in Fig. 1 that executes
Figure, Fig. 3 are the partial structure diagrams of the dynamic routing equipment network where after active-standby switch for the method shown in Fig. 1 that executes.
In present embodiment, the method is executed by dynamic routing equipment 110, the net where dynamic routing equipment 110
In network, dynamic routing equipment 110 and at least one neighbours' routing device 220 establish syntople.Wherein, the dynamic routing equipment
110 include main system 111 and standby system 112, the main preparation system with the mode operation of main preparation system, i.e. dynamic routing equipment 110
For two of dynamic routing equipment 110 can mutual backup control system, for example, two control mainboards, in order in main system
111 break down or when main system 111 upgrades, standby 112 adapter tube main system 111 of system.This method includes:
101:Before active-standby switch, the standby system of the dynamic routing equipment obtains control information, neighbor state and company
Connect state declaration (English:Link-State Advertisement, referred to as:LSA it) identifies, wherein the neighbor state includes
At least one currently has the identification information of neighbours' routing device of syntople, the control letter with the dynamic routing equipment
Negotiation of the breath between the dynamic routing equipment, neighbours' routing device is adjacent, and the LSA identifies LSA information for identification.
Dynamic routing equipment can as automatically set up the routing table of oneself in the application, and can be according to practical feelings
The variation of condition is in time adjusted the routing device of routing iinformation.For example, before active-standby switch, the master of dynamic routing equipment
When system detection is to newly-increased neighbours' routing device, neighbours' routing device is increased newly with this and is held consultation adjoining, and it is new to automatically generate this
Increase neighborhood, the corresponding LSA information of neighbours' routing device.
Specifically, control information may include the information such as the IP address of configuration information, interface message, neighbours' routing device, dynamic
The standby system 112 of routing device 110 realizes the configurations of dynamic routing equipment according to configuration information, and standby system 112 is according to connecing
The information realizations such as the IP address of message breath, neighbours' routing device and neighbours' routing device are negotiated to establish or maintain to abut.
For example, user matches confidence by man-machine interface input dynamic routing equipment 110 before active-standby switch occurs
Breath or dynamic routing equipment 110 directly acquire and are pre-stored in local configuration information, and are issued, dynamic routing equipment 110
Main system 111 and standby system 112 receive the configuration information issued, to guarantee that dynamic routing equipment 110 can be according to matching
Confidence breath is configured.Also, the main system 111 of dynamic routing equipment 110 is by current neighbor state, LSA is identified and it
He controls information such as interface message and backups in standby system 112.Alternatively, main system 111 first receives the configuration information issued, it will
The configuration information and other backup informations are backuped to together in standby system 112.Wherein, LSA, which is identified as, can identify the LSA letter
The data of breath, such as the ID or title etc. of LSA information, main system 111 is obtained from the current LSA information of dynamic routing device 110
Its ID or name is taken to be referred to as the LSA mark of the LSA information.Neighbor state includes all in current network topology and dynamic road
By equipment 110 currently with the identification information such as ID of neighbours' routing device 120 etc. of syntople.
102:When carrying out active-standby switch, the standby system sent first in the main system last time apart from dynamic routing equipment
In the preset time of message, according to the neighbor state to the second message of all neighbours' routing device active transmissions, so that
Neighbours' routing device and the dynamic routing equipment maintain adjacency state, wherein first message, the second message are used
Adjacency state between maintenance dynamic routing equipment, neighbours' routing device.
When main system 111 operates normally, main system 111 and neighbours' routing device 120 establish neighborhood, and carry out letter
Breath interaction.If main system 111 breaks down or upgraded, active-standby switch is executed, at this point, the control of standby system 112
Face needs the control plane information of adapter tube main system 111 immediately, and the neighborhood of main system 111 and neighbours' routing device 120
It need to be switched in standby system 112.
Specifically, present embodiment is ospf (English with dynamic routing equipment 110:Open
Shortest Path First, referred to as:OSPF) for routing device:According to OSPL agreement, the neighbor state packet of routing device
Include three kinds:1, state, hereinafter also referred to Full state are completely abutted against, i.e., has carried out LSA information between discovery neighborhood and neighbours
Interaction;2, information stress state, hereinafter also referred to Loading state, i.e. discovery neighbours and the friendship for carrying out LSA information
Mutually;3, original state, hereinafter also referred to Down state, i.e., do not find neighbours.When operating normally, dynamic routing equipment 110
Main system 111 can be periodically the hello with the transmission of neighbours' routing device 120 2_way of syntople to neighbours' routing device
Message, to maintain backfence bidirectional relationship.When neighbours' routing device 120 does not receive the hello of 2_way within a preset time
Message, then it is assumed that syntople interrupts, and the neighbor state of neighbours' routing device 120 becomes Down state from Full state.Into
When row active-standby switch, standby system 112 carries out dynamic routing equipment 110 according to acquisition control information realization adapter tube main system 111
Control, and in the preset time of hello packet for being 2_way apart from the first message of 111 last time of main system transmission, actively
To all neighbours' routing devices 120 send the second message i.e. also be 2_way hello packet so that in network with dynamic routing
There is equipment 110 neighbor state of neighbours' routing device 120 of syntople to be maintained Full state, i.e. neighbours' routing device
Adjacency state, the main system 111 and neighbours' routing device of dynamic routing equipment 110 are maintained between 120 and dynamic routing equipment 110
On neighborhood successful switch to standby system 112 between 120.
It is understood that the first, second message can according to the agreement between dynamic routing equipment and neighbours' routing device and
Specific setting, generally, the first, second message are the message of same type, example as above, dynamic routing equipment and neighbours' routing device
Between by hello packet maintain syntople, i.e. the first, second message is hello packet.
103:The standby system, which is identified according to the LSA to neighbours' routing device, learns LSA information, and according to described
LSA information carries out routing update.
For example, do not have specific LSA information due to there was only LSA mark at this time for system 112, therefore dynamic routing equipment
110 neighborhood is set as Loading state.Standby system 112 sends LSA mark to neighbours' routing device 120, so that neighbours road
It is identified from equipment 120 according to the LSA to standby system 112 and sends corresponding LSA information, realize the study of LSA information.Standby system
112 establish connection status database (English according to the LSA information that neighbours' routing device 120 returns:Link State Data
Base, referred to as:LSDB), at this point, completing neighborhood reparation, dynamic routing equipment between dynamic routing equipment, neighbours' routing device
110 neighborhood is set as Full state.Also, the LSA information that standby system 112 is returned according to neighbours' routing device 120, uses
SPF algorithm calculates the path of each purpose network, realizes routing update.
Referring to Fig. 4, Fig. 4 is the stream of another embodiment of method of the main preparation system switching of the application dynamic routing equipment
Cheng Tu.In present embodiment, the method is executed as the dynamic routing equipment as described in embodiment above.This method includes:
401:Before active-standby switch, the standby system of the dynamic routing equipment obtains control information, neighbor state and LSA
Mark, wherein the neighbor state includes the neighbours road that at least one currently has syntople with the dynamic routing equipment
By the identification information of equipment, negotiation of the control information between the dynamic routing equipment, neighbours' routing device is adjacent, institute
State LSA mark LSA information for identification.
402:When carrying out active-standby switch, the standby system is in the preset time for sending the first message apart from main system last time
It is interior, according to the neighbor state to the second message of all neighbours' routing device active transmissions, so that neighbours routing is set
It is standby to maintain adjacency state with the dynamic routing equipment, wherein first message, the second message are used to maintain dynamic routing
Adjacency state between equipment, neighbours' routing device.
Above-mentioned 401, corresponding 101,102 as in embodiment above of 402 concrete modes, therefore details are not described herein.
403:Standby system is identified according to the LSA, sends connection status request (English to neighbours' routing device:
Link State Request, referred to as:LSR) message, so that neighbours' routing device reply is corresponding with LSA mark
Connection status updates (English:Link State Update, referred to as:LSU) message.
Continue by taking OSPL routing device as an example.General neighbours' establishment process divides syntople to establish, specifies routing device
(English:Designated Router, referred to as:DR)/back up specified routing device (English:Backup Designated
Router, referred to as:BDR) election, routing device discovery, routing device selection and routing iinformation safeguard several processes.In this programme
Syntople is established and DR/BDR election directly according to the synchronizing information of backup and sends the hello packet of 2_way, such as above
201, it describes in 202.The process of routing device discovery is also LSDB synchronization process, including link data description (English:
Data Description, referred to as:DD) interactive and LSA study, DD interaction are that LSA mark updates synchronizing process, current standby system
The LSA mark for having backed up former master, that is, do not need DD interactive process.It is set so only needing to be identified according to LSA at this time to neighbours' routing
Standby study LSA information, forms the independent complete LSDB of oneself.So being identified actively for system according to the LSA of backup at this time
Link state request packet is sent to neighbours, that is, neighbours' routing device, and neighbor state is transitted towards Loading state.
404:The standby system receives the link state update packet, establishes LSDB according to the link state update packet, and to the neighbours road
Confirming electrical connection status (English is sent by equipment:Link State Acknowledment, referred to as:LSACK) message, with prompt
LSA update terminates.
The neighborhood of neighbours' routing device will be considered that it is just due to having been at Full state after receiving link state request packet
Normal LSA renewal process, and normally reply LSA and update message.The standby system of dynamic routing equipment receives neighbours' routing device
LSA updates message, and updates the LSDB of local terminal, and can reply LSACK message simultaneously, confirms that this LSA renewal process terminates.
After the completion of all LSA information learnings, the LSDB of dynamic routing equipment, which is rebuild, to be completed, and dynamic routing equipment, neighbours' routing are set
Neighborhood reparation is completed between standby.At this point, the neighborhood of dynamic routing equipment is set as Full state.
405:The standby system completes router-level topology according to the LSDB, updates routing and topology information.
After dynamic routing equipment rebuilds complete independent LSDB, content of the standby system according to LSDB is independently calculated with SPF
Method calculates the path of each purpose network, and path is stored in routing table, realizes and updates routing and topology information.
406:The standby system backs up the dynamic routing at present as new main system, to the main system as new standby system
Control information, neighbor state and the LSA mark of equipment.
After completing routing update, topology is stable, and having completely taken over main system at this time for system is new main system,
Former main system is then used as new standby system, new main system to new standby system backup at present the neighbor state of the dynamic routing equipment,
LSA mark and control information such as interface message, and keep realtime uniform.
It is understood that above- mentioned information backup is excellent to guarantee that network topology will not change after main preparation system switching
It is selected as backing up in realtime, i.e., if configuration information is updated, real time down is to main preparation system if dynamic routing equipment, or in real time
It is handed down to main system, then is backed up in realtime by main system to standby system.If neighbor state, LSA mark or interface message become
Change, then main system is backed up in realtime into standby system.Certainly, the dynamic routing equipment more stable in other links and interface message
In, the mode of timed backup can also be used in dynamic routing equipment, is not limited thereto.
Also, the application dynamic routing equipment specifically by taking OSPF routing device as an example but is not limited to OSPF routing device,
The application is equally applicable to the similar routing device of other Routing Protocols, such as Border Gateway Protocol (English:Border Gateway
Protocol, abbreviation BGP), tag distribution protocol (English:Label Distribution Protocol, referred to as:LDP), more
Protocol label exchange (English:Multi-Protocol Label Switching, referred to as:MPLS) etc..
Present embodiment is backed up by only backing up to partial information before active-standby switch, and especially using incomplete
LSA information and the mode for only backing up LSA mark lower the requirement to standby system resource to reduce backup information amount.Meanwhile
When carrying out active-standby switch, standby system sends the second message to neighbours' routing device before timing time-out, to guarantee that neighbours' routing is set
It is standby that syntople is maintained with dynamic routing equipment, realize not interrupting for during active-standby switch neighborhood.Meanwhile standby system
System, which is identified according to LSA to neighbours' routing device, to be learnt to LSA information, thus obtain complete LSA information to carry out routing update,
Network topology is consistent after switching when realizing main preparation system switching to the reparation of syntople and guarantee main preparation system.This implementation
Mode using above-mentioned half backup half learn by the way of, be not necessarily to the change agreement of neighbours' routing device in active-standby switch process, only
Back up a small amount of information can be realized routing do not interrupt.
Referring to Fig. 5, Fig. 5 is the structural schematic diagram of one embodiment of standby system of the application dynamic routing equipment.This Shen
Dynamic routing equipment please is such as the dynamic routing equipment in embodiment above.In the network where dynamic routing equipment,
Dynamic routing equipment and at least one neighbours' routing device establish syntople (as shown in Figure 2,3).Also, the dynamic routing is set
The standby mode operation with main preparation system, i.e. dynamic routing equipment include main system and standby system, which is dynamic routing
Two of equipment can mutual backup control system, for example, two control mainboards, in order to breaking down in main system or
When main system upgrading, standby system adapter tube main system.In present embodiment, the standby system 500 of dynamic routing equipment includes
Receiving module 510, sending module 520 and processing module 530.
Receiving module 510 is used for before active-standby switch, obtains control information, neighbor state and LSA mark, wherein institute
Stating neighbor state includes the identification information that at least one currently has neighbours' routing device of syntople with the routing device,
Negotiation of the control information between the dynamic routing equipment and neighbours' routing device is adjacent, and the LSA mark is for knowing
Other LSA information.
Specifically, control information may include configuration information, interface message, the neighbours' routing device i.e. IP of neighbours' routing device
The information such as location, the standby system 500 of dynamic routing equipment realize the configurations of the dynamic routing equipment according to configuration information, standby system
System 500 is negotiated to establish or be maintained according to the information realizations such as interface message, the IP address of neighbours' routing device and neighbours' routing device
It is adjacent.
For example, user inputs the configuration information of dynamic routing equipment by man-machine interface before active-standby switch occurs, or
Person's dynamic routing equipment, which directly acquires, is pre-stored in local configuration information, and is issued, the main system of dynamic routing equipment and
Standby system 500 receives the configuration information issued, to guarantee that dynamic routing equipment can be configured according to configuration information, and
And neighbor state, LSA mark and other control information such as interface messages are backuped to standby system by the main system of dynamic routing equipment
In system 500.Alternatively, main system first receives the configuration information issued, the configuration information and other backup informations are backuped to together
In standby system 500.Wherein, LSA mark is the data for distinguishing different LSA information, such as the ID or title of LSA information
Deng.Neighbor state includes all neighbours' routings currently with the dynamic routing equipment with syntople in current network topology
The identification information of equipment such as ID etc..
Sending module 520 is used for when carrying out active-standby switch, and the standby system 500 is in the principal series apart from dynamic routing equipment
Last time of uniting sends in the preset time of the first message, and the neighbor state obtained according to the receiving module 510 is to all neighbours
The second message of routing device active transmission is occupied, so that neighbours' routing device and the dynamic routing equipment maintain adjacent shape
State, wherein first message, the second message are used to maintain the adjoining between the dynamic routing equipment and neighbours' routing device
State.
When main system operates normally, main system and neighbours' routing device establish neighborhood, row information of going forward side by side interaction.Such as
Fruit main system breaks down or is upgraded, then executes active-standby switch, at this point, the control plane of standby system needs to take over master immediately
The control plane information of system, and main system and the neighborhood of neighbours' routing device also need to be switched in standby system.
Specifically, present embodiment is by taking dynamic routing equipment is dynamic OSPF routing device as an example:According to OSPL agreement, dynamic
The neighbor state of routing device includes three kinds:1, the friendship of LSA information has been carried out between Full state, i.e. discovery neighborhood and neighbours
Mutually;2, Loading state, i.e. discovery neighbours and the interaction for carrying out LSA information;3, Down state does not find neighbours.?
When normal operation, the main system of dynamic routing equipment can be periodically that there is neighbours' routing of syntople to set to neighbours' routing device
Preparation send the hello packet of 2_way, to maintain backfence bidirectional relationship.When neighbours' routing device does not have within a preset time
Receive the hello packet of 2_way, then it is assumed that syntople interrupts, and the neighbor state of neighbours' routing device is become from Full state
Down state.When carrying out active-standby switch, standby system 500 realizes that adapter tube main system is controlled according to the configuration information issued,
And the sending module 520 of standby system 500 was sending the hello packet that the first message is 2_way apart from main system last time
In preset time, actively sending the second message i.e. to all neighbours' routing devices is also the hello packet of 2_way, so that network
In with dynamic routing equipment there is the neighbor state of neighbours' routing device of syntople to be maintained Full state, i.e., neighbours route
Equipment and the application dynamic routing equipment room maintain adjacency state, between the main system and neighbours' routing device of dynamic routing equipment
On neighborhood successful switch to standby system 500.
Processing module 530 learns for being identified according to the LSA that the receiving module 510 obtains to neighbours' routing device
LSA information, and routing update is carried out according to the LSA information.
For example, not having specific LSA information, therefore the dynamic routing is set due to there was only LSA mark at this time for system 500
Standby neighborhood is set as Loading state.The processing module 530 of standby system 500 sends LSA mark to neighbours' routing device,
So that neighbours' routing device, which is identified according to the LSA to the processing module 530 of standby system 500, sends corresponding LSA information, realize
The study of LSA information.The processing module 530 of standby system 500 establishes LSDB according to the LSA information that neighbours' routing device returns, this
When, neighborhood reparation is completed between dynamic routing equipment, neighbours' routing device, the neighborhood of dynamic routing equipment is set as Full
State.Also, the LSA information that the processing module 530 of standby system 500 is returned according to neighbours' routing device, is calculated using SPF algorithm
Routing update is realized in the path of each purpose network out.
In another embodiment of standby system of the application dynamic routing equipment, processing module also particularly useful for:According to institute
The LSA mark for stating receiving module acquisition, sends connection status to neighbours' routing device and requests link state request packet, so that the neighbour
It occupies routing device and replys connection status update link state update packet corresponding with LSA mark;The link state update packet is received, according to described
Link state update packet establishes connection status database LSDB, and sends confirming electrical connection status LSACK message to neighbours' routing device,
To prompt LSA update to terminate;Router-level topology is completed according to the LSDB, updates routing and topology information.
Continue by taking OSPL routing device as an example.General neighbours' establishment process divides syntople to establish, DR/BDR is elected, road
Several processes are safeguarded by equipment discovery, routing device selection and routing iinformation.Syntople is established in this programme and DR/BDR is selected
Lift and directly according to the synchronizing information of backup and send the hello packet of 2_way, as receiving module and sending module it is above-mentioned performed by
Content.The process of routing device discovery is also LSDB synchronization process, is learnt including DD is interactive with LSA, DD interaction is LSA mark
Know and update synchronizing process, the current LSA mark for the former master of system backup does not need DD interactive process.So only needing at this time
It to be identified according to LSA to neighbours' routing device and learn LSA information, form the independent complete LSDB of oneself.So standby at this time
The processing module of system actively sends link state request packet to neighbours, that is, neighbours' routing device according to the LSA of backup mark, and by neighbours' shape
State is transitted towards Loading state.
The neighborhood of neighbours' routing device will be considered that it is just due to having been at Full state after receiving link state request packet
Normal LSA renewal process, and normally reply LSA and update message.The processing module of the standby system of dynamic routing equipment receives neighbour
The LSA for occupying routing device updates message, and updates the LSDB of local terminal, and can reply LSACK message simultaneously, confirms this LSA
Renewal process terminates.After the completion of all LSA information learnings, the LSDB of dynamic routing equipment, which is rebuild, to be completed, and dynamic routing is set
Neighborhood reparation is completed between standby, neighbours' routing device.At this point, the neighborhood of dynamic routing equipment is set as by processing module
Full state.
After dynamic routing equipment rebuilds complete independent LSDB, content of the processing module of standby system according to LSDB, solely
On the spot calculate the path of each purpose network with SPF algorithm, and path be stored in routing table, realize update routing and
Topology information.
Optimally, the processing module of the standby system of the application dynamic routing equipment can also be used to identify according to the LSA
Learn LSA information to neighbours' routing device, and after carrying out routing update according to the LSA information, determines the standby system
System is used as new main system, backs up the control information of the dynamic routing equipment, neighbours at present to the main system as new standby system
State and LSA mark.
For example, topology is stable after completing routing update, it is new main for having completely taken over main system at this time for system
System, former main system are then used as new standby system, and the processing module of new main system is to dynamic routing equipment described in new standby system backup
Neighbor state, LSA mark and control information such as interface message, and keep realtime uniform.
It is understood that above- mentioned information backup is excellent to guarantee that network topology will not change after main preparation system switching
It is selected as backing up in realtime, i.e., if configuration information is updated, real time down is to main preparation system, Huo Zheshi if the dynamic routing equipment
When be handed down to main system, then backed up in realtime by main system to standby system.If neighbor state, LSA mark or interface message occur
Variation, then main system is backed up in realtime into standby system.Certainly, it is set in the more stable dynamic routing of other links and interface message
In standby, which can also be used the mode of timed backup, be not limited thereto.
Also, the application dynamic routing equipment specifically by taking OSPF routing device as an example but is not limited to OSPF routing device,
The application is equally applicable to the similar dynamic routing equipment of other Routing Protocols, such as BGP, LDP, MPLS.
Referring to Fig. 6, Fig. 6 is the structural schematic diagram of the standby system a further embodiment of the application dynamic routing equipment.This
Dynamic routing equipment in the dynamic routing equipment such as embodiment above of embodiment.Network where dynamic routing equipment
In, dynamic routing equipment and at least one neighbours' routing device establish syntople (as shown in Figure 2,3).Also, the dynamic road
By equipment with the mode operation of main preparation system, i.e. dynamic routing equipment includes main system and standby system, which is dynamic
Two of routing device can mutual backup control system, for example, two control mainboards, in order to break down in main system
Or when main system upgrading, standby system adapter tube main system.In present embodiment, the standby system 600 of dynamic routing equipment
Including transmitter 610, storage medium 620, processor 630 and bus 640.Transmitter 610, storage medium 620, processor 630
It is connected by bus 640.
Transmitter 610 is used for neighbours' routing device transmission information with the dynamic routing equipment with syntople.
Computer instruction and processor 630 of the storage medium 620 for the execution of storage processor 630 are required when working to be deposited
The data of storage.
Processor 630 is used for:
Before active-standby switch, control information, neighbor state and LSA mark are obtained, wherein the neighbor state includes extremely
Lacking one currently has the identification information of neighbours' routing device of syntople, the control information with the dynamic routing equipment
Adjacent for the negotiation between the dynamic routing equipment and neighbours' routing device, the LSA identifies LSA information for identification;
When carrying out active-standby switch, the preset time of the first message was sent in the main system last time apart from dynamic routing equipment
It is interior, make the transmitter 610 to the second message of all neighbours' routing device active transmissions according to the neighbor state, so that
Neighbours' routing device and the dynamic routing equipment maintain adjacency state, wherein first message, the second message are used
Adjacency state between the maintenance dynamic routing equipment and neighbours' routing device;
It is identified according to the LSA to neighbours' routing device and learns LSA information, and road is carried out according to the LSA information
By updating.
Specifically, control information may include configuration information, interface message, the neighbours' routing device i.e. IP of neighbours' routing device
The information such as location, the standby system 600 of dynamic routing equipment realize the configurations of the dynamic routing equipment according to configuration information, standby system
System 600 is negotiated to establish or be maintained according to the information realizations such as interface message, the IP address of neighbours' routing device and neighbours' routing device
It is adjacent.
For example, user inputs the configuration information of dynamic routing equipment by man-machine interface before active-standby switch occurs, or
Person's dynamic routing equipment, which directly acquires, is pre-stored in local configuration information, and is issued, the main system of dynamic routing equipment and
Standby system 600 receives the configuration information issued, to guarantee that dynamic routing equipment can be configured according to configuration information, and
And neighbor state, LSA mark and other control information such as interface messages are backuped to standby system by the main system of dynamic routing equipment
In system 600.Alternatively, main system first receives the configuration information issued, the configuration information and other backup informations are backuped to together
In standby system 600.Wherein, LSA mark is the data for distinguishing different LSA information, such as the ID or title of LSA information
Deng.Neighbor state includes all neighbours' routing devices currently with the routing device with syntople in current network topology
Identification information such as ID etc..
When main system operates normally, main system and neighbours' routing device establish neighborhood, row information of going forward side by side interaction.Such as
Fruit main system breaks down or is upgraded, then executes active-standby switch, at this point, the control plane of standby system needs to take over master immediately
The control plane information of system, and main system and the neighborhood of neighbours' routing device also need to be switched in standby system.
Specifically, present embodiment is by taking dynamic routing equipment is dynamic OSPF routing device as an example:According to OSPL agreement, dynamic
The neighbor state of routing device includes three kinds:1, the friendship of LSA information has been carried out between Full state, i.e. discovery neighborhood and neighbours
Mutually;2, Loading state, i.e. discovery neighbours and the interaction for carrying out LSA information;3, Down state does not find neighbours.?
When normal operation, the main system of dynamic routing equipment can be periodically that there is neighbours' routing of syntople to set to neighbours' routing device
Preparation send the hello packet of 2_way, to maintain backfence bidirectional relationship.When neighbours' routing device does not have within a preset time
Receive the hello packet of 2_way, then it is assumed that syntople interrupts, and the neighbor state of neighbours' routing device is become from Full state
Down state.When carrying out active-standby switch, standby system 600 realizes that adapter tube main system is controlled according to the configuration information issued,
And the processor 630 of standby system 600 is being the pre- of the hello packet of 2_way apart from the first message of main system last time transmission
If in the time, so that transmitter 610 is sent the second message i.e. to all neighbours' routing devices is also the hello packet of 2_way, so that
With dynamic routing equipment there is the neighbor state of neighbours' routing device of syntople to be maintained Full state, i.e. neighbours in network
Routing device and the application dynamic routing equipment room maintain adjacency state, the main system and neighbours' routing device of dynamic routing equipment
Between neighborhood successful switch to standby system 600 on.
Due to there was only LSA mark at this time for system 600, there is not specific LSA information, therefore the neighbours of dynamic routing equipment
Relationship is set as Loading state.The processor 630 of standby system 600 makes transmitter 610 send LSA mark to neighbours' routing device,
So that neighbours' routing device, which is identified according to the LSA to the processor 630 of standby system 600, sends corresponding LSA information, LSA is realized
The study of information.Processor 630 establishes LSDB according to the LSA information that neighbours' routing device returns, at this point, routing device, neighbours
Neighborhood reparation is completed between routing device, the neighborhood of routing device is set as Full state.Also, 630 basis of processor
The LSA information that neighbours' routing device returns calculates the path of each purpose network using SPF algorithm, realizes routing update.
Optionally, the standby system of routing device further includes receiver 650, for receiving the letter of neighbours' routing device
Breath.
Processor 630 is also used to:
It is identified according to the LSA, so that transmitter is sent link state request packet to neighbours' routing device, so that the neighbours road
By device replied link state update packet corresponding with LSA mark;
LSDB is established according to the link state update packet that the receiver receives, and sets transmitter to neighbours routing
Preparation send LSACK message, to prompt LSA update to terminate;
Router-level topology is completed according to the LSDB, updates routing and topology information.
Continue by taking OSPL routing device as an example.General neighbours' establishment process divides syntople to establish, DR/BDR is elected, road
Several processes are safeguarded by equipment discovery, routing device selection and routing iinformation.Syntople is established in this programme and DR/BDR is selected
It lifts and directly according to the synchronizing information of backup and sends the hello packet of 2_way, the content as performed by before processor 630.Routing
The process of equipment discovery is also LSDB synchronization process, is learnt including DD is interactive with LSA, and DD interaction is that LSA mark update is same
Step process, current standby system 600 have backed up the LSA mark of former master, that is, have not needed DD interactive process.So only needing basis at this time
LSA, which is identified to neighbours' routing device, learns LSA information, forms the independent complete LSDB of oneself.So at this time for system 600
Processor 630 link state request packet is actively sent to neighbours, that is, neighbours' routing device according to the LSA of backup mark, and by neighbor state
It is transitted towards Loading state.
The neighborhood of neighbours' routing device will be considered that it is just due to having been at Full state after receiving link state request packet
Normal LSA renewal process, and normally reply LSA and update message.The receiver 650 of the standby system 600 of dynamic routing equipment receives
LSA to neighbours' routing device updates message, and the LSA that processor 630 is received according to receiver 650 updates message to update this
The LSDB at end, and transmitter 610 is made to send LSACK message to neighbours' routing device simultaneously, confirm this LSA renewal process knot
Beam.After the completion of all LSA information learnings, the LSDB of dynamic routing equipment, which is rebuild, to be completed, dynamic routing equipment, neighbours' routing
Neighborhood reparation is completed between equipment.At this point, the neighborhood of dynamic routing equipment is set as Full state by processor 630.
After dynamic routing equipment rebuilds complete independent LSDB, content of the processor 630 according to LSDB is independently used
SPF algorithm calculates the path of each purpose network, and path is stored in routing table, realizes and updates routing and topology letter
Breath.
Optionally, processor 630 is also used to identify according to the LSA to neighbours' routing device study LSA information,
And according to the LSA information carry out routing update after, determine the standby system as new main system, to as new standby system
Main system backs up control information, neighbor state and the LSA mark of the dynamic routing equipment
After completing routing update, topology is stable, and having completely taken over main system at this time for system 600 is new principal series
System, former main system are then used as new standby system, and the processor 630 of new main system 700 is set to dynamic routing described in new standby system backup
Standby neighbor state, LSA mark and control information such as interface message, and keep realtime uniform.
It is understood that above- mentioned information backup is excellent to guarantee that network topology will not change after main preparation system switching
It is selected as backing up in realtime, i.e., if configuration information is updated, real time down gives active and standby system if the dynamic routing equipment, or in real time
It is handed down to main system, then is backed up in realtime by main system to standby system and is united.If neighbor state, LSA mark or interface message occur
Variation, then main system is backed up in realtime into standby system.Certainly, the routing device more stable in other links and interface message
In, the mode of timed backup can also be used in dynamic routing equipment, is not limited thereto.
Also, the application dynamic routing equipment specifically by taking OSPF routing device as an example but is not limited to OSPF routing device,
The application is equally applicable to the similar dynamic routing equipment of other Routing Protocols, such as BGP, LDP, MPLS.
The application also provides a kind of embodiment of dynamic routing equipment, the dynamic routing equipment as shown in Figure 2,3 and on
The dynamic routing equipment of face embodiment, including main system and standby system.Wherein, the main system be used for active-standby switch it
Before, it is identified to the control information of the standby system backup, neighbor state and LSA, specifically as described in embodiment above
Main system, standby system are specially the standby system as described in embodiment above.
Above scheme especially uses not backup LSA completely by only backing up to partial information before active-standby switch
Information and the mode for only backing up LSA mark lower the requirement to standby system resource to reduce backup information amount.Meanwhile it carrying out
When active-standby switch, standby system sends the second message to neighbours' routing device before timing time-out, with guarantee neighbours' routing device with
Dynamic routing equipment maintains syntople, realizes not interrupting for during active-standby switch neighborhood.Meanwhile standby system root
It identifies according to LSA to neighbours' routing device and learns to LSA information, to obtain complete LSA information to carry out routing update, realize
To the reparation of syntople and guarantee the consistent of network topology after main preparation system switching when main preparation system switching.Present embodiment
Using above-mentioned half backup half learn by the way of, supported in active-standby switch process without the change agreement of neighbours' routing device, only
Be backed up a small amount of information can be realized routing do not interrupt.
In several embodiments provided herein, it should be understood that disclosed system, device and method can
To realize by another way.For example, device embodiments described above are only schematical, for example, the mould
The division of block or unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple
Unit or assembly can be combined or can be integrated into another system, or some features can be ignored or not executed.It is another
Point, shown or discussed mutual coupling, direct-coupling or communication connection can be through some interfaces, device or
The indirect coupling or communication connection of unit can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.Some or all of unit therein can be selected to realize present embodiment scheme according to the actual needs
Purpose.
In addition, each functional unit in each embodiment of the application can integrate in one processing unit, it can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units.It is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the application
The all or part of the steps of embodiment the method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory
(ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk
Etc. the various media that can store program code.
Claims (19)
1. the method that a kind of main preparation system of dynamic routing equipment switches, which is characterized in that the dynamic routing equipment is with active and standby
The mode operation of system, including:
Before active-standby switch, the standby system of the dynamic routing equipment obtains control information, neighbor state and connection status a surname
Accuse LSA mark, wherein the neighbor state includes the neighbour that at least one currently has syntople with the dynamic routing equipment
The identification information of routing device is occupied, negotiation of the control information between the dynamic routing equipment, neighbours' routing device is adjacent
It connects, the LSA identifies LSA information for identification;
When carrying out active-standby switch, the standby system sent the first message in the main system last time apart from the dynamic routing equipment
Preset time in, according to the neighbor state to the second message of all neighbours' routing device active transmissions, so that described
Neighbours' routing device and the dynamic routing equipment maintain adjacency state, wherein first message, the second message are used to tie up
Hold the adjacency state between dynamic routing equipment, neighbours' routing device;
The standby system, which is identified according to the LSA to neighbours' routing device, learns LSA information, and according to the LSA information
Carry out routing update.
2. the method according to claim 1, wherein the standby system is identified according to the LSA to the neighbours
Routing device learns LSA information, and carries out routing update according to the LSA information and include:
The standby system is identified according to the LSA, is sent connection status to neighbours' routing device and is requested link state request packet, so that
Neighbours' routing device replys connection status corresponding with LSA mark and updates link state update packet;
The standby system receives the link state update packet, establishes connection status database LSDB according to the link state update packet, and to described
Neighbours' routing device sends confirming electrical connection status LSACK message, to prompt LSA update to terminate;
The standby system completes router-level topology according to the LSDB, updates routing and topology information.
3. according to the method described in claim 2, it is characterized in that, the standby system is identified according to the LSA, to the neighbours
Routing device sends connection status request link state request packet:
The standby system is identified according to the LSA, sends link state request packet to neighbours' routing device, and neighbor state is changed
For information stress state;
The standby system receives the link state update packet, establishes connection status database LSDB according to the link state update packet, and to described
Neighbours' routing device sends confirming electrical connection status LSACK message:
The standby system receives the link state update packet, establishes LSDB according to the link state update packet, and send out to neighbours' routing device
LSACK message is sent, and is to completely abut against state by the neighbor state transition.
4. method according to any one of claims 1 to 3, which is characterized in that the standby system of the dynamic routing equipment obtains
It takes to control information, neighbor state and connection status declaring LSA and identify and includes:
The standby system of the dynamic routing equipment obtains control information, neighbor state, the LSA mark that main system is backed up in realtime.
5. method according to any one of claims 1 to 3, which is characterized in that the standby system according to the LSA identify to
Neighbours' routing device learns LSA information, and carries out routing update later according to the LSA information and further include:
The standby system backs up the control of the dynamic routing equipment at present to the main system as new standby system as new main system
Information, neighbor state and LSA mark processed.
6. method according to any one of claims 1 to 3, which is characterized in that further include:
When main system breaks down or main system is upgraded, active-standby switch is executed.
7. a kind of standby system of dynamic routing equipment, which is characterized in that the dynamic routing equipment is transported with the mode of main preparation system
Row, the standby system of the dynamic routing equipment include receiving module, sending module and processing module,
The receiving module is used for before active-standby switch, obtains control information, neighbor state and connection status declaring LSA mark
Know, wherein the neighbor state includes neighbours' routing that at least one currently has syntople with the dynamic routing equipment
The identification information of equipment, negotiation of the control information between the dynamic routing equipment and neighbours' routing device is adjacent, institute
State LSA mark LSA information for identification;
The sending module is used for when carrying out active-standby switch, and the standby system is in the main system apart from the dynamic routing equipment
Last time sends in the preset time of the first message, and the neighbor state obtained according to the receiving module is routed to all neighbours
The second message of equipment active transmission, so that neighbours' routing device and the dynamic routing equipment maintain adjacency state, wherein
First message, the second message are used to maintain the adjacency state between the dynamic routing equipment and neighbours' routing device;
The processing module is used to be identified according to the LSA that the receiving module obtains to neighbours' routing device study LSA letter
Breath, and routing update is carried out according to the LSA information.
8. standby system according to claim 7, which is characterized in that
The processing module is used to be identified according to the LSA that the receiving module obtains to neighbours' routing device study LSA letter
Breath, and routing update is carried out according to the LSA information and is specially:
The LSA mark obtained according to the receiving module, sends connection status to neighbours' routing device and requests link state request packet,
So that neighbours' routing device, which replys connection status corresponding with LSA mark, updates link state update packet;
The link state update packet is received, connection status database LSDB is established according to the link state update packet, and set to neighbours routing
Preparation send confirming electrical connection status LSACK message, to prompt LSA update to terminate;
Router-level topology is completed according to the LSDB, updates routing and topology information.
9. standby system according to claim 8, which is characterized in that the processing module according to the receiving module for obtaining
The LSA mark taken, sends connection status to neighbours' routing device and requests link state request packet, the link state update packet is received, according to institute
It states link state update packet and establishes connection status database LSDB, and send confirming electrical connection status LSACK message to neighbours' routing device
More specifically:
The LSA mark obtained according to the receiving module, sends link state request packet to neighbours' routing device, and by neighbor state
Transition are information stress state;
The link state update packet is received, LSDB is established according to the link state update packet, and send LSACK report to neighbours' routing device
Text, and be to completely abut against state by the neighbor state transition.
10. standby system according to any one of claims 7 to 9, which is characterized in that the receiving module is specifically used for obtaining
Control information that main system is backed up in realtime, neighbor state, LSA mark.
11. standby system according to any one of claims 7 to 9, which is characterized in that
The processing module is also used to identify according to the LSA to neighbours' routing device study LSA information, and according to institute
State LSA information carry out routing update after, determine the standby system as new main system, it is standby to the main system as new standby system
The control information of the dynamic routing equipment, neighbor state and LSA are identified part at present.
12. standby system according to any one of claims 7 to 9, which is characterized in that when main system failure or principal series
When system is upgraded, standby system executes active-standby switch.
13. a kind of standby system of dynamic routing equipment, which is characterized in that the dynamic routing equipment is transported with the mode of main preparation system
Row, the standby system of the dynamic routing equipment include processor and transmitter,
The transmitter is used for neighbours' routing device transmission information with the dynamic routing equipment with syntople;
The processor is used for:
Before active-standby switch, control information, neighbor state and connection status declaring LSA mark are obtained, wherein neighbours' shape
State includes the identification information that at least one currently has neighbours' routing device of syntople with the dynamic routing equipment, described
Information is controlled for the negotiation adjoining between the dynamic routing equipment and neighbours' routing device, the LSA identifies LSA for identification
Information;
When carrying out active-standby switch, the preset time of the first message was sent in the main system last time apart from the dynamic routing equipment
It is interior, make the transmitter to the second message of all neighbours' routing device active transmissions according to the neighbor state, so that institute
It states neighbours' routing device and the dynamic routing equipment maintains adjacency state, wherein first message, the second message are used to
Maintain the adjacency state between the dynamic routing equipment and neighbours' routing device;
It is identified according to the LSA to neighbours' routing device and learns LSA information, and routed more according to the LSA information
Newly.
14. standby system according to claim 13, which is characterized in that further include receiver, for receiving the neighbours road
By the information of equipment;
The processor, which is used to be identified according to the LSA to neighbours' routing device, learns LSA information, and according to the LSA
Information carries out routing update:
It is identified according to the LSA, so that transmitter is sent connection status request link state request packet to neighbours' routing device, so that institute
It states neighbours' routing device and replys connection status update link state update packet corresponding with LSA mark;
Connection status database LSDB is established according to the link state update packet that the receiver receives, and makes transmitter to described
Neighbours' routing device sends confirming electrical connection status LSACK message, to prompt LSA update to terminate;
Router-level topology is completed according to the LSDB, updates routing and topology information.
15. standby system according to claim 14, which is characterized in that the processor is used to be identified according to the LSA, makes
Transmitter sends connection status to neighbours' routing device and requests link state request packet, the link state update packet received according to the receiver
Connection status database LSDB is established, and transmitter is made to send confirming electrical connection status LSACK message to neighbours' routing device
More specifically:
It is identified according to the LSA, so that transmitter is sent link state request packet to neighbours' routing device, and be by neighbor state transition
Information stress state;
LSDB is established according to the link state update packet that the receiver receives, and sends out transmitter to neighbours' routing device
LSACK message is sent, and is to completely abut against state by the neighbor state transition.
16. 3 to 15 described in any item standby systems according to claim 1, which is characterized in that the processor is also used to obtain master
Control information that system is backed up in realtime, neighbor state, LSA mark.
17. 3 to 15 described in any item standby systems according to claim 1, which is characterized in that the processor is also used in basis
The LSA identify to neighbours' routing device learn LSA information, and according to the LSA information carry out routing update after, really
The fixed standby system backs up the control of the dynamic routing equipment at present to the main system as new standby system as new main system
Information, neighbor state and LSA mark.
18. 3 to 15 described in any item standby systems according to claim 1, which is characterized in that as main system failure or master
When system is upgraded, standby system executes active-standby switch.
19. a kind of dynamic routing equipment, which is characterized in that including main system and standby system, wherein
The main system is used for before active-standby switch, to the standby system backup control information, neighbor state and connection shape
State declares LSA mark;
The standby system is such as described in any item standby systems of claim 7 to 18 above.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2014/081086 WO2016000107A1 (en) | 2014-06-30 | 2014-06-30 | Primary and secondary system handover method for dynamic route device, and apparatus thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105340226A CN105340226A (en) | 2016-02-17 |
CN105340226B true CN105340226B (en) | 2018-11-16 |
Family
ID=55018208
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201480036222.7A Active CN105340226B (en) | 2014-06-30 | 2014-06-30 | The method and device thereof of the main preparation system switching of dynamic routing equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105340226B (en) |
WO (1) | WO2016000107A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111190767B (en) * | 2019-12-24 | 2024-02-27 | 广州市高科通信技术股份有限公司 | Method and device for realizing LSDB (Low-pass-band database) master-slave synchronization in OSPF (open shortest Path first) protocol |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111083074A (en) * | 2019-12-20 | 2020-04-28 | 盛科网络(苏州)有限公司 | High availability method and system for main and standby dual OSPF state machines |
CN112383414B (en) * | 2020-10-28 | 2023-09-29 | 北京中科网威信息技术有限公司 | Dual-machine hot backup quick switching method and device |
CN112615751B (en) * | 2020-12-29 | 2023-09-22 | 北京格林威尔科技发展有限公司 | Main-standby switching hot backup method and device based on routing protocol |
CN112769698B (en) * | 2021-01-06 | 2022-12-02 | 网宿科技股份有限公司 | Method and device for realizing routing |
CN113726649B (en) * | 2021-09-07 | 2023-06-13 | 新华三大数据技术有限公司 | Routing information processing method and system |
CN114389949B (en) * | 2022-01-20 | 2024-04-12 | 网宿科技股份有限公司 | Route upgrading method, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1365551A1 (en) * | 2002-05-23 | 2003-11-26 | Chiaro Networks Ltd. | Highly-available OSPF routing protocol |
CN102223304A (en) * | 2011-06-16 | 2011-10-19 | 杭州华三通信技术有限公司 | Method and device for continuously forwarding after main/standby switch |
CN102487357A (en) * | 2010-12-03 | 2012-06-06 | 杭州华三通信技术有限公司 | Control method and device for continuous forwarding after main and standby switching |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1725733A (en) * | 2005-06-10 | 2006-01-25 | 杭州华为三康技术有限公司 | Method of route backup in combination equipment and combination equipment |
CN100568854C (en) * | 2007-07-30 | 2009-12-09 | 杭州华三通信技术有限公司 | A kind of method and interface board that keeps neighborhood |
CN102811175B (en) * | 2012-08-14 | 2015-07-15 | 杭州华三通信技术有限公司 | Neighbor table item updating method and router |
-
2014
- 2014-06-30 WO PCT/CN2014/081086 patent/WO2016000107A1/en active Application Filing
- 2014-06-30 CN CN201480036222.7A patent/CN105340226B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1365551A1 (en) * | 2002-05-23 | 2003-11-26 | Chiaro Networks Ltd. | Highly-available OSPF routing protocol |
CN102487357A (en) * | 2010-12-03 | 2012-06-06 | 杭州华三通信技术有限公司 | Control method and device for continuous forwarding after main and standby switching |
CN102223304A (en) * | 2011-06-16 | 2011-10-19 | 杭州华三通信技术有限公司 | Method and device for continuously forwarding after main/standby switch |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111190767B (en) * | 2019-12-24 | 2024-02-27 | 广州市高科通信技术股份有限公司 | Method and device for realizing LSDB (Low-pass-band database) master-slave synchronization in OSPF (open shortest Path first) protocol |
Also Published As
Publication number | Publication date |
---|---|
WO2016000107A1 (en) | 2016-01-07 |
CN105340226A (en) | 2016-02-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105340226B (en) | The method and device thereof of the main preparation system switching of dynamic routing equipment | |
CN102624635B (en) | Method and device for realizing graceful restart | |
CN101425961B (en) | Method for implementing link state database synchronization, router, circuit board and main control board | |
US7573811B2 (en) | Network transparent OSPF-TE failover | |
US7155632B2 (en) | Method and system for implementing IS-IS protocol redundancy | |
US20140149782A1 (en) | Method and apparatus for facilitating process restart in a multi-instance is-is system | |
US9705782B2 (en) | Method and system for efficient graceful restart in an open shortest path first (OSPF) network | |
EP2892188B1 (en) | Method for determining packet forwarding path, network device and control device | |
CN102025552B (en) | Backup method and backup device of link-state advertisement | |
CN102546427B (en) | OSPF (Open Shortest Path First) protocol-based graceful restart (GR) method and router | |
CN101515891B (en) | Method for processing border gateway protocol routing and router | |
US20120124238A1 (en) | Prioritization of routing information updates | |
CN102404189A (en) | Main and standby switching method of device supporting multi-topology routing as well as master control board | |
CN103825826A (en) | Method and device for implementing dynamic routing | |
CN103262480A (en) | Method of establishing virtual cluster and network devices | |
CN104639434A (en) | Open shortest path first protocol smooth restart method and device | |
CN102769571B (en) | Graceful restart realization method and equipment | |
CN102281158A (en) | Line fault processing method and device | |
CN109412943B (en) | SDN controller cluster flow processing method, device, equipment and storage medium | |
CN111327524B (en) | Flow forwarding method and system, SDN controller and computer readable storage medium | |
EP3079327B1 (en) | Information transmission method, device and system | |
CN102404228B (en) | GR processing method and equipment based on OSPF protocol | |
US20150009819A1 (en) | Packet relay system, packet relay method, and packet relay device | |
CN104486223B (en) | A kind of G/R method and system based on ospf protocol | |
JP2018107744A (en) | Communication node, communication system, communication method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |