WO2012058895A1 - 聚合链路切换方法及装置 - Google Patents

聚合链路切换方法及装置 Download PDF

Info

Publication number
WO2012058895A1
WO2012058895A1 PCT/CN2011/071976 CN2011071976W WO2012058895A1 WO 2012058895 A1 WO2012058895 A1 WO 2012058895A1 CN 2011071976 W CN2011071976 W CN 2011071976W WO 2012058895 A1 WO2012058895 A1 WO 2012058895A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
aggregation
working
primary
protection
Prior art date
Application number
PCT/CN2011/071976
Other languages
English (en)
French (fr)
Inventor
范汇华
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to BR112013010869A priority Critical patent/BR112013010869A2/pt
Priority to EP11837425.5A priority patent/EP2627039B1/en
Publication of WO2012058895A1 publication Critical patent/WO2012058895A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Definitions

  • Link aggregation is a packaging technique that combines two or more data channels into one channel, which appears as a higher bandwidth logical link.
  • the aggregated link also provides redundancy and fault tolerance if each link that is aggregated follows a different physical path.
  • Link aggregation can be used to improve access to public networks by aggregating modem links or digital lines.
  • link aggregation can also be used in enterprise networks to build multi-gigabit backbone links between Gigabit Ethernet switches.
  • link aggregation can achieve load balancing. Two or more switches, switches, or other network devices that are connected together by link aggregation can be reasonably allocated to the devices that are connected to each other through internal control to implement load sharing.
  • LACP Link Aggregation Control Protocol
  • LACPDU Link Aggregation Control Protocol Data Unit
  • the port After the LACP protocol is enabled on a port, the port sends the LACPDU to the peer to advertise its system LACP priority, system MAC address, LACP priority, port number, and operation key. After receiving the LACPDU, the peer receives the information and other ports. The obtained information is compared to select a port that can be aggregated, so that both parties can agree to join or exit a dynamic LACP aggregation group.
  • the N link is used for the aggregation, and the unactivated link can be regarded as the backup link.
  • the link aggregation group can be added to the data forwarding and load sharing. . If the link aggregation protocol is faulty, the detection time is long.
  • the LACP protocol is used as an example. There are two options: long timeout and short timeout. It takes 90 seconds or 3 seconds to detect the link abnormality. The traffic is then distributed to other normal links. Therefore, it takes 3 seconds to rely on the LACP protocol for link switching.
  • the aggregation link switching method includes: configuring a primary link and a backup link in a plurality of to-be-aggregated links; performing link aggregation on multiple to-be-aggregated links according to the link aggregation protocol, and according to The result of the link aggregation determines the link working status of each link.
  • the connection fault management protocol is detected for each link in the aggregated link. If the faulty link is detected, it is determined according to the link working status of the faulty link. Whether to perform link switching.
  • the configuration of the primary link and the backup link in the multiple to-be-aggregated links further includes: setting the local state and the peer state of the primary link/standby link to be consistent.
  • the link working state of each link is determined according to the result of the link aggregation, and the method further includes: setting a link working state of the primary link to be a working link, and setting a link working state of the standby link to a protection link.
  • the link aggregation result includes at least one of the following: the link aggregation of the primary link is successful, and the link aggregation of the backup link fails. The link aggregation of the primary link and the backup link is successful. The primary link and the backup link are both connected. Link aggregation failed.
  • the link working state of each link is determined according to the result of the link aggregation, and the method further includes: if the result of the link aggregation fails to be aggregated on the primary link, and the link link aggregation succeeds, setting the standby chain
  • the link working state of the link is the working link
  • the link working state of the primary link is the protection link.
  • determining whether to perform link switching according to the link working state of the faulty link further includes: when the faulty link is a working link, and the link of the protection link corresponding to the working link is successfully aggregated, The data traffic transmitted by the working link is switched to the protection link.
  • determining whether to perform link switching according to the link working state of the faulty link further includes: when the faulty link is a protection link, the link switching is not performed, and the link aggregation protocol is re-executed.
  • the working link transmits service data and link aggregation protocol messages, and protects the link transmission link aggregation control protocol message.
  • the aggregation link switching apparatus includes: a configuration module, configured to configure a primary link and a backup link in a plurality of to-be-aggregated links; and a link aggregation module, configured to perform multiple Link aggregation is performed on the aggregated link, and the link working status of each link is determined according to the result of the link aggregation.
  • the connection fault management detection module is configured to perform connection fault management protocol detection for each link in the aggregated link.
  • a link switching module configured to determine, according to the link working state of the faulty link, whether to perform link switching, when the faulty link is detected by the connection fault management detection module.
  • the link aggregation module further includes: a link aggregation submodule, configured to perform link aggregation on the plurality of to-be-aggregated links according to the link aggregation protocol; and a first setting sub-module, configured to: according to at least one of the following
  • the link aggregation result is set, the link working status of the primary link is the working link, and the link working status of the standby link is the protection link: the primary link link aggregation succeeds, and the backup link link aggregation fails. Both the link and the backup link are successfully aggregated.
  • the primary link and the backup link are aggregated.
  • the second setting sub-module is configured to set the link working state of the standby link to be the working link when the link aggregation result is that the link aggregation of the primary link is failed, and the link link aggregation is successful. Set the link working status of the primary link to protect the link.
  • the link switching module is further configured to: when the faulty link is a working link, and the protection link link corresponding to the working link is successfully aggregated, the data traffic transmitted by the working link is switched to Protect the link.
  • FIG. 2 is a flowchart of an aggregation link switching method according to an embodiment of the present invention
  • FIG. 3 is a flow chart showing a preferred processing scheme of an aggregate link switching method according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of link aggregation 1 : 1 active/standby protection according to an embodiment of the present invention
  • the main idea of the present invention is to pre-set the active/standby state of an aggregated member link, dynamically detect the aggregated state during link aggregation, and quickly check through connection fault management (CFM).
  • CFM connection fault management
  • an aggregate link switching method is provided.
  • step S202-S206 is a flowchart of a method for switching an aggregated link according to an embodiment of the present invention. As shown in FIG. 1, the method mainly includes (steps S202-S206):
  • the local state and the peer state of the primary link/standby link are consistent.
  • Step S204 Perform link aggregation on multiple to-be-aggregated links according to the link aggregation protocol, and determine link working states of the links according to the result of link aggregation.
  • the foregoing link working status refers to a working link and a protection link.
  • link aggregation is performed on the link, if the link aggregation of the primary link fails and the link aggregation of the backup link is successful, set the link working status of the standby link to work link and link operation of the primary link. The status is the protection link.
  • the working link participates in the forwarding of data; the protection link does not participate in forwarding data, and only participates in the forwarding of packets at the control layer of the link aggregation protocol.
  • Step S206 Perform CFM detection for each link in the aggregation link. When detecting the faulty link, determine whether to perform link switching according to the link working status of the faulty link.
  • the faulty link is a working link, continue to determine whether the link is successfully aggregated. If yes, the data traffic is switched to the protection link. Otherwise, the link aggregation protocol is not performed. If the faulty link is a protection link, the link is not switched and re-executed. Link aggregation protocol.
  • FIG. 3 is a flowchart of a preferred processing scheme of a link switching method according to an embodiment of the present invention
  • FIG. 4 is a link aggregation 1:1 according to an embodiment of the present invention.
  • Schematic diagram of active/standby protection where the dotted line indicates the transmission of the data stream, and the solid line indicates the status of the active or inactive aggregated link. As shown in Figure 3, the following steps can be included:
  • Step S301 Configure the primary link and the backup link of the member in the link aggregation.
  • the configuration of the local end and the opposite end of the link is the same as the configuration of the peer link.
  • the parameters such as duplex, basic configuration, and management key are consistent. At the same time, it needs to be configured for CFM connectivity detection.
  • step S304 it is determined whether the link aggregation of the standby link is successful. If the failure is changed to step S305, if the primary link aggregation fails, the backup link aggregation succeeds, and the process goes to step S306.
  • Step S305 the primary link is set as the working link, and the standby link is used as the protection link, and then step S307 is performed.
  • Step S306 the standby link is set as the working link, and the primary link is used as the protection link.
  • Step S307 Set a data forwarding state, and the working link participates in data forwarding, and the protection link does not participate in data forwarding.
  • the working link and the protection link can be received and sent.
  • step S308 it is determined whether the link aggregation state is changed from the aggregation failure to the aggregation success. If yes, the process goes to step S303, so that when the primary link and the backup link are successfully aggregated, the working link can be switched back. To the main link. Otherwise, go to step S309.
  • step S309 is directly executed.
  • Step S309 performing a CFM Connectivity (CC) test, which can detect a connectivity loss fault within 10 ms.
  • CC CFM Connectivity
  • step S310 the CFM detects that the working link is faulty, and sets the current working link status to the aggregation failure. Then, the process proceeds to step S312 to continue the determination.
  • Step S311 The CFM detects the protection link failure, sets the current protection link status to aggregation failure, and proceeds to step S302 to perform cyclic dynamic detection.
  • Step S312 determining whether the protection link is an aggregation success state, if yes, proceeding to step S313, otherwise proceeding to step S302 to perform cyclic dynamic detection.
  • Step S313 performing a handover between the working link and the protection link, switching the data traffic to the protection link, the protection link serving as a new working link, and updating the two working tasks of the current working link and the protection link. status. Then, the process proceeds to step S302 to perform cyclic dynamic detection.
  • the process shown in Figure 3 is the processing flow of the 1:1 primary and backup links.
  • the processing flow of the M:N (M, N>1) primary and backup links is similar. The main differences are as follows:
  • the aggregation success and failure status of the primary and backup aggregation groups are determined according to whether the number of active links of the link group is greater than or equal to the minimum number of active links.
  • the aggregation success and failure status of the active and standby aggregation groups are determined according to whether the number of active links of the link group is greater than or equal to the minimum number of active links. Then, according to the status of the primary link aggregation group and the status of the standby link aggregation group, the handover party Refer to 1:1 for the processing flow of the primary and backup links, which are not described here.
  • an aggregate link switching device is also provided.
  • Figure 5 is a block diagram of an aggregated link switching apparatus according to an embodiment of the present invention
  • Figure 6 is a block diagram showing a preferred structure of an aggregated link switching apparatus according to an embodiment of the present invention.
  • the device includes: a configuration module 10, a link aggregation module 20, a connection failure management detection module 30, and a link switching module 40;
  • the link aggregation module 20 further includes: a link aggregation sub-module 210, configured to perform link aggregation on the multiple to-be-aggregated links according to a link aggregation protocol; a first setting sub-module 220, The link aggregation sub-module 210 is connected to set the link working state of the primary link to the working link and the link working state of the standby link to be protected according to the result of the link aggregation of the link aggregation sub-module 210.
  • the connection fault management detection module 30 is configured to perform CFM protocol detection for each link in the aggregated link.
  • the active/standby state of the aggregated member link is set in advance, and the aggregation state is dynamically detected during the link aggregation process, and the working link fault condition is quickly detected by CFM, when the aggregated link occurs.
  • Link failure can be quickly performed in the event of a fault, improving link reliability and meeting carrier-class (50ms) handover requirements.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

