CN101616067A - Link switch-over method and device - Google Patents

Link switch-over method and device Download PDF

Info

Publication number
CN101616067A
CN101616067A CN200810127571A CN200810127571A CN101616067A CN 101616067 A CN101616067 A CN 101616067A CN 200810127571 A CN200810127571 A CN 200810127571A CN 200810127571 A CN200810127571 A CN 200810127571A CN 101616067 A CN101616067 A CN 101616067A
Authority
CN
China
Prior art keywords
link
aggregation group
state
link aggregation
links
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.)
Pending
Application number
CN200810127571A
Other languages
Chinese (zh)
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 CN200810127571A priority Critical patent/CN101616067A/en
Publication of CN101616067A publication Critical patent/CN101616067A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a kind of link switch-over method and device, said method comprises: the threshold value that link aggregation group is set; From with many corresponding down links of link aggregation group select and the related down link of link aggregation group; Judge whether the number of links that is in off-state in the link aggregation group reaches or surpass threshold value; Be in link aggregation group under the situation of number of links more than or equal to threshold value of off-state, the state of the down link related with link aggregation group is set to disconnect, and triggers the equipment that is connected with down link and switches to reserve link.By technique scheme of the present invention, can guarantee up link under situation about disconnecting, the flow of down link is not lost.

Description

Link switch-over method and device
Technical field
The present invention relates to the communications field, and especially, relate to a kind of link switch-over method and device.
Background technology
The main/slave link redundancy backup is one of set of applications net mode at present commonly used, and when network changes, when primary link broke down, data flow switched on the standby link, and is professional normal to guarantee, improves the reliability of network.
When up link breaks down, can in time notify downstream plant, and trigger downstream plant and in time carry out link switchover, it is a major issue that realizes that the main/slave link redundancy backup need be considered, wherein, the monitoring link is exactly a solution, a uplink port and one or several down link port are associated, form the monitoring group, when uplink port broke down, all downlink ports in the monitoring group all were set to DOWN, adopt this mode, uplink failure information is conveyed to downstream plant, trigger downstream plant and carry out link switchover.
The uplink port that adds the monitoring group can be a physical port, also can be link polymerization terminal port.When uplink port is link polymerization terminal port, when having only all links in the link aggregation group all DOWN to occur, just think the uplink port fault, pressure switches to the DOWN state with all downlink status.
Link aggregation can be realized being multiplied of bandwidth, certain link in link aggregation group breaks down, can not receive, send data, the bandwidth of link aggregation group also descends thereupon, at this moment, though up link aggregation group state is UP, when flow is big, partial discharge can appear owing to uplink bandwidth deficiency, traffic loss phenomenon.
As shown in Figure 1, on network equipment System1, comprise two down links of L4 and L5 in the monitoring group, the aggregated links group that up link is made up of L1, L2, three links of L3.In the aggregated links group, as long as there is link to be in the UP state, the aggregated links group is exactly UP, and downstream plant System3 and System4 are primary link with L4 and L5, and all flows are transmitted by equipment System1.Have only L1, L2, when three links of L3 all are in the DOWN state, the aggregated links group just becomes the DOWN state, the state of down link L4 and L5 is forced the DOWN state, link switchover takes place in corresponding downstream plant System3 and System4, and flow is transmitted through System2 by backup link L6 and L7.If have only part of links DOWN in the link aggregation group, state as L1 in the link aggregation group and L3 is DOWN, L2 still is UP's, this moment, the state of link aggregation group still was the UP state, the Link State of L4 and L5 also all is UP, and downstream plant System3 and System4 can't know that uplink bandwidth descends, and can not switch on the reserve link, when flow is big, will cause flow by link aggregation group the time, to be lost owing to bandwidth is not enough.Yet, the technical scheme that the present utmost point need address the above problem.
Summary of the invention
When considering that occurring part of links in the link aggregation group disconnects, down link is switching state in time, cause the problem of uplink bandwidth deficiency, traffic loss and make the present invention, for this reason, main purpose of the present invention is to provide a kind of link switch-over method and device, to solve the problems referred to above in the correlation technique.
According to an aspect of the present invention, provide a kind of link switch-over method.
Link switch-over method according to the embodiment of the invention comprises: the threshold value that link aggregation group is set; From with many corresponding down links of link aggregation group select and the related down link of link aggregation group; Judge whether the number of links that is in off-state in the link aggregation group reaches or surpass threshold value; Be in link aggregation group under the situation of number of links more than or equal to threshold value of off-state, the state of the down link related with link aggregation group is set to disconnect, and triggers the equipment that is connected with above-mentioned down link and switches to reserve link.
In addition, said method further comprises: the part or all of up link that is in off-state in link aggregation group returns to connection status, and be in the link aggregation group under the situation of number of links less than threshold value of off-state, the recovering state of down link that will be related with link aggregation group is a connection status.
In addition, said method further comprises: be in link aggregation group under the situation of number of links less than threshold value of off-state, the state of many down links is set to keep connection status.
In addition, said method further comprises: whether many down links carry out link switchover according to self disposing decision.
According to a further aspect in the invention, provide a kind of link switchover device.
Link switchover device according to the embodiment of the invention comprises: module is set, is used to be provided with the threshold value of link aggregation group; Select module, be used for from selecting and the related down link of link aggregation group with corresponding many down links of link aggregation group; Judge module is used for judging whether number of links that link aggregation group is in off-state reaches or surpass threshold value; Handover module, be used for being under the situation of number of links more than or equal to threshold value of off-state in link aggregation group, the state of the down link related with link aggregation group is set to disconnect, and triggers the equipment that is connected with above-mentioned down link and switches to reserve link.
In addition, above-mentioned handover module further comprises: recover module, the part or all of up link that is used for being in link aggregation group off-state returns to connection status, and be in the link aggregation group under the situation of number of links less than threshold value of off-state, the recovering state of down link that will be related with link aggregation group is a connection status.
In addition, above-mentioned handover module further comprises: keep module, be used for being under the situation of number of links less than threshold value of off-state in link aggregation group, the state of many down links is set to keep connection status.
In addition, above-mentioned handover module is further used for: whether carry out link switchover according to the down link in the link aggregation group self configuration decision.
By means of technical scheme of the present invention, can guarantee up link under situation about disconnecting, the flow of down link is not lost.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the specification of being write, claims and accompanying drawing.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of specification, is used from explanation the present invention with embodiments of the invention one, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of typical networking in the prior art;
Fig. 2 is the flow chart according to the link switch-over method of the embodiment of the invention;
Fig. 3 is the detailed process flow chart according to the link switch-over method of the embodiment of the invention;
Fig. 4 is the block diagram according to the link switchover device of the embodiment of the invention;
Fig. 5 is the link switchover schematic diagram according to apparatus of the present invention embodiment.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in qualification the present invention.
Method embodiment
According to the embodiment of the invention, provide a kind of link switch-over method.Fig. 2 is the flow chart according to the link switch-over method of the embodiment of the invention, as shown in Figure 2, comprising:
Step S202 is provided with the threshold value of link aggregation group, and wherein, threshold value is the number of links that part of links DOWN causes bandwidth not meet the demands in the link aggregation group;
Step S204, from many corresponding down links of link aggregation group select and the related down link of link aggregation group;
Step S206 judges whether the number of links that is in disconnection (DOWN) state in the link aggregation group reaches or surpasses threshold value;
Step S208, in link aggregation group, be under the situation of number of links more than or equal to threshold value of DOWN state, the state of the down link related with link aggregation group is set to DOWN, trigger the equipment that is connected with above-mentioned down link and switch to reserve link, related with link aggregation group downlink status is constant, and flow keeps the mode by the link aggregation group forwarding.On the other hand, be in link aggregation group under the situation of number of links less than threshold value of DOWN state, the state of many down links is set to keep the UP state.In addition, whether many down links carry out link switchover according to self disposing decision.
That is to say, in link aggregation group during part port DOWN, realize interlock with the down link port, guarantee that the up link aggregation port satisfies bandwidth requirement, avoids the method for traffic loss, promptly at link aggregation group part of links DOWN, when causing the link aggregation group bandwidth to descend, the initiatively active and standby switching of triggering part downstream plant reduces the flow by link aggregation group, avoids traffic loss.
After step S208, the part or all of up link that is in the DOWN state in link aggregation group returns to the UP state, and be in the link aggregation group under the situation of number of links less than threshold value of DOWN state, the recovering state of down link that will be related with link aggregation group is the UP state.
Below, in conjunction with the accompanying drawings, technique scheme being elaborated, Fig. 3 is the detailed process flow chart according to the link switch-over method of the embodiment of the invention, and is said as Fig. 3, comprising:
When 1, part of links DOWN being set in the monitoring group in the link aggregation group, the threshold value that causes bandwidth not meet the demands, and the setting down link related with link aggregation group;
2, monitoring group detects the Link State in the link aggregation group, if there is not link DOWN, downlink status remains unchanged in the monitoring group.Link switchover can not take place in downstream plant, and all flows are transmitted by link aggregation group;
3, if in the link aggregation group link DOWN is arranged, also exist simultaneously and connect link, judge whether the DOWN number of links surpasses the threshold value that is provided with, if do not reach threshold value, all downlink status remain unchanged, and downstream plant link switchover can not take place.Otherwise the downlink status related with link aggregation group is forced to DOWN, and corresponding downstream plant generation link switchover is by the flow minimizing of link aggregation group;
4, as if all link DOWN in the link aggregation group, this moment, up link was the DOWN state, and all downlink status are forced to the DOWN state, all downstream plant generation link switchovers, and all flows switch to backup link;
5, there is Link State to revert to UP in the link aggregation group, the link aggregation group state switches to UP, whether the number of links of judging DOWN state in the link aggregation group is greater than threshold value, if greater than threshold value, the link related with link aggregation group keeps the DOWN state, and other downlink status switch to UP.If DOWN state number of links switches to UP less than threshold value with all downlink status in the link aggregation group, whether downstream plant carries out link switchover according to self disposing decision.
System embodiment
According to the embodiment of the invention, provide a kind of link switchover device.Fig. 4 is the block diagram according to the link switchover device of the embodiment of the invention, as shown in Figure 4, comprises module 40, selection module 42, judge module 44, handover module 46 are set, and below above-mentioned module is elaborated:
Module 40 is set, is used to be provided with the threshold value of link aggregation group;
Select module 42, be used for from selecting and the related down link of link aggregation group with corresponding many down links of link aggregation group;
Judge module 44 is used for judging whether number of links that link aggregation group is in off-state reaches or surpass threshold value;
Handover module 46, be used for being under the situation of number of links more than or equal to threshold value of off-state in link aggregation group, the state of the down link related with link aggregation group is set to disconnect, trigger the equipment that is connected with above-mentioned down link and switch to reserve link, in addition, handover module 46 is further used for: whether carry out link switchover according to the down link in the link aggregation group self configuration decision.
In addition, above-mentioned handover module 46 further comprises: recover module, the part or all of up link that is used for being in link aggregation group off-state returns to connection status, and be in the link aggregation group under the situation of number of links less than threshold value of off-state, the recovering state of down link that will be related with link aggregation group is a connection status; Keep module, be used for being under the situation of number of links less than threshold value of off-state in link aggregation group, the state of many down links is set to keep connection status.
Below, in conjunction with the accompanying drawings, technique scheme is illustrated.
When DOWN state link reached threshold value in judge module 44 link aggregation group, handover module 46 carried out link switchover.As Fig. 1 and shown in Figure 5, it is related with down link L4 to select module 42 that the up link aggregation group is set, and module 40 is set, and threshold value that link aggregation group and down link link is set is that the number of links of DOWN in the link aggregation group is 2.
When two or more links UP was arranged in the up link aggregation group, downstream plant System3 and System4 were primary link with L4 and L5 respectively, and all flows are transmitted by System1.When two link L1 in the link aggregation group on the System1 and L3DOWN, the L4 interface is forced the DOWN state, link switchover takes place in downstream plant System3, L6 switches to primary link, flow on the System3 will be transmitted by network equipment System2, downstream plant System4 uplink is not done switching, and flow is still transmitted by System1.At this moment, because of having only flow on the System4 by the link aggregation group on the Sysrem1, flow has reduced, and guarantees that flow do not lose.
In sum, by means of technical scheme of the present invention, can guarantee up link under situation about disconnecting, the flow of down link is not lost.
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 (8)

1. a link switch-over method is characterized in that, comprising:
The threshold value of link aggregation group is set;
From with many corresponding down links of described link aggregation group select and the related down link of described link aggregation group;
Judge whether the number of links that is in off-state in the described link aggregation group reaches or surpass described threshold value;
In described link aggregation group, be under the situation of number of links more than or equal to described threshold value of off-state, the state of the described down link related with described link aggregation group is set to disconnect, and triggers the equipment that is connected with described down link and switches to reserve link.
2. method according to claim 1 is characterized in that, further comprises:
The part or all of up link that is in off-state in described link aggregation group returns to connection status, and be in the described link aggregation group under the situation of number of links less than described threshold value of off-state, the recovering state of described down link that will be related with described link aggregation group is a connection status.
3. method according to claim 1 is characterized in that, further comprises:
Be in described link aggregation group under the situation of number of links less than described threshold value of off-state, the state of described many down links is set to keep connection status.
4. method according to claim 3 is characterized in that, described method further comprises:
Whether described many down links carry out link switchover according to self disposing decision.
5. a link switchover device is characterized in that, comprising:
Module is set, is used to be provided with the threshold value of link aggregation group;
Select module, be used for from selecting and the related down link of described link aggregation group with corresponding many down links of described link aggregation group;
Judge module is used for judging whether number of links that described link aggregation group is in off-state reaches or surpass described threshold value;
Handover module, be used for being under the situation of number of links more than or equal to described threshold value of off-state in described link aggregation group, the state of the described down link related with described link aggregation group is set to disconnect, and triggers the equipment that is connected with described down link and switches to reserve link.
6. device according to claim 5 is characterized in that, described handover module further comprises:
Recover module, the part or all of up link that is used for being in described link aggregation group off-state returns to connection status, and be in the described link aggregation group under the situation of number of links less than described threshold value of off-state, the recovering state of described down link that will be related with described link aggregation group is a connection status.
7. device according to claim 6 is characterized in that, described handover module further comprises:
Keep module, be used for being under the situation of number of links less than described threshold value of off-state in described link aggregation group, the state of described many down links is set to keep connection status.
8. device according to claim 7 is characterized in that, described handover module is further used for:
Whether carry out link switchover according to the down link in the described link aggregation group self configuration decision.
CN200810127571A 2008-06-27 2008-06-27 Link switch-over method and device Pending CN101616067A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810127571A CN101616067A (en) 2008-06-27 2008-06-27 Link switch-over method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810127571A CN101616067A (en) 2008-06-27 2008-06-27 Link switch-over method and device

