CN101378359A - Method and apparatus for switching of primary and secondary compulsion links - Google Patents

Method and apparatus for switching of primary and secondary compulsion links Download PDF

Info

Publication number
CN101378359A
CN101378359A CNA2008101677292A CN200810167729A CN101378359A CN 101378359 A CN101378359 A CN 101378359A CN A2008101677292 A CNA2008101677292 A CN A2008101677292A CN 200810167729 A CN200810167729 A CN 200810167729A CN 101378359 A CN101378359 A CN 101378359A
Authority
CN
China
Prior art keywords
link
threshold value
aggregation group
primary
active
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2008101677292A
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 CNA2008101677292A priority Critical patent/CN101378359A/en
Publication of CN101378359A publication Critical patent/CN101378359A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method for forcibly switching active/standby links, which comprises the following steps of: firstly, setting a threshold value for triggering the switch of the active/standby links; secondly, detecting whether a link aggregation group reaches the threshold value for switching the active/standby links; thirdly, forcibly switching the active/standby links on network equipment when the threshold value is reached; and fourthly, switching back to the active link from the standby link. By adopting the technical proposal, when part of links in the link aggregation group are disconnected and the number of the disconnected links reaches or exceeds the set threshold value, the switch of the active/standby links can be triggered, thus overcoming the defect of losing data due to width insufficiency of the link aggregation group.

Description

The method and apparatus that a kind of primary and secondary compulsion links switches
Technical field
The present invention relates to the network data communication field, relate in particular to the method and apparatus that a kind of primary and secondary compulsion links switches.
Background technology
On the network equipment, insert upstream plant respectively, as shown in Figure 1, realize that link redundancy backup is one of set of applications net mode commonly used at present by main/slave link.Under the normal condition, all data send by primary link, and standby link is in blocked state, and when primary link breaks down, in the time of can not normally transmitting data, data flow switches on the standby link, and are professional normal to guarantee, improve the reliability of network.
Proposed the link aggregation standard in procotol standard IEEE 802.3ad, link aggregation is meant two or the Ethernet link clustering of a plurality of phase same rates constitutes link aggregation group together.Adopt link aggregation, can increase bandwidth, and can realize the link backup function, therefore in network data communication, use more.
Main/slave link on the network equipment can be a physical port, also can be link polymerization terminal port.When main/slave link is aggregated links, prior art be with link aggregation group as an interface type independently, detection be the state of link aggregation group.Have only all links in the link aggregation group all to be in off-state, promptly during the DOWN state, this link aggregation group just becomes the DOWN state, and this moment just can the active and standby switching of trigger link.Some link in link aggregation group breaks down and disconnects, but still have part of links to be in connection status, when being the UP state, this moment, link aggregation group was still the UP state, can the active and standby switching of trigger link, but the bandwidth of link aggregation group descends, when data traffic is big, can occur because link aggregation group bandwidth deficiency causes loss of data.In addition, after active is switched, if when having part of links to revert to connection status again in the link aggregation group, data flow on the network equipment still needs to transmit by reserve link, yet when network design, sometimes the reserve link quality is not as good as primary link, therefore at status of primary link just often, wishes that data traffic switches back primary link.In link aggregation group, have only when the connection status of link aggregation group is recovered again, just can initiatively trigger and switch back primary link, otherwise data will be transmitted at reserve link all the time by reserve link.
Summary of the invention
The technical problem that the present invention solves is, the method and apparatus that provides a kind of primary and secondary compulsion links to switch, and the active and standby switching of trigger link when part of links in the link aggregation group disconnects is to avoid the problem of traffic loss.
The technical solution used in the present invention is that the method that described primary and secondary compulsion links switches comprises the steps:
Step 1, the threshold value of the active and standby switching of trigger link is set;
Whether step 2, detection link aggregation group reach active handoff threshold value;
Step 3, when reaching threshold value, on the network equipment, force to carry out active/standby link switchover;
Step 4, when the Link State of the link aggregation group of primary link returns to threshold value when following, switch back primary link from reserve link as required.
A kind of primary and secondary compulsion links device for switching comprises following part:
Module is set: be used to be provided with the threshold value that triggers active/standby link switchover;
Detection module: be used to detect the Link State of link aggregation group, when having link to disconnect in the link aggregation group, compare with the threshold value that has been provided with;
Active and standby handover module: be used for reaching threshold value or link aggregation group bandwidth and reduce when having reached the bandwidth threshold value of setting, on the network equipment, force to carry out active/standby link switchover in the quantity that link aggregation group breaks link.
Return and to cut control module: when being used in the threshold value that Link State when link aggregation group returns to setting, finish the switching of reserve link as required to primary link.
Adopt technique scheme, the present invention has following advantage at least:
The method and apparatus that primary and secondary compulsion links of the present invention switches can change to certain or some Link States in the link aggregation group, but the situation that the link aggregation group state does not change detects and handles.When bandwidth decline can not be satisfied the data forwarding requirement, initiatively carry out active/standby link switchover, avoided loss of data.Recover when the connection status of link aggregation group, when bandwidth can satisfy the data forwarding traffic requirement, switches back primary link from reserve link, when the too late primary link of reserve link quality, the transmission of assurance data is normal.
Description of drawings
Fig. 1 is a representative link polymerization networking schematic diagram;
Fig. 2 is the method flow diagram that primary and secondary compulsion links of the present invention switches.
Embodiment
Reach technological means and the effect that predetermined purpose is taked for further setting forth the present invention, below in conjunction with drawings and Examples, the method and apparatus that the described primary and secondary compulsion links that the present invention is proposed switches, describe in detail as after.
As shown in Figure 1, first link aggregation group is polymerized by the first link L1, the second link L2 and the 3rd link L3, and second link aggregation group is also formed by three link aggregations.First link aggregation group connects the network equipment System1 and the first upstream plant System2, forms primary link, and second link aggregation group connects the network equipment System1 and the second upstream plant System3, forms backup link.
First embodiment of the invention, the method that described primary and secondary compulsion links switches as shown in Figure 2, comprises the steps:
Step 1, the threshold value that triggers active/standby link switchover is set, can select to be provided be in off-state in the link aggregation group number of links as threshold value, bandwidth that link aggregation group need keep also can be set as the bandwidth threshold value, promptly when the link aggregation group operate as normal, flow by link aggregation group is done statistics, maximum recorded flow;
Step 2, the network equipment detect the Link State of link aggregation group, when having link to disconnect in the link aggregation group, compare with the threshold value that has been provided with, judge whether the number of links that is in off-state has reached threshold value or the link aggregation group bandwidth reduces the bandwidth threshold value that whether has reached setting.Threshold value with setting is that the bandwidth threshold value is an example, and when having link to disconnect in the link aggregation group, the effective bandwidth that link aggregation group is present and the maximum stream flow of record compare, if less than the maximum stream flow in the record, illustrate that bandwidth can not meet the demands;
The quantity of link reaches threshold value or the link aggregation group bandwidth reduces the bandwidth threshold value that has reached setting if the step 3 link aggregation group breaks, then on the network equipment, force to carry out active/standby link switchover, all data traffics are switched on the backup link, otherwise can forced-triggered active/standby link switchover on the network equipment, still transmit by the data traffic of the network equipment by primary link;
Step 4, when the Link State of the link aggregation group of primary link returns to threshold value when following, can switch back primary link from reserve link as required, specifically comprise following process:
1) when link being arranged when off-state reverts to connection status in the link aggregation group, the threshold value that judges whether the active and standby switching of trigger link does not satisfy, if still satisfy the threshold value of setting, then keep existing link user mode constant, all data traffics are still transmitted by reserve link, if do not satisfied the threshold value of setting, judge then whether the user has set reserve link and switched back primary link, if, what then judge setting is to switch immediately or postpone to switch, if not, then keep existing link user mode constant;
2) if the user sets after judging is to switch immediately, then switch to primary link from reserve link immediately, postpone to switch, then after arriving time of delay, switch to primary link from reserve link if be set at.
A kind of primary and secondary compulsion links device for switching comprises following part:
Module is set: be used to be provided with the threshold value that triggers active/standby link switchover, can select to be provided be in off-state in the link aggregation group number of links as threshold value, bandwidth that link aggregation group need keep also can be set as the bandwidth threshold value.
Detection module: the Link State that is used to detect link aggregation group, when having link to disconnect in the link aggregation group, compare with the threshold value that has been provided with, judge whether the number of links that is in off-state has reached threshold value or the link aggregation group bandwidth reduces the bandwidth threshold value that whether has reached setting.
Active and standby handover module: be used for reaching threshold value or link aggregation group bandwidth and reduce when having reached the bandwidth threshold value of setting in the quantity that link aggregation group breaks link, on the network equipment, force to carry out active/standby link switchover, all data traffics are switched on the backup link.
Return and to cut control module: the link-recovery that is used for breaking when link aggregation group connects, and when the Link State of link aggregation group returns in the threshold value of setting, can finish the switching of reserve link to primary link as required.
By the explanation of embodiment, when can being to reach technological means and the effect that predetermined purpose takes to be able to more deeply and concrete understanding to the present invention, yet appended diagram only provide with reference to the usefulness of explanation, be not to be used for the present invention is limited.

Claims (5)

