CN101431437A - Switching control method and device for main and standby network interface board - Google Patents

Switching control method and device for main and standby network interface board Download PDF

Info

Publication number
CN101431437A
CN101431437A CNA2008101876968A CN200810187696A CN101431437A CN 101431437 A CN101431437 A CN 101431437A CN A2008101876968 A CNA2008101876968 A CN A2008101876968A CN 200810187696 A CN200810187696 A CN 200810187696A CN 101431437 A CN101431437 A CN 101431437A
Authority
CN
China
Prior art keywords
network interface
interface board
main
physical state
backup
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
CNA2008101876968A
Other languages
Chinese (zh)
Other versions
CN101431437B (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.)
Zhang Guimin
Original Assignee
ZTE Corp
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 filed Critical ZTE Corp
Priority to CN2008101876968A priority Critical patent/CN101431437B/en
Publication of CN101431437A publication Critical patent/CN101431437A/en
Application granted granted Critical
Publication of CN101431437B publication Critical patent/CN101431437B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention discloses a switching control method of main and standby network interface board and the device thereof, wherein the method comprises the following steps: selecting the best network interface board to provide external service through synthetically comparing work status of net mouth in main and standby network interface board, significance of different functional net mouth in main and standby network interface board, and external bandwidth supply capability of net mouth in main and standby network interface board; and the device comprising scanned result receiving module, first judgment module, second judgment module and switching module. Problems like simply relying physical status on making decision, equal treatment to net mouth of different function in network interface board, and not taking external bandwidth supply capability of network interface board as preferred factor are conquered through the invention.

Description

A kind of conversion control method of main and standby network interface board and device
Technical field
The present invention relates to the network interface plate technique of communication field, relate in particular to a kind of conversion control method and device of main and standby network interface board.
Background technology
In the actual network environment of media gateway, the importance of network interface board is self-evident, disposes two-shipper usually and carries out Hot Spare, sees also Fig. 1, and this figure is the networking schematic diagram of main and standby network interface board.Usually main identical with the network interface of network interface board and backup network interface board external IP address and MAC Address, when the master breaks down with network interface board (breaking down) such as network interface, whether should allow the backup network interface board inverse switch be that new master continues to keep service ability with network interface board immediately, be a problem of exist actually.There is following drawback in the switching controls scheme of present existing network interface board:
1) merely makes a strategic decision according to the physical state of network interface, as long as the physical state of network interface just thinks that normally the operating state of network interface is normal, but in fact the physical state of network interface does not normally represent the operating state of network interface necessarily normal, although the physical state such as network interface is normal because protocol layer unavailable cause with next-hop device PING obstructed.
2) (network interface board can provide Multi-netmouth to the network interface of the difference in functionality on the network interface board, different network interfaces are realized difference in functionality according to data configuration) put on an equal footing, the network interface fault of difference in functionality is different to the integrity service ability influence of system in fact, compare with the medium network interface such as the signaling network interface, the signaling network interface is that the overall situation is unique, the signaling network interface means in case break down to lose the integrity service ability, so should have higher priority.
3) not the external bandwidth providing capability of network interface board as preferred factor, when losing part network interface service ability simultaneously, can't select the maximum network interface board of network interface real work number main intelligently with network interface board and backup network interface board.
Summary of the invention
The invention provides a kind of conversion control method and device of main and standby network interface board, the operating state, functional attributes and the external bandwidth providing capability that are used for according to network interface on the network interface board select suitable network interface board that service externally is provided.
Technical scheme of the present invention is as follows:
A kind of conversion control method of main and standby network interface board comprises step:
A, receive the network interface physical state scanning result that the backup network interface board reports with network interface board when main, the operating state that perhaps scans this expanded metals mouth occurs when unusual, whether the state of judging signaling network interface on the backup network interface board is better than main state with signaling network interface on the network interface board, if, execution in step C, otherwise, execution in step B;
B, judge whether the external bandwidth providing capability of medium network interface on the backup network interface board is better than main external bandwidth providing capability with medium network interface on the network interface board, if, execution in step C, otherwise, do not carry out network interface board switching;
C, be that new master uses network interface board with described backup network interface board inverse switch.
Preferably, described main operating state with network interface in the network interface board is the physical state of network interface.
Also comprise step before the described steps A:
Switch the detection instruction to described master with network interface board and the transmission of described backup network interface board;
Described master with network interface board receive described switch detect instruction after, opens and receive the network interface physical state scanning result that the backup network interface board reports, and the physical state scanning result of this expanded metals mouth is regularly inquired about in beginning;
Described backup network interface board receive described switch detect instruction after, the physical state of this expanded metals of beginning timing scan mouth also reports the main network interface board of using.
Preferably, described main operating state with network interface in the network interface board is the physical state and the PING protocol status of network interface.
Also comprise step before the described steps A:
Switch the detection instruction to described master with network interface board and the transmission of described backup network interface board, and send the instruction that starts the PING protocol stateful inspection with network interface board to described master;
Described master with network interface board receive described switch detect instruction and start the instruction of PING protocol stateful inspection after, open and receive the network interface physical state scanning result that the backup network interface board reports, and the physical state scanning result of this expanded metals mouth and the PING protocol status of this expanded metals of timing scan mouth are regularly inquired about in beginning;
Described backup network interface board receive described switch detect instruction after, the physical state of this expanded metals of beginning timing scan mouth also reports the main network interface board of using.
Preferably, the scanning of the PING protocol status of described network interface is finished by the IP address of next jumping of PING network interface.
Preferably, described main physical state with this expanded metals of network interface board timing scan mouth.
Preferably, among the described step B, the external bandwidth providing capability of medium network interface is determined by the quantity of the medium network interface that is in normal operating conditions on this network interface board on the network interface board.
A kind of main and standby network interface board switch control device, comprising:
The scanning result receiver module is used to receive the network interface physical state scanning result that the backup network interface board reports and the operating state scanning result of this expanded metals mouth;
First judge module, receive the network interface physical state scanning result of backup network interface board when the scanning result receiver module, when perhaps receiving the unusual scanning result of the operating state of this expanded metals mouth, be used to judge whether the state of signaling network interface on the backup network interface board is better than main state with signaling network interface on the network interface board, if, triggering is switched module and is carried out switching operation, otherwise, trigger second judge module and further judge;
Second judge module, be used to judge whether the external bandwidth providing capability of medium network interface is better than main external bandwidth providing capability with medium network interface on the network interface board on the backup network interface board, if trigger and switch module execution switching operation, otherwise, do not carry out network interface board switching;
Switch module, being used for described backup network interface board inverse switch is that new master uses network interface board.
Preferably, described main operating state with network interface in the network interface board is the physical state of network interface, perhaps is the physical state and the PING protocol status of network interface.
Beneficial effect of the present invention is as follows:
The external bandwidth providing capability of network interface on the importance of difference in functionality network interface and the main and standby network interface board on the operating state of technical scheme of the present invention by network interface on the comprehensive relatively main and standby network interface board, the main and standby network interface board, from main and standby network interface board, select best network interface board service externally is provided, make a strategic decision thereby overcome in the prior art merely physical state, the network interface of the difference in functionality on the network interface board is put on an equal footing and not the problem of the external bandwidth providing capability of network interface board as preferred factor according to network interface.
Description of drawings
Fig. 1 is the networking schematic diagram of main and standby network interface board;
Fig. 2 is the realization principle flow chart of the conversion control method of main and standby network interface board of the present invention;
Fig. 3 is the networking schematic diagram of a preferred embodiment of the method for the invention;
Fig. 4 is the structured flowchart of switching control device of main and standby network interface board of the present invention.
Embodiment
Major technique design of the present invention is by the external bandwidth providing capability of network interface on the importance of difference in functionality network interface on the operating state of network interface on the comprehensive relatively main and standby network interface board, the main and standby network interface board and the main and standby network interface board, externally provides service thereby select best network interface board.Below in conjunction with each accompanying drawing specific implementation process of the present invention is further described in detail.
See also Fig. 2, this figure is the realization principle flow chart of the conversion control method of main and standby network interface board of the present invention, mainly may further comprise the steps:
Step 10, to main send to switch with network interface board and backup network interface board detect instruction;
Further, sending described switching when detecting instruction, can also be simultaneously sending the instruction that starts the PING protocol stateful inspection with network interface board to main.
Step 11, master open and receive the network interface physical state scanning result that the backup network interface board reports, and begin the physical state scanning result that this expanded metals mouth is inquired about in timing after receiving that with network interface board switching detection instructs.Need to prove, main with network interface board in the course of the work can this expanded metals of timing scan mouth physical state.
Further, if the master is receiving the instruction of having received startup PING protocol stateful inspection when switching detection instructs with network interface board, then lead with network interface board when regularly inquiring about the physical state scanning result of this expanded metals mouth, the PING protocol status that needs this expanded metals of timing scan mouth, the PING protocol status scanning of network interface is finished by the IP address of next jumping of this network interface of PING, if PING is obstructed, mean that then this expanded metals mouth breaks down.
After step 12, backup network interface board are received and are switched the detection instruction, the physical state of this expanded metals of beginning timing scan mouth, and report the main network interface board of using.
Step 13, receive the network interface physical state scanning result that the backup network interface board reports with network interface board when main, the operating state that perhaps scans this expanded metals mouth occurs when unusual, the master judges with network interface board whether the state of signaling network interface on the backup network interface board is better than main state with signaling network interface on the network interface board, if, execution in step 16, otherwise, execution in step 14.
If main only receiving with network interface board switched the detection instruction, then main operating state with this expanded metals of network interface board mouth is meant main physical state with network interface board this locality network interface in this step; If the master is receiving the instruction of having received startup PING protocol stateful inspection when switching detection instructs with network interface board, then main operating state with this expanded metals of network interface board mouth is meant main physical state and PING protocol status with the local network interface of network interface board in this step, and promptly the operating state of network interface is the physical state of network interface and the Comprehensive analysis results of PING protocol status on the network interface board.
Step 14, judge whether the external bandwidth providing capability of medium network interface on the backup network interface board is better than main external bandwidth providing capability with medium network interface on the network interface board, if, execution in step 16, otherwise, execution in step 15.
In this step, the external bandwidth providing capability of medium network interface is determined by the quantity of the medium network interface that is in normal operating conditions on this network interface board on the network interface board.
Step 15, do not carry out network interface board switching.
Step 16, be that new master uses network interface board with the backup network interface board inverse switch.
See also Fig. 3, this figure is the networking schematic diagram of a preferred embodiment of the method for the invention, as seen from the figure, main among this embodiment have 1 signaling network interface S1 and 4 medium network interface M1-M4 with network interface board, the backup network interface board has 1 signaling network interface S1 ' and 4 medium network interface M1 '-M4 ', and it is as follows among this embodiment main and standby network interface board to be switched the process of control:
Step 30, use back-end data configuration convey program send to switch to detect with network interface board and backup network interface board to the master and instruct, and send the instruction that starts the PING protocol stateful inspection with network interface board to the master simultaneously.
After step 31, master receive that with network interface board switching detection instructs, the physical state scanning result of this expanded metals mouth S1 and M1-M4 and the PING protocol status of this expanded metals of timing scan mouth S1 and M1-M4 are regularly inquired about in beginning, the operating state that physical state and PING protocol status by the analysis-by-synthesis network interface obtains network interface, the definition network interface working state is well 0, bad is 1, it is recorded variables D ataStausMaster, the 0th the record S1 state of DataStausMaster, the 1st to the 4th is write down the M1-M4 port status respectively.Simultaneously, the main unlatching with network interface board receives the network interface physical state scanning result that the backup network interface board reports.
After step 32, backup network interface board are received and are switched the detection instruction, the physical state of this expanded metals of beginning timing scan mouth, and report main with network interface board variables D ataStausSlave, the operating state of the 0th the record network interface S1 ' of DataStausSlave, the 1st to the 4th operating state that writes down network interface M1 ' to M4 ' respectively.
Step 33, the main physical state that receives the network interface that the backup network interface board reports with network interface board, perhaps main with network interface board network interface S1, M1-M4 has any one network interface to be scanned bad time, the master judges at first with the network interface interface board whether the state of signaling network interface S1 on the backup network interface board is better than main state with signaling network interface S1 ' on the network interface board, if, it then is the new main network interface interface board of using with the backup network interface board inverse switch, otherwise, taking out medium network interface state from DataStausMaster and DataStausSlave variable compares, if 1 number is many among the M1-M4 (promptly main external bandwidth providing capability with network interface board medium network interface is not so good as the external bandwidth providing capability of backup network interface board medium network interface), then be the new main network interface interface board of using with the backup network interface board inverse switch.
Corresponding to said method of the present invention, the present invention and then a kind of control device of switching of main and standby network interface board is provided, see also Fig. 4, this figure is the structured flowchart of switching control device of main and standby network interface board of the present invention, it mainly comprises scanning result receiver module, first judge module, second judge module and switches module, wherein
The scanning result receiver module is used to receive the network interface physical state scanning result that the backup network interface board reports and the operating state scanning result of this expanded metals mouth;
First judge module, receive the network interface physical state scanning result of backup network interface board when the scanning result receiver module, when perhaps receiving the unusual scanning result of the operating state of this expanded metals mouth, be used to judge whether the state of signaling network interface on the backup network interface board is better than main state with signaling network interface on the network interface board, if, triggering is switched module and is carried out switching operation, otherwise, trigger second judge module and further judge;
Second judge module, be used to judge whether the external bandwidth providing capability of medium network interface is better than main external bandwidth providing capability with medium network interface on the network interface board on the backup network interface board, if trigger and switch module execution switching operation, otherwise, do not carry out network interface board switching;
Switch module, being used for described backup network interface board inverse switch is that new master uses network interface board.
Described main operating state with network interface in the network interface board is the physical state of network interface, perhaps is the physical state and the PING protocol status of network interface.
The concrete technology of other of device of the present invention realizes that details sees also the description of corresponding contents in the said method of the present invention, no longer gives too much to give unnecessary details here.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1, a kind of conversion control method of main and standby network interface board is characterized in that, comprises step:
A, receive the network interface physical state scanning result that the backup network interface board reports with network interface board when main, the operating state that perhaps scans this expanded metals mouth occurs when unusual, whether the state of judging signaling network interface on the backup network interface board is better than main state with signaling network interface on the network interface board, if, execution in step C, otherwise, execution in step B;
B, judge whether the external bandwidth providing capability of medium network interface on the backup network interface board is better than main external bandwidth providing capability with medium network interface on the network interface board, if, execution in step C, otherwise, do not carry out network interface board switching;
C, be that new master uses network interface board with described backup network interface board inverse switch.
2, the method for claim 1 is characterized in that, described main operating state with network interface in the network interface board is the physical state of network interface.
3, method as claimed in claim 2 is characterized in that, also comprises step before the described steps A:
Switch the detection instruction to described master with network interface board and the transmission of described backup network interface board;
Described master with network interface board receive described switch detect instruction after, opens and receive the network interface physical state scanning result that the backup network interface board reports, and the physical state scanning result of this expanded metals mouth is regularly inquired about in beginning;
Described backup network interface board receive described switch detect instruction after, the physical state of this expanded metals of beginning timing scan mouth also reports the main network interface board of using.
4, the method for claim 1 is characterized in that, described main operating state with network interface in the network interface board is the physical state and the PING protocol status of network interface.
5, method as claimed in claim 4 is characterized in that, also comprises step before the described steps A:
Switch the detection instruction to described master with network interface board and the transmission of described backup network interface board, and send the instruction that starts the PING protocol stateful inspection with network interface board to described master;
Described master with network interface board receive described switch detect instruction and start the instruction of PING protocol stateful inspection after, open and receive the network interface physical state scanning result that the backup network interface board reports, and the physical state scanning result of this expanded metals mouth and the PING protocol status of this expanded metals of timing scan mouth are regularly inquired about in beginning;
Described backup network interface board receive described switch detect instruction after, the physical state of this expanded metals of beginning timing scan mouth also reports the main network interface board of using.
6, method as claimed in claim 5 is characterized in that, the PING protocol status scanning of described network interface is finished by the IP address of next jumping of PING network interface.
7, as claim 2 or 4 described methods, it is characterized in that described main physical state with this expanded metals of network interface board timing scan mouth.
8, the method for claim 1 is characterized in that, among the described step B, the external bandwidth providing capability of medium network interface is determined by the quantity of the medium network interface that is in normal operating conditions on this network interface board on the network interface board.
9, a kind of main and standby network interface board switch control device, it is characterized in that, comprising:
The scanning result receiver module is used to receive the network interface physical state scanning result that the backup network interface board reports and the operating state scanning result of this expanded metals mouth;
First judge module, receive the network interface physical state scanning result of backup network interface board when the scanning result receiver module, when perhaps receiving the unusual scanning result of the operating state of this expanded metals mouth, be used to judge whether the state of signaling network interface on the backup network interface board is better than main state with signaling network interface on the network interface board, if, triggering is switched module and is carried out switching operation, otherwise, trigger second judge module and further judge;
Second judge module, be used to judge whether the external bandwidth providing capability of medium network interface is better than main external bandwidth providing capability with medium network interface on the network interface board on the backup network interface board, if trigger and switch module execution switching operation, otherwise, do not carry out network interface board switching;
Switch module, being used for described backup network interface board inverse switch is that new master uses network interface board.
10, device as claimed in claim 9 is characterized in that, described main operating state with network interface in the network interface board is the physical state of network interface, perhaps is the physical state and the PING protocol status of network interface.
CN2008101876968A 2008-12-30 2008-12-30 Switching control method and device for main and standby network interface board Expired - Fee Related CN101431437B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101876968A CN101431437B (en) 2008-12-30 2008-12-30 Switching control method and device for main and standby network interface board

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101876968A CN101431437B (en) 2008-12-30 2008-12-30 Switching control method and device for main and standby network interface board

Publications (2)

Publication Number Publication Date
CN101431437A true CN101431437A (en) 2009-05-13
CN101431437B CN101431437B (en) 2011-08-24

Family

ID=40646616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101876968A Expired - Fee Related CN101431437B (en) 2008-12-30 2008-12-30 Switching control method and device for main and standby network interface board

Country Status (1)

Country Link
CN (1) CN101431437B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006268A (en) * 2009-08-28 2011-04-06 华为技术有限公司 Method, equipment and system for switching main interface and standby interface
CN105471608A (en) * 2014-09-04 2016-04-06 中兴通讯股份有限公司 Router control processing method and device
CN107707420A (en) * 2017-08-04 2018-02-16 郑州云海信息技术有限公司 A kind of method of testing of netting twine plug stability

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855838B (en) * 2005-04-25 2010-09-29 华为技术有限公司 Interface inverting method
CN100502253C (en) * 2006-03-24 2009-06-17 华为技术有限公司 Communication device and method for realizing master control board and service board master and slave conversion
CN100440845C (en) * 2006-05-26 2008-12-03 华为技术有限公司 Method and system for reversing main-equipment with interconnected single-board

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006268A (en) * 2009-08-28 2011-04-06 华为技术有限公司 Method, equipment and system for switching main interface and standby interface
CN105471608A (en) * 2014-09-04 2016-04-06 中兴通讯股份有限公司 Router control processing method and device
CN105471608B (en) * 2014-09-04 2019-08-13 南京中兴软件有限责任公司 The control processing method and processing device of router
CN107707420A (en) * 2017-08-04 2018-02-16 郑州云海信息技术有限公司 A kind of method of testing of netting twine plug stability
CN107707420B (en) * 2017-08-04 2021-04-09 郑州云海信息技术有限公司 Method for testing network cable plugging and unplugging stability