聚^^路切换方法及装置 技术领域
本发明涉及通讯领域, 尤其涉及一种聚合链路切换方法及装置。 背景技术
链路聚合是将两个或两个以上的数据信道结合成一个信道的封装技 术, 该信道以一个更高带宽的逻辑链路出现。
如果聚合的每个链路都遵循不同的物理路径, 则聚合链路也提供冗余 和容错。 通过聚合调制解调器链路或者数字线路, 链路聚合可用于改善对 公共网络的访问。 另外, 链路聚合也可用于企业网络, 以便在吉比特以太 网交换机之间构建多吉比特的主干链路。
参考图 1 ,釆用链路聚合后,逻辑链路的带宽增加了大约 (n-1)倍,其中, n为聚合的路数, n条链路中只要有一条可以正常工作, 则这个链路就可以 工作, 提高了链路的可靠性。 除此之外, 链路聚合可以实现负载均衡。 通 过链路聚合连接在一起的、 两个或两个以上的、 交换机或其他网络设备, 通过内部控制, 可以合理地将数据分配在被聚合连接的设备上, 实现负载 分担。
链路聚合控制协议(LACP, Link Aggregation Control Protocol )是一种 基于 IEEE802.3ad标准的、 能够实现链路动态聚合与解聚合的协议。 LACP 协议通过链路聚合控制协议数据单元(LACPDU, Link Aggregation Control Protocol Data Unit ) , 实现信息交互。
使能某端口的 LACP协议后, 该端口将通过发送 LACPDU向对端通告 自己的系统 LACP协议优先级、 系统 MAC、 端口的 LACP协议优先级、 端 口号和操作 Key。 对端接收到 LACPDU后, 将其中的信息与其它端口所收 到的信息进行比较, 以选择能够聚合的端口, 从而双方可以对端口加入或 退出某个动态 LACP聚合组达成一致。
现有技术中, 釆用 N条链路进行聚合, 对应未激活的链路都可以认为 是备链路, 当未激活链路激活后就都可以加入链路聚合组进行数据的转发 及负荷分担。 通过分析发现, 基于链路聚合协议的链路如果发生故障, 检 测时间较长, 以 LACP协议为例, 有长超时和短超时两种选择, 需要 90秒 或 3秒才能检测出来链路异常, 然后将流量分担到其他正常链路中。 因此 依靠 LACP协议来进行链路切换最快也需要 3秒钟。
综上可知, 当聚合链路发生故障时, 流量负荷分担时间较慢, 无法满 足对业务中断倒换电信级(50ms ) 时间要求。 发明内容
有鉴于现有技术存在现有的聚合链路发生故障、 流量负荷分担时间较 慢的问题而做出本发明, 为此本发明的主要目的在于提供一种聚合链路切 换方法及装置, 其中:
根据本发明实施例的聚合链路切换方法包括: 在多条待聚合链路中, 配置主链路和备链路; 根据链路聚合协议对多条待聚合链路进行链路聚合, 并根据链路聚合的结果确定各链路的链路工作状态; 为聚合链路中的每条 链路进行连接故障管理协议检测, 若检测到故障链路, 则根据故障链路的 链路工作状态判断是否进行链路切换。
优选地, 在多条待聚合链路中配置主链路和备链路, 进一步包括: 将 主链路 /备链路的本端状态和对端状态设置一致。
优选地, 根据链路聚合的结果确定各链路的链路工作状态, 进一步包 括: 设置主链路的链路工作状态为工作链路、 设置备链路的链路工作状态 为保护链路的链路聚合结果包括以下至少之一: 主链路链路聚合成功、 备 链路链路聚合失败; 主链路及备链路均链路聚合成功; 主链路及备链路均 链路聚合失败。
优选地, 根据链路聚合的结果确定各链路的链路工作状态, 进一步包 括: 若链路聚合的结果为主链路链路聚合失败、 且备链路链路聚合成功, 则设置备链路的链路工作状态为工作链路、 设置主链路的链路工作状态为 保护链路。
优选地, 根据故障链路的链路工作状态判断是否进行链路切换, 进一 步包括: 在故障链路为工作链路时, 且所述工作链路对应的保护链路链路 聚合成功, 则将所述工作链路传输的数据流量切换到保护链路。
优选地, 根据故障链路的链路工作状态判断是否进行链路切换, 进一 步包括: 在故障链路为保护链路时, 则不进行链路切换, 重新执行链路聚 合协议。
优选地, 工作链路传输业务数据和链路聚合协议报文, 保护链路传输 链路聚合控制协议报文。
根据本发明实施例的聚合链路切换装置包括: 配置模块, 用于在多条 待聚合链路中配置主链路和备链路; 链路聚合模块, 用于根据链路聚合协 议对多条待聚合链路进行链路聚合, 并根据链路聚合的结果确定各链路的 链路工作状态; 连接故障管理检测模块, 用于为聚合链路中的每条链路进 行连接故障管理协议检测; 链路切换模块, 用于在所述连接故障管理检测 模块检测到故障链路, 则根据故障链路的链路工作状态判断是否进行链路 切换。
优选地, 链路聚合模块进一步包括: 链路聚合子模块, 用于根据链路 聚合协议对多条待聚合链路进行链路聚合; 第一设置子模块, 用于根据包 括以下至少之一的链路聚合结果、 设置主链路的链路工作状态为工作链路、 设置备链路的链路工作状态为保护链路: 主链路链路聚合成功、 备链路链 路聚合失败; 主链路及备链路均链路聚合成功; 主链路及备链路均链路聚 合失败; 第二设置子模块, 用于在链路聚合结果为主链路链路聚合失败、 且备链路链路聚合成功时, 则设置备链路的链路工作状态为工作链路、 设 置主链路的链路工作状态为保护链路。
优选地, 链路切换模块进一步用于: 在故障链路为工作链路时, 且所 述工作链路对应的保护链路链路聚合成功, 则将所述工作链路传输的数据 流量切换到保护链路。
与现有技术相比, 根据本发明的技术方案, 通过预先设置聚合链路的 链路主备状态, 并结合连接故障管理快速检测, 当聚合链路发生故障时聚 合链路能够快速地进行链路切换, 提高了链路可靠性, 从而满足电信级时 间切换要求。 附图说明
此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一 部分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发 明的不当限定。 在附图中:
图 1是现有技术中两台交换机参与链路聚合的示意图;
图 2是根据本发明实施例的聚合链路切换方法的流程图;
图 3是根据本发明实施例的聚合链路切换方法的优选处理方案的流程 图;
图 4是根据本发明实施例的链路聚合 1 :1主备保护示意图;
图 5是根据本发明实施例的聚合链路切换装置的框图;
图 6是根据本发明实施例的聚合链路切换装置的优选结构的框图。 具体实施方式
本发明的主要思想主要在于, 预先设置聚合成员链路的主备状态, 在 链路聚合过程中, 动态检测聚合状态, 通过连接故障管理(CFM )快速检 测工作链路故障情况, 当聚合链路发生故障时进行决策并进行链路切换。 为使本发明的目的、 技术方案和优点更加清楚, 以下结合附图及具体 实施例, 对本发明作进一步地详细说明。
根据本发明的实施例, 提供了一种聚合链路切换方法。
图 2是本发明实施例的聚合链路切换方法流程图, 如图 1所示, 该方 法主要包括(步骤 S202-S206 ) :
步骤 S202, 在多条待聚合链路中, 配置主链路和备链路;
其中, 将主链路 /备链路的本端状态和对端状态设置一致。
步骤 S204, 根据链路聚合协议对多条待聚合链路进行链路聚合, 并根 据链路聚合的结果确定各链路的链路工作状态。
具体地, 上述的链路工作状态是指工作链路和保护链路。
在对链路进行链路聚合后有以下情形至少之一时, 设置主链路的链路 工作状态为工作链路、 设置备链路的链路工作状态为保护链路: (1 )主链 路链路聚合成功、 备链路链路聚合失败; ( 2 )主链路及备链路均链路聚合 成功; ( 3 )主链路及备链路均链路聚合失败。
在对链路进行链路聚合时, 若主链路链路聚合失败、 备链路链路聚合 成功, 则设置备链路的链路工作状态为工作链路、 设置主链路的链路工作 状态为保护链路。
一般地, 工作链路参与转发数据; 保护链路不参与转发数据, 只参与 链路聚合协议控制层面报文的转发。
步骤 S206, 为聚合链路中的每条链路进行 CFM检测, 在检测到故障 链路时, 则根据故障链路的链路工作状态判断是否进行链路切换。
其中, 若故障链路为工作链路, 继续判断其保护链路是否链路聚合成 功, 若是则将数据流量切换到保护链路; 否则, 不进行链路切换, 重新执 行链路聚合协议。 若故障链路为保护链路, 则不进行链路切换, 重新执行 链路聚合协议。
下面结合图 3及图 4详细描述上述处理的细节, 图 3是根据本发明实 施例的链路切换方法的优选处理方案的流程图, 图 4是根据本发明实施例 的链路聚合 1 :1主备保护示意图, 其中, 虚线表示数据流的传输, 实线表示 激活或非激活的聚合链路状态。 如图 3所示, 可以包括以下步骤:
步骤 S301 , 配置链路聚合中成员的主链路和备链路, 在配置时要求链 路的本端和对端配置一致, 例如: 将主链路 /备链路的本端和对端的速率、 双工、基本配置、 管理 Key等参数配置一致。 同时需要配置进行 CFM连通 性检测。
步骤 S302, 运行链路聚合协议, 确定各链路的聚合状态。 例如, 可以 根据 LACP协议对多条待聚合链路进行链路聚合, 当然, 也可以使用其他 的链路聚合协议进行链路聚合, 在此仅为举例说明, 并不以此局限本发明 的应用范围。
步骤 S303 , 判断配置的主链路链路聚合是否成功, 如果链路聚合成功 转步骤 S305 , 否则转步骤 S304。
步骤 S304, 判断备链路链路聚合是否成功, 如果失败转步骤 S305 , 如 果主链路聚合失败, 备链路聚合成功, 转步骤 S306。
步骤 S305 , 设置主链路作为工作链路, 备链路作为保护链路, 然后执 行步骤 S307。
步骤 S306, 设置备链路作为工作链路, 主链路作为保护链路。
步骤 S307 , 设置数据转发状态, 工作链路参与数据的转发, 保护链路 不参与数据转发。 对于链路聚合协议报文, 工作链路和保护链路都可以接 收和发送。
步骤 S308 ,判断链路聚合状态是否由聚合失败变成聚合成功,如果是, 则转步骤 S303 , 这样当主链路和备链路都聚合成功时, 工作链路可以回切 到主链路。 否则, 转步骤 S309。
需要说明, 在首次进行链路聚合时, 还没有设置链路聚合状态, 不需 执行本步骤, 直接执行步骤 S309。
步骤 S309, 进行 CFM连通性快速(CC, Continuity Check )检测, 该 检测可以 10ms内检测出连通性丟失故障。
步骤 S310, CFM检测到工作链路故障, 设置当前工作链路状态为聚合 失败, 转步骤 S312继续进行判断。
步骤 S311 , CFM检测到保护链路故障, 设置当前保护链路状态为聚合 失败, 转步骤 S302进行循环动态检测。
步骤 S312,判断保护链路是否是聚合成功状态,如果是则转步骤 S313, 否则转步骤 S302进行循环动态检测。
步骤 S313 , 进行工作链路和保护链路之间的切换, 将数据流量切换到 保护链路, 该保护链路作为新的工作链路, 并更新当前工作链路和保护链 路的两路工作状态。 之后转步骤 S302进行循环动态检测。
图 3 所示的流程为 1:1 主、 备链路的处理流程, 不失一般性, M:N ( M,N>1 )主、 备链路的处理流程类似, 主要区别在于:
将 M条主链路, N条备链路作为两个主、 备组来看待, 就是 1:1主、 备组保护。 需要配置主链路组和备链路组的最小激活链路数 P ( Ρ<=Μ ) , Q(Q<=N)。 通常情况下配置 M=N, P=Q。 当主、 备链路组中激活链路数量 大于或等于最小激活链路数时, 则认为聚合组是聚合成功的。
具体地, 当链路组的子链由聚合失败变成聚合成功时, 需要按照链路 组的激活链路数量是否大于或等于最小激活链路数判断主、 备聚合组的聚 合成功和失败状态。 当检测到子链故障时, 需要按照链路组的激活链路数 量是否大于或等于最小激活链路数判断主、 备聚合组的聚合成功和失败状 态。 然后, 根据主链路聚合组状态和备链路聚合组状态进行切换, 切换方 式参考 1 :1主、 备链路的处理流程, 此处不进行赘述。
装置实施例
根据本发明的实施例, 还提供了一种聚合链路切换装置。
图 5是根据本发明实施例的聚合链路切换装置的框图, 图 6是根据本 发明实施例的聚合链路切换装置的优选结构的框图。
如图 5所示, 该装置包括: 配置模块 10、 链路聚合模块 20、 连接故障 管理检测模块 30和链路切换模块 40; 其中,
配置模块 10, 用于在多条待聚合链路中配置主链路和备链路; 链路聚合模块 20, 用于根据链路聚合协议对多条待聚合链路进行链路 聚合, 并根据链路聚合的结果确定各链路的链路工作状态。
如图 6所示, 链路聚合模块 20进一步包括: 链路聚合子模块 210, 用 于根据链路聚合协议对所述多条待聚合链路进行链路聚合; 第一设置子模 块 220, 其与链路聚合子模块 210连接, 用于根据链路聚合子模块 210的链 路聚合的结果, 设置主链路的链路工作状态为工作链路、 设置备链路的链 路工作状态为保护链路, 其中, 该链路聚合的结果包括以下之一: 主链路 链路聚合成功、 备链路链路聚合失败; 主链路及备链路均链路聚合成功; 主链路及备链路均链路聚合失败; 第二设置子模块 230, 其与链路聚合子模 块 210连接, 用于若链路聚合子模块 210的链路聚合的结果为主链路链路 聚合失败、 备链路链路聚合成功, 则设置备链路的链路工作状态为工作链 路、 设置主链路的链路工作状态为保护链路。
连接故障管理检测模块 30,用于为聚合链路中的每条链路进行 CFM协 议检测。
链路切换模块 40, 其分别与配置模块 10、 链路聚合模块 20、 连接故障 管理检测模块 30连接, 用于在连接故障管理检测模块 30检测到故障链路 时, 则根据故障链路的链路工作状态判断是否进行链路切换。 链路切换模 块 40进一步用于: 在故障链路为工作链路时 , 且该工作链路对应的保护链 路链路聚合成功, 则将该工作链路传输的数据流量切换到保护链路。
综上所示, 根据本发明上述技术方案, 预先设置聚合成员链路的主备 状态, 在链路聚合过程中, 动态检测聚合状态, 通过 CFM快速检测工作链 路故障情况, 当聚合链路发生故障时能够快速地进行链路切换, 提高了链 路可靠性, 并满足电信级(50ms )切换要求。
以上所述仅为本发明的实施例而已, 并不用于限制本发明, 对于本领 域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的权 利要求范围之内。

Claims

权利要求书
1、 一种聚合链路切换方法, 其特征在于, 该方法包括:
在多条待聚合链路中, 配置主链路和备链路;
根据链路聚合协议对所述多条待聚合链路进行链路聚合, 并根据链路 聚合的结果确定各链路的链路工作状态;
为聚合链路中的每条链路进行连接故障管理协议检测, 检测到故障链 路, 则根据所述故障链路的链路工作状态判断是否进行链路切换。
2、 根据权利要求 1所述的方法, 其特征在于, 所述在多条待聚合链路 中配置主链路和备链路, 进一步包括:
将所述主链路 /备链路的本端状态和对端状态设置一致。
3、 根据权利要求 1所述的方法, 其特征在于, 所述根据链路聚合的结 果确定各链路的链路工作状态, 进一步包括:
设置所述主链路的链路工作状态为工作链路、 设置所述备链路的链路 工作状态为保护链路的链路聚合结果包括以下至少之一:
所述主链路链路聚合成功、 所述备链路链路聚合失败;
所述主链路及所述备链路均链路聚合成功;
所述主链路及所述备链路均链路聚合失败。
4、 根据权利要求 1所述的方法, 其特征在于, 所述根据链路聚合的结 果确定各链路的链路工作状态, 进一步包括:
若链路聚合的结果为所述主链路链路聚合失败、 且所述备链路链路聚 合成功, 则设置所述备链路的链路工作状态为工作链路、 设置所述主链路 的链路工作状态为保护链路。
5、 根据权利要求 3或 4所述的方法, 其特征在于, 根据所述故障链路 的链路工作状态判断是否进行链路切换, 进一步包括:
在故障链路为所述工作链路时, 且所述工作链路对应的保护链路链路 聚合成功, 则将所述工作链路传输的数据流量切换到所述保护链路。
6、 根据权利要求 3或 4所述的方法, 其特征在于, 根据所述故障链路 的链路工作状态判断是否进行链路切换, 进一步包括:
在故障链路为所述保护链路时, 则不进行链路切换, 重新执行链路聚 合协议。
7、 根据权利要求 3或 4所述的方法, 其特征在于, 所述工作链路传输 业务数据和链路聚合协议报文, 所述保护链路传输链路聚合控制协议报文。
8、 一种聚合链路切换装置, 其特征在于, 该装置包括:
配置模块, 用于在多条待聚合链路中配置主链路和备链路;
链路聚合模块, 用于根据链路聚合协议对所述多条待聚合链路进行链 路聚合, 并根据链路聚合的结果确定各链路的链路工作状态;
连接故障管理检测模块, 用于为聚合链路中的每条链路进行连接故障 管理协议检测;
链路切换模块, 用于在所述连接故障管理检测模块检测到故障链路, 则根据所述故障链路的链路工作状态判断是否进行链路切换。
9、 根据权利要求 8所述的装置, 其特征在于, 所述链路聚合模块进一 步包括:
链路聚合子模块, 用于根据链路聚合协议对所述多条待聚合链路进行 链路聚合;
第一设置子模块, 用于根据包括以下至少之一的链路聚合结果、 设置 所述主链路的链路工作状态为工作链路、 设置所述备链路的链路工作状态 为保护链路:
所述主链路链路聚合成功、 所述备链路链路聚合失败;
所述主链路及所述备链路均链路聚合成功;
所述主链路及所述备链路均链路聚合失败; 且所述备链路链路聚合成功时, 则设置所述备链路的链路工作状态为工作 链路、 设置所述主链路的链路工作状态为保护链路。
10、 根据权利要求 8所述的装置, 其特征在于, 所述链路切换模块进 一步用于: 在故障链路为所述工作链路时, 且所述工作链路对应的保护链 路链路聚合成功, 则将所述工作链路传输的数据流量切换到所述保护链路。
PCT/CN2011/071976 2010-11-04 2011-03-18 聚合链路切换方法及装置 WO2012058895A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
BR112013010869A BR112013010869A2 (pt) 2010-11-04 2011-03-18 método para comutar enlaces agregados e dispositivo para comutar enlaces agregados
EP11837425.5A EP2627039B1 (en) 2010-11-04 2011-03-18 Method and device for switching aggregation links

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010532000.8A CN102014019B (zh) 2010-11-04 2010-11-04 聚合链路切换方法及装置
CN201010532000.8 2010-11-04

Publications (1)

Publication Number Publication Date
WO2012058895A1 true WO2012058895A1 (zh) 2012-05-10

Family

ID=43844045

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/071976 WO2012058895A1 (zh) 2010-11-04 2011-03-18 聚合链路切换方法及装置

Country Status (4)

Country Link
EP (1) EP2627039B1 (zh)
CN (1) CN102014019B (zh)
BR (1) BR112013010869A2 (zh)
WO (1) WO2012058895A1 (zh)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316039B (zh) * 2011-09-09 2017-12-05 中兴通讯股份有限公司 基于聚合体优先级策略的聚合体逻辑选择的方法及系统
CN102299830B (zh) * 2011-09-20 2014-02-05 杭州华三通信技术有限公司 拨号链路检测方法和设备
CN102420828B (zh) * 2011-12-15 2014-11-05 华为技术有限公司 协议管理状态的设置方法、装置和系统
US8891516B2 (en) 2013-01-15 2014-11-18 International Business Machines Corporation Extended link aggregation (LAG) for use in multiple switches
CN104125088B (zh) * 2013-04-28 2019-05-10 中兴通讯股份有限公司 Drni中同一端内系统之间交互信息的方法和系统
CN103501250B (zh) * 2013-09-30 2016-10-05 杭州华三通信技术有限公司 分布式链路聚合网络中的数据流处理方法和装置
CN104202193B (zh) * 2014-09-05 2018-03-27 上海斐讯数据通信技术有限公司 分布式保护链路故障检测的方法
US10257019B2 (en) * 2015-12-04 2019-04-09 Arista Networks, Inc. Link aggregation split-brain detection and recovery
CN112165427A (zh) * 2016-12-02 2021-01-01 华为技术有限公司 保护倒换方法、网络设备及系统
CN108989139A (zh) * 2017-06-02 2018-12-11 中兴通讯股份有限公司 一种基于cfm的链路聚合组的管理方法及装置
CN110661702B (zh) * 2018-06-28 2022-09-13 中兴通讯股份有限公司 一种链路备份的方法、装置及计算机可读存储介质
CN109729556B (zh) 2019-02-12 2020-10-20 Oppo广东移动通信有限公司 链路连接方法及相关装置
CN110445701B (zh) * 2019-07-01 2021-03-12 视联动力信息技术股份有限公司 一种业务对象的处理方法、装置及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101378359A (zh) * 2008-10-06 2009-03-04 中兴通讯股份有限公司 一种强制链路主备切换的方法和装置
US7529180B1 (en) * 2002-03-29 2009-05-05 Marvell International Ltd. Switch failover for aggregated data communication links
CN101651960A (zh) * 2009-09-17 2010-02-17 中兴通讯股份有限公司 一种基于lacp协议的链路聚合带宽保护方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100563180C (zh) * 2007-05-30 2009-11-25 杭州华三通信技术有限公司 链路故障检测方法及装置
WO2009090723A1 (ja) * 2008-01-15 2009-07-23 Fujitsu Limited パケット伝送装置およびその制御回路
CN101399737A (zh) * 2008-10-21 2009-04-01 中兴通讯股份有限公司 用于以太环网的链路聚合组的保护方法及装置
CN101547082B (zh) * 2009-04-22 2012-06-27 华为技术有限公司 一种主备链路倒换方法及网络设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7529180B1 (en) * 2002-03-29 2009-05-05 Marvell International Ltd. Switch failover for aggregated data communication links
CN101378359A (zh) * 2008-10-06 2009-03-04 中兴通讯股份有限公司 一种强制链路主备切换的方法和装置
CN101651960A (zh) * 2009-09-17 2010-02-17 中兴通讯股份有限公司 一种基于lacp协议的链路聚合带宽保护方法及装置