1, a kind of method of primary and secondary compulsion links switching is characterized in that, comprises the steps:
Step 1, the threshold value of the active and standby switching of trigger link is set;
Whether step 2, detection link aggregation group reach active handoff threshold value;
Step 3, when reaching threshold value, on the network equipment, force to carry out active/standby link switchover;
Step 4, when the Link State of the link aggregation group of primary link returns to threshold value when following, switch back primary link from reserve link as required.
2, the method for switching according to the described primary and secondary compulsion links of claim 1 is characterized in that, described threshold value is that the bandwidth that the number of links that is in off-state in the link aggregation group or link aggregation group need keep is set.
3, the method for switching according to the described primary and secondary compulsion links of claim 2 is characterized in that the bandwidth that link aggregation group need keep is when the link aggregation group operate as normal, to do the maximum stream flow of statistics back record by the flow of link aggregation group.
4, the method for switching according to the described primary and secondary compulsion links of claim 1 is characterized in that step 4 specifically comprises following process:
1) when link being arranged when off-state reverts to connection status in the link aggregation group, the threshold value that judges whether the active and standby switching of trigger link does not satisfy, if still satisfy the threshold value of setting, then keep existing link user mode constant, all data traffics are still transmitted by reserve link, if do not satisfied the threshold value of setting, judge then whether the user has set reserve link and switched back primary link, if, what then judge setting is to switch immediately or postpone to switch, if not, then keep existing link user mode constant;
2) if the user sets after judging is to switch immediately, then switch to primary link from reserve link immediately, postpone to switch, then after arriving time of delay, switch to primary link from reserve link if be set at.
5, a kind of primary and secondary compulsion links device for switching is characterized in that comprising:
Module is set: be used to be provided with the threshold value that triggers active/standby link switchover;
Detection module: be used to detect the Link State of link aggregation group, when having link to disconnect in the link aggregation group, compare with the threshold value of described setting;
Active and standby handover module: be used for when reaching threshold value, on the network equipment, force to carry out active/standby link switchover;
Return and to cut control module: when being used in the threshold value that Link State when link aggregation group returns to setting, finish the switching of reserve link as required to primary link.
CNA2008101677292A 2008-10-06 2008-10-06 Method and apparatus for switching of primary and secondary compulsion links Pending CN101378359A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008101677292A CN101378359A (en) 2008-10-06 2008-10-06 Method and apparatus for switching of primary and secondary compulsion links

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008101677292A CN101378359A (en) 2008-10-06 2008-10-06 Method and apparatus for switching of primary and secondary compulsion links

Publications (1)

Publication Number Publication Date
CN101378359A true CN101378359A (en) 2009-03-04

Family

ID=40421710

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008101677292A Pending CN101378359A (en) 2008-10-06 2008-10-06 Method and apparatus for switching of primary and secondary compulsion links

Country Status (1)

