CN102325053A - Control method and device of physical signal during router network access - Google Patents

Control method and device of physical signal during router network access Download PDF

Info

Publication number
CN102325053A
CN102325053A CN201110283156A CN201110283156A CN102325053A CN 102325053 A CN102325053 A CN 102325053A CN 201110283156 A CN201110283156 A CN 201110283156A CN 201110283156 A CN201110283156 A CN 201110283156A CN 102325053 A CN102325053 A CN 102325053A
Authority
CN
China
Prior art keywords
router
initialization
control
startup
successfully
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
CN201110283156A
Other languages
Chinese (zh)
Other versions
CN102325053B (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.)
ZTE Corp
Original Assignee
ZTE Corp Nanjing Branch
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 ZTE Corp Nanjing Branch filed Critical ZTE Corp Nanjing Branch
Priority to CN201110283156.1A priority Critical patent/CN102325053B/en
Publication of CN102325053A publication Critical patent/CN102325053A/en
Application granted granted Critical
Publication of CN102325053B publication Critical patent/CN102325053B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a control method and device of a physical signal during router network access. The method comprises the following steps that: a router prohibits transmitting a physical signal after a physical interface is powered on; and the router transmits the physical signal by the physical interface after initialization is finished, and static data configuration restores to be successful. Through the technical scheme provided by the invention, the problem that UP can cause flow interruption when the router is not completely restored to be normal of the physical interface of the router in the prior art is solved, and furthermore, the effect of improving network reliability is achieved.

Description

