CN101645768B - Router and main/standby switch method thereof - Google Patents
Router and main/standby switch method thereof Download PDFInfo
- Publication number
- CN101645768B CN101645768B CN 200910169909 CN200910169909A CN101645768B CN 101645768 B CN101645768 B CN 101645768B CN 200910169909 CN200910169909 CN 200910169909 CN 200910169909 A CN200910169909 A CN 200910169909A CN 101645768 B CN101645768 B CN 101645768B
- Authority
- CN
- China
- Prior art keywords
- router
- mode
- nsf
- starting mode
- nsr
- 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
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a router and a main/standby switch method thereof, relating to the data network communication field. The main/standby switch method of the invention comprises the following steps: allocating non-stop forwarding (NSF) starting mode in an intermediate system-intermediate system (IS-IS) example running in the router, while the NSF starting mode is graceful restart (GR) and/or a non-stop routing (NSR) mode; and starting the IS-IS example according to the NSF starting mode of the IS-IS example when the router performs main/standby switch. The technical scheme of the invention not only can realize flexibility of user allocation, but also enable a device to choose the optimal starting mode according to user allocation and device running state to realize non-stop forwarding of flow as far as possible and have higher intelligence capacity and reliability in the process of main/standby switch of the router.
Description
Technical field
The present invention relates to data network communication field, relate in particular to the method for a kind of router and masterslave switchover thereof.
Background technology
NSF (Non-Stop Forwarding; uninterrupted forwarding) be a kind of scheme that improves network operation reliability, it can guarantee that forwarding plane is unaffected when the equipment control plane goes wrong; data retransmission can not interrupt, thereby the key business on the protection equipment is unaffected.Generally, for the consideration of reliability, hardware generally adopts the method for master-slave redundancy backup to realize the NSF technology to telecom carrier-class device, and control plane separates with Forwarding plane usually.After breaking down in the master control plane, as long as this fault does not affect Forwarding plane, just can have machine-processed assured forwarding plane unaffected, and after the control of by the time standby control plane adapter to system, this fault can be resumed.Like this, when equipment breaks down, can't have influence on user's business.Thereby improved the reliability of the network operation.
At present, realize NSF, have the technology of following two kinds of maturations available.
One, GR (graceful-restart, Graceful Restart) mode
GR is the expansion to former protocols having.After the control plane of equipment began to switch, in case standby control plane starts, agreement notified its control plane of neighbor device to restart this fact at once, and the request neighbor device helps its finishing smooth reversed process.Simultaneously, the Forwarding plane of equipment still uses original transmitting, and for Forwarding plane, its traffic forwarding function can not be affected like this.After neighbor device knows that the equipment that adjacency is arranged begins to switch, maintain the neighborhood between two equipment and again notify switching equipment the network description information known to own, like this for switching equipment, before and after switching, its description situation or perhaps cognitive situation for network is consistent.Collect the descriptor of network fully when switching equipment after, can recomputate route according to these information, renewal is transmitted, and thinks and smoothly switch end.At this moment, for replacing original main adapter system control.Like this, before and after smoothly switching, the routing condition that equipment calculates is without any variation.Thereby can any impact not arranged to service traffics.For the switching equipment neighbours, because it has maintained the neighborhood between two equipment, so route does not have any variation yet on it.
But the shortcoming of GR mode is, requires network to have at least an other equipment, finish GR with the equipment that helps masterslave switchover, and two equipment all needs to support the GR function; The service of connection devices can't be real the forwarding that whether really recovered flow of affirmation GR equipment; And the service of connection devices must be to GR equipment feedback network topology information, and this process may be long, if network topology changes in this process, perhaps routing condition changes in the network, then can produce flow black hole or traffic loops; In addition, if the service of connection devices had also lost efficacy, then the GR mode does not just have any effect; At last, behind the masterslave switchover, slave board starts needs the regular hour, after equipment GR begins, if neighbours fall short of the retention time, then when slave board is not also started working, its syntople has just disconnected, therefore need to be different according to applied environment to the GR mode, determine neighbours' retention time.
Two, NSR (Non-Stop Routing, non-interruption route) mode
The NSR mode is relatively independent mode, need not to carry out the mutual of information between two routers, the thinking of this mode is: slave board just maintained protocol data and the relevant information on the mainboard before mainboard is switched, these data and information comprise: the Routing Protocol example, interface, neighbours and Link State descriptor, after mainboard is switched, slave board is taken at once mainboard and is started working, and enter the NSR mode, in this manner, it is constant at first to keep local device to transmit, and guarantees that service traffics are unaffected, and secondly the syntople of maintenance and neighbor router is constant, thereby guarantee that neighbor router can not detect local device and switch this fact, and then guarantee that the neighbor router routing condition is constant.Again, switch front agreement run time behaviour according to the network description information and the relevant configuration information restorer that record before, and calculate route, renewal is transmitted.At this moment, slave board can replace original main adapter system control.Because slave board is the recovery of mainboard being switched front running status, the route that therefore calculates this moment is consistent with switching front routing condition.After switching like this end service traffics are not just had any impact.
The NSR mode is existent defect also, and this mode needs slave board also to move the ISIS agreement, has increased complexity.But, as seen from the above, the NSR mode is compared with the GR mode, still has some following advantages.
The NSR mode does not need the help of miscellaneous equipment, and self just can realize NSF.Because the NSR mode before masterslave switchover, has been preserved needed all information of agreement operation on the slave board, therefore, slave board replaces mainboard, toggle speed is faster, has solved because start-up time is slow, and adjacent device is owing to can not receive for a long time the problem of hello packet neighbours chain rupture.Simultaneously, because toggle speed is very fast, the NSR mode can be processed the variation of the network information very first time, so flow black hole or traffic loops can not occur in the NSR start-up course.In addition, because GR is expansion to former protocols having, special RFC is arranged, the user disposes IS-IS GR, need to understand related protocol, and NSR does not have related protocol, so the NSR mode dispose simpler, also more transparent to the user.
As can be seen from above, all there are certain pros and cons in two kinds of implementations that the NSF technology adopts, therefore, need to propose a kind of router masterslave switchover scheme, to guarantee the unbroken reliability of traffic forwarding.
Summary of the invention
Technical problem to be solved by this invention is, the method of a kind of router and masterslave switchover thereof is provided, thereby in router masterslave switchover process, realize transmitting without interrupting of Intermediate System-to-Intermediate System (Intermediate-system to Intermediate-system) Routing Protocol.
In order to address the above problem, the invention discloses a kind of method of router masterslave switchover, comprising:
Intermediate system-the intermediate system that moves in the router (IS-IS) exemplary configuration uninterrupted forwarding (NSF) Starting mode, described NSF Starting mode are Graceful Restart (GR) and/or non-interruption route (NSR) mode;
When described router masterslave switchover, according to the NSF Starting mode of described IS-IS example, start described IS-IS example.
Further, in the said method, if the NSF Starting mode of IS-IS example is GR and NSR mode in the described router, when described router masterslave switchover, preferentially start described IS-IS example according to the NSR mode.
Wherein, when described router starts described IS-IS example according to the NSR mode, if start unsuccessfully, then start described IS-IS example according to the GR mode.
When moving a plurality of IS-IS example in the described router, for each IS-IS example disposes respectively the NSF Starting mode.
Described router when starting described IS-IS example, if start unsuccessfully, then reloads the Intermediate System to Intermediate System configuration according to the NSF Starting mode of described IS-IS example, restarts described ISIS example.
The invention also discloses a kind of router, comprise dispensing unit and processing unit, wherein:
Described dispensing unit, be used to intermediate system-intermediate system (IS-IS) exemplary configuration uninterrupted forwarding (NSF) Starting mode of moving in the router, described NSF Starting mode is Graceful Restart (GR) and/or non-interruption route (NSR) mode;
Described processing unit when described router masterslave switchover, reads the NSF Starting mode of IS-IS example in the described dispensing unit, and starts described IS-IS example according to the NSF Starting mode that reads.
Further, in the above-mentioned router, described dispensing unit is for the NSF Starting mode of IS-IS exemplary configuration in the described router is GR and NSR mode;
Described processing unit when described router masterslave switchover, reads the NSF Starting mode of IS-IS example in the described dispensing unit, preferentially starts described IS-IS example according to the NSR mode.
Wherein, described processing unit when starting described IS-IS example according to the NSR mode, if start unsuccessfully, then starts described IS-IS example according to the GR mode.
When moving a plurality of IS-IS example in the described router, described dispensing unit is for each IS-IS example disposes respectively the NSF Starting mode.
Described processing unit according to the NSF Starting mode of the IS-IS example that reads, when starting described IS-IS example, if start unsuccessfully, then reloads the Intermediate System to Intermediate System configuration from described dispensing unit, restart described IS-IS example.
Pass through technical solution of the present invention, in router masterslave switchover process, both can realize user configured flexibility, can allow again equipment select optimum Starting mode according to user's configuration and equipment operation condition, maximum to the greatest extent may realize that traffic forwarding does not interrupt, and has higher intelligent and reliability.
Description of drawings
Fig. 1 is the structural representation of router in the present embodiment;
Fig. 2 is the flow chart of router masterslave switchover in the present embodiment;
Fig. 3 is the schematic network structure that has disposed IS-IS NSF in the present embodiment.
Embodiment
Main design of the present invention is, because GR and NSR mode are to realize two kinds of mature technologies of NSF, and separate between the two, it is not mutually exclusive neither to interdepend yet, and cuts both ways, therefore, in needing the network environment of NSF, the user can these two kinds of Starting mode of flexible configuration, namely behind the masterslave switchover, router can according to prior configuration and equipment operation condition, be selected optimum Starting mode.
Below in conjunction with drawings and the specific embodiments technical solution of the present invention is described in further detail.
A kind of router can be realized transmitting without interrupting of Intermediate System to Intermediate System, and its structure comprises dispensing unit and processing unit as shown in Figure 1.The below introduces the function of each unit.
Dispensing unit is used for according to network environment, is the IS-IS exemplary configuration NSF Starting mode of moving in the router;
Wherein, the NSF Starting mode is GR and/or NSR mode, and when moving a plurality of IS-IS example in the router, dispensing unit disposes respectively the NSF Starting mode for each IS-IS example;
Processing unit is used for reading the NSF Starting mode of IS-IS example in the dispensing unit when the router masterslave switchover, and starts the IS-IS example according to the NSF Starting mode that reads;
Wherein, when the NSF of IS-IS example Starting mode was the GR mode, processing unit was restarted the IS-IS example according to the GR mode, if restart unsuccessfully, restart IS-IS example (namely reload the Intermediate System to Intermediate System configuration, restart described ISIS example) according to common mode again;
When the NSF of IS-IS example Starting mode was the NSR mode, processing unit was restarted the IS-IS example according to the NSR mode, if restart unsuccessfully, restarted the IS-IS example according to common mode again;
When the NSF of IS-IS example Starting mode was GR and NSR mode, processing unit was preferentially restarted the IS-IS example according to the NSR mode, if restart unsuccessfully, restarted the IS-IS example according to the GR mode again, if restart unsuccessfully, restarted the IS-IS example according to common mode more again.
The below introduces the process that above-mentioned router is realized masterslave switchover, as shown in Figure 2, may further comprise the steps:
Step 201: the user is configuration of routers NSF Starting mode according to network environment;
In this step, the user can dispose different NSF Starting mode for different IS-IS examples, and namely the NSF Starting mode can be selected GR or NSR, also can select simultaneously GR and NSR;
For example, in networking shown in Figure 3, router R2 has moved three IS-IS examples, be in the IS-IS example 1, router R2 is with router R1 docking, in the IS-IS example 2, router R2 is with router R3 docking, in the IS-IS example 3, router R2 does not have adjacent device, in these three IS-IS examples, the user can be according to the different NSF Starting mode of networking demand configuration, for example, because the reliability requirement of IS-IS example 1 is higher, just dispose simultaneously GR and NSR Starting mode; In the IS-IS example 2, reliability is taken second place, and adjacent device R3 support GR, then can only dispose the GR Starting mode; In the IS-IS example 3, do not have adjacent device or reliability requirement not high, then can not dispose the NSF Starting mode.
Step 202: after router carries out masterslave switchover, determine whether IS-IS exemplary configuration NSF Starting mode, if so, enter step 203, otherwise enter step 205;
Step 203 (a): when the NSF Starting mode was configured to NSR, router started according to the NSR mode, and judged whether startup is successful, if so, and process ends, otherwise enter step 205;
Step 203 (b): when the NSF Starting mode was configured to GR, router started according to the GR mode, and judged whether startup is successful, if so, and process ends, otherwise enter step 205;
Step 203 (c): when the NSF Starting mode was configured to NSR and GR mode, router was attempted first carrying out NSR and is started, and judged whether startup is successful, if so, and process ends, otherwise enter step 204;
Step 204: carry out again GR and start, and judge whether startup is successful, if so, process ends, otherwise enter step 205;
Step 205: router reloads user's Intermediate System to Intermediate System configuration, restarts the IS-IS example, process ends.
Can find out that from above-described embodiment compared with the prior art, technical solution of the present invention has following characteristics:
1) user configured flexibility: the user can be the IS-IS exemplary configuration NSF Starting mode of each operation, and different examples can dispose different NSF Starting mode, and the NSF Starting mode can be selected GR or NSR, also can select simultaneously GR and NSR;
2) behind the masterslave switchover, slave board is selected the intelligent of Starting mode: behind the masterslave switchover, each example of Intermediate System to Intermediate System can be selected optimum separately Starting mode according to user's configuration and equipment operation condition, and maximum to the greatest extent may realize that traffic forwarding does not interrupt.The Starting mode of slave board Intermediate System to Intermediate System example may be following three kinds: NSR starts, GR starts and common startup, and common startup refers to that equipment reloads the Intermediate System to Intermediate System configuration, restarts the ISIS agreement, and common startup can cause the interruption of traffic forwarding.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. the method for a router masterslave switchover is characterized in that, the method comprises:
The intermediate system that moves in the router-intermediate system IS-IS exemplary configuration uninterrupted forwarding NSF Starting mode, described NSF Starting mode is Graceful Restart (GR) and/or non-interruption route (NSR) mode;
When described router masterslave switchover, according to the NSF Starting mode of described IS-IS example, start described IS-IS example.
2. the method for claim 1 is characterized in that,
If the NSF Starting mode of IS-IS example is GR and NSR mode in the described router, when described router masterslave switchover, preferentially start described IS-IS example according to the NSR mode.
3. method as claimed in claim 2 is characterized in that,
When described router starts described IS-IS example according to the NSR mode, if start unsuccessfully, then start described IS-IS example according to the GR mode.
4. such as each described method of claims 1 to 3, it is characterized in that,
When moving a plurality of IS-IS example in the described router, for each IS-IS example disposes respectively the NSF Starting mode.
5. such as each described method of claims 1 to 3, it is characterized in that,
Described router when starting described IS-IS example, if start unsuccessfully, then reloads the Intermediate System to Intermediate System configuration according to the NSF Starting mode of described IS-IS example, restarts described IS-IS example.
6. a router is characterized in that, this router comprises dispensing unit and processing unit, wherein:
Described dispensing unit is used to intermediate system-intermediate system (IS-IS) exemplary configuration uninterrupted forwarding NSF Starting mode of moving in the router, and described NSF Starting mode is Graceful Restart (GR) and/or non-interruption route (NSR) mode;
Described processing unit when described router masterslave switchover, reads the NSF Starting mode of IS-IS example in the described dispensing unit, and starts described IS-IS example according to the NSF Starting mode that reads.
7. router as claimed in claim 6 is characterized in that,
Described dispensing unit is for the NSF Starting mode of IS-IS exemplary configuration in the described router is GR and NSR mode;
Described processing unit when described router masterslave switchover, reads the NSF Starting mode of IS-IS example in the described dispensing unit, preferentially starts described IS-IS example according to the NSR mode.
8. router as claimed in claim 7 is characterized in that,
Described processing unit when starting described IS-IS example according to the NSR mode, if start unsuccessfully, then starts described IS-IS example according to the GR mode.
9. such as each described router of claim 6 to 8, it is characterized in that,
When moving a plurality of IS-IS example in the described router, described dispensing unit is for each IS-IS example disposes respectively the NSF Starting mode.
10. such as each described router of claim 6 to 8, it is characterized in that,
Described processing unit according to the NSF Starting mode of the IS-IS example that reads, when starting described IS-IS example, if start unsuccessfully, then reloads the Intermediate System to Intermediate System configuration from described dispensing unit, restart described IS-IS example.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910169909 CN101645768B (en) | 2009-09-08 | 2009-09-08 | Router and main/standby switch method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910169909 CN101645768B (en) | 2009-09-08 | 2009-09-08 | Router and main/standby switch method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101645768A CN101645768A (en) | 2010-02-10 |
CN101645768B true CN101645768B (en) | 2013-02-27 |
Family
ID=41657496
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200910169909 Active CN101645768B (en) | 2009-09-08 | 2009-09-08 | Router and main/standby switch method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101645768B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102185718B (en) * | 2011-05-12 | 2014-06-25 | 杭州华三通信技术有限公司 | System upgrading method and device |
CN103581013B (en) * | 2012-07-25 | 2017-02-15 | 杭州华三通信技术有限公司 | Method and device for achieving non-stop routing of routing protocol |
CN103475518B (en) * | 2013-09-06 | 2017-02-15 | 杭州华三通信技术有限公司 | Method and equipment for realizing IS-IS GR on multi-point fault scenarios |
CN106972951B (en) * | 2017-02-27 | 2019-11-08 | 杭州天宽科技有限公司 | A kind of automatic maintenance implementation method based on multiple related function module abnormality detections |
CN117395189A (en) * | 2023-12-08 | 2024-01-12 | 新华三技术有限公司 | Routing processing method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1870527A (en) * | 2005-12-31 | 2006-11-29 | 华为技术有限公司 | Internal storage warning processing method and route of converting without discontinuous |
CN1949767A (en) * | 2005-10-11 | 2007-04-18 | 华为技术有限公司 | Method for switching master-slave back-up route apparatus based on virtual router redundant protocol |
EP1793542A2 (en) * | 2005-12-01 | 2007-06-06 | Juniper Networks, Inc. | Non-stop forwarding in a multi-chassis router |
-
2009
- 2009-09-08 CN CN 200910169909 patent/CN101645768B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1949767A (en) * | 2005-10-11 | 2007-04-18 | 华为技术有限公司 | Method for switching master-slave back-up route apparatus based on virtual router redundant protocol |
EP1793542A2 (en) * | 2005-12-01 | 2007-06-06 | Juniper Networks, Inc. | Non-stop forwarding in a multi-chassis router |
CN1870527A (en) * | 2005-12-31 | 2006-11-29 | 华为技术有限公司 | Internal storage warning processing method and route of converting without discontinuous |
Also Published As
Publication number | Publication date |
---|---|
CN101645768A (en) | 2010-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4449903B2 (en) | Router device and network connection method | |
CN102624635B (en) | Method and device for realizing graceful restart | |
CN102137017B (en) | Working method and device used for virtual network unit | |
CN100527716C (en) | Method and gateway equipment for resuming service after switching status of main/standby gateway device | |
CN101340380B (en) | Method and apparatus for uninterrupted forwarding of bi-directional forwarding detection in master-slave switch implementation | |
CN102148677B (en) | Method for updating address resolution protocol table entries and core switch | |
US20140146661A1 (en) | Method and apparatus for facilitating process restart in an is-is system | |
JP5941404B2 (en) | Communication system, path switching method, and communication apparatus | |
JP4790591B2 (en) | Ring node device | |
CN101860492A (en) | Quick switching method, device and system | |
JP6287518B2 (en) | OpenFlow switch and OpenFlow network failure recovery method | |
CN101645768B (en) | Router and main/standby switch method thereof | |
CN101170459A (en) | Failure detection and link recovery method based on bidirectional forward link | |
CN101577719B (en) | A kind of double hot standby method, device and system | |
CN101364927A (en) | Method, apparatus and system realizing fault recovery of virtual private network | |
CN103825817A (en) | Achieving method and device of ceaseless routing after routing protocol restarting | |
US9960993B2 (en) | Packet network linear protection systems and methods in a dual home or multi-home configuration | |
CN101222486B (en) | Control method for routing restarting and recovery after node failure in automatic exchange optical network | |
CN102420737B (en) | Method for processing failure in MRP (Media Redundancy Protocol) looped network and MRP looped network | |
JP5338428B2 (en) | COMMUNICATION DEVICE AND METHOD, COMMUNICATION SYSTEM AND METHOD | |
CN102857316A (en) | Method and system for realizing source looped network protection | |
CN102136947A (en) | Method and device for processing link faults | |
CN101827035B (en) | Method for ensuring graceful restarting and dual master control network device | |
CN103281720A (en) | Method and device for switching wireless controller hot standbys, wireless controller and access system | |
CN100409619C (en) | Data network equipment and its management controlling method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |