CN1286303C - Backup method for Ethernet port connected to Internet protocol network - Google Patents

Backup method for Ethernet port connected to Internet protocol network Download PDF

Info

Publication number
CN1286303C
CN1286303C CNB031069304A CN03106930A CN1286303C CN 1286303 C CN1286303 C CN 1286303C CN B031069304 A CNB031069304 A CN B031069304A CN 03106930 A CN03106930 A CN 03106930A CN 1286303 C CN1286303 C CN 1286303C
Authority
CN
China
Prior art keywords
network
ethernet interface
mainboard
boards
active
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.)
Expired - Fee Related
Application number
CNB031069304A
Other languages
Chinese (zh)
Other versions
CN1525703A (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
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB031069304A priority Critical patent/CN1286303C/en
Publication of CN1525703A publication Critical patent/CN1525703A/en
Application granted granted Critical
Publication of CN1286303C publication Critical patent/CN1286303C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention relates to a backup method for an Ethernet port connected to an IP network. At least two IP forwarding boards in an exchanger are used as main backup boards; Ethernet ports of the main backup boards are connected to an IP network; the Ethernet ports are powered and are initialized to be the same IP address and the same MAC address; then, the main backup boards are controlled; IP network information is received and transmitted by the Ethernet ports by the main boards; the backup boards do not accept information from the IP network, and IP packets emitted for the backup boards are firstly transmitted to the main boards by communication between the boards and are transmitted to the IP network by the main boards. When the main boards and the backup boards are switched, a new main board emits an address resolution request packet (ARP) facing a gateway device. The present invention provides a simple and practical backup method of Ethernet ports between the boards. Accordingly, the method can not only reduce requirements of devices, such as exchangers, etc., but also save operating cost, and when the Ethernet ports have malfunction, the smooth and rapid switching of the network ports can be realized.

Description

The method that the Ethernet interface that connects ip network is backed up
Technical field
The present invention relates to communication technical field, relate in particular to a kind of method that the Ethernet interface that connects IP network is backed up.
Background technology
At present, product needed such as stored-program control exchange provide IP interface, externally provide the IP operation such as (Ethernet Phones) as EPHONE, in order to guarantee in stored-program control exchange inside, non-interrupting service when an Ethernet interface breaks down need externally provide the Dual-Ethernet mouth to carry out the Ethernet interface backup.
Be illustrated in figure 1 as EPHONE (Ethernet Phone) business realizing principle schematic, the EPHONE phone goes out the IP network mouth and is linked into IP network (as metropolitan area network, can insert by media gateway MG), simultaneously, stored-program control exchange also goes out the IP network mouth and is connected to IP network (as metropolitan area network, can insert by LAN switch and router), reach intercommunication by Media Gateway Control Protocol etc. between EPHONE phone and the switch, thereby make the user can by go out the IP network cause for gossip existing with the identical business of plain old telephone (PSTN), and can realize multimedia service such as video in future.
Be illustrated in figure 2 as stored-program control exchange and insert the metropolitan area network connection diagram, inner each service processing board of switch is connected to IP Forward Module Card by web plate, go out Ethernet interface by IP Forward Module Card, by LAN switch (LANSWITCH) and gateway device, as router (ROUTER), reach intercommunication with the IP metropolitan area network.Here, require switch that two IP Forward Module Cards can be provided, thereby the Dual-Ethernet mouth is provided, so that when an IP Forward Module Card breaks down, do not interrupt IP operation.
Prior art adopts two IP Forward Module Cards to carry out the Ethernet interface backup following several scheme:
1, switch list network interface goes out IP
Adopt two IP Forward Module Cards, but the IP address of two boards, medium access control (MAC) address have nothing in common with each other.
This scheme is for media gateway (MG), and two Ethernet interfaces are not transparent, that is to say, when an IP Forward Module Card breaks down, the IP address of manual change switch; Simultaneously, also want operator that an IP address is provided more, increased operation cost.
2, utilize link aggregation (LINKAGGREGATION) technology in the LAN switch (LANSWITCH)
Adopt two IP Forward Module Cards, utilize the LANSWITCH that the trunking characteristic is provided, realize that two IP Forward Module Cards have identical MAC Address, reach the Ethernet interface backup each other of two IP Forward Module Cards.
This scheme is had relatively high expectations to LANSWITCH's, and needing clearly can provide the trunking function; Simultaneously, because need resolving the IP bag, IP Forward Module Card resolves into switch internal communication bag then, therefore, two boards is actual should shared same IP stack, two IP Forward Module Cards also need the IP bag is converged on the same block of plate, carry out IP and resolve, just can be forwarded to other veneer then, increased and handled load.
3, veneer cuts out the network interface method
Adopt two IP Forward Module Cards, but the IP address of two boards, MAC Address are all identical, during use, adopt someway, making wherein, the IP network mouth of a veneer does not power on.
The veneer that this scheme network interface does not power on can't detect the quality of the Ethernet interface of this plate, and will cause occurring the network interface fault can not in time get rid of; Network interface will physically reinitialize after switching, and cause network interface longer switching time, can not reach level and smooth purpose.
Summary of the invention
Technical problem to be solved by this invention is: the Ethernet interface backup scenario that overcomes existing connection IP network is switched inconvenience, cost is high or to shortcomings such as equipment requirements height, the method of Ethernet interface backup between a kind of simple and practical plate is provided, not only can reduce requirement to equipment, and can save operation cost, when the Ethernet interface fault, can realize smoothly switching fast of network interface.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be:
This method that the Ethernet interface that connects ip network is backed up is provided with at least two IP Forward Module Cards as active and standby plate in switch, active and standby plate respectively goes out an Ethernet interface and is connected to IP network, it is characterized in that:
A, earlier with described Ethernet interface all power-up initializing be same IP address and same MAC Address;
B, then active and standby plate is controlled, carried out the reception and the transmission of IP network information by mainboard by described Ethernet interface, slave board does not receive the information from IP network, the IP that will send for slave board wraps, by communication between plate, be dealt into mainboard earlier, mail to IP network by mainboard;
C, the active and standby plate that sends according to switch system or mainboard are switched order, close the transmission-receiving function of mainboard Ethernet interface, and mainboard is reduced to slave board, open the transmission-receiving function of slave board Ethernet interface simultaneously, and slave board is upgraded to mainboard.
Among the described step B, by Ethernet interface or the interconnection of asynchronous transfer mode mouth, realize communication between plate between the active and standby plate.
Among the described step C, when masterslave switchover, send an address resolution request package towards gateway device by new mainboard.
Active and standby plate detects this expanded metals mouth physical state automatically, if the mainboard Ethernet interface breaks down, sends the auto switching order, carries out switching of active and standby plate automatically, and sends alarm; If the slave board Ethernet interface breaks down, also send alarm.
The Ethernet interface of active and standby plate is connected on the same port of gateway device by LAN switch, and is connected to IP network by gateway device.
Beneficial effect of the present invention is: the present invention utilizes LAN switch, the characteristics of router, the method of Ethernet interface backup between a kind of plate of simple and practical connection IP network is provided, Ethernet interface adopts same IP address and MAC Address, the switching of Ethernet interface is " transparent " for media gateway (MG), the IP address that does not need the manual change switch, saved operation cost, and the present invention is less demanding to LAN switch, as long as can realize the LAN switch of 802.3 basic agreements, can both use, can reduce the investment of operator; In addition, the invention enables two shared IP stacks of Ethernet interface very simple, the IP stack of promptly having only mainboard is in work, and the IP stack of slave board quits work, and need not consider the problem that converges of the IP bag that receives, has reduced between plate and has loaded; And each veneer of the present invention all powers on, and can detect the physical state of each Ethernet interface, in time sends alarm; When veneer switched, network interface is initial physicalization again, makes the time of switching very short, has realized smoothly switching fast.
Description of drawings
Fig. 1 is an Ethernet Phone business realizing principle schematic;
Fig. 2 is a switch internal structure schematic diagram;
Fig. 3 receives process chart for IP bag of the present invention;
Fig. 4 sends process chart for IP bag of the present invention;
Fig. 5 switches process chart for veneer of the present invention by order;
Fig. 6 is a veneer auto switching process chart of the present invention.
Embodiment
With embodiment the present invention is described in further detail with reference to the accompanying drawings below:
For when Ethernet interface carries out active and standby switching,, can in time obtain the physical state of two Ethernet interfaces simultaneously, so that can in time report to the police without the IP address of manual change switch.Two veneers respectively go out an Ethernet interface among the present invention, and all carry out initialization according to same IP address, the MAC Address of default, also by Ethernet interface or the interconnection of ATM mouth, reach between plate and help each other between two veneers.Two Ethernet interfaces all power on, and by the active and standby characteristic that switch provides, realize the backup of Ethernet interface.
The forwarding principle of Ethernet switch (LANSWITCH) is once at first briefly described below:
1: when just powering on, LANSWITCH does not know which port an Ethernet bag should be transmitted toward, so just broadcast this message bag to all ports.
2: when LANSWITCH has received an Ethernet bag from certain port, so this LANSWITCH has just obtained connecting the MAC Address of the network interface of this port from the structure of this Ethernet bag, so just stored such corresponding relation at LANSWITCH:
Port (1)<-----------------MAC (1)
3: when the target MAC (Media Access Control) address of another Ethernet bag is MAC (1), so, just this message bag directly is forwarded to port (1), realize transmitting fast.
The forwarding principle of router (ROUTER) is once briefly described again:
There is such mapping table 1:ROUTER inside:
Purpose IP (1)<-------------port (1)<---------MAC (1)
2: transmit fairly simple: if the purpose IP of an IP message bag is IP (1), so just should pass through port (1), transmit to MAC (1) address, and source MAC is made into the MAC Address of port (1).
3: this acquisition of transmitting has two approach: manually set or ownly carry out " study " by Routing Protocol.
At last, the active and standby characteristic of switch is once simply described again:
The inner active and standby characteristic that realizes of switch can realize following function; Mainboard crashes, and slave board can be upgraded to mainboard automatically so, reaches the smooth excessiveness of active and standby plate, and business is not interrupted.
From the forwarding principle of above-mentioned ROUTER and LANSWITCH as can be seen, the realization of ROUTER success the isolation of MAC Address, therefore, for switch, reaching network interface, to switch for media gateway (MG) be " transparent ", just to allow the imperceptible network interface of LANSWITCH and ROUTER realize switching, " cheat " ROUTER and LANSWITCH.
At first, can look at " deception " ROUTER how: from the forwarding principle of ROUTER as can be seen, as long as synchronization corresponding two ports of an IP or two MAC do not occur in transmitting, realization forwarding that so just can be successful; Therefore, " deception " ROUTER is fairly simple, all is same IP address as long as can realize two Ethernet interfaces, same MAC Address, and all received on the same port of ROUTER just by LANSWITCH.
Difficulty be " deception " LANSWITCH how because be that two network interfaces are directly received on the LANSWITCH after all, how to allow LANSWITCH feel to have only a network interface to receive above it?
As can be seen, the forwarding of LANSWTICH is based on study on the forwarding principle of LANSWITCH, that is to say, LANSWITCH is by the corresponding relation that the structural analysis through the Ethernet bag of LANSWITCH is obtained MAC Address and port.
So, the method of " deception " LANSWITCH has also just been come out: though two network interfaces of switch are all received on the LANSWITCH, as long as allow LANSWITCH can only learn the MAC Address of a network interface simultaneously, and the address that can not learn another network interface, so, for LANSWITCH, though it " knows " that two network interfaces are connected in above it, but because it can't learn the MAC Address of other network interface, therefore, it just can not transmitted the Ethernet bag yet to another network interface, just reached the purpose of " deception " yet.Like this, the switching of network interface is also just fairly simple, when network interface switches, only needs network interface of software control to give out a contract for a project, the network interface switching of not given out a contract for a project with regard to simple realization of another network interface.
Here be also noted that a bit, that is to say, when LANSWITCH just powers on, because LANSWITCH does not learn correct MAC Address, therefore can be with information broadcast to all ports, this moment, another network interface also can be received this Ethernet bag, if this moment, another network interface did not add processing, will inevitably cause two ether bags all to be sent to the back veneer and handle, cause confusion.
Therefore, specific implementation of the present invention is as follows:
Two veneers all go out Ethernet interface, and power-up initializings all, are initialized as same IP address, and same MAC Address is connected on the same LANSWITCH, and is connected to metropolitan area network by router; In actual use, as shown in Figure 3 and Figure 4, the control of the active and standby plate by switch, make and have only mainboard can receive and dispatch from the next message of metropolitan area network, the mainboard Ethernet interface receives and is distributed to each business board of switch behind the IP bag of metropolitan area network and handles, and the IP bag that slave board receives then abandons; When metropolitan area network is mail in the message bag integration of switch inside,,, mail to metropolitan area network by mainboard again if slave board then by communication between plate, is dealt into mainboard earlier with the IP bag if mainboard then is combined into the IP bag and sends by Ethernet interface.
As shown in Figure 5, can switch the masterslave switchover that the IP Forward Module Card Ethernet interface is carried out in order by artificial sending automatically by switch system or by mainboard, slave board is upgraded to mainboard, opens the transmission and the receiving function of new mainboard Ethernet interface, and closes the transmission and the receiving function of old master's plate Ethernet interface.For the moment that prevents to switch at network interface, because switch does not send any Ethernet bag, cause LANSWITCH can't know that network interface switches (two network interfaces all do not send the Ethernet bag), also to force LANSWITCH study, method can be to send an address resolution bag (ARP) towards gateway (as ROUTER) by new mainboard, like this, solved two problems simultaneously: one is when network interface switches, by this ARP bag, can allow new mainboard obtain the MAC Address of ROUTER rapidly, make that processing can be more quick; On the other hand, can allow LANSWITCH learn by this ARP bag, the result of study is exactly that the Ethernet interface of having known switch has switched to another port and used.
As shown in Figure 6, because main and standby boards all powers on, main and standby boards detects Ethernet interface physical state separately automatically, damage if detect mainboard network interface physical state, then carry out masterslave switchover automatically and send alarm, make mainboard reduce to slave board, slave board is upgraded to mainboard, veneer does not need to re-power initialization behind the masterslave switchover, thereby has realized the level and smooth switching fast of network interface, can not exert an influence to business; Damage if detect the slave board physical state, also send alarm, can in time get rid of like this, eliminate system's hidden danger fault.
Utilize the present invention to realize that switching of ethernet mouth do not have specific (special) requirements to switch, saved the cost of investment of operation equipment, and each IP Forward Module Card all powers on, can detect the physical state of each ethernet mouth, in time send alarm, veneer is when switching, and network interface is initial physicalization again, make the time of switching very short, make Ethernet interface can smoothly carry out masterslave switchover apace.

Claims (5)

1. the method that the Ethernet interface that connects ip network is backed up is provided with at least two IP Forward Module Cards as active and standby plate in switch, and active and standby plate respectively goes out an Ethernet interface and is connected to IP network, it is characterized in that:
A, earlier with described Ethernet interface all power-up initializing be same IP address and same MAC Address;
B, then active and standby plate is controlled, carried out the reception and the transmission of IP network information by mainboard by described Ethernet interface, slave board does not receive the information from IP network, the IP that will send for slave board wraps, by communication between plate, be dealt into mainboard earlier, mail to IP network by mainboard;
C, the active and standby plate that sends according to switch system or mainboard are switched order, close the transmission-receiving function of mainboard Ethernet interface, and mainboard is reduced to slave board, open the transmission-receiving function of slave board Ethernet interface simultaneously, and slave board is upgraded to mainboard.
2. the method that the Ethernet interface that connects ip network is backed up according to claim 1 is characterized in that: among the described step B, by Ethernet interface or the interconnection of asynchronous transfer mode mouth, realize communication between plate between the active and standby plate.
3. the method that the Ethernet interface that connects ip network is backed up according to claim 1 and 2 is characterized in that: among the described step C, when masterslave switchover, send an address resolution request package towards gateway device by new mainboard.
4. the method that the Ethernet interface that connects ip network is backed up according to claim 1, it is characterized in that: active and standby plate detects this expanded metals mouth physical state automatically, if the mainboard Ethernet interface breaks down, send the auto switching order, automatically carry out switching of active and standby plate, and send alarm; If the slave board Ethernet interface breaks down, also send alarm.
5. the method that the Ethernet interface that connects ip network is backed up according to claim 1, it is characterized in that: the Ethernet interface of active and standby plate is connected on the same port of gateway device by LAN switch, and is connected to IP network by gateway device.
CNB031069304A 2003-02-26 2003-02-26 Backup method for Ethernet port connected to Internet protocol network Expired - Fee Related CN1286303C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031069304A CN1286303C (en) 2003-02-26 2003-02-26 Backup method for Ethernet port connected to Internet protocol network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031069304A CN1286303C (en) 2003-02-26 2003-02-26 Backup method for Ethernet port connected to Internet protocol network

Publications (2)

Publication Number Publication Date
CN1525703A CN1525703A (en) 2004-09-01
CN1286303C true CN1286303C (en) 2006-11-22

Family

ID=34282836

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031069304A Expired - Fee Related CN1286303C (en) 2003-02-26 2003-02-26 Backup method for Ethernet port connected to Internet protocol network

Country Status (1)

Country Link
CN (1) CN1286303C (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100388680C (en) * 2004-12-03 2008-05-14 华为技术有限公司 Method for treating medium access conbrol address in main and spare conversion
CN100341257C (en) * 2004-12-15 2007-10-03 华为技术有限公司 ASC realizing method in switching single board load
CN100466540C (en) * 2005-08-05 2009-03-04 华为技术有限公司 State detection method based on main and backup Ethernet interface
JP4593484B2 (en) * 2006-02-03 2010-12-08 アラクサラネットワークス株式会社 Data communication system and method
CN100420207C (en) * 2006-07-26 2008-09-17 华为技术有限公司 Method and apparatus for realizing communication take-over and control
CN102065585A (en) * 2009-11-16 2011-05-18 中兴通讯股份有限公司 Method and device for Ethernet access
CN102111459B (en) * 2009-12-28 2013-11-06 中兴通讯股份有限公司 Call maintenance method and device in active/standby switching of IP voice equipment
CN103036780A (en) * 2012-12-14 2013-04-10 滁州安瑞电力自动化有限公司 Intelligent hot standby redundant double network cards and hot standby redundant method
CN104125312A (en) * 2014-07-10 2014-10-29 浪潮集团有限公司 Method for achieving effect that redundancy management modules share one IP (Internet Protocol) address in blade server
CN111131532B (en) * 2019-11-27 2022-08-16 深圳震有科技股份有限公司 Method and system for automatically changing MAC address, computer equipment and medium
CN113300821B (en) * 2021-05-21 2022-11-08 中国兵器装备集团自动化研究所有限公司 Dual-network-card network hot standby method and system based on sniffing technology

Also Published As

Publication number Publication date
CN1525703A (en) 2004-09-01

Similar Documents

Publication Publication Date Title
CN107046542B (en) Method for realizing consensus verification by adopting hardware at network level
CN101473616B (en) Method and device f or reliably transferring multicast data
CN1286303C (en) Backup method for Ethernet port connected to Internet protocol network
CN101043510B (en) PCI-E bus distributed system intra-board and inter-board data communication method
CN1242548A (en) Quality of service improvement of internet real-time media transmission by transmitting redundant voice/media frames
CN1531262A (en) Network communication method for carrying out load division
CN1956401A (en) Access point device and a communications system
KR20040041175A (en) System and method for processing packets
CN106130933A (en) There is the active multi-path network redundancy of performance monitoring
CN1960337A (en) Sequential switching of relay servers according to server state
WO2009026852A1 (en) Method, system and device for switching multicast message
EP1914931A2 (en) IP multicast service system, switching device, and group selection transmission method used therefor
CN101964719B (en) Based on the data processing method of master control board switching, line card and master control borad
CN1545268A (en) A method and system for Ethernet interface node backup
CN101605090B (en) Method for realizing two-layer middle agent of dynamic host configuration protocol in passive optical network
CN1859175A (en) Internal reliable interconnect communication device
CN1859376A (en) Link backup method based on route
CN1728661A (en) Method for realizing backup and load shared equally based on proxy of address resolution protocol
CN1547363A (en) Control method of multicast board-spanning forwarding
US6519251B1 (en) Apparatus and method for interconnecting private exchange system to the internet
CN101060469A (en) A system and method for realizing the multi-homing feature of stream control transmission protocol
CN101232510A (en) Method and system for implementing multi-network port device multicast
CN1249572C (en) Plug-and-play ether net access system and method
CN1933450A (en) Interplate communicating method and interface plate
CN1713586A (en) Realization of virtual group redundancy

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20061122

Termination date: 20180226