The control method and the device of physical signalling when router networks
Technical field
The present invention relates to the communications field, the control method and the device of physical signalling when a kind of router networks.
Background technology
Along with networks development, the user has proposed increasingly high requirement for the reliability of network, and people have expected the backup architecture based on equipment naturally, just as in server, adopting two hard disk structures for improving safety of data.Router is whole server and heart, if fatefulue fault takes place router, will cause the paralysis of local network, if P, the scope of influence will be bigger, and the loss that is caused also is difficult to estimate.Therefore, router being adopted the device level redundancy backup is the inevitable choice that improves network reliability.Under a complete inoperable situation of router, its repertoire is just taken over by another backup router in the system fully, recovers normal until the router that goes wrong.
The reason of fault has multiple, as because the router failure that software or hardware fault cause or restart, and active and standby switching that perhaps causes through configuration order during software upgrading or the like.
It should can operate as normal be criterion to switch the back router normally that router recovers, if router does not recover just often to switch just might cause flow interrupt as yet fully, network is produced immeasurable influence.
Not only there is dynamic data in router, more has a large amount of static configuration data.Can the use agreement message interaction between the router detect the neighbor router state, also can rely on interface UP (promptly can normally receive and dispatch physical signalling) simply, DOWN (promptly cannot receive and dispatch physical signalling) judges whether neighbor router is available.
In distributed router system, be divided into MP (Manage Processor according to function; Management processor), RP (Routing Processor; Protocol processor), NP (Network Processor, network processing unit), wherein MP mainly accomplishes functions such as command interpretation, webmaster; RP mainly realizes agreement, and NP mainly accomplishes protocol massages transmitting-receiving and data message forwarding etc.For integrated system, MP, RP, NP realize on a CPU, are mainly used in low side devices.For distributed system, MP, RP, NP are put into separately on the independent CPUs, are mainly used in high-end devices.In order to improve message forwarding performance, increase stability and reliability that message is transmitted, NP also can be put into a plurality of CPU and go up realization.
Concerning distributed system; In the router restarting process; The physical interface UP of NP tends to accomplish prior to the NP initialization; Thereby be issued to NP prior to configuration information from MP or RP, the physical interface of UP will be set up being connected physically smoothly with the neighbor router in the existing network, only relies on physical interface UP if neighbor router does not rely on protocol interaction and just judges that the in fact disabled router in opposite end can use; Will cause switching to unprepared router and cause flow interrupt, network is produced immeasurable influence.In like manner, because the asynchronous sequence problem that issues of information causes the INFORMATION OF INCOMPLETE on the NP also can produce immeasurable influence to network.
In sum, if the router physical interface does not recover might cause flow interrupt just often with regard to UP at router as yet fully, influence the reliability of network.
Summary of the invention
Recover UP just often to router physical interface in the prior art as yet fully at router, can cause the problem of flow interrupt, the control method and the device of physical signalling when the invention provides a kind of router and networking are to address the above problem at least.
According to an aspect of the present invention, the control method of physical signalling when providing a kind of router to network, comprising: router forbids sending physical signalling after physical interface powers on completion; Router sends physical signalling through physical interface after initialization completion and static data configuration restore success.
Before the router physical interface powers on, also comprise: router startup, wherein, start comprise following one of at least: router electrifying startup, router are restarted, NP is restarted.
Above-mentioned initialization comprise following one of at least: hardware initialization, operating system initialization, protocol process initialization.
The static data configuration restore successfully comprise following one of at least: startup file download or recovers successfully, database recovery successfully, protocol data recovers successfully, static configuration data is synchronized to NP.
Router is accomplished initialization and is recovered the static data configuration and comprises: accomplish hardware initialization; The complete operation system initialization; Accomplish the protocol process initialization; Download or the recovery startup file; Restore database; Recover protocol data; Static configuration data is synchronized to NP.
According to a further aspect in the invention, the control device of physical signalling when providing a kind of router to network comprises: first control module, be used to control route after implements reason interface powers on completion, and forbid sending physical signalling; Second control module is used to control router after initialization completion and static data configuration restore success, sends physical signalling through physical interface.
Said apparatus also comprises: trigger module, be used for when router startup, triggering above-mentioned first control module, wherein start comprise following one of at least: router electrifying startup, router are restarted, NP is restarted.
Above-mentioned initialization comprise following one of at least: hardware initialization, operating system initialization, protocol process initialization.
Above-mentioned static data configuration restore successfully comprise following one of at least: startup file download or recovers successfully, database recovery successfully, protocol data recovers successfully, static configuration data is synchronized to NP.
Above-mentioned second control module comprises: first control unit is used to control router and accomplishes hardware initialization; Second control unit is used to control router complete operation system initialization; The 3rd control unit is used to control router and accomplishes the protocol process initialization; The 4th control unit is used to control the router download or recovers startup file; The 5th control unit is used to control the router restore database; The 6th control unit is used to control router and recovers protocol data; The 7th control unit is used to control router static configuration data is synchronized to NP.
Through the present invention; Adopt router after physical interface powers on completion, to forbid the transmission of physical signalling; The scheme that logical again physical interface sends physical signalling (being physics UP) after initialization completion and static data configuration restore success; Solved in the prior art router physical interface and recovered UP just often as yet fully, can cause the problem of flow interrupt, and then reach the effect that improves network reliability at router.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the control method of physical signalling when networking according to the router of the embodiment of the invention;
Fig. 2 is the application networking sketch map of the instance according to the present invention;
Fig. 3 is the physical interface UP Signal Processing flow chart of the instance according to the present invention;
Fig. 4 is the structured flowchart of the control device of physical signalling when networking according to the router of the embodiment of the invention.
Embodiment
Hereinafter will and combine embodiment to specify the present invention with reference to accompanying drawing.Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
Fig. 1 is the flow chart of the control method of physical signalling when networking according to the router of the embodiment of the invention.As shown in Figure 1, the control method of physical signalling comprises when networking according to the router of the embodiment of the invention:
Step S102, router forbids sending physical signalling after physical interface powers on completion;
Step S104, router sends physical signalling through physical interface after initialization completion and static data configuration restore success.
Through the method that present embodiment provides, physical interface UP signal can be by delayed delivery, thereby makes router to network smoothly, and original data forwarding is unaffected when having guaranteed that equipment networks, thus the key business on the protecting network.In the method that present embodiment provides, after the physical interface of router powers on and accomplishes, physics UP immediately not; (purpose is before router is ready to fully promptly on the netting twine that connects, not receive and dispatch any physical signalling; Existing network is not produced any influence), but after the complete initialization completion of router and static configuration data are recovered to accomplish fully the notice physical interface, physics UP again after physical interface is notified; Promptly normally receive and dispatch physical signalling to the netting twine that connects; After the perception of opposite end, the physical interface of opposite end also can physics UP, thereby finally realizes the level and smooth networking of router.
Said method can be applied in the various situation of router networking and the networking of similar router, and this preferred embodiment provides a kind of preferred application mode.Preferably, before the router physical interface powers on, can also comprise: router startup, wherein, above-mentioned startup comprise following one of at least: router electrifying startup, router are restarted, NP is restarted.
Above-mentioned method is particularly useful for the situation that router startup causes router to network, and here, startup includes but not limited to: router electrifying startup (networking first), router are restarted (networking again), NP is restarted.
Preferably, above-mentioned initialization can comprise following one of at least: hardware initialization, operating system initialization, protocol process initialization.
When judging whether the router initialization is accomplished; Several preferred foundations are arranged; Be that whether whether initialization completion of hardware, operating system initialization are accomplished, protocol process whether accomplish by initialization; In the practical implementation process, can according to concrete needs select for use one of them or several as the foundation of judging.
Preferably, the static data configuration restore successfully can comprise following one of at least: startup file download or recovers successfully, database recovery successfully, protocol data recovers successfully, static configuration data is synchronized to NP.
In like manner; When judging static data configuration restore success; Several preferred foundations are also arranged; Be whether startup file is downloaded or recovered success, database and whether recover whether success, protocol data recover success, whether static configuration data is synchronized to NP, in the practical implementation process, can according to concrete needs select for use one of them or several as the foundation of judging.
Can know by above-mentioned analysis; Highly preferred execution mode promptly simultaneously with hardware initialization accomplish, operating system initialization is accomplished, the condition of accomplishing as the router initialization is accomplished in the protocol process initialization, and simultaneously startup file is downloaded or recovers successfully, database recovery is successful, protocol data recovers successfully, static configuration data is synchronized to NP as static data configuration restore conditions for successful.Under this prerequisite, this preferred embodiment provides a kind of preferred execution sequence, and preferably, router is accomplished initialization and recovered the static data configuration and comprises: accomplish hardware initialization; The complete operation system initialization; Accomplish the protocol process initialization; Download or the recovery startup file; Restore database; Recover protocol data; Static configuration data is synchronized to NP.
Can guarantee the complete initialization success of router according to the said sequence execution, the assurance static configuration data is recovered fully.
Below in conjunction with instance above-mentioned preferred embodiment is elaborated.
Fig. 2 is the application networking sketch map of the instance according to the present invention, and is as shown in Figure 2: router one links to each other through gigabit mouth _ 1/1 with equipment 3, and router two links to each other through gigabit mouth _ 1/4 with equipment 3.Flow shown in the solid line representes that present flow rate just transmits through gigabit mouth _ 1/1 between router one and equipment 3, the flow shown in the dotted line representes that router two starts and initialization completion fully, static configuration data recover fully to accomplish after flow can pass through gigabit mouth _ 1/4 and between router two and equipment 3, transmit.
Fig. 3 is the physical interface UP Signal Processing flow chart of the instance according to the present invention, and is as shown in Figure 3, may further comprise the steps:
Step S302, router two starts;
Step S304, the physical interface completion that powers on, but physics UP not;
Step S306, the complete initialization completion of router two, static configuration data are recovered to accomplish fully;
Step S308, physical interface physics UP;
Step S310, the physical interface physics UP of opposite end;
Step S312, router two networks, and flow switches to router two and transmits.
In this example, router two can be notified physical interface immediately after being ready to fully, also can postpone certain hour notice physical interface.
Router two is ready to fully and notifies the function of physical interface to be accomplished by a standalone module, and standalone module is unified acquisition of information, unified notice physical interface, also can under the situation of not opening this function, directly notify physical interface.
The notified back of physical interface physics UP promptly normally receives and dispatches physical signalling to the netting twine that connects, after the perception of opposite end, and the physical interface physics UP of opposite end.Like this, after router two was ready to fully, the opposite end just can perceive the new equipment that networked, thereby has reduced the influence to existing network.
Fig. 4 is the structured flowchart of the control device of physical signalling when networking according to the router of the embodiment of the invention.As shown in Figure 4, the control device of physical signalling comprises when networking according to the router of the embodiment of the invention:
First control module 42 is used to control route after implements reason interface powers on completion, forbids sending physical signalling;
Second control module 44 is used to control router after initialization completion and static data configuration restore success, sends physical signalling through physical interface.
Through the device that present embodiment provides, physical interface UP signal can be by delayed delivery, thereby makes router to network smoothly, and original data forwarding is unaffected when having guaranteed that equipment networks, thus the key business on the protecting network.
Preferably; The control device of physical signalling can also comprise when router networked according to the preferred embodiment of the invention: trigger module; Be used for when router startup, triggering first control module; Wherein, above-mentioned startup comprise following one of at least: router electrifying startup, router are restarted, NP is restarted.
This preferred device of implementing to provide is particularly useful for the situation that router startup causes router to network, and here, startup includes but not limited to: router electrifying startup (networking first), router are restarted (networking again), NP is restarted.
Preferably, above-mentioned initialization can comprise following one of at least: hardware initialization, operating system initialization, protocol process initialization.
When judging whether the router initialization is accomplished; Several preferred foundations are arranged; Be that whether whether initialization completion of hardware, operating system initialization are accomplished, protocol process whether accomplish by initialization; In the practical implementation process, can according to concrete needs select for use one of them or several as the foundation of judging.
Preferably, the static data configuration restore successfully can comprise following one of at least: startup file download or recovers successfully, database recovery successfully, protocol data recovers successfully, static configuration data is synchronized to NP.
In like manner; When judging static data configuration restore success; Several preferred foundations are also arranged; Be whether startup file is downloaded or recovered success, database and whether recover whether success, protocol data recover success, whether static configuration data is synchronized to NP, in the practical implementation process, can according to concrete needs select for use one of them or several as the foundation of judging.
Preferably, second control module can comprise:
First control unit is used to control router and accomplishes hardware initialization;
Second control unit is used to control router complete operation system initialization;
The 3rd control unit is used to control router and accomplishes the protocol process initialization;
The 4th control unit is used to control the router download or recovers startup file;
The 5th control unit is used to control the router restore database;
The 6th control unit is used to control router and recovers protocol data;
The 7th control unit is used to control router static configuration data is synchronized to NP.
Can know by above-mentioned analysis; Highly preferred execution mode promptly simultaneously with hardware initialization accomplish, operating system initialization is accomplished, the condition of accomplishing as the router initialization is accomplished in the protocol process initialization, and simultaneously startup file is downloaded or recovers successfully, database recovery is successful, protocol data recovers successfully, static configuration data is synchronized to the NP while as static data configuration restore conditions for successful.Said units can guarantee the complete initialization success of router promptly one by one corresponding to these conditions through said units, and the assurance static configuration data is recovered fully.
From above description; Can find out; Technical scheme provided by the invention has solved the router physical interface and has recovered fully as yet just often may to cause flow interrupt, to influence the reliability problems of network with regard to UP at router, is a kind ofly to reach the scheme of level and smooth networking based on delayed delivery physical interface UP signal, and an important high reliability (High Availability is provided; Abbreviate HA as) technology; When the equipment that guaranteed networks or equipment when restarting, minimum to original data forwarding influence, thus key business is unaffected on the protecting network.
Obviously, it is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize with the general calculation device; They can concentrate on the single calculation element; Perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element; Thereby; Can they be stored in the storage device and carry out, and in some cases, can carry out step shown or that describe with the order that is different from here by calculation element; Perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the control method of physical signalling is characterized in that when a router networked, and comprising:
Router forbids sending physical signalling after physical interface powers on completion;
Said router sends physical signalling through said physical interface after initialization completion and static data configuration restore success.
2. method according to claim 1 is characterized in that, before the router physical interface powers on, also comprises:
Router startup, wherein, said startup comprise following one of at least: router electrifying startup, router are restarted, network processing unit NP is restarted.
3. method according to claim 1 and 2 is characterized in that, said initialization comprise following one of at least: hardware initialization, operating system initialization, protocol process initialization.
4. method according to claim 3 is characterized in that, said static data configuration restore successfully comprise following one of at least: startup file download or recovers successfully, database recovery successfully, protocol data recovers successfully, static configuration data is synchronized to NP.
5. method according to claim 4 is characterized in that, said router is accomplished initialization and recovered the static data configuration and comprises:
Accomplish hardware initialization;
The complete operation system initialization;
Accomplish the protocol process initialization;
Download or the recovery startup file;
Restore database;
Recover protocol data;
Static configuration data is synchronized to NP.
6. the control device of physical signalling is characterized in that when a router networked, and comprising:
First control module is used to control route after implements reason interface powers on completion, forbids sending physical signalling;
Second control module is used to control said router after initialization completion and static data configuration restore success, sends physical signalling through said physical interface.
7. device according to claim 6 is characterized in that, also comprises:
Trigger module is used for when said router startup, triggering said first control module, wherein, said startup comprise following one of at least: router electrifying startup, router are restarted, network processing unit NP is restarted.
8. according to claim 6 or 7 described devices, it is characterized in that, said initialization comprise following one of at least: hardware initialization, operating system initialization, protocol process initialization.
9. device according to claim 8 is characterized in that, said static data configuration restore successfully comprise following one of at least: startup file download or recovers successfully, database recovery successfully, protocol data recovers successfully, static configuration data is synchronized to NP.
10. device according to claim 9 is characterized in that, said second control module comprises:
First control unit is used to control said router and accomplishes hardware initialization;
Second control unit is used to control said router complete operation system initialization;
The 3rd control unit is used to control said router and accomplishes the protocol process initialization;
The 4th control unit is used to control said router download or recovers startup file;
The 5th control unit is used to control said router restore database;
The 6th control unit is used to control said router and recovers protocol data;
The 7th control unit is used to control said router static configuration data is synchronized to NP.
CN201110283156.1A 2011-09-22 2011-09-22 The control method and device of physical signal during router network access Active CN102325053B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110283156.1A CN102325053B (en) 2011-09-22 2011-09-22 The control method and device of physical signal during router network access

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110283156.1A CN102325053B (en) 2011-09-22 2011-09-22 The control method and device of physical signal during router network access

Publications (2)

Publication Number Publication Date
CN102325053A true CN102325053A (en) 2012-01-18
CN102325053B CN102325053B (en) 2019-04-23

Family

ID=45452727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110283156.1A Active CN102325053B (en) 2011-09-22 2011-09-22 The control method and device of physical signal during router network access

Country Status (1)

Country Link
CN (1) CN102325053B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847022A (en) * 2015-01-14 2016-08-10 海信集团有限公司 Network configuration methods and system of local area network of power line communication (PLC)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561041A (en) * 2004-02-26 2005-01-05 中兴通讯股份有限公司 Device and method of Ethernet interface thermal backup
CN1968153A (en) * 2006-10-25 2007-05-23 华为技术有限公司 Method and apparatus for hot upgrade of network processor
CN101127724A (en) * 2007-10-12 2008-02-20 杭州华三通信技术有限公司 Multicast system, device and method based on 802.1ah protocol in MAN Ethernet network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561041A (en) * 2004-02-26 2005-01-05 中兴通讯股份有限公司 Device and method of Ethernet interface thermal backup
CN1968153A (en) * 2006-10-25 2007-05-23 华为技术有限公司 Method and apparatus for hot upgrade of network processor
CN101127724A (en) * 2007-10-12 2008-02-20 杭州华三通信技术有限公司 Multicast system, device and method based on 802.1ah protocol in MAN Ethernet network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蔡文晶: "基于ZigBee技术的无线数据采集系统", 《中国优秀硕士学位论文全文数据库》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847022A (en) * 2015-01-14 2016-08-10 海信集团有限公司 Network configuration methods and system of local area network of power line communication (PLC)
CN105847022B (en) * 2015-01-14 2019-03-26 海信集团有限公司 A kind of network collocating method and system of the local area network of power line communication PLC