Publications (1)

Publication Number Publication Date
CN101616067A true CN101616067A (en) 2009-12-30

Family

ID=41495489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810127571A Pending CN101616067A (en) 2008-06-27 2008-06-27 Link switch-over method and device

Country Status (1)

Country Link
CN (1) CN101616067A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364892A (en) * 2011-10-12 2012-02-29 华为技术有限公司 Link aggregation control protocol (LACP) link switching and data transmission method and apparatus thereof
CN105933939A (en) * 2016-04-13 2016-09-07 杭州华三通信技术有限公司 Link maintenance method and device
CN107465613A (en) * 2016-06-03 2017-12-12 北京华为数字技术有限公司 link aggregation interface communication state switching method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364892A (en) * 2011-10-12 2012-02-29 华为技术有限公司 Link aggregation control protocol (LACP) link switching and data transmission method and apparatus thereof
WO2013053267A1 (en) * 2011-10-12 2013-04-18 华为技术有限公司 Lacp link switching and data transmission method and device
US9270524B2 (en) 2011-10-12 2016-02-23 Huawei Technologies Co., Ltd. Method and device for LACP link switching and data transmission
CN105933939A (en) * 2016-04-13 2016-09-07 杭州华三通信技术有限公司 Link maintenance method and device
CN105933939B (en) * 2016-04-13 2019-11-12 新华三技术有限公司 A kind of link maintenance method and device
CN107465613A (en) * 2016-06-03 2017-12-12 北京华为数字技术有限公司 link aggregation interface communication state switching method and device

Similar Documents

Publication Publication Date Title
CN101252461B (en) Signaling transmission protecting method, apparatus, terminal and system
CN100479434C (en) Method and system for realizing virtual router redundant protocol master and standby equipment switching
CN101431459B (en) Looped network protection method for transmitting multiprotocol label switching network
US10756958B2 (en) Method, device, and controller for processing forwarding device faults received from forwarding devices on a forwarding path
CN101378359A (en) Method and apparatus for switching of primary and secondary compulsion links
CN1997034B (en) A method and system for protection of the link convergence group
CN100563114C (en) A kind of chain circuit heat backup method and system
CN102014019B (en) Aggregated link switching method and device
CN103368712A (en) Switchover method and device for main equipment and standby equipment
CN101399737A (en) Protection method and apparatus used for link convergence group of loop Ethernet
CN102148694B (en) A kind of linear 1:N guard method of grouping conveying network, device and system
CN102546222A (en) Backup system and fault detection and processing method
CN101083559A (en) Method and system for switching master control module and slave control module
CN1949700B (en) Method and apparatus for mixed network protection
GB2444170A (en) Ethernet protection using a redundant link, with link up of a remote port being triggered using a "link status control mechanism".
CN101340346A (en) Ring control method and apparatus of Ethernet looped network system
CN101252428A (en) Apparatus and method for fast switching flow
CN101790110B (en) Device and method for coordinating and recovering automatic protection switching operation
CN101163038B (en) Ethernet equipment link protecting method
CN101616067A (en) Link switch-over method and device
US8868967B2 (en) Method and system for connection-error handling of service in an automatically switched optical network
CN101394261A (en) State transition method and network node device
CN102075415A (en) Multi-element network and cross network element complex section protection switching method
CN102868440B (en) Looped base station system and method for business disaster tolerance protection by utilizing same
US8233791B2 (en) Methods, systems, and computer readable media for providing virtual 1:N automatic protection switching (APS) and dynamic, in service configuration change for optical network interface equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20091230