Country Link
CN (1) CN101378359A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010045832A1 (en) * 2008-10-21 2010-04-29 中兴通讯股份有限公司 Method and apparatus for protecting link aggregation group of ethernet ring
WO2010099723A1 (en) * 2009-03-06 2010-09-10 华为技术有限公司 Method, device and system for radio equipment service switching
CN101883029A (en) * 2009-05-05 2010-11-10 埃森哲环球服务有限公司 Application implantation method and system in the cloud
WO2011143982A1 (en) * 2010-05-21 2011-11-24 中兴通讯股份有限公司 Radio access network node and method for sharing load between nodes
CN102437923A (en) * 2011-10-18 2012-05-02 南京南瑞继保电气有限公司 Method for switching sampling value data during mixed application of peer-to-peer mode and networking mode
WO2012058895A1 (en) * 2010-11-04 2012-05-10 中兴通讯股份有限公司 Method and device for switching aggregation links
WO2015180294A1 (en) * 2014-05-27 2015-12-03 中兴通讯股份有限公司 Protection switching trigger method and apparatus for signal degrade of link aggregation port
CN105933939A (en) * 2016-04-13 2016-09-07 杭州华三通信技术有限公司 Link maintenance method and device
CN106487679A (en) * 2015-09-02 2017-03-08 北京国基科技股份有限公司 The active-standby switch system of Ethernet switch and changing method
CN107241174A (en) * 2017-06-28 2017-10-10 迈普通信技术股份有限公司 Method for switching network and the network equipment
CN107276731A (en) * 2016-04-01 2017-10-20 横河电机株式会社 Redundant device, redundant system and redundant method
CN107465613A (en) * 2016-06-03 2017-12-12 北京华为数字技术有限公司 link aggregation interface communication state switching method and device
CN109995567A (en) * 2017-12-29 2019-07-09 北京华为数字技术有限公司 Method, equipment and the system of link aggregation group progress automatic protection
CN113472641A (en) * 2020-03-31 2021-10-01 中国电信股份有限公司 Link control method, device, system, collaborative service orchestrator and storage medium

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010045832A1 (en) * 2008-10-21 2010-04-29 中兴通讯股份有限公司 Method and apparatus for protecting link aggregation group of ethernet ring
EP2352253A1 (en) * 2008-10-21 2011-08-03 ZTE Corporation Method and apparatus for protecting link aggregation group of ethernet ring
EP2352253A4 (en) * 2008-10-21 2012-10-10 Zte Corp Method and apparatus for protecting link aggregation group of ethernet ring
WO2010099723A1 (en) * 2009-03-06 2010-09-10 华为技术有限公司 Method, device and system for radio equipment service switching
CN101827382B (en) * 2009-03-06 2013-03-20 华为技术有限公司 Method, equipment and system for switching services of wireless equipment
CN101883029A (en) * 2009-05-05 2010-11-10 埃森哲环球服务有限公司 Application implantation method and system in the cloud
WO2011143982A1 (en) * 2010-05-21 2011-11-24 中兴通讯股份有限公司 Radio access network node and method for sharing load between nodes
WO2012058895A1 (en) * 2010-11-04 2012-05-10 中兴通讯股份有限公司 Method and device for switching aggregation links
CN102437923A (en) * 2011-10-18 2012-05-02 南京南瑞继保电气有限公司 Method for switching sampling value data during mixed application of peer-to-peer mode and networking mode
CN102437923B (en) * 2011-10-18 2014-08-20 南京南瑞继保电气有限公司 Method for switching sampling value data during mixed application of peer-to-peer mode and networking mode
WO2015180294A1 (en) * 2014-05-27 2015-12-03 中兴通讯股份有限公司 Protection switching trigger method and apparatus for signal degrade of link aggregation port
US10205629B2 (en) 2014-05-27 2019-02-12 Zte Corporation Method and device for triggering protection switching by signal degrade of link aggregation port
CN106487679A (en) * 2015-09-02 2017-03-08 北京国基科技股份有限公司 The active-standby switch system of Ethernet switch and changing method
CN106487679B (en) * 2015-09-02 2019-11-08 北京国基科技股份有限公司 The active-standby switch system and switching method of Ethernet switch
CN107276731A (en) * 2016-04-01 2017-10-20 横河电机株式会社 Redundant device, redundant system and redundant method
CN107276731B (en) * 2016-04-01 2021-03-26 横河电机株式会社 Redundancy device, redundancy system, and redundancy method
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
CN107241174A (en) * 2017-06-28 2017-10-10 迈普通信技术股份有限公司 Method for switching network and the network equipment
CN107241174B (en) * 2017-06-28 2020-04-03 迈普通信技术股份有限公司 Network switching method and network equipment
CN109995567A (en) * 2017-12-29 2019-07-09 北京华为数字技术有限公司 Method, equipment and the system of link aggregation group progress automatic protection
CN113472641A (en) * 2020-03-31 2021-10-01 中国电信股份有限公司 Link control method, device, system, collaborative service orchestrator and storage medium
CN113472641B (en) * 2020-03-31 2023-07-07 中国电信股份有限公司 Link control method, device, system, collaborative business orchestrator and storage medium

Similar Documents

Publication Publication Date Title
CN101378359A (en) Method and apparatus for switching of primary and secondary compulsion links
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
CN102364892B (en) Link aggregation control protocol (LACP) link switching and data transmission method and apparatus thereof
US8971337B2 (en) Packet relay device
CN100551104C (en) Iub interface business transmitting method and device based on the IP transmission
US8811154B2 (en) Packet forwarding system, packet forwarding device, proxy device, computer readable medium storing program, and control method of packet forwarding device
CN100563114C (en) A kind of chain circuit heat backup method and system
CN101399737A (en) Protection method and apparatus used for link convergence group of loop Ethernet
CN102014019B (en) Aggregated link switching method and device
CN101127588B (en) A failure processing method, system and device for wireless network controller
CN102075390B (en) Transmission state detection method and related device thereof
CN101083559A (en) Method and system for switching master control module and slave control module
CN110994786B (en) Single intelligent distributed power distribution terminal control method based on peer-to-peer communication
US8483047B2 (en) Method, terminal and system structure for transmitting and receiving services in microwave communication
CN104796329A (en) Automatic link switching method and automatic link switching device
EP2574108A1 (en) Data communication device
CN101790110B (en) Device and method for coordinating and recovering automatic protection switching operation
CN104333470A (en) Fault handling method and device
CN106100988A (en) A kind of realize the method that link aggregation is switched fast
CN105743565A (en) Optical transport network protection switching method and device
CN103190121A (en) Ethernet ring protection switching method, node and system
CN101599853A (en) A kind of Ethernet dual homed connects the implementation method of irrevocable pattern in the protection
CN101616067A (en) Link switch-over method and device
CN101883008A (en) Subnet protection method for transport multi-protocol label switching network and device thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20090304