Also Published As

Publication number Publication date
CN102325053B (en) 2019-04-23

Similar Documents

Publication Publication Date Title
CN101390336B (en) Disaster recovery architecture
EP3210367B1 (en) System and method for disaster recovery of cloud applications
CN100527716C (en) Method and gateway equipment for resuming service after switching status of main/standby gateway device
US9348706B2 (en) Maintaining a cluster of virtual machines
CN102394914A (en) Cluster brain-split processing method and device
KR100411978B1 (en) Fault tolerant system and duplication method thereof
CN106330475A (en) Method and device for managing main and standby nodes in communication system and high availability cluster
CN102609327A (en) Method and device for improving reliability of multi-core processor
JP2003337717A (en) Fault recovery synchronizing system of online transaction process
JP4580372B2 (en) Network system
CN102073523A (en) Method and device for implementing software version synchronization
CN115801642B (en) RDMA communication management module, method, equipment and medium based on state control
CN102136936B (en) Method, node and system for preventing control plane faults from influencing operation of forward data plane
CN102325053A (en) Control method and device of physical signal during router network access
CN103001832B (en) The detection method of distributed file system interior joint and device
CN112491633B (en) Fault recovery method, system and related components of multi-node cluster
CN111224803B (en) Multi-master detection method in stacking system and stacking system
JP2009075710A (en) Redundant system
CN100362811C (en) Method for obtaining configuration information
CN114138567A (en) Substrate management control module maintenance method, device, equipment and storage medium
CN103023697B (en) A kind of management method, Apparatus and system of array multipath
CN101668358B (en) Examining method of protection switching and device thereof
CN110890989A (en) Channel connection method and device
JP2006268278A (en) Remote maintenance computer maintenance system
CN100413261C (en) Method and system of data recovering

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 210012 NANJING, JIANGSU PROVINCE TO: 518057 SHENZHEN, GUANGDONG PROVINCE

TA01 Transfer of patent application right

Effective date of registration: 20111221

Address after: 518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No.

Applicant after: ZTE Corporation

Address before: 210012 Zhongxing communication, No. 68, Bauhinia Road, Yuhuatai District, Jiangsu, Nanjing

Applicant before: Nanjing Branch of Zhongxing Communication Co., Ltd.

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant