CN101217424B - A detecting method and device of aggregated link failures - Google Patents

A detecting method and device of aggregated link failures Download PDF

Info

Publication number
CN101217424B
CN101217424B CN2008100042259A CN200810004225A CN101217424B CN 101217424 B CN101217424 B CN 101217424B CN 2008100042259 A CN2008100042259 A CN 2008100042259A CN 200810004225 A CN200810004225 A CN 200810004225A CN 101217424 B CN101217424 B CN 101217424B
Authority
CN
China
Prior art keywords
port
aggregation
aggregation port
communicated
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
CN2008100042259A
Other languages
Chinese (zh)
Other versions
CN101217424A (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 CN2008100042259A priority Critical patent/CN101217424B/en
Publication of CN101217424A publication Critical patent/CN101217424A/en
Application granted granted Critical
Publication of CN101217424B publication Critical patent/CN101217424B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention provides a method and a device for detecting faults of an aggregation link circuit; the method comprising the following steps: obtaining a plurality of member ports corresponding to an aggregation port; respectively checking the state of each member port; if one member port is in communication, stopping the check of other member ports and confirming that the aggregation link circuit can still communicate; if all the member ports are separated, confirming that the aggregation link circuit is broken down. The invention shortens the time of testing communication and non-communication of the aggregation port, thus improving the switch speed of a business data link when the faults occur in the aggregation link circuit.

Description

The detection method of aggregated link failures and device
Technical field
The present invention relates to the communications field, in particular to a kind of detection method and device of aggregated link failures.
Background technology
The looped network protection protocol definition a kind of ethernet ring network automatic protecting method of supporting that level is divided; wherein; the network topology of complexity is decomposed into the hierarchical structure of main ring and each layer section linkage, and according to the role of the specified node as a result after decomposing, low level is thought high-level eternal connection.The main ring host node utilizes the link failure state of alert mode and sampling mode detection main ring, the switching services that responsible main ring breaks down, recovers from fault.Each layer section linkage host node utilizes alert mode and sampling pattern (cooperation of border auxiliary node) to detect the malfunction of this layer section linkage, is responsible for the switching services that this layer section linkage breaks down, recovers from fault.
LACP (Link Aggregation Control Protocol, Link Aggregation Control Protocol) is the standard agreement that IEEE802.3ad describes.
Link aggregation (Link Aggregation) be meant will have identical traffic media type, identical traffic speed physical link section " binding " together, logically look like a link.Link aggregation claims relaying (Trunking) again, and it allows between the switch or the physical link of the equity between switch and the server increases bandwidth simultaneously exponentially.Therefore, it is a kind of very important techniques at aspects such as the bandwidth that increases link, the transmission elasticity of creating link and redundancies.
The link of polymerization claims main line (Trunk) again.If port among the Trunk takes place to stop up or fault, packet can be assigned on other ports among this Trunk and transmit so.If it is normal that this port recovers, packet will be redistributed on the port of all operate as normal among this Trunk and transmit so.
No matter monocycle and complicated arbitrarily cross ring mutually in the networking of looped network protection agreement, its any link can be an aggregated links.As shown in Figure 1, be a simple monocycle protection topological structure, wherein the link between node S4 and the node S5 is an aggregated links.Obviously, networking is not only limited to one section this situation of link, and the multi-stage polymeric link can be arranged.Detection for aggregated link failures relies on Link Aggregation Control Protocol (LACP) to detect at present, and the disconnection that detects aggregation port shows link occurs fault, and the normal expression of aggregation port does not have fault to take place.
Find in the actual measurement process that existing LACP protocol detection aggregation port make and break process is consuming time longer, causes detecting the consuming time also longer of aggregated link failures.Thereby reduced the switch speed of business datum link.
Summary of the invention
The present invention aims to provide a kind of detection method and device of aggregated link failures, can solve the long problem of existing LACP protocol detection aggregation port make and break process.
According to an aspect of the present invention, provide a kind of detection method of aggregated link failures, may further comprise the steps: the member port that obtains the current correspondence of aggregation port; Check the state of each member port respectively; Keep being communicated with if be checked through a member port, then stop to check other member port, and confirm that aggregated links still can be communicated with; All disconnect if be checked through all member ports, confirm that then aggregated links disconnects.
Above-mentioned detection method has been avoided all checking all member ports at every turn, detects the time of aggregation port break-make so shortened, thereby can improve the switch speed of business datum link when aggregated links breaks down.
According to a further aspect in the invention, provide a kind of checkout gear of aggregated link failures, having comprised: acquisition module is used to obtain the member port of the current correspondence of aggregation port; Check module, be used for checking respectively the state of each member port; First confirms module, keeps being communicated with if be used for being checked through a member port, then stops to check other member port, and confirms that aggregated links still can be communicated with; Second confirms module, all disconnects if be used for being checked through all member ports, confirms that then aggregated links disconnects.
Above-mentioned detection device has been avoided all checking all member ports at every turn, detects the time of aggregation port break-make so shortened, thereby can improve the switch speed of business datum link when aggregated links breaks down.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 shows a kind of typical looped network protection agreement monocycle topological structure;
Fig. 2 shows the flow chart according to the detection method of the aggregated link failures of the embodiment of the invention;
The testing process figure of detection method when Fig. 3 shows according to the timing fault detect of the embodiment of the invention;
Fig. 4 shows the flow chart of detection method when aggregation port is given out a contract for a project according to the embodiment of the invention;
Fig. 5 shows the block diagram according to the checkout gear of the aggregated link failures of the embodiment of the invention.
Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.
Fig. 2 shows the flow chart according to the detection method of the aggregated link failures of the embodiment of the invention, may further comprise the steps:
Step S10 obtains the member port of the current correspondence of aggregation port;
Step S20 checks the state of each member port respectively;
Step S30 keeps being communicated with if be checked through a member port, then stops to check other member port, and confirms that aggregated links still can be communicated with;
Step S40 disconnects if be checked through all member ports, confirms that then aggregated links disconnects.
Above-mentioned detection method has been avoided all checking all member ports at every turn, detects the time of aggregation port break-make so shortened, thereby can improve the switch speed of business datum link when aggregated links breaks down.
Existing in addition LACP protocol detection aggregation port make and break process is consuming time longer, has reduced the switch speed of business datum link, also may cause initial ring fidonetFido bag packet loss in handoff procedure, can not reach set performance requirement.This detection method has been because improved switch speed, thus can alleviate the phenomenon of initial ring fidonetFido bag packet loss in handoff procedure, thus reach set performance requirement.
Preferably, step S10 specifically comprises: obtain the current aggregation port membership table of aggregation port; From the aggregation port membership table, obtain member port.
Preferably, obtain the current aggregation port membership table of aggregation port by the interface function in the Link Aggregation Control Protocol.
Preferably, periodically obtain the member port of the current correspondence of aggregation port.After confirming that aggregated links disconnects, can judge also whether aggregation port is communicated with before this; If be communicated with, then the alarm notification aggregated link failures takes place; Otherwise do not alarm.Do like this is because if be communicated with before, then shown the state variation of aggregated links, so can alarm; And if original before the disconnection then obviously need not alarm prompt.
Preferably, after confirming that aggregated links disconnects, also comprise: trigger business is switched to other link from aggregated links.So just can guarantee professional proceeding in time.
The testing process figure of detection method when Fig. 3 shows according to the timing fault detect of the embodiment of the invention may further comprise the steps:
Step S302, timing cycle arrives, detection trigger;
Step S304 obtains all member ports of corresponding aggregation port;
Step S306 checks the state of each member port respectively;
Step S308 judges whether the state of this member port is normal connection, is then to advance to step S314, otherwise advances to step S310;
Step S310 judges whether to check out all member ports; Be then to advance to step S316, otherwise advance to step S312;
Step S312 advances to next member port, advances to step S306 then;
Step S314 determines that the aggregation port link normally is communicated with, and recording status;
Step S316 determines the aggregation port link occurs fault, and recording status;
Step S318, with last one-period Link State change? be then to advance to step S322, otherwise advance to step S320;
Step S320 keeps a Link State, need not alarm, and advances to step S324;
Step S322, alarm notification looped network protection agreement is done corresponding control service switchover link;
Step S324 waits for next cycle, and advances to step S302.
As shown in Figure 1, be a simple monocycle topological structure of looped network protection agreement, the link among the figure between S4 and the S5 node device is an aggregated links, and two continuous ports are aggregation port, all are T1, comprise member port P4 respectively, three ports of P5 and P6.
S4 and S5 node are consistent to the detection of aggregation port, only illustrate herein the S4 node is how to detect aggregation port T1 place link failure.Supposing that the figure intermediate ring road all is communicated with, is a physics closed loop, and three links between S4 and the S5 also all are communicated with.
This moment, the state that gets access to first port P4 was for after being communicated with according to the step in the flow chart 3, because last one-period aggregated links is still normal for being communicated with, therefore after the judgement whether next step Link State changes, waited for the arrival of next sense cycle.
When P4 port link is disconnected, according to flow chart 3, because P5 and P6 link are still normal, so aggregated links does not still change; Continuation disconnects the P5 link, only keeps the P6 link and is communicated with, and the result also is the same, and it is normal that aggregated links keeps.
After continuing the disconnection of P6 port link, variation has taken place in situation, according to flow chart 3, at the detection member port P4 that is over, behind the member port that P5, P6 do not have to be communicated with, show that this aggregated links disconnects, this moment, variation took place in the aggregated links state, needed alarm notification looped network agreement to make control corresponding service switchover link.
When again P4 port link-recovery normally being communicated with, detected this moment aggregated links normal after since the aggregated links state with variation had last time relatively taken place, therefore need the looped network protection agreement to do corresponding control.If continue to recover P5, P6 link then aggregated links then can not change owing to keep normally being communicated with, and the looped network agreement also need not be made corresponding control.
Preferably, at the member port that will when aggregation port sends packet, obtain the current correspondence of aggregation port.After confirming that aggregated links disconnects, also can stop to send packet to aggregation port.
Fig. 4 shows the flow chart of detection method when aggregation port is given out a contract for a project according to the embodiment of the invention, may further comprise the steps:
Step S402, looped network protection agreement item aggregation port sends packet;
Step S404 to S312, the step S304 that is similar to Fig. 3 be to step S312, because abovely describe in detail, repeats no more here.
Step S414 sends packet to this member port, and stops to check;
Step S416 determines the aggregation port link occurs fault, can not send packet.
According to flow chart 4, work as P4, P5 and P6 port link all just often when detecting first port P4, get final product because P4 keeps connection directly protocol package to be sent from port P4, and the process of giving out a contract for a project finishes.
The P4 link is disconnected, and according to flow chart 4, the P4 state-detection continues to judge the P5 port status that to disconnecting the back get final product because P5 is communicated with directly protocol package to be sent from port P5, the process of giving out a contract for a project finishes.
Continuation disconnects P5, only keeps the P6 link and is communicated with, and protocol package can be sent from port P6, and the process of giving out a contract for a project finishes.
Continuation disconnects P6, and this moment, three links were not communicated with, therefore according to flow chart 4, has detected all of the port state after, the discovery aggregated links has disconnected then and can not send protocol package.
Above embodiment has illustrated the inventive method with the simplest a kind of networking topological structure, certainly in the present embodiment in the aggregation port member port number have only 3, but be not limited to this in the practical application, can how also can lack; In addition, the networking topology is comparatively simple in the present embodiment, is not limited to this in the practical application, can be that complicated multi-level phase cross ring also can be simpler monocycle topological structure, and the complexity of the inventive method and ring network is irrelevant; At last, the aggregated links in the present embodiment has only one, is not limited in the practical application time, can have many in addition all link all be aggregated links, what of aggregated links have nothing to do in the inventive method and the networking.
Fig. 5 shows the block diagram according to the checkout gear of the aggregated link failures of the embodiment of the invention, comprising:
Acquisition module 10 is used to obtain the member port of the current correspondence of aggregation port;
Check module 20, be used for checking respectively the state of each member port;
First confirms module 30, keeps being communicated with if be used for being checked through a member port, then stops to check other member port, and confirms that aggregated links still can be communicated with;
Second confirms module 40, all disconnects if be used for being checked through all member ports, confirms that then aggregated links disconnects.
Preferably, acquisition module 10 comprises: first acquiring unit is used to obtain the current aggregation port membership table of aggregation port; Second acquisition unit is used for obtaining member port from the aggregation port membership table.
Preferably, first acquiring unit obtains the current aggregation port membership table of aggregation port by the interface function in the Link Aggregation Control Protocol.
Preferably, acquisition module 10 periodically obtains the member port of the current correspondence of aggregation port.
Preferably, checkout gear also comprises: alarm module is used for judging whether aggregation port is communicated with before this after confirming that aggregated links disconnects; If be communicated with, then the alarm notification aggregated link failures takes place; Otherwise do not alarm.
Preferably, checkout gear also comprises: trigger module is used for triggering business being switched to other link from aggregated links after confirming that aggregated links disconnects.
Preferably, acquisition module 10 is at the member port that will obtain the current correspondence of aggregation port when aggregation port sends packet.
Preferably, checkout gear also comprises: stopping modular is used for stopping to send packet to aggregation port after confirming that aggregated links disconnects.
Above-mentioned detection device has been avoided all checking all member ports at every turn, detects the time of aggregation port break-make so shortened, thereby can improve the switch speed of business datum link when aggregated links breaks down.
Existing in addition LACP protocol detection aggregation port make and break process is longer, has reduced the switch speed of business datum link, also may cause initial ring fidonetFido bag packet loss in handoff procedure, can not reach set performance requirement.This checkout gear has been because improved switch speed, thus can alleviate the phenomenon of initial ring fidonetFido bag packet loss in handoff procedure, thus reach set performance requirement.
As can be seen from the above description, above-mentioned detection method and device have improved detection speed, and can avoid packet loss, the switch speed in the time of can significantly improving the business datum link occurs fault.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. the detection method of an aggregated link failures is characterized in that, may further comprise the steps:
Obtain the member port of the current correspondence of aggregation port;
Check the state of each described member port respectively;
Keep being communicated with if be checked through a member port, then stop to check other described member port, and confirm that described aggregated links still can be communicated with;
All disconnect if be checked through all described member ports, confirm that then described aggregated links disconnects;
After confirming that described aggregated links disconnects, judge whether described aggregation port is communicated with before this;
If be communicated with, then the described aggregated link failures of alarm notification takes place; Otherwise do not alarm.
2. detection method according to claim 1 is characterized in that, the member port that obtains the current correspondence of aggregation port specifically comprises:
Obtain the current aggregation port membership table of described aggregation port;
From described aggregation port membership table, obtain described member port.
3. detection method according to claim 2 is characterized in that, obtains the current aggregation port membership table of described aggregation port by the interface function in the Link Aggregation Control Protocol.
4. detection method according to claim 1 is characterized in that, periodically obtains the member port of the current correspondence of described aggregation port.
5. detection method according to claim 4 is characterized in that, after confirming that described aggregated links disconnects, also comprises:
Triggering switches to other link with business from described aggregated links.
6. detection method according to claim 1 is characterized in that, at the member port that will obtain the current correspondence of described aggregation port when described aggregation port sends packet.
7. detection method according to claim 6 is characterized in that, after confirming that described aggregated links disconnects, also comprises:
Stop to send packet to described aggregation port.
8. the checkout gear of an aggregated link failures is characterized in that, comprising:
Acquisition module is used to obtain the member port of the current correspondence of aggregation port;
Check module, be used for checking respectively the state of each described member port;
First confirms module, keeps being communicated with if be used for being checked through a member port, then stops to check other described member port, and confirms that described aggregated links still can be communicated with;
Second confirms module, all disconnects if be used for being checked through all described member ports, confirms that then described aggregated links disconnects;
Alarm module is used for judging whether described aggregation port is communicated with before this after confirming that aggregated links disconnects; If be communicated with, then the alarm notification aggregated link failures takes place; Otherwise do not alarm.
9. checkout gear according to claim 8 is characterized in that acquisition module comprises: first acquiring unit is used to obtain the current aggregation port membership table of described aggregation port;
Second acquisition unit is used for obtaining described member port from described aggregation port membership table.
CN2008100042259A 2008-01-21 2008-01-21 A detecting method and device of aggregated link failures Active CN101217424B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100042259A CN101217424B (en) 2008-01-21 2008-01-21 A detecting method and device of aggregated link failures

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100042259A CN101217424B (en) 2008-01-21 2008-01-21 A detecting method and device of aggregated link failures

Publications (2)

Publication Number Publication Date
CN101217424A CN101217424A (en) 2008-07-09
CN101217424B true CN101217424B (en) 2010-12-29

Family

ID=39623788

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100042259A Active CN101217424B (en) 2008-01-21 2008-01-21 A detecting method and device of aggregated link failures

Country Status (1)

Country Link
CN (1) CN101217424B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674229B (en) * 2008-09-12 2012-09-05 华为技术有限公司 Information management method of link aggregation group and network node
CN101958812B (en) * 2009-07-15 2015-10-21 中兴通讯股份有限公司 Link failure detection method and system
CN101834759A (en) * 2010-04-21 2010-09-15 中兴通讯股份有限公司 Detection method of binding link and distributed equipment
CN102238069B (en) * 2010-04-29 2014-07-30 杭州华三通信技术有限公司 Data processing method and device for link switching process
CN102468973A (en) * 2010-11-12 2012-05-23 中兴通讯股份有限公司 Alarm control method and device for aggregation link in packet switching network
CN102364892B (en) * 2011-10-12 2013-04-24 华为技术有限公司 Link aggregation control protocol (LACP) link switching and data transmission method and apparatus thereof
CN102882805B (en) * 2012-09-24 2015-12-02 华为技术有限公司 Avoid method and the device of link aggregation group from state transition
CN104202193B (en) * 2014-09-05 2018-03-27 上海斐讯数据通信技术有限公司 The method of distributed protection link failure detection
CN104468203A (en) * 2014-11-26 2015-03-25 上海斐讯数据通信技术有限公司 Allocating method of fault switching of ports in switch aggregation group
CN106911533B (en) * 2017-02-13 2020-01-03 杭州迪普科技股份有限公司 Link state detection method and device
CN107707299B (en) * 2017-10-31 2020-07-07 新华三技术有限公司 Detection method and device for FC aggregation link
CN112737871B (en) * 2020-12-11 2022-09-27 北京东土军悦科技有限公司 Link fault detection method and device, computer equipment and storage medium
CN112995807B (en) * 2021-03-22 2022-06-24 烽火通信科技股份有限公司 Method and device for setting port forwarding state in OLT group ring network

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913414A (en) * 2006-08-29 2007-02-14 华为技术有限公司 Method, equipment and system of implementing protection using link aggregate
CN101056223A (en) * 2007-05-30 2007-10-17 杭州华三通信技术有限公司 Link failure detection method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913414A (en) * 2006-08-29 2007-02-14 华为技术有限公司 Method, equipment and system of implementing protection using link aggregate
CN101056223A (en) * 2007-05-30 2007-10-17 杭州华三通信技术有限公司 Link failure detection method and device

Also Published As

Publication number Publication date
CN101217424A (en) 2008-07-09

Similar Documents

Publication Publication Date Title
CN101217424B (en) A detecting method and device of aggregated link failures
CN100409634C (en) Fast ring network protecting method and system
CN102315975B (en) Fault processing method based on intelligent resilient framework (IRF) system and equipment thereof
RU2423008C2 (en) METHOD AND SYSTEM FOR AUTOMATIC PROTECTION OF Ethernet NETWORK
US20150288561A1 (en) Computer network method and device using link aggregation
EP2352253B1 (en) Method and apparatus for protecting link aggregation group of ethernet ring
CN101146014B (en) Fault-tolerant Ethernet network
US20070183313A1 (en) System and method for detecting and recovering from virtual switch link failures
CN101557313B (en) Method for protecting uplink plate card of carrier-grade broadband access equipment
CN103873336B (en) The service bearer method and device of distributed elastic network interconnection
CN101197733A (en) Automatic detection method and device for network connectivity
CN101442484A (en) Method, system and equipment for detecting stacking multi-Active
CN103607293B (en) A kind of flow rate protecting method and equipment
CN101001165A (en) Network failure recovery method with redundancy port
CN103780407A (en) Gateway dynamic switching method and apparatus in distributed resilient network interconnection (DRNI)
CN101039172B (en) Ethernet ring network system and its protection method and standby host node
CN103227725A (en) Method and device for dual-server backup of firewall
CN101674240A (en) Method and device for realizing single-node dual home for distributed system
CN101227371A (en) Method and apparatus of backup switch among same level switch equipments
JP5491623B2 (en) Address refresh method and system
CN101136838B (en) Bridge mode elastic grouping ring transannular bridge equipment redundancy protecting method
CN101848128B (en) Method, system and topological structure for realizing stabilized communication among multi-ring topologies
CN101534234A (en) Interworking Ethernet ring network protection method and system
CN100550812C (en) Improve method, system and the node device of dependability of fast looped network
CN102118266A (en) Industrial Ethernet dual-link redundancy technology

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