CN100456696C - Ether port protection method - Google Patents

Ether port protection method Download PDF

Info

Publication number
CN100456696C
CN100456696C CNB2006100635185A CN200610063518A CN100456696C CN 100456696 C CN100456696 C CN 100456696C CN B2006100635185 A CNB2006100635185 A CN B2006100635185A CN 200610063518 A CN200610063518 A CN 200610063518A CN 100456696 C CN100456696 C CN 100456696C
Authority
CN
China
Prior art keywords
port
lsw
standby
phy
link
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.)
Active
Application number
CNB2006100635185A
Other languages
Chinese (zh)
Other versions
CN1949724A (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 CNB2006100635185A priority Critical patent/CN100456696C/en
Publication of CN1949724A publication Critical patent/CN1949724A/en
Application granted granted Critical
Publication of CN100456696C publication Critical patent/CN100456696C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an Ethernet port protecting method, comprising the steps of: when Ethernet message transmission chip's LSW link corresponding to master port of a port convergence protection group fails, closing the master port's physical layer (PHY) lighting and opening backup port's PHY lighting; b. detecting the LSW link corresponding to the backup port and according to the detected results, selecting the backup port as a new master port, or closing the backup port's PHY lighting and opening the master port's PHY lighting, and detecting the LSW link corresponding to the master port. On the condition that the convergence protection group dually homes to network with plural routing node, no invalid routes occur; if the master port fails, it can switch service to other backup port or restores the master port in the shortest time, thus reducing service interrupt loss to the lowest.

Description

A kind of method of Ethernet port protecting
Technical field
The invention belongs to the optical communication technique field., relate in particular to the technology of Ethernet port protecting.
Background technology
Increasing along with the diversification of telecommunication service and number of services; the protection of telecommunication service is also more and more important; more especially to time requirement than higher business; at first the factor of Kao Lving is exactly its defencive function, and telecom equipment provider also occupies defencive function a main advantage of the market share as its equipment of promotion.
In the equipment operation of reality; the ether port becomes main data transmission interface; if but Transmission Fibers breaks down; all business will be interrupted; generation for fear of this situation; introduced the port trunking resist technology; a plurality of ether ports are formed a port trunking protection group; in port trunking protection group; main port and standby port are arranged; master port can carry out the reception and the forwarding of message; standby port can only receive message but can not carry out message forwarding; the port trunking protection is to carry out the switching of active and standby port by the state that detects main port and standby port, and detection mode has three kinds at present: physical layer (PHY) detects (being used for the light mouth), and the Ethernet link layer detects; LACP (Link Aggregation Control Protocol) detects.
The detailed process that physical layer detects is as follows: the luminous open mode that is in of all of the port PHY in the port trunking protection group; the link of corresponding LSW (Ethernet message forwarding chip) port of standby port is in closed condition; regularly the receipts light state that detects each port PHY determines whether each port status is normal; when the PHY of main port receives the light fault; main port state transition is fault case; and will receive at each PHY and select a port in the normal standby port of light state as main port; the rule of selecting comprises: the port fixed priority; port numbers; whether be main with on the state plate; bandwidth (the duplex of port; speed) etc.; select the main port that makes new advances according to above-mentioned alternation rule from a plurality of standby ports, and business is switched to new main port.
The detailed process of LACP protocol detection is as follows:
The luminous open mode that is in of all of the port PHY in the port trunking protection group; the link of the corresponding LSW port of all of the port is in open mode; timed sending LACP protocol massages notice detects the break-make of each port; if do not receive the opposite end back message using for a long time; then port status is a fault case; if can normally receive the back message using of opposite end always, then port status is a normal state.
Main port is not received the back message using of opposite end in stipulated time, the main port state is moved be fault case, and selects one as main port in the standby port of each normal condition, and business is switched on the new main port.
The third mode of the prior art is that the Ethernet link layer detects, and concrete scheme is as follows:
The luminous open mode that is in of all of the port PHY in the port trunking protection group, the link of the corresponding LSW port of all of the port is in open mode, and all of the port pattern is set to auto-negotiation, regularly detects the LSW Link State of each port correspondence.If the LSW port Link State of port correspondence is normal, then port status is a normal state; If Link State fault, port status then are fault case.After the link failure of the corresponding LSW port of main port, then in the normal standby port of each Link State, select one, business is switched on the new main port as main port.
As mentioned above; existing three kinds of detection modes all need the interior all of the port of polymerization protection group to be in luminance; when the dual-homed networking to different routing nodes of polymerization protection group; main port and the different routing device of standby port butt joint; because standby port is also luminous; the routing device that docks with standby port will generate an invalid route; will be obstructed from the upper layer network downlink message, so existing technical scheme can not satisfy the dual-homed situation to different routing node networkings of polymerization protection group.
Summary of the invention
The object of the present invention is to provide a kind of method of Ethernet port protecting, be intended to solve existing technical scheme and can not be applicable to the dual-homed problem of polymerization protection group to different routing node networkings.
The present invention is achieved in that a kind of method of Ethernet port protecting, and described method comprises the steps:
A, when the Ethernet message forwarding chip LSW of port trunking protection group main port correspondence link occurs fault, it is luminous to close described main port physical layer PHY, it is luminous to open standby port PHY;
B, the LSW link of described standby port correspondence is detected, if there is the LSW link of standby port correspondence normal, then system selects for use a standby port as new main port and to close the PHY of other standby port luminous, business is switched to selected standby port operation, otherwise change step c;
C, to close described standby port PHY luminous, and it is luminous to open described main port PHY, and the LSW link of described main port correspondence is detected.
Wherein also comprise before the step a:
A0, to open described polymerization protection group main port physical layer PHY luminous, and it is luminous, professional in described main port operation to close standby port PHY.
Wherein step a0 also comprises:
Open the LSW link of described main port and standby port correspondence.
Wherein step b specifically comprises:
LSW link to described standby port correspondence detects, if there is the LSW link of more than one standby port correspondence normal, then the principle of selecting for use according to main port selects a standby port as new main port, it is luminous to close other standby port PHY, business is switched to described new main port operation, if have only the LSW link of a standby port correspondence normal, then system with described standby port as new main port, business is switched to the operation of described new main port, and it is luminous to close other standby port PHY.
Wherein step c specifically comprises:
It is luminous to close described standby port PHY, it is luminous to open described main port PHY, the LSW link of described main port correspondence is detected, if the LSW link-recovery of described main port correspondence is normal, then professional continuation moves on described main port, otherwise changes step a.
The described principle of selecting for use according to main port selects a standby port to be specially as new main port: according to port fixed priority or port numbers or port whether main with the state plate on or the bandwidth of port select a standby port as new main port.
Described to the main port correspondence the LSW link and/or the LSW link of described standby port correspondence is detected specifically is that Link State by inquiry LSW hardware register obtains LSW is realized.
The present invention overcomes the deficiencies in the prior art; the main port of employing port trunking protection group and the PHY of standby port are simultaneously luminous in no instance; carry out the technical scheme that port switches by detecting polymerization protection group port link corresponding state; dual-homed under the networking situation of a plurality of route contacts in polymerization protection group; the present invention program invalid route can not occur; if the main port fault can switch to other standby ports with business or main port is recovered in the shortest time, thereby the service disconnection loss is reduced to minimum.
Description of drawings
Fig. 1 is the dual-homed networking diagram to different routing nodes of the described polymerization protection of embodiment of the invention group;
Fig. 2 is an embodiment of the invention flow chart.
Embodiment
Basic principle of the present invention is dual-homed under the networking situation of different routing nodes in polymerization protection group; when polymerization protection group is in stable state; the luminous luminance that is in of the PHY of main port; the luminous closed condition that is in of the PHY of standby port; when polymerization protection group is in unstable state; the PHY that closes main port is luminous; open PHY luminous of standby port; LSW Link State to the standby port correspondence detects, and selects new main port or use the former main port that recovers normal condition according to testing result.
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The networking diagram of the embodiment of the invention as shown in Figure 1, wherein polymerization protection group is dual-homed to different routing nodes, the port in the protection group is a plurality of, a plurality of ports can be distributed in a plate, also can be distributed in the polylith plate.
At first; need set up the polymerization protection group of a plurality of ports; at first all of the port in the protection group is carried out validity check; to determine whether to meet the condition of setting up polymerization protection group; after verification is passed through; select a port as main port in all of the port from polymerization protection group, remaining is as standby port.
Of the present invention dual-homed in the networking of different routing nodes in polymerization protection group; in order to guarantee that active link is normal; need open main port PHY is luminous; simultaneously generate invalid route according to Link State for fear of the routing node that docks with standby port; thereby cause professional obstructed to the alternate routing device forwards from the service message that upper layer network issues; need close standby port PHY is luminous; open the link of the LSW of all of the port correspondence simultaneously; after switching to standby port; do not need spended time to open the LSW link of standby port correspondence, to save switching time.
Normal condition lower port polymerization protection group is in stable state; all business will be moved on main port; if the LSW link failure of main port correspondence; system will enter unstable state and the time-delay that circulates detects: the PHY that at first closes main port is luminous; open the luminous of all standby port PHY then; (for example 3s) detects the LSW Link State of standby port correspondence in time-delay detects the stipulated time, and carries out following processing according to testing result:
1, open PHY in the luminous time (for example 3s) at standby port, the LSW Link State of standby port correspondence is regularly inquired about by system, specifically can obtain the Link State of LSW by inquiry LSW hardware register, if exist the LSW link of a plurality of port correspondences normal in the standby port, then in the normal standby port of each Link State, select for use principle to select a standby port as new main port according to main port, selecting foundation is the port fixed priority, port numbers, whether use on the state plate main, bandwidth (the duplex of port, speed) etc., after new main port is selected, the PHY of other standby port is luminous with all closes, simultaneously business is switched on the new main port, polymerization protection group enters stable state; If have only the LSW link of a port correspondence normal in the standby port, then with this standby port as new main port, business is switched on the new main port, close the PHY of all other standby ports is luminous;
2, open PHY in the luminous time at standby port, the LSW Link State of system queries standby port correspondence, specifically can obtain the Link State of LSW by inquiry LSW hardware register, if the LSW link neither one of all standby port correspondences is normal, then close the luminous of all standby port PHY, open the luminous of main port PHY and its LSW Link State detected: if main port open PHY in the luminous time (for example 3s) Link State recover normal, then professional the continuation in the main port operation, polymerization protection group enters stable state; If open PHY (for example 3s) Link State fault still in the luminous time at main port, it is luminous then to close main port PHY once more, and it is luminous and carry out the LSW Link State and detect to open used standby port PHY.
Circulate according to above mechanism, till the main port of selecting to make new advances from standby port or original main port link-recovery were normal, particular flow sheet comprised the steps: as shown in Figure 2
1, during stable state, main port PHY is luminous to be opened, and standby port PHY is luminous to close;
2, the LSW link failure of main port correspondence, system enters non-steady state;
3, it is luminous to close main port PHY, and it is luminous to open all standby port PHY;
4, the LSW link to the standby port correspondence carries out the timing detection;
5, in detection time,, then change step 6, otherwise change step 10 if there is the LSW link of one or more standby port correspondence normal;
If 6 have the LSW link of a plurality of standby port correspondences normal, change step 7, otherwise change step 8;
7, from a plurality of standby ports, select a main port that conduct is new according to main port selection principle;
8, with the normal standby port of LSW link of correspondence as new main port;
9, business is switched on the new main port, the PHY that closes all other standby ports simultaneously is luminous;
If 10 in detection time, the LSW link of all standby port correspondences is all undesired, and it is luminous then to close all standby port PHY, and it is luminous to reopen main port PHY;
11, the LSW link to the main port correspondence carries out the timing detection;
If 12 in detection time the LSW link-recovery of main port correspondence normal, change step 13, otherwise change step 3;
13, system restoration stable state.
As mentioned above; adopt technical scheme of the present invention; main port and standby port PHY is luminous opens simultaneously in no instance; guaranteed that port trunking protection group is dual-homed under the networking model of different routing nodes; by port link corresponding state being detected determine active and standby switching, reached the purpose of protection ether port with port.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1, a kind of method of Ethernet port protecting is characterized in that, described method comprises the steps:
A, when the Ethernet message forwarding chip LSW of port trunking protection group main port correspondence link occurs fault, it is luminous to close described main port physical layer PHY, it is luminous to open standby port PHY;
B, the LSW link of described standby port correspondence is detected, if there is the LSW link of standby port correspondence normal, then system selects for use a standby port as new main port and to close the PHY of other standby port luminous, business is switched to selected standby port operation, otherwise change step c;
C, to close described standby port PHY luminous, and it is luminous to open described main port PHY, and the LSW link of described main port correspondence is detected.
2, method according to claim 1 is characterized in that, wherein also comprises before the step a:
A0, to open described polymerization protection group main port physical layer PHY luminous, and it is luminous, professional in described main port operation to close standby port PHY.
3, method according to claim 2 is characterized in that, wherein step a0 also comprises:
Open the LSW link of described main port and standby port correspondence.
4, method according to claim 1 is characterized in that, wherein step b specifically comprises:
LSW link to described standby port correspondence detects, if there is the LSW link of more than one standby port correspondence normal, then the principle of selecting for use according to main port selects a standby port as new main port, it is luminous to close other standby port PHY, business is switched to described new main port operation, if have only the LSW link of a standby port correspondence normal, then system with described standby port as new main port, business is switched to the operation of described new main port, and it is luminous to close other standby port PHY.
5, method according to claim 1 is characterized in that, wherein step c specifically comprises:
It is luminous to close described standby port PHY, it is luminous to open described main port PHY, the LSW link of described main port correspondence is detected, if the LSW link-recovery of described main port correspondence is normal, then professional continuation moves on described main port, otherwise changes step a.
6, method according to claim 4, it is characterized in that the described principle of selecting for use according to main port selects a standby port to be specially as new main port: according to port fixed priority or port numbers or port whether main with the state plate on or the bandwidth of port select a standby port as new main port.
7, method according to claim 1, it is characterized in that, described to the main port correspondence the LSW link and/or the LSW link of described standby port correspondence is detected specifically is that Link State by inquiry LSW hardware register obtains LSW is realized.
CNB2006100635185A 2006-11-07 2006-11-07 Ether port protection method Active CN100456696C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100635185A CN100456696C (en) 2006-11-07 2006-11-07 Ether port protection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100635185A CN100456696C (en) 2006-11-07 2006-11-07 Ether port protection method

Publications (2)

Publication Number Publication Date
CN1949724A CN1949724A (en) 2007-04-18
CN100456696C true CN100456696C (en) 2009-01-28

Family

ID=38019115

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100635185A Active CN100456696C (en) 2006-11-07 2006-11-07 Ether port protection method

Country Status (1)

Country Link
CN (1) CN100456696C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8693308B2 (en) 2006-02-10 2014-04-08 Aviat U.S., Inc. System and method for resilient wireless packet communications
US8264953B2 (en) * 2007-09-06 2012-09-11 Harris Stratex Networks, Inc. Resilient data communications with physical layer link aggregation, extended failure detection and load balancing
CN101902317B (en) * 2010-06-17 2013-02-13 烽火通信科技股份有限公司 Protection method of active/standby TRUNK changeover in broadband access device
CN103795556B (en) * 2012-10-30 2017-09-19 华为技术有限公司 A kind of fault handling method and the network switch
CN110661702B (en) * 2018-06-28 2022-09-13 中兴通讯股份有限公司 Link backup method and device and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003017598A1 (en) * 2001-08-15 2003-02-27 The Board Of Governors For Higher Education, State Of Rhode Island And Providence Plantations Scsi-to-ip cache storage device and method
US20030081131A1 (en) * 2001-10-26 2003-05-01 Koninklijke Philips Electronics N.V. Method for viewing and controlling multiple DVR's
CN1545268A (en) * 2003-11-27 2004-11-10 中兴通讯股份有限公司 A method and system for Ethernet interface node backup
CN2669498Y (en) * 2003-12-04 2005-01-05 港湾网络有限公司 Esternet port branch protective switching device for digital synchronizing system equipment
CN2669497Y (en) * 2003-12-04 2005-01-05 港湾网络有限公司 Esternet port branch protective switching device for digital synchronizing system equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003017598A1 (en) * 2001-08-15 2003-02-27 The Board Of Governors For Higher Education, State Of Rhode Island And Providence Plantations Scsi-to-ip cache storage device and method
US20030081131A1 (en) * 2001-10-26 2003-05-01 Koninklijke Philips Electronics N.V. Method for viewing and controlling multiple DVR's
CN1545268A (en) * 2003-11-27 2004-11-10 中兴通讯股份有限公司 A method and system for Ethernet interface node backup
CN2669498Y (en) * 2003-12-04 2005-01-05 港湾网络有限公司 Esternet port branch protective switching device for digital synchronizing system equipment
CN2669497Y (en) * 2003-12-04 2005-01-05 港湾网络有限公司 Esternet port branch protective switching device for digital synchronizing system equipment

Also Published As

Publication number Publication date
CN1949724A (en) 2007-04-18

Similar Documents

Publication Publication Date Title
US9088484B1 (en) Method and apparatus for preventing loops in a network by controlling broadcasts
CN101479992B (en) A method and device to realize punch-through of point-to-multipoint network link status
EP2352253B1 (en) Method and apparatus for protecting link aggregation group of ethernet ring
CN100449521C (en) Restoration mechanism for network topologies
CN101771618B (en) Host routing reachable method and system in access ring of packet transport network
US8208369B2 (en) Ethernet ring system and a master node and an initialization method thereof
CN102045332B (en) Method for processing control message in intelligent resilient framework and line card boards
CN101557313B (en) Method for protecting uplink plate card of carrier-grade broadband access equipment
CN107508640B (en) Double-ring redundant self-healing optical fiber network construction method based on optical fiber channel technology
CN101917648B (en) Method for implementing service control in all-fiber protection system and device thereof
CN101068139A (en) Media gateway upper connection link main spare protecting method
CN101001165A (en) Network failure recovery method with redundancy port
JP2004096734A (en) Apparatus and method for duplexing gigabit ethernet (r) passive optical network system, and frame format for controlling the same
GB2444170A (en) Ethernet protection using a redundant link, with link up of a remote port being triggered using a "link status control mechanism".
CN1981279A (en) Tandem node system and a method thereor
CN100456696C (en) Ether port protection method
CN103607293B (en) A kind of flow rate protecting method and equipment
WO2011157021A1 (en) Method, system and device for implementing passive optical network fiber protection
CN101427499A (en) System and method of multi-nodal APS control protocol signalling
CN102142948A (en) Data forwarding method, device and system
CN101714939A (en) Fault treatment method for Ethernet ring network host node and corresponding Ethernet ring network
CN102340392B (en) Method and system for improving reliability of service in passive optical network system
CN101964719A (en) Data processing method based on operating/standby switch of master control boards, line card and master control boards
CN101931550A (en) Method and device for synchronizing main and standby main control boards
EP2426855B1 (en) Address refresh method and system

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