Also Published As

Publication number Publication date
CN101431437B (en) 2011-08-24

Similar Documents

Publication Publication Date Title
CN105607590B (en) Method and apparatus to provide redundancy in a process control system
CN101079759B (en) Distributed bidirectional forwarding detection method and device
CN1232131C (en) Back-up method and device for base station controller in radio access network
CN101800676A (en) Link detection method, device and system
CN102404093A (en) Management method of data transmission modes and data transmission equipment
CN101094189A (en) System of wireless sensor network, and cluster routing method based on the system
CN101146319A (en) A gateway for supporting seamless switching multi-mode terminal and its method
CN103229536B (en) Dual-network backup method and device and wireless communication system
CN101431763A (en) Method and apparatus for implementing base station power-down alarm by using interrupt
CN103139033A (en) Primary device redundancy switching method of single main communication control bus
CN101729305A (en) Method and system for automatically restoring fault, and control network element
CN101431437B (en) Switching control method and device for main and standby network interface board
CN107465537A (en) The backup method and system of Internet of Things repeater
CN102685877B (en) User data synchronization method, wireless controller and Network Management Equipment
CN101931550A (en) Method and device for synchronizing main and standby main control boards
CN101340377B (en) Method, apparatus and system for data transmission in double layer network
CN102487342A (en) Device and method for controlling virtual internet protocol address binding
CN201766606U (en) Network switching device based on physical layer state detection and fault screening strategy
CN112311666A (en) Fast switching method for redundancy protocol
CN103281720A (en) Method and device for switching wireless controller hot standbys, wireless controller and access system
CN103118387A (en) Lightweight access point (AP) redundancy access control method of active standby mode
CN101516100B (en) Measuring collocation method, device and system
CN101957786B (en) Method and device for realizing start and fault switching control in dual-control system
CN1855838B (en) Interface inverting method
CN104063033A (en) State switching method based on electronic equipment interlinking and electronic equipment

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170825

Address after: Yanshan 063000 Hebei province Tangshan City Fengrun District 208 building 3 Valley Road No. 302

Patentee after: Zhang Guimin

Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice

Patentee before: ZTE Corporation

CB03 Change of inventor or designer information

Inventor after: Zhang Guimin

Inventor before: Liu Junfeng

Inventor before: Xia Yibing

CB03 Change of inventor or designer information
CP02 Change in the address of a patent holder

Address after: 541002 No. two, No. 5, West Road, Xiangshan District, Guilin, the Guangxi Zhuang Autonomous Region

Patentee after: Zhang Guimin

Address before: Yanshan 063000 Hebei province Tangshan City Fengrun District 208 building 3 Valley Road No. 302

Patentee before: Zhang Guimin

CP02 Change in the address of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110824

Termination date: 20171230

CF01 Termination of patent right due to non-payment of annual fee