CN1529465A - Hot-plugging detection and treating method - Google Patents

Hot-plugging detection and treating method Download PDF

Info

Publication number
CN1529465A
CN1529465A CNA031347274A CN03134727A CN1529465A CN 1529465 A CN1529465 A CN 1529465A CN A031347274 A CNA031347274 A CN A031347274A CN 03134727 A CN03134727 A CN 03134727A CN 1529465 A CN1529465 A CN 1529465A
Authority
CN
China
Prior art keywords
module
processing
configuration information
netdev
detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA031347274A
Other languages
Chinese (zh)
Other versions
CN100550783C (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.)
Huawei Technologies Co Ltd
Original Assignee
Harbour Networks Holdings 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 Harbour Networks Holdings Ltd filed Critical Harbour Networks Holdings Ltd
Priority to CNB031347274A priority Critical patent/CN100550783C/en
Publication of CN1529465A publication Critical patent/CN1529465A/en
Application granted granted Critical
Publication of CN100550783C publication Critical patent/CN100550783C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

When exchanger is not in down time, the method through message of state reports of interrupter and device status machine detects hot plug. When hot drawing a module, following steps are executed: under state of not influencing normal transferring traffic flow, configuration information relevant to the module is parses and picked up from global configuration information; data link layer, IP route layer and QoS each handling module delete the configuration information, and make backup copy, and clean up status messages of the module. When hot plugging a module, following steps are executed: current NETDEV data structure on main control board is synchronized to the module; based on NETDEV data table, hardware setting is recovered for the module; command for saving global configuration information is executed to recover configuration information relevant to the module. Thus, user can move and replace a module in installation, debug and fault test without need of closing down exchanger.

Description

The detection of hot plug and processing method
Affiliated technical field
The invention belongs to computer network communication field, be specifically related to a kind of hot plug detection and processing method towards high-end switch.
Background technology
In switch work, may be owing to reasons such as module failures, the user wishes under switch is not delayed the situation of machine, carries out the heat of module and inserts or hot drawing.On the one hand, the detection of hot plug and processing do not influence other modules, do not have influence on the normal forwarding of Business Stream; On the other hand, the user extract modules configured information deleted after, when inserting once more, this modules configured information in the time of can recovering to extract.Be the operation of extracting other modules of the system of not influencing of module, and system to reflect really that this module does not exist; When the user inserted this module once more, this modules configured information can be recovered, and after the insertion, the user need not to intervene, and module just can be as not extracting operate as normal (forwarding).
At present, the switch that has is not supported hot plug, and perhaps after carrying out hot plug, whole system must restart, and promptly needs the machine of delaying, and can not allow the unremitting work of system; The hot plug mechanism that also has can not be accomplished the recovery fully of configuration information.
Summary of the invention
The present invention overcomes the deficiency of the processing method of above-mentioned hot plug, provides a kind of under switch is not delayed the situation of machine, can arbitrarily replace or the hot plug detection and the processing method of mobile module.
Technology contents of the present invention: a kind of detection of hot drawing and processing method comprise:
(1) detects interruption when master control borad, when finding to have module to be pulled out, or when the equipment state machine normally moves, during the overtime status report message of not receiving module, carry out the processing of hot drawing by the equipment state machine.
(2) from global configuration information, extract the configuration information relevant with this module, preserve in the global configuration information and the related command of module;
(3) data link layer, IP route layer, each processing module deletion of QoS configuration information relevant with this module, and back up accordingly;
(4) remove the state information of this module.
Detection and processing method that a kind of heat is inserted comprise:
(1) when the equipment state machine normally moves, receive the register requirement message of new module, carry out the processing that heat is inserted;
(2) data link layer, IP route layer, each processing module of QOS issue the configuration relevant with this module;
(3) hold-over command of execution global configuration information is recovered the relevant configuration information of this module.
Current NETDEV data structure on the master control borad is synchronized to this module, on this module, recovers hardware setting according to the NETDEV tables of data;
The processing of data link layer comprises in the step (3) that hot drawing is handled:
A, after module is extracted, at first each port on the module all produces a NETDEV_DOWN incident, removes multidate information by this incident;
B, execution and the opposite order of preservation message command effect are removed relevant configuration information, and produce the corresponding apparatus notification event in the fill order processes;
The contents in table of each port correspondence in c, the deletion NETDEV table and in the module, and produce the NETDEV_UNREGISTER incident.
The processing of IP route layer comprises in the step (3) that hot drawing is handled: the port NETDEV_DOWN incident of module is by notice chain function notice routing module, and routing module re-routes and calculates, and deletes corresponding route table items.
The processing of each processing module of QoS comprises in the step (3) that hot drawing is handled: by all relevant QOS and ACL configuration software information on the call back function removing module interface of registration hot plug processing.
The processing that heat is inserted data link layer in the step of handling (2) comprises: the current NETDEV data structure on the master control borad is issued to this module, and module is recovered hardware setting according to the NETDEV tables of data.
The processing that heat is inserted IP route layer in the step of handling (2) comprises: fib table all is issued to this module.
The processing that heat is inserted each processing module of QoS in the step of handling (2) comprises: recover relevant configuration by the CALLBACK function.
Technique effect of the present invention: the present invention under switch is not delayed the situation of machine by interrupting and the status report message of equipment state machine detects the triggering hot plug, in the time of the hot drawing module, do not influence under the state of normal forwarding of Business Stream, data link layer, IP route layer and each processing module of QOS are deleted this modules configured information respectively and are backed up; When heat is inserted module, the configuration information that this module recovery is relevant.But operate as normal still after module is handled through hot plug, under the situation of not closing switch, the user can arbitrarily replace or mobile module, is convenient to installation, debugging and fault detect, make that the switch product is more competitive, realized " plug and play " of switch.And detection for hot drawing, use two kinds of mechanism: interrupt (the hard detection) and status report message (soft detection), do not receive the message of module when master control borad a period of time after, both can think that this module extracted, can think that also fault has taken place this module, so the detection of hot drawing also has the function of a fault detect.
Description of drawings
Fig. 1 is the process chart of hot drawing of the present invention;
Fig. 2 is the process chart that the present invention's heat is inserted.
Embodiment
For the detection of hot drawing, use two kinds of mechanism: interrupt (the hard detection) and status report message (soft detection); The processing that heat is inserted only is the registration triggering by business module, interrupts not triggering heat and inserts processing procedure.It all is to carry out at a new task space that all hot plugs are handled, and the priority of the task that this is new is equal to the priority of equipment state machine task; When hot plug is finished dealing with, this task withdraws from automatically.
The detection of hot drawing and processing mainly are the deletion of configuration information and the extraction backup of configuration information.As user's physics extract a module time, master control borad detects interruption, when finding to have module to be pulled out by equipment state machine (master control borad a period of time is not received the other side's heartbeat message), detecting that module inside this interrupts is pulled out, slot number according to module, check the running status of module, if the current running status of this module less than MODULE_MOD_READY, is not then carried out the processing of hot plug; Otherwise, then carry out the processing of hot plug; When ACTIVE MASTER (interruption) does not receive the status report message of certain business module for a long time, if this module current running status be not less than MODULE_MOD_READY, then carry out the processing of hot drawing.
With reference to figure 1, the processing of hot drawing comprises: (1) is from global configuration information (SHOW RUN), extract the configuration information relevant with this module, at first form and be pulled out the command block that plate is associated, to each command block structural feature keyword, search out the configuration information that comprises the corresponding command piece, and preserve in the global configuration information and the related command of module.(2) after module is extracted, at first all produce a NETDEV_DOWN incident for each port on the module, remove multidate information by the DOWN incident, secondly, the order of preserving is the configuration that is used for inserting at interface board back restoration interface plate, so after interface board is extracted, as long as carry out the order opposite with these order effects, just can remove the configuration information relevant, and in the fill order process, produce the corresponding apparatus notification event with extracting veneer; After finishing relevant configuration and removing, the contents in table of each port correspondence in the deletion NETDEV table and in the interface board, and produce the NETDEV_UNREGISTER incident.The most crucial task of L3 layer module is to handle the variation of routing table and ARP table during hot drawing.After professional version was extracted, the port DOWN incident of interface board was by notice chain function notice routing module, and routing module can re-route calculating, deletes corresponding route table items.This process can be handled and can reasonablely be connected with the hot drawing of L2 by the notice chain function that routing module is registered, so does not need special processing on the flow process.For the ARP table, after plank was extracted, the ARP table of learning from this plate had kept necessity, should aging deletion from system immediately.Delete all relevant QOS and ACL configuration software information by the call back function that the registration hot plug is handled.
(3) remove the context information of this module.
(4) to be died by the withdrawing pattern piece in order preventing, can to carry out this module and once restart.
Detection and processing that heat is inserted mainly are to realize the recovery of configuration information by issuing the software list item again.When new business board injected, it will send the register requirement message to master control borad, and ACTIVE MASTER (interruption) sends to this business module and replys, and the tagging position is that heat is inserted.Interface board begins to carry out synchronously with master control borad after receiving the registration response message, after a veneer inserts, current NETDEV data structure on the master control borad (not comprising the configuration relevant with extracting veneer of having preserved) need be synchronized to this interface board, and in hardware, dispose accordingly according to these software list items.With reference to figure 2, order is done following processing:
(1) create port and default VLAN, the operation of carrying out during with system start-up is the same substantially;
(2) the synchronous NETDEV tables of data of master control borad is to the interface board that inserts, send data after, master control borad waits for that interface board finishes hardware configuration;
(3) interface board carries out the relevant hardware setting according to this tables of data after the NETDEV tables of data, after interface board is finished hardware setting, sends the message informing master control borad;
(4) master control borad competitive list board type judges whether to be configured recovery;
(5) master control borad extracts and carries out the configuration order piece of preserving, and the interface board that inserts is configured.
(6) after master control borad is finished the configuration of interface board, open each port of interface board, make the interface board of insertion can carry out the business forwarding;
The most crucial task of L3 module was to handle the variation of routing table and ARP table when heat was inserted.
Professional version for new insertion need all be issued to this module with fib table, and the route that inserting rear port UP in addition increases also will issue in the lump.QOS and ACL module can realize recovering by registering the slotting CALL_BACK function of heat.
Simultaneously during insertion system, heat is inserted and handled is serial as a plurality of modules; Processing procedure for each module is the same.

Claims (8)

1. the detection of a hot drawing and processing method comprise:
(1) detects interruption when master control borad, or when the equipment state machine normally moves, during the overtime status report message of not receiving module, find have module to be pulled out, carry out the processing of hot drawing by the equipment state machine;
(2) from global configuration information, extract the configuration information relevant with this module, preserve the order relevant in the global configuration information with module;
(3) data link layer, IP route layer, each processing module deletion of QoS configuration information relevant with this module, and back up accordingly;
(4) remove the state information of this module.
2. the heat detection and the processing method of inserting comprises:
(1) when the equipment state machine normally moves, receive the register requirement message of new module, carry out the processing that heat is inserted;
(2) data link layer, IP route layer, each processing module of QOS issue the configuration relevant with this module;
(3) carry out the hold-over command of global configuration information, recover the relevant configuration information of this module.
3. the detection of hot drawing as claimed in claim 1 and processing method is characterized in that the processing of data link layer in the step (3) comprises:
A, after module is extracted, at first each port on the module all produces a NETDEV_DOWN incident, removes multidate information by this incident;
B, execution and the opposite order of preservation configuration information order effect are removed relevant configuration information, and produce the corresponding apparatus notification event in the fill order processes;
The contents in table of each port correspondence in c, the deletion NETDEV table and in the module, and produce the NETDEV_UNREGISTER incident.
4. the detection of hot drawing as claimed in claim 1 and processing method, the processing that it is characterized in that IP route layer in the step (3) comprises: the port NETDEV_DOWN incident of module is by notice chain function notice routing module, routing module re-routes and calculates, and deletes corresponding route table items.
5. the detection of hot drawing as claimed in claim 1 and processing method is characterized in that the processing of each processing module of QoS in the step (3) comprises: preserve all relevant QOS and ACL configuration software information on the module interface by the call back function that the registration hot plug is handled.
6. detection and processing method that heat as claimed in claim 2 is inserted is characterized in that the processing of data link layer in the step (2) comprises: the current NETDEV data structure on the master control borad is issued to this module, and module is recovered hardware setting according to the NETDEV tables of data.
7. detection and processing method that heat as claimed in claim 2 is inserted is characterized in that the processing of IP route layer in the step (2) comprises: fib table all is issued to this module.
8. detection and processing method that heat as claimed in claim 2 is inserted is characterized in that the processing of each processing module of QoS in the step (2) comprises: recover relevant configuration by the CALLBACK function.
CNB031347274A 2003-09-29 2003-09-29 The detection of hot plug and processing method Expired - Fee Related CN100550783C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031347274A CN100550783C (en) 2003-09-29 2003-09-29 The detection of hot plug and processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031347274A CN100550783C (en) 2003-09-29 2003-09-29 The detection of hot plug and processing method

Publications (2)

Publication Number Publication Date
CN1529465A true CN1529465A (en) 2004-09-15
CN100550783C CN100550783C (en) 2009-10-14

Family

