CN101827035B - Method for ensuring graceful restarting and dual master control network device - Google Patents

Method for ensuring graceful restarting and dual master control network device Download PDF

Info

Publication number
CN101827035B
CN101827035B CN2010101764298A CN201010176429A CN101827035B CN 101827035 B CN101827035 B CN 101827035B CN 2010101764298 A CN2010101764298 A CN 2010101764298A CN 201010176429 A CN201010176429 A CN 201010176429A CN 101827035 B CN101827035 B CN 101827035B
Authority
CN
China
Prior art keywords
graceful restart
control board
message
graceful
agent
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
Application number
CN2010101764298A
Other languages
Chinese (zh)
Other versions
CN101827035A (en
Inventor
舒弋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN2010101764298A priority Critical patent/CN101827035B/en
Publication of CN101827035A publication Critical patent/CN101827035A/en
Application granted granted Critical
Publication of CN101827035B publication Critical patent/CN101827035B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention aims at providing a method for ensuring graceful restarting and a dual master control network device for realizing the method, which can improve the graceful restarting success rate of a centralized-type dual master control network device. A graceful restarting proxy operates on a main-use master control board and a standby-use master control board of the dual master control network device; under normal conditions, the graceful restarting proxy on the main-use master control board periodically synchronizes graceful restarting messages that are transmitted to all neighbor devices through routing protocols to the standby-use master control board; and after main and standby switching is carried out, a graceful restarting proxy of a new main-use master control board transmits graceful restarting messages. After the main and standby switching of the dual master control device is carried out, the graceful restarting proxy directly transmits the graceful restarting messages to the neighbor devices without waiting for the operation of the routing protocols; therefore, the interval time for switching into the graceful restarting message transmitting is shortened.

Description

Guarantee method and the dual master control network equipment of Graceful Restart
Technical field
The present invention relates to the communication technology of centralized network equipment, relate in particular to Graceful Restart (Graceful Restart the is called for short GR) technology of the centralized dual master control network equipment.
Background technology
The route switching network equipment is being born the important process such as the traffic forwarding of internet and routing forwarding in Internet Interconnection.In order to guarantee the reliability of the network equipment, usually adopt the dual master control technology.A master control borad is in the main control board state in the network equipment of dual master control, and another master control borad is in the slave control board state.Be in charge of whole system by main control board, slave control board is then monitored the state of main control board.When main control board occurs when unusual, slave control board switches to main control board, adapter system immediately.
The GR technology belongs to a kind of of reliability engineering, be widely used on the route switching network equipment, particularly have on the equipment of dual master control, be used for active and standby switching and system upgrade aspect, can guarantee when Routing Protocol is restarted that data normally transmit, thereby the assured forwarding business is not interrupted.Routing Protocol relatively more commonly used is dynamic routing protocol such as open type shortest path priority protocol (Open Shortest Path Frist at present, be called for short OSPF), intermediate system to intermediate syst (IntermediateSystem-to-Intermediate System is called for short IS-IS) etc.When active and standby switching occurring; neighbours' vibration appears for fear of Routing Protocol; Routing Protocol needs in time to send a GR message to all neighbor devices; allow neighbor device know oneself and restart, make the neighborhood of this equipment and route keep within a certain period of time stablizing and keeping a long keep-alive time.Utilize this time, then necessary initial work after the Routing Protocols such as OSPF, IS-IS just can be finished and switch recovers normal condition.Agreement restart complete after, neighbor device also assists it to carry out information (comprising various topologys, route and session information that the related protocol of supporting GR is safeguarded) synchronously, returns to the state before restarting within the as far as possible short time.By utilizing the GR technology can not produce route flapping in the Routing Protocol restarting process, message forwarding path is also without any change, and whole system can realize running without interruption.
Because it is unpredictable that main control board breaks down, so the GR message can only be after former slave control board switches to main control board, to send again.If the blanking time that handoff procedure and Routing Protocol put into operation is long, can cause GR message transmitting time excessively late, surpassed the normal keep-alive time of neighbours, can cause the GR failure, vibration appears in neighbours.
In order to address this problem, the general employing at ply-yarn drill of distributed apparatus sends the GR message.Because ply-yarn drill is to be in running status, does not need too many time always, therefore can in time send the GR message.
And for centralized device, do not have CPU on the ply-yarn drill, can't use the method.
Summary of the invention
Technical problem to be solved by this invention is, a kind of method of Graceful Restart and dual master control network equipment of realizing the method for guaranteeing is provided, and can improve the success rate of centralized dual master control network equipment Graceful Restart.
The present invention solves the problems of the technologies described above the technical scheme that adopts to be, guarantee the method for Graceful Restart, active and standby master control borad operation Graceful Restart agency on the dual master control network equipment, (active and standby master control borad ruuning situation is stable under normal circumstances, the situation of active and standby switching does not occur), the Graceful Restart message that regularly Routing Protocol is sent to all neighbor devices by the agency of the Graceful Restart on the main control board is synchronized on the standby master control borad, after the active and standby switching, by the Graceful Restart agency transmission Graceful Restart message of new main control board.
After the dual master control network equipment carries out active and standby switching, need not to wait for the Routing Protocol operation, the Graceful Restart agency directly sends the Graceful Restart message to neighbor device, has shortened switching to the blanking time that the Graceful Restart message sends.
Specifically may further comprise the steps:
All move the Graceful Restart agency on the main control board of a, the dual master control network equipment, the slave control board;
The Routing Protocol that moves on b, the main control board regularly sends the Graceful Restart message to neighbor device;
The described Graceful Restart message of the Graceful Restart that moves on c, main control board agency interception, and with after the Graceful Restart message is synchronously to the slave control board, discharge described Graceful Restart message;
The Graceful Restart agency who moves on d, the slave control board preserves the Graceful Restart message of coming synchronously;
E, after the dual master control network equipment carries out active and standby switching, the Graceful Restart that moves on new main control board agency sends the Graceful Restart message preserved to the neighbor device of this dual master control network equipment.
Concrete, the Routing Protocol that moves on the main control board among the step a is that each interface is to Agent ID of Graceful Restart agent application; The Graceful Restart agency is the different Agent ID of each interface assignment for different routing protocol;
When Routing Protocol withdrawed from interface, Routing Protocol was cancelled this interface to Agent ID that should Routing Protocol to the Graceful Restart agent application; Graceful Restart agency cancellation is the Agent ID of this Routing Protocol in this interface assignment.
Concrete, the interface driver of the Graceful Restart agent monitors dual master control network equipment is tackled the Graceful Restart message by recognition agent ID among the step c.
Further, among the step c Graceful Restart agency with the Graceful Restart message with the transmission interface ID of this message, Agent ID synchronously to slave control board.
Concrete, steps d specifically may further comprise the steps:
D1, Graceful Restart agency receive the Graceful Restart message of coming synchronously, and whether the Agent ID of searching this Graceful Restart message exists, in this way, enters steps d 3; As no, enter steps d 2;
D2, record this Agent ID after, enter steps d 3;
D3, renewal GR message and transmission interface ID.
Concrete, among the step e, after the dual master control network equipment carries out active and standby switching, the Agent ID of coming synchronously of the immediately traversal preservation of Graceful Restart agency that moves on the new main control board, extract corresponding transmission interface ID and the Graceful Restart message of Agent ID, the Graceful Restart message is sent at interface corresponding to transmission interface ID.
The dual master control network equipment, comprise main control board, slave control board, included the Routing Protocol module in main control board, the slave control board, also include the Graceful Restart proxy module in main control board, the slave control board, described Graceful Restart proxy module is used for, and sends the Graceful Restart message after the dual master control network equipment carries out active and standby switching.
Routing Protocol module in the main control board is used for, and regularly sends the Graceful Restart message;
Graceful Restart proxy module in the main control board is used for, the Graceful Restart message that interception main control board Routing Protocol module sends, and with after described Graceful Restart message is synchronously to the slave control board, discharge described Graceful Restart message;
Graceful Restart proxy module in the slave control board is used for, and preserves the Graceful Restart message of coming synchronously; After active and standby switching occurs, send the Graceful Restart message of preservation to the neighbor device of this dual master control network equipment.
Further, the Routing Protocol module in the main control board also is used for, for each interface to Agent ID of Graceful Restart proxy module application; When Routing Protocol withdraws from interface, cancel this interface to Agent ID that should Routing Protocol to the application of Graceful Restart proxy module;
Described Graceful Restart proxy module also is used for, and is each interface assignment Agent ID for different routing protocol; When Routing Protocol withdraws from interface, cancel and be the Agent ID of this Routing Protocol in this interface assignment.
Further, the Graceful Restart proxy module in the main control board also is used for, and the interface driver of the monitoring dual master control network equipment is tackled the Graceful Restart message by recognition agent ID.
Further, the Graceful Restart proxy module in the main control board also is used for, and in synchronous Graceful Restart message, the transmission interface ID that the Graceful Restart message is corresponding, Agent ID are together synchronously to slave control board.
Further, the Graceful Restart proxy module in the slave control board also is used for, and behind the Graceful Restart message that reception is come synchronously, whether the Agent ID of searching this Graceful Restart message exists, in this way, upgrades the Graceful Restart message and the transmission interface ID that preserve; As no, record this Agent ID after, the Graceful Restart message and the transmission interface ID that upgrade to preserve.
Further, Graceful Restart proxy module in the main control board also is used for, after the dual master control network equipment carries out active and standby switching, the Agent ID of coming synchronously of immediately traversal preservation, extract corresponding transmission interface ID and the Graceful Restart message of Agent ID, the Graceful Restart message is sent at interface corresponding to transmission interface ID.
The invention has the beneficial effects as follows, shortened the time that the Graceful Restart message sends that is substituted into, improve the Graceful Restart success rate of dual master control centralized network equipment, guarantee the uninterrupted forwarding of running.
Description of drawings
Fig. 1 is the schematic diagram of the dual master control network equipment of the present invention.
Fig. 2 is the embodiment flow chart.
Fig. 3 is the Agent ID data structure schematic diagram that embodiment uses.
Fig. 4 is that GR proxy module on the slave control board of embodiment is to the handling process of synchronizing information.
Embodiment
As shown in Figure 1, the dual master control network equipment comprises main control board, slave control board, has included the Routing Protocol module in main control board, the slave control board, also includes the GR proxy module in main control board, the slave control board;
Routing Protocol module in the main control board is used for, and regularly sends the GR message;
GR proxy module in the main control board is used for, the GR message that interception main control board Routing Protocol module sends, and with after described GR message is synchronously to the slave control board, discharge described GR message; After the dual master control network equipment carries out active and standby switching, send the GR message of preservation to the neighbor device of this dual master control network equipment;
GR proxy module in the slave control board is used for, and preserves the GR message of coming synchronously.
Take the first master control borad as main control board, the second master control borad is slave control board, and the second master control borad is main control board after the active and standby switching, and the first master control borad is that slave control board is example, the implementation method of Graceful Restart as shown in Figure 2:
The GR proxy module of the first master control borad carries out Agent ID and distributes;
The Routing Protocol module of the first master control borad sends the GR message, is tackled by the GR proxy module of the first master control borad;
The GR proxy module of the first master control borad synchronously to the GR proxy module of the second master control borad, is preserved synchronously next GR message by the GR proxy module of the second master control borad with the GR message;
After active and standby switching occurring, send the GR message preserved to neighbours as the GR proxy module of the second master control borad of main control board.
The GR proxy module replaces the Routing Protocol module to send the GR message after switching.The GR proxy module need to be finished following work:
1. Agent ID distributes.2.GR packet sampling.3.GR message is synchronous.4.GR message sends.
Agent ID distributes: can send multiple GR message on the network equipment, and different Routing Protocols, its GR message is not identical.Same Routing Protocol operates on the different interfaces, the GR message that sends on each interface also may be different (such as: the source MAC of message is not identical).Be each GR message, the GR proxy module can distribute an Agent ID, and each Agent ID only can be preserved a GR message.The Agent ID form as shown in Figure 3 high 4 be used for to distinguish agreement.Low 28 instance of agent that are used for distinguishing each agreement.
The OSPF that moves on the main control board, the Routing Protocols such as IS-IS operations, need to for each runnable interface to Agent ID of GR proxy module application, agreement need to be recorded Agent ID with the corresponding relation of interface.When Routing Protocol withdrawed from certain interface operation, the Routing Protocol module equally need to be to GR proxy module cancellation Agent ID.Legal Agent ID is a non-zero numerical value.
The Routing Protocol module application of main control board regularly sends the GR message at each runnable interface behind Agent ID, the GR proxy module of main control board is tackled these GR messages, and this process is called the GR packet sampling.Routing Protocol every 3 HELLO cycles, sends a GR message on each runnable interface.When Routing Protocol sent message, for normal message, Agent ID filled in 0; For the GR message, Agent ID is filled in Agent ID corresponding to runnable interface.Message data is then filled in protocol massages according to standard.
GR packet sampling: carried message structure process agreement, network layer, link layer in system of message data, arrived driving.The GR proxy module is monitored the message of each transmission at interface driver.Be 0 message for Agent ID, do not tackle, send; Message for non-zero is synchronized to message data from MPU, and message is discharged, and forbids sending.
The GR message is synchronous: main control board the GR proxy module after intercepting the GR message, the GR message need to be synchronized to slave control board.
Slave control board the GR proxy module receive sync message after, process as shown in Figure 4:
The GR agency receives the GR message of coming synchronously, and whether the Agent ID of searching this GR message exists, in this way, upgrades GR message and transmission interface ID; As no, record this Agent ID after, upgrade GR message and transmission interface ID.
The GR message sends: after active and standby switching occured, former slave control board changed main control board into, adapter system.The GR proxy module of new main control board travels through the Agent ID record of coming synchronously immediately.Transmission interface ID and the GR message of GR message have been preserved as previously mentioned in the record of the Agent ID of new main control board.The GR proxy module of main control board sends the interface of GR message in correspondence, notifies neighbours GR to occur.In order to guarantee the reliable transmission of message, each GR message sends 3 times, every minor tick 10 seconds.
Can be found out that by above description method provided by the invention and the dual master control network equipment can be when main control board work, the GR proxy module by main control board is synchronized to slave control board with the GR message of agreement.After master-slave swap occured, new main main control board need not to wait for the Routing Protocol operation, and directly the GR message with backup sends to neighbours, has shortened to switch to the blanking time that the GR message sends, and has improved the success rate of GR.

Claims (8)

1. guarantee the method for Graceful Restart, it is characterized in that, specifically may further comprise the steps:
All move the Graceful Restart agency on the main control board of a, the dual master control network equipment, the slave control board;
The Routing Protocol module of moving on b, the main control board regularly sends the Graceful Restart message to neighbor device;
The described Graceful Restart message of the Graceful Restart that moves on c, main control board agency interception, and with after the Graceful Restart message is synchronously to the slave control board, discharge described Graceful Restart message;
The Graceful Restart agency who moves on d, the slave control board preserves the Graceful Restart message of coming synchronously;
E, after the dual master control network equipment carries out active and standby switching, the Graceful Restart that moves on new main control board agency sends the Graceful Restart message preserved to the neighbor device of this dual master control network equipment.
2. guarantee as claimed in claim 1 the method for Graceful Restart, it is characterized in that the Routing Protocol module of moving on the main control board among the step a is that each interface is to Agent ID of Graceful Restart agent application; The Graceful Restart agency is the different Agent ID of each interface assignment for different routing protocol;
When Routing Protocol withdrawed from interface, the Routing Protocol module was cancelled this interface to Agent ID that should Routing Protocol to the Graceful Restart agent application; Graceful Restart agency cancellation is the Agent ID of this Routing Protocol in this interface assignment.
3. guarantee as claimed in claim 2 the method for Graceful Restart, it is characterized in that, among the step c Graceful Restart agency with the Graceful Restart message with the transmission interface ID of this message, Agent ID synchronously to slave control board.
4. guarantee as claimed in claim 3 the method for Graceful Restart, it is characterized in that steps d specifically may further comprise the steps:
D1, Graceful Restart agency receive the Graceful Restart message of coming synchronously, and whether the Agent ID of searching this Graceful Restart message exists, in this way, enters steps d 3; As no, enter steps d 2;
D2, record this Agent ID after, enter steps d 3;
D3, renewal Graceful Restart message and transmission interface ID.
5. guarantee as claimed in claim 3 the method for Graceful Restart, it is characterized in that, among the step e, after the dual master control network equipment carries out active and standby switching, the Agent ID of coming synchronously of the immediately traversal preservation of Graceful Restart agency that moves on the new main control board, extract corresponding transmission interface ID and the Graceful Restart message of Agent ID, the Graceful Restart message is sent at interface corresponding to transmission interface ID.
6. the dual master control network equipment comprises main control board, slave control board, has included the Routing Protocol module in main control board, the slave control board, it is characterized in that, also includes the Graceful Restart proxy module in described main control board, the slave control board;
Routing Protocol module in the main control board is used for, and regularly sends the Graceful Restart message;
Graceful Restart proxy module in the main control board is used for, the Graceful Restart message that the Routing Protocol module of interception in the main control board sends, and with after described Graceful Restart message is synchronously to the slave control board, discharge described Graceful Restart message;
Graceful Restart proxy module in the slave control board is used for, and preserves the Graceful Restart message of coming synchronously; After active and standby switching occurs, send the Graceful Restart message of preservation to the neighbor device of this dual master control network equipment.
7. the dual master control network equipment as claimed in claim 6 is characterized in that the Routing Protocol module in the described main control board also is used for, for each interface to Agent ID of Graceful Restart proxy module application; When Routing Protocol withdraws from interface, cancel this interface to Agent ID that should Routing Protocol to the application of Graceful Restart proxy module;
Described Graceful Restart proxy module also is used for, and is each interface assignment Agent ID for different routing protocol; When Routing Protocol withdraws from interface, cancel and be the Agent ID of this Routing Protocol in this interface assignment.
8. the dual master control network equipment as claimed in claim 7, it is characterized in that, Graceful Restart proxy module in the main control board also is used for, and in synchronous Graceful Restart message, the transmission interface ID that the Graceful Restart message is corresponding, Agent ID are together synchronously to slave control board.
CN2010101764298A 2010-05-19 2010-05-19 Method for ensuring graceful restarting and dual master control network device Active CN101827035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101764298A CN101827035B (en) 2010-05-19 2010-05-19 Method for ensuring graceful restarting and dual master control network device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101764298A CN101827035B (en) 2010-05-19 2010-05-19 Method for ensuring graceful restarting and dual master control network device

Publications (2)

Publication Number Publication Date
CN101827035A CN101827035A (en) 2010-09-08
CN101827035B true CN101827035B (en) 2013-02-20

Family

ID=42690752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101764298A Active CN101827035B (en) 2010-05-19 2010-05-19 Method for ensuring graceful restarting and dual master control network device

Country Status (1)

Country Link
CN (1) CN101827035B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081540B (en) * 2011-01-18 2014-04-16 杭州华三通信技术有限公司 Distributed dual-master control network equipment software updating method and device
CN102307194B (en) * 2011-08-18 2015-06-10 杭州华三通信技术有限公司 Graceful restarting method and device for universal protocol process
CN103166847B (en) * 2011-12-09 2016-03-09 迈普通信技术股份有限公司 Ensure the method and apparatus of Graceful Restart
CN104243305A (en) * 2014-09-28 2014-12-24 福建星网锐捷网络有限公司 Fault processing method and device of multicast service
JP6861533B2 (en) * 2017-02-17 2021-04-21 三菱電機株式会社 Processing equipment, duplication system, processing method, and processing program
CN111835886B (en) * 2020-08-06 2021-08-17 南京航空航天大学 Processing method and device for manufacturing address resolution protocol packet in Internet of things gateway

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075921A (en) * 2007-07-20 2007-11-21 华为技术有限公司 Method and apparatus for processing two-way converting inspection session
CN101340369A (en) * 2008-08-14 2009-01-07 杭州华三通信技术有限公司 Method and router for realizing virtual connection supported optimum restart

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7804770B2 (en) * 2007-09-28 2010-09-28 General Instrument Corporation Method and apparatus for performing a graceful restart in a NSF-capable router without enhancing link state routing protocols

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075921A (en) * 2007-07-20 2007-11-21 华为技术有限公司 Method and apparatus for processing two-way converting inspection session
CN101340369A (en) * 2008-08-14 2009-01-07 杭州华三通信技术有限公司 Method and router for realizing virtual connection supported optimum restart

Also Published As

Publication number Publication date
CN101827035A (en) 2010-09-08

Similar Documents

Publication Publication Date Title
CN100527716C (en) Method and gateway equipment for resuming service after switching status of main/standby gateway device
CN101827035B (en) Method for ensuring graceful restarting and dual master control network device
JP4413965B2 (en) Load balancing communication device and load balancing management device
CN102098201B (en) Method for realizing L2TP user access backup and network system
EP3373547B1 (en) Method for realizing disaster tolerance backup
CN102404146B (en) Master-slave switching method, network device and DHCP server
CN100568854C (en) A kind of method and interface board that keeps neighborhood
CN103583063A (en) System and method for failover recovery at geo-redundant gateways
CN103200109B (en) A kind of ospf neighbor relationship management method and equipment
CN107769984B (en) Low-cost active/standby hot switching system and method based on gateway
CN105024836B (en) Method and device for switching primary Service Router (SR) and standby SR and SR
CN102780635A (en) Method for realizing protection switching based on TRILL (transparent interconnection of lots of link) network, TOR (top of rack) switchboard and system
CN101931550A (en) Method and device for synchronizing main and standby main control boards
US8036172B1 (en) Stateful home agent recovery protocol (SHARP)
JP6222367B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD
CN102407868B (en) Hot-standby dual-connection method suitable for communication protocol of modern monitoring system of rail transit
EP3020156A1 (en) Apparatus and method for two-way timestamp exchange
CN101237319B (en) Time synchronization method in Ethernet ring network and Ethernet ring system
CN103138957A (en) Method, device and system for business path failback
CN101645768A (en) Router and main/standby switch method thereof
KR20140001499A (en) Method and system for managing high availability
CN103166847B (en) Ensure the method and apparatus of Graceful Restart
JP2011130182A (en) Wireless base station system, and relay device
CN113630318B (en) Message transmission method and frame type communication equipment
CN102223241B (en) Method and equipment for informing network change

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