Also Published As

Publication number Publication date
EP2627039B1 (en) 2016-06-22
EP2627039A4 (en) 2015-07-22
EP2627039A1 (en) 2013-08-14
BR112013010869A2 (pt) 2017-07-18
CN102014019B (zh) 2015-12-16
CN102014019A (zh) 2011-04-13

Similar Documents

Publication Publication Date Title
WO2012058895A1 (zh) 聚合链路切换方法及装置
US9602348B2 (en) Methods and apparatus for detecting and handling split brain issues in a link aggregation group
US8886831B2 (en) System and methodology for fast link failover based on remote upstream failures
US7639605B2 (en) System and method for detecting and recovering from virtual switch link failures
US7969866B2 (en) Hierarchical virtual private LAN service hub connectivity failure recovery
CN102315975B (zh) 一种基于irf系统的故障处理方法及其设备
CN101610535B (zh) 多链路直连场景下保证bfd会话稳定性的方法、系统及装置
US8817601B2 (en) HVPLS hub connectivity failure recovery with dynamic spoke pseudowires
WO2010045832A1 (zh) 用于以太环网的链路聚合组的保护方法及装置
CN101374075A (zh) 保护组播源的方法、装置和系统
EP3029883B1 (en) Network protection method and apparatus, next-ring node, and system
WO2018113294A1 (zh) 一种转发报文的方法、设备及系统
WO2013010422A1 (zh) 基于共享路径的环网隧道配置方法、环网保护方法及系统
WO2013049981A1 (zh) 一种基于共享通道的混合环网保护方法及系统
WO2011026319A1 (zh) 基于本地故障检测的环网保护方法及系统
US8711681B2 (en) Switch redundancy in systems with dual-star backplanes
WO2011131069A1 (zh) 捆绑链路的检测方法及分布式设备
CN106100988A (zh) 一种实现链路聚合快速切换的方法
WO2011113395A2 (zh) 一种负载分担方法和装置
WO2017000096A1 (zh) 一种链路恢复方法和网络设备
CN103220189A (zh) 一种mad检测备份方法和设备
CN112995002B (zh) 一种交换机环网的设计方法、交换机及存储介质
WO2009152700A1 (zh) 管理网络设备端口状态的方法、系统及中转设备
US7746949B2 (en) Communications apparatus, system and method of creating a sub-channel
JP5558436B2 (ja) ネットワークシステムおよびネットワーク故障回避方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11837425

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2011837425

Country of ref document: EP

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112013010869

Country of ref document: BR

REG Reference to national code

Ref country code: BR

Ref legal event code: B01E

Ref document number: 112013010869

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 112013010869

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20130502