CN100407619C - Method for implementing switching between main and standby port by network processor - Google Patents

Method for implementing switching between main and standby port by network processor Download PDF

Info

Publication number
CN100407619C
CN100407619C CN2003101122328A CN200310112232A CN100407619C CN 100407619 C CN100407619 C CN 100407619C CN 2003101122328 A CN2003101122328 A CN 2003101122328A CN 200310112232 A CN200310112232 A CN 200310112232A CN 100407619 C CN100407619 C CN 100407619C
Authority
CN
China
Prior art keywords
port
message
standby
master
main
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
CN2003101122328A
Other languages
Chinese (zh)
Other versions
CN1545244A (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
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 CN2003101122328A priority Critical patent/CN100407619C/en
Publication of CN1545244A publication Critical patent/CN1545244A/en
Application granted granted Critical
Publication of CN100407619C publication Critical patent/CN100407619C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention relates to a method for realizing the switchover between a main port and a standby port by using a network processor. The method comprises the following steps: firstly, a port detection module of a receiving packet network processor detects the ports; if failures are found, the main port and the standby port are switched in hardware; then, the renewal of a main/ standby port relation table is finished; the renewal of the main/ standby port relation table is finished by the following steps: the port detection module sends a main / standby port message to a queue scheduling module; the queue scheduling module transfers the message to a sending module; the sending module sends the message to a switching network with multicasting / broadcasting, and the switching network respectively transfers the main / standby port message to a sending package network processor of each single plate; the main / standby port message is transferred to the receiving packet network processor through a flow control interface so as to finish the renewal of the main/ standby port relation table. After the present invention is adopted, the present invention has obvious effect on the increase of the informing speed rate of messages, the decrease of the loss quantity of data packets in the switching process, the shielding of the influence of upper services on the main port and the standby port of a lower physical layer in a process of switching the main port and the standby port.

Description

Use network processing unit to realize the method that master-backup port is switched
Technical field
The present invention relates to the network exchange technology, belong to digital communicating field.
Technical background
In communication network or in the communication equipment, the reliability of system is very important, in order to improve the reliability of port transmission, adopts the redundant technique of master-backup port in system, after in case main port breaks down, switch to standby port immediately, guarantee the reliability of system, reduce losing of packet, at present, the software implementation method that switches based on master-backup port is after veneer is checked through port and breaks down, to carry out two kinds of processing, is described below respectively:
1, HOST CPU detects port and breaks down, and sends out message by HOST CPU by pci bus and gives another veneer, carries out master-backup port and switches.
This mode is more commonly used, but it has some shortcomings, all is by HOST CPU, does not consider the high efficiency that micro engine is handled, in addition the speed of PCI passage is not high.
2, HOST CPU detects port and breaks down, and sends to a centralized control point by HOST CPU, sends to the veneer that need carry out active and standby switching by centralized control point again, carries out master-backup port and switches.Veneer need be wanted the activestandby state of port to centralized control point when initialization, after the initialization success, need give centralized control point the master-backup port state notifying, by the main and standby relation table of centralized control point reserved port.This mode is a centralized control, and is simple, but the same high efficiency, the two-forty of switching network and the low rate of PCI communication of not considering that all micro engine is handled with first method.
What first method adopted is distributed architecture, and each veneer HOST CPU needs to preserve a system main and standby relation table.The second method veneer does not need to preserve a main and standby relation table, just reports in case veneer is checked through the port of fault.Master-backup port switching relation table is to be placed on centralized control point.Present these two kinds of methods, only considered the realization of switching, do not consider in the active and standby handoff procedure and notify the plenty of time that is spent, do not consider in the active and standby handoff procedure yet and can cause losing in a large number of packet, particularly to real-time Frame, if lost the mass data bag, retransmit again and just lost real-time meaning, need to reduce the message number of losing.
Summary of the invention
The objective of the invention is in order to solve the above-mentioned defective of prior art; a kind of new main/standby switching method is provided; the method can reduce switching time; do not revise routing iinformation; the packet of former master port is removed in protection; thereby reduce the message number of losing, concerning the upper-layer user, he does not need to be concerned about the activestandby state of port.Reliability and efficient that system transmits have been improved.
The present invention is based on that network processor platform realizes, its network processing unit has following feature: there are a plurality of micro engines efficiently inside, the a plurality of threads of the inner employing of micro engine, support a plurality of external interfaces, the Fabric Interface that a high speed is arranged has a plurality of inner formations of using to realize the linear speed exchange, and cache (buffer memory) is to realize data interaction and the flow control interface between the micro engine, adopt special-purpose instruction set, and done optimization at network and communications applications especially.The switching network that the present invention relates to should have the broadcast/group broadcast function.
Technical scheme of the present invention is: by the port detecting module that receives bag (ingress) network processing unit port is detected earlier, after the discovery fault, carry out the active and standby switching of hardware earlier; Finish the renewal of master-backup port switching relation table then; The described step of updating of finishing the main and standby relation table is: the active and standby message of port detecting module transmit port is given the queue scheduling module, the queue scheduling module transmits the message to sending module again, sending module sends to the switching network with multicast/broadcast, switching network is sent to active and standby message transmission bag (egress) network processing unit of each veneer again (at switching network when veneer sends message, as be broadcasting packet, then the veneer of the whole network all needs to receive, as be multicast message, then relevant veneer all needs to receive in the whole network), by the flow control interface between egress network processing unit and the ingress network processing unit active and standby message is sent to the ingress network processing unit, finishes the renewal of master-backup port switching relation table.
In the such scheme, the port detecting module of described ingress network processing unit to the method that port detects is, at first check the light signal of port, as there is not a light signal, think that then fault has appearred in the port, next is if continuous 3 times are not received the control frame of opposite end, thinks that then fault has appearred in the port.
The active and standby message module of the reception of Ingress network processing unit receives master-backup port message from flow control interface, at first determines whether the veneer into the port, if, the master-backup port message packet is put into message queue, send message to sending module; If not the active and standby message of this plate, whether to need to determine the present networks processor mouthful active and standby message of making a start, if, send message to port detecting module, then the master-backup port message packet is put into message queue, send message to sending module; Sending module is read active and standby message packet from message queue, upgrade the main and standby relation table.
In the present invention, when sending packet, look into routing table earlier, reenter formation, look into master-backup port switching relation table then, the existing transmission can guarantee that the packet of the former master port of making a return journey can be converted to the original port that is equipped with in Ingress (receiving bag) direction.
In the present invention, network processing unit comes processing messages to send by micro engine.
After adopting the present invention, in carrying out the master-backup port handoff procedure, can accelerate the notice speed of message, reduce the quantity of losing of in handoff procedure packet, the shielding upper-layer service has a significant effect to the care of the active and standby port of lower floor's physics.
Description of drawings
Fig. 1 is the systematic schematic diagram that general master-backup port is switched;
Fig. 2 is that the present invention utilizes network processing unit to carry out the systematic schematic diagram that master-backup port is switched;
Fig. 3 is that network processing unit carries out the realization block diagram that master-backup port is switched;
Fig. 4 network processing unit upgrades main and standby relation table flow chart;
The flow chart of Fig. 5 network processing unit transmit frame.
Embodiment
Fig. 1 is the systematic schematic diagram that general master-backup port is switched, and after it detects the port handling failure, by active and standby port status message of PCI channel transfer and active and standby switching message, finishes master-backup port and switches.
Fig. 2 is the systematic schematic diagram that master-backup port of the present invention is switched, after the port detecting module of ingress network processing unit detects port and breaks down, carry out the active and standby switching of hardware, behind the handover success, the active and standby message of transmit port is given the switching network with multicast/broadcast, switching network is sent to active and standby message each veneer egress network processing unit again, a flow control interface is arranged between egress network processing unit and ingress network processing unit, by flow control interface active and standby message is sent to the ingress network processing unit, the receiving interface of egress need be configured specially, to guarantee that the multicast/broadcast bag can be sent to flow control interface and be received by the ingress network processing unit.Finish the renewal of master-backup port switching relation table.
Fig. 3 is the realization block diagram that master-backup port of the present invention is switched, and it is made up of the network processing unit that receives the bag direction and the network processing unit two parts that send the bag direction.Main several modules on Ingress (the receive bag) direction as we can see from the figure: port detecting module, the active and standby message module of queue scheduling module, sending module and reception.Port detecting module, whether it is responsible for detection port and breaks down, port test is checked from two aspects, at first check the light signal of port, as do not have light signal, think that then fault has appearred in the port, next is if continuous 3 times are not received the control frame of opposite end, thinking that then fault has appearred in the port, is that main port is then initiated active and standby port switching as the port, and the time interval of control frame can be regulated.As the port is standby port, then sends alarm information to upper level, and fault has appearred in this standby port of notice upper level.When Board Power up, confirm the activestandby state of port according to the slot number of veneer, send out then and mainly confirm real master-backup port with control frame or standby control frame, finish the power-up initializing of veneer.When normal operation, when port detecting module is found fault, after finishing the active and standby handover success of hardware, initiate active and standby port and switch message to scheduler module, scheduler module is switched dispatching message to sending module with active and standby port immediately, the transmit status word that sending module is filled in switching network constitutes active and standby port and switches message frame and send to the high speed switching network, the high speed switching network sends to Egress (the sending bag) network processing unit on each veneer, receiver module in the network processing unit of transmission bag direction is when initialization, can be by configuration with the direct afferent stream control interface of active and standby switching message frame of receive path reception, when normal operation,, active and standby switching message frame receives for the active and standby message module of the reception of Ingress network processing unit so long as just putting into the Flow Control passage.The active and standby message module of the reception of Ingress sends the master-backup port message packet to sending module by message queue, revises the main and standby relation table by sending module.
Fig. 4 upgrades main and standby relation table flow chart for network processing unit.The active and standby message module of the reception of Ingress network processing unit receives master-backup port message from flow control interface, at first determine whether veneer into the port, if not the active and standby message of this plate, whether to need to determine the present networks processor mouthful active and standby message of making a start, if, send message to port detecting module, this situation mainly is when other Board Power up, owing to master-backup port switching relation table is not also set up and used; Then the master-backup port message packet is put into message queue, send message to sending module, sending module is read active and standby message packet from message queue, upgrade the main and standby relation table.The form of active and standby message packet is as follows:
Table 1
Figure C20031011223200061
Sign wherein=1 is the active and standby switching message of other veneer transmit port of needs.Be masked as 0 and be normal master-backup port switching message.The form of the master-backup port switching relation table that keeps in sending module is as follows:
Table 2
Veneer 1 Main veneer number 1 Master port number 1 Standby plane number 1 Be equipped with port numbers 1
Veneer 1 Main veneer numbers 2 Master port numbers 2 Standby plane numbers 2 Be equipped with port numbers 2
。。 。。。 。。。 。。。 。。。
Veneer 1 Main veneer n Master port n Standby plane n Be equipped with port numbers n
Veneer 2 Main veneer number 1 Master port number 1 Standby plane number 1 Be equipped with port numbers 1
Veneer 2 Main veneer numbers 2 Master port numbers 2 Standby plane numbers 2 Be equipped with port numbers 2
。。 。。。 。。。 。。。 。。。
Veneer 2 Main veneer n Master port n Standby plane n Be equipped with port numbers n
... ... ... ... ...
Veneer m Main veneer number 1 Master port number 1 Standby plane number 1 Be equipped with port numbers 1
Veneer m Main veneer numbers 2 Master port numbers 2 Standby plane numbers 2 Be equipped with port numbers 2
。。 。。。 。。。 。。。 。。。
Veneer m Main veneer n Master port n Standby plane n Be equipped with port numbers n
For sending module can be found as soon as possible, master-backup port switching relation table is not put into SRAM (static memory), but put into CACHE seldom of network processing unit, guarantee searching speed.
Fig. 5 is the flow chart of network processing unit transmit frame, because the message that sends all is a direction of determining next jumping according to routing table, and what keep in the route table items is the information of original master port, As time goes on, the master port that has has become port fully, and the original port that is equipped with has become master port, therefore need search real master port, and the information of real master port is to be placed in the main and standby relation table, each transmission routing table just need be known the main and standby relation of port, fill in the transmit status word, finish real transmission.

Claims (5)

1. one kind is used network processing unit to realize the method that master-backup port is switched, and by the port detecting module that receives the packet network processor port is detected earlier, after the discovery fault, carries out the active and standby switching of hardware earlier; Finish the renewal of master-backup port switching relation table then; The described step of updating of finishing the main and standby relation table is: the active and standby message of port detecting module transmit port is given the queue scheduling module, the queue scheduling module transmits the message to sending module again, sending module sends to the switching network with multicast/broadcast, switching network is sent to active and standby message the transmission packet network processor of each veneer again, by the flow control interface that sends the packet network processor and receive between the packet network processor active and standby message is sent to reception packet network processor, finishes the renewal of master-backup port switching relation table.
2. the described use network processing unit of claim 1 is realized the method that master-backup port is switched, it is characterized in that: the port detecting module of described reception packet network processor to the method that port detects is, at first check the light signal of port, as there is not a light signal, think that then fault has appearred in the port, next is if continuous 3 times are not received the control frame of opposite end, thinks that then fault has appearred in the port.
3. the described use network processing unit of claim 1 is realized the method that master-backup port is switched, it is characterized in that: the active and standby message module of reception that receives the packet network processor receives master-backup port message from flow control interface, at first determine whether veneer into the port, if, the master-backup port message packet is put into message queue, send message to sending module; If not the active and standby message of this plate, whether to need to determine the present networks processor mouthful active and standby message of making a start, if, send message to port detecting module, then the master-backup port message packet is put into message queue, send message to sending module; Sending module is read active and standby message packet from message queue, upgrade the main and standby relation table.
4. the described use network processing unit of claim 1 is realized the method that master-backup port is switched, and it is characterized in that: when sending packet, look into routing table earlier, reenter formation, look into master-backup port switching relation table then, send.
5. the described use network processing unit of claim 1 is realized the method that master-backup port is switched, and it is characterized in that: network processing unit comes processing messages to send by micro engine.
CN2003101122328A 2003-11-18 2003-11-18 Method for implementing switching between main and standby port by network processor Expired - Fee Related CN100407619C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2003101122328A CN100407619C (en) 2003-11-18 2003-11-18 Method for implementing switching between main and standby port by network processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2003101122328A CN100407619C (en) 2003-11-18 2003-11-18 Method for implementing switching between main and standby port by network processor

Publications (2)

Publication Number Publication Date
CN1545244A CN1545244A (en) 2004-11-10
CN100407619C true CN100407619C (en) 2008-07-30

Family

ID=34336449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2003101122328A Expired - Fee Related CN100407619C (en) 2003-11-18 2003-11-18 Method for implementing switching between main and standby port by network processor

Country Status (1)

Country Link
CN (1) CN100407619C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010145357A1 (en) * 2009-10-21 2010-12-23 中兴通讯股份有限公司 Method and device for backing up user information

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100382526C (en) * 2005-09-08 2008-04-16 华为技术有限公司 Main/stand by alternation method between links in access-in network system
CN100420239C (en) * 2006-03-15 2008-09-17 华为技术有限公司 Method, system and device for realizing multicast program switching
CN100514940C (en) 2006-10-23 2009-07-15 华为技术有限公司 Method for reorienting network communication port and network communication system
CN101207509B (en) * 2006-12-22 2011-05-11 中兴通讯股份有限公司 System and method of implementation for independently translating business plate port speed
CN101150439A (en) * 2007-09-25 2008-03-26 华为技术有限公司 A method, system and device for realizing master/slave switching
CN101674171B (en) * 2008-09-10 2013-04-24 华为技术有限公司 Port configuration management method, single board and port configuration management system
CN101834668A (en) * 2010-05-25 2010-09-15 中兴通讯股份有限公司 Method and system for quickly realizing service restoration after line switching in passive optical network
CN104579729B (en) * 2013-10-17 2019-03-01 华为技术有限公司 The notification method and device of CGN single board default
CN104486211B (en) * 2014-12-09 2017-12-26 深圳视爵光旭电子有限公司 Data frame route device and LED display control programs
CN105827426B (en) * 2015-01-08 2019-03-15 中国移动通信集团河南有限公司 A kind of link failure processing method, apparatus and system
CN106341249A (en) * 2015-07-10 2017-01-18 中兴通讯股份有限公司 Redundant port switching method and device
CN112015555B (en) * 2020-08-28 2023-09-15 瑞斯康达科技发展股份有限公司 Multicast message processing method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03245638A (en) * 1990-02-23 1991-11-01 Nec Corp Redundancy constitution system in arm exchange
CN1283025A (en) * 1999-09-13 2001-02-07 深圳市中兴通讯股份有限公司 Primary standby structure of Ethernet port
KR20010039096A (en) * 1999-10-29 2001-05-15 서평원 Apparatus for dual controlling of communication port in electronic switching system
JP3245638B2 (en) * 1996-08-28 2002-01-15 株式会社スギノマシン Roller burnishing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03245638A (en) * 1990-02-23 1991-11-01 Nec Corp Redundancy constitution system in arm exchange
JP3245638B2 (en) * 1996-08-28 2002-01-15 株式会社スギノマシン Roller burnishing device
CN1283025A (en) * 1999-09-13 2001-02-07 深圳市中兴通讯股份有限公司 Primary standby structure of Ethernet port
KR20010039096A (en) * 1999-10-29 2001-05-15 서평원 Apparatus for dual controlling of communication port in electronic switching system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010145357A1 (en) * 2009-10-21 2010-12-23 中兴通讯股份有限公司 Method and device for backing up user information

Also Published As

Publication number Publication date
CN1545244A (en) 2004-11-10

Similar Documents

Publication Publication Date Title
CN100407619C (en) Method for implementing switching between main and standby port by network processor
CN101442493B (en) Method for distributing IP message, cluster system and load equalizer
JP2014511091A (en) Condensed core energy efficient architecture for WANIP backbone
US7633861B2 (en) Fabric access integrated circuit configured to bound cell reorder depth
CN100553199C (en) Method of realizing group broadcasting, system and equipment based on the PCIE switching network
JP2004062535A (en) Method of dealing with failure for multiprocessor system, multiprocessor system and node
CN102197627A (en) Improved convergence of multicast traffic
CN102761479A (en) Method for selecting link and device therefore
JPH10190708A (en) Local area network provided with transceiver
US20040240470A1 (en) Selectively switching data between link interfaces and processing engines in a network switch
CN101626348B (en) System and method for realizing service support of enterprise convergence communication
CN101247663B (en) Considerable routing system and its forwarding table generation method
CN100420217C (en) Interframe interconnection communication system and data exchanging method thereof
JPH0897824A (en) Method for allocating radio channel in mobile communication system
CN107819764B (en) Evolution method of C-RAN-oriented data distribution mechanism
CN114884878A (en) MAC address synchronization method for multi-switch chip stacking in hardware learning mode
CN113179228B (en) Method, device, equipment and medium for improving switch stacking reliability
JP2003018165A (en) Network information informing method
CN111193650B (en) Node receiving and dispatching control device based on SAE AS5643 standard
CN101895465B (en) Airborne network with distributed switching and information communication method under same
CN102843265A (en) Non-resetting perturbation-free hot standby double-connection method of communication protocol
CN205265697U (en) Grouping optical transmission terminal chip based on tag switching
CA2526800A1 (en) Network switch for link interfaces and processing engines
CN1671216B (en) Biplane system using dual-transmitting selective-receiving circuit
CN107276845A (en) A kind of real time data dispatching method with fault tolerance of field of track traffic

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

Granted publication date: 20080730

Termination date: 20141118

EXPY Termination of patent right or utility model