ID=34286182

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031347274A Expired - Fee Related CN100550783C (en) 2003-09-29 2003-09-29 The detection of hot plug and processing method

Country Status (1)

Country Link
CN (1) CN100550783C (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007025446A1 (en) * 2005-09-02 2007-03-08 Shenzhen Donjin Communication Tech Co., Ltd Module configuration and management method in integrated communication platform
CN1321510C (en) * 2005-03-30 2007-06-13 中国人民解放军国防科学技术大学 Method for supporting link management of hot connection and disconnection
CN100357902C (en) * 2005-12-20 2007-12-26 华为技术有限公司 Data back-up method of plug-in card for business processing unit board
CN100459515C (en) * 2005-12-27 2009-02-04 迈普(四川)通信技术有限公司 Preservation method of hot swab board configuration
CN101753362A (en) * 2010-02-10 2010-06-23 中兴通讯股份有限公司 Configuring method and device of stacking virtual local area network of distributed network device
WO2010142164A1 (en) * 2009-06-12 2010-12-16 华为技术有限公司 Operation maintaining system and method for network access device
CN101286834B (en) * 2008-05-30 2011-01-05 杭州华三通信技术有限公司 Data synchronizing method and apparatus
CN101114925B (en) * 2006-07-28 2011-05-25 深圳迈瑞生物医疗电子股份有限公司 Parameter module plug detecting method and apparatus for medical guardianship equipment
US8327113B2 (en) 2004-12-13 2012-12-04 Intel Corporation Method, system, and apparatus for dynamic reconfiguration of resources
CN103049344A (en) * 2012-11-30 2013-04-17 华为技术有限公司 Fault-tolerance processing method and device for plugging hardware
US8606934B2 (en) 2004-12-13 2013-12-10 Intel Corporation Method, system, and apparatus for system level initialization by conveying capabilities and identifiers of components
CN104572561A (en) * 2015-01-30 2015-04-29 浪潮电子信息产业股份有限公司 Implementing method and system of overall hot plugging of clumps
CN104679621A (en) * 2013-11-28 2015-06-03 英业达科技有限公司 Hot plug system and method thereof
CN105094010A (en) * 2015-07-01 2015-11-25 国家电网公司 Relay protection device plug-and-play management method and system
CN106326167A (en) * 2015-06-17 2017-01-11 中兴通讯股份有限公司 PCIE sub-card-based hot plugging method and apparatus
CN107038137A (en) * 2016-02-04 2017-08-11 华为技术有限公司 A kind of device and method of hot plug
CN107608924A (en) * 2017-09-19 2018-01-19 新华三技术有限公司 A kind of control method and device of interface board hot plug
CN107704411A (en) * 2017-09-19 2018-02-16 新华三技术有限公司 A kind of hot plug control device and the network equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6105089A (en) * 1997-05-13 2000-08-15 Micron Electronics, Inc. Data management system for adding or exchanging components on a running computer
JP3231719B2 (en) * 1998-12-09 2001-11-26 甲府日本電気株式会社 PCI hot plug controller
CN1148073C (en) * 1999-11-18 2004-04-28 华为技术有限公司 Single board of exchanger for implementing hot exchange and its backplate

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8327113B2 (en) 2004-12-13 2012-12-04 Intel Corporation Method, system, and apparatus for dynamic reconfiguration of resources
US9223738B2 (en) 2004-12-13 2015-12-29 Intel Corporation Method, system, and apparatus for dynamic reconfiguration of resources
US9798556B2 (en) 2004-12-13 2017-10-24 Intel Corporation Method, system, and apparatus for dynamic reconfiguration of resources
CN101165678B (en) * 2004-12-13 2016-07-06 英特尔公司 For the method increasing independent resource to point-to-point architecture system
US8606934B2 (en) 2004-12-13 2013-12-10 Intel Corporation Method, system, and apparatus for system level initialization by conveying capabilities and identifiers of components
CN1321510C (en) * 2005-03-30 2007-06-13 中国人民解放军国防科学技术大学 Method for supporting link management of hot connection and disconnection
WO2007025446A1 (en) * 2005-09-02 2007-03-08 Shenzhen Donjin Communication Tech Co., Ltd Module configuration and management method in integrated communication platform
CN100357902C (en) * 2005-12-20 2007-12-26 华为技术有限公司 Data back-up method of plug-in card for business processing unit board
CN100459515C (en) * 2005-12-27 2009-02-04 迈普(四川)通信技术有限公司 Preservation method of hot swab board configuration
CN101114925B (en) * 2006-07-28 2011-05-25 深圳迈瑞生物医疗电子股份有限公司 Parameter module plug detecting method and apparatus for medical guardianship equipment
CN101286834B (en) * 2008-05-30 2011-01-05 杭州华三通信技术有限公司 Data synchronizing method and apparatus
WO2010142164A1 (en) * 2009-06-12 2010-12-16 华为技术有限公司 Operation maintaining system and method for network access device
CN101753362B (en) * 2010-02-10 2014-04-30 中兴通讯股份有限公司 Configuring method and device of stacking virtual local area network of distributed network device
CN101753362A (en) * 2010-02-10 2010-06-23 中兴通讯股份有限公司 Configuring method and device of stacking virtual local area network of distributed network device
CN103049344A (en) * 2012-11-30 2013-04-17 华为技术有限公司 Fault-tolerance processing method and device for plugging hardware
CN103049344B (en) * 2012-11-30 2015-12-09 华为技术有限公司 The method and apparatus of hardware plug fault-tolerant processing
CN104679621A (en) * 2013-11-28 2015-06-03 英业达科技有限公司 Hot plug system and method thereof
CN104572561A (en) * 2015-01-30 2015-04-29 浪潮电子信息产业股份有限公司 Implementing method and system of overall hot plugging of clumps
CN106326167A (en) * 2015-06-17 2017-01-11 中兴通讯股份有限公司 PCIE sub-card-based hot plugging method and apparatus
CN105094010A (en) * 2015-07-01 2015-11-25 国家电网公司 Relay protection device plug-and-play management method and system
CN107038137A (en) * 2016-02-04 2017-08-11 华为技术有限公司 A kind of device and method of hot plug
CN107038137B (en) * 2016-02-04 2020-04-28 华为技术有限公司 Hot-plug equipment and method
CN107608924A (en) * 2017-09-19 2018-01-19 新华三技术有限公司 A kind of control method and device of interface board hot plug
CN107704411A (en) * 2017-09-19 2018-02-16 新华三技术有限公司 A kind of hot plug control device and the network equipment
CN107608924B (en) * 2017-09-19 2020-12-04 新华三技术有限公司 Method and device for controlling hot plug of interface board

Also Published As

Publication number Publication date
CN100550783C (en) 2009-10-14

Similar Documents

Publication Publication Date Title
CN1529465A (en) Hot-plugging detection and treating method
CN102045332B (en) Method for processing control message in intelligent resilient framework and line card boards
US7120834B1 (en) Fast port failover in a network switch
US20170255529A1 (en) Smart data replication recoverer
US9402205B2 (en) Traffic forwarding method and system based on virtual switch cluster
CN103729280A (en) High availability mechanism for virtual machine
EP2352253A1 (en) Method and apparatus for protecting link aggregation group of ethernet ring
WO2019070915A1 (en) Partial database restoration
CN1529459A (en) Main-standby rotation realizing method facing to high-side exchange board
CN1677887A (en) N+1 duplicates data real-time synchronising method
CN105790825B (en) Method and device for hot backup of controller in distributed protection
CN107517110A (en) Veneer configuration self-recovery method and device in a kind of distributed system
WO2015154525A1 (en) Method and device for protecting hqos using multiple board cards
CN101079734A (en) A hot plug configuration recovery method of rack device
CN1311604C (en) Circulation recovery plan for transmitting branch
CN1622483A (en) A method for implementing software hot-backup of main and reserve machines
JP4511047B2 (en) Protocol for synchronizing parallel processors in a mobile communication system
CN108959547A (en) A kind of PV snapshot distributed experiment & measurement system restoration methods
CN113573344A (en) SMF session detection method based on 5G and terminal
CN111865637B (en) Fault recovery method and system
CN105939203B (en) List item synchronous method and device
CN114301763A (en) Distributed cluster fault processing method and system, electronic device and storage medium
CN111831490A (en) Method and system for synchronizing memories between redundant main and standby nodes
KR100818240B1 (en) Portable internet radio access station system comprising multiple management processors, and method for controlling the multiple management processors
CN1275410C (en) Method of realizing session data operation and manintenance

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: HUAWEI TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: GANGWAN NETWORK CO., LTD.

Effective date: 20061013

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20061013

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant after: Huawei Technologies Co., Ltd.

Address before: 100089, No. 21 West Third Ring Road, Beijing, Haidian District, Long Ling Building, 13 floor

Applicant before: Harbour Networks Holdings Limited

C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091014

Termination date: 20110929