[go: up one dir, main page]

CN102208999A - Ethernet looped network link polymerization group protecting method and device - Google Patents

Ethernet looped network link polymerization group protecting method and device Download PDF

Info

Publication number
CN102208999A
CN102208999A CN2011101637973A CN201110163797A CN102208999A CN 102208999 A CN102208999 A CN 102208999A CN 2011101637973 A CN2011101637973 A CN 2011101637973A CN 201110163797 A CN201110163797 A CN 201110163797A CN 102208999 A CN102208999 A CN 102208999A
Authority
CN
China
Prior art keywords
link
physical
aggregation group
port
ring network
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.)
Granted
Application number
CN2011101637973A
Other languages
Chinese (zh)
Other versions
CN102208999B (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 CN201110163797.3A priority Critical patent/CN102208999B/en
Publication of CN102208999A publication Critical patent/CN102208999A/en
Application granted granted Critical
Publication of CN102208999B publication Critical patent/CN102208999B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses an Ethernet looped network link polymerization group protecting method comprising the steps of: configuring a polymerization group adding mode to a physical port of a physical link in a link polymerization group, wherein the polymerization group adding mode comprises a relevance mode; when the physical link breaks down, detecting whether the physical port of the physical link is in the relevance mode, if not, not triggering looped network switching; and if so, carrying out looped network switching. The invention also provides a corresponding device. By using the Ethernet looped network link polymerization group protecting method and device provided by the invention, islet formation caused by breakdown of the physical links on two link polymerization ports on a looped network device can be prevented, and data loss of users can be reduced to the maximum extent.

Description

以太环网链路聚合组的保护方法和装置Protection method and device for link aggregation group of Ethernet ring network

技术领域technical field

本发明涉及到通信领域,特别涉及到一种以太环网链路聚合组的保护方法和装置。The invention relates to the communication field, in particular to a method and device for protecting an Ethernet ring network link aggregation group.

背景技术Background technique

随着以太网在城域网中的广泛应用,以太网的性能及可靠性成了电信运营商们越来越关注的焦点。在交换式的网络中,提高网络可靠性的主要手段是部署一些冗余链路。这样,当主链路失效时可以使用备份链路。在使用冗余链路备份的情况下,网络的保护与恢复能力便成为关键。目前业界普遍关注EAPS(Ethernet Automatic Protection Switching,以太网保护技术)。同时由于带宽需求越来越高,而设备上单端口速率并不一定能满足实际应用需求,此时LACP(Link Aggregation Control Protocol,链路汇聚控制协议)得到了广泛应用,LACP可以在不升级硬件的前提下为用户提高更高的传输带宽。With the wide application of Ethernet in MAN, the performance and reliability of Ethernet have become the focus of more and more attention of telecom operators. In a switched network, the main means to improve network reliability is to deploy some redundant links. In this way, the backup link can be used when the primary link fails. In the case of using redundant link backup, the protection and recovery ability of the network becomes the key. At present, the industry generally pays attention to EAPS (Ethernet Automatic Protection Switching, Ethernet protection technology). At the same time, due to the increasing demand for bandwidth, the rate of a single port on the device may not necessarily meet the actual application requirements. At this time, LACP (Link Aggregation Control Protocol, Link Aggregation Control Protocol) has been widely used, and LACP can be used without upgrading the hardware. Under the premise of improving the higher transmission bandwidth for users.

一个以太环网保护域可以包括一个主节点和若干个传输节点,一个用于EAPS协议报文传输的控制VLAN(Virtual Local Area Network,虚拟局域网),以及一组被保护的用于用户数据转发的业务VLAN。其中,主节点在环上的两个端口分别被定义为主端口和从端口,被保护的业务VLAN定义为保护业务VLAN。当环上链路完好时,主节点阻塞从端口的保护业务VLAN转发功能,网络中无环路产生,防止了由于网络环路引起的“广播风暴”;当链路发生故障时,主节点放开从端口的保护业务VLAN转发功能,用户数据可以在主节点的从端口通过,保障了业务的连通。以太环网保护控制报文是域中节点之间的通信和控制报文,它在控制VLAN中传播,当节点阻塞端口时,环网控制报文不受影响仍然可以通过。以太环网保护正常运行时,环上每个节点记录了当前的环网状态为完好或者故障。An Ethernet ring network protection domain can include a master node and several transmission nodes, a control VLAN (Virtual Local Area Network, Virtual Local Area Network) for EAPS protocol message transmission, and a group of protected VLANs for user data forwarding. Business VLAN. Wherein, the two ports of the master node on the ring are respectively defined as a master port and a slave port, and the protected service VLAN is defined as a protected service VLAN. When the link on the ring is intact, the master node blocks the protection service VLAN forwarding function of the slave port, and there is no loop in the network, which prevents the "broadcast storm" caused by the network loop; The protection service VLAN forwarding function of the slave port is enabled, and user data can pass through the slave port of the master node, ensuring service connectivity. The Ethernet ring network protection control message is a communication and control message between nodes in the domain. It is propagated in the control VLAN. When a node blocks a port, the ring network control message can still pass without being affected. When the Ethernet ring protection is running normally, each node on the ring records the current status of the ring network as intact or faulty.

链路聚合亦称主干技术或捆绑技术,其实质是将两台设备间的数条物理链路“组合”成逻辑上的一条数据通路,称为一条聚合链路。该链路在逻辑上是一个整体,内部的组成和传输数据的细节对上层服务是透明的。它能够根据聚合组中端口的数量成倍增加带宽,创建链路的传输弹性和实现链路冗余备份。Link aggregation is also known as backbone technology or bundling technology. Its essence is to "combine" several physical links between two devices into a logical data path, called an aggregated link. The link is logically a whole, and the internal composition and details of the transmitted data are transparent to the upper layer service. It can double the bandwidth according to the number of ports in the aggregation group, create link transmission elasticity and realize link redundancy backup.

但是在实际应用中,现在的以太环网中的链路聚合组保护方法存在一个比较严重的问题。工程施工中,经常出现某一台环网设备两边的聚合链路中有物理链路是存在于一根光纤束中,在这种情况下,如果该光纤束被意外损坏,该环网设备两边的聚合端口中均有成员链路会出现故障,此时如果按上面所述的环网切换方式,该设备会阻塞自己两边所有端口并通知主节点进行环网切换,这样该设备就处于孤岛状态,不能同环网上其它设备通信。However, in practical applications, there is a relatively serious problem in the current link aggregation group protection method in the Ethernet ring network. During engineering construction, it often happens that a physical link in the aggregation link on both sides of a certain ring network device exists in a fiber bundle. In this case, if the fiber bundle is accidentally damaged, the ring network device on both sides All the member links in the aggregation port of the device will fail. If the above-mentioned ring network switching method is used, the device will block all ports on both sides of itself and notify the master node to perform ring network switching, so that the device will be in an island state. , cannot communicate with other devices on the ring network.

发明内容Contents of the invention

本发明的主要目的为提供一种以太环网链路聚合组的保护方法和装置,防止由于环网设备两个环上聚合端口均有物理链路出现故障时形成孤岛,可最大程度减少用户数据丢失。The main purpose of the present invention is to provide a method and device for protecting a link aggregation group of an Ethernet ring network, so as to prevent the formation of an isolated island when physical links of the aggregation ports on the two rings of the ring network equipment fail, thereby reducing user data to the greatest extent. lost.

本发明提供一种以太环网链路聚合组的保护方法,包括:The present invention provides a method for protecting an Ethernet ring network link aggregation group, including:

为链路聚合组中物理链路的物理端口配置加入聚合组的模式,所述加入聚合组的模式包括关联模式;The mode of joining the aggregation group is configured for the physical port of the physical link in the link aggregation group, and the mode of adding the aggregation group includes an association mode;

当所述物理链路出现故障时,检测该物理链路的物理端口是否为关联模式,如果否,则不触发环网切换;如果是,则进行环网切换。When the physical link fails, it is detected whether the physical port of the physical link is in the association mode, if not, the ring network switching is not triggered; if yes, the ring network switching is performed.

优选地,在执行所述当物理链路出现故障时,检测该物理链路的物理端口是否为关联模式之前,还包括:Preferably, before performing the step of detecting whether the physical port of the physical link is in association mode when the physical link fails, the method also includes:

判断所述物理链路是否出现故障。It is judged whether the physical link fails.

优选地,所述当物理链路出现故障时,检测该物理链路的物理端口是否为关联模式,如果是,则进行环网切换包括:Preferably, when the physical link fails, detecting whether the physical port of the physical link is in association mode, and if so, performing ring network switching includes:

如所述物理链路的物理端口为关联模式,阻塞该物理链路所在链路聚合组的端口,并发送链路故障报告给主节点;If the physical port of the physical link is in association mode, block the port of the link aggregation group where the physical link is located, and send a link failure report to the master node;

收到所述链路故障报告后,主节点从端口打开,发出环网故障通知报文给传输节点,并进行环网切换。After receiving the link failure report, the master node opens the slave port, sends a ring network failure notification message to the transit node, and performs ring network switching.

优选地,在执行所述收到链路故障报告后,主节点从端口打开,发出环网故障通知报文给传输节点,并进行环网切换之后,还包括:Preferably, after receiving the link failure report, the master node opens the slave port, sends a ring network failure notification message to the transmission node, and performs ring network switching, further comprising:

检测所述物理链路是否恢复正常;Detecting whether the physical link returns to normal;

如恢复,阻塞从端口,发送环网完好通知报文给传输节点,并进行环网切换。If it recovers, block the slave port, send a ring network intact notification message to the transit node, and perform ring network switching.

本发明还提出一种以太环网链路聚合组的保护装置,包括:The present invention also proposes a protection device for an Ethernet ring network link aggregation group, including:

配置模块,用于为链路聚合组中物理链路的物理端口配置加入聚合组的模式,所述加入聚合组的模式包括关联模式;The configuration module is used to configure the mode of joining the aggregation group for the physical port of the physical link in the link aggregation group, and the mode of joining the aggregation group includes an association mode;

第一检测模块,用于当所述物理链路出现故障时,检测该物理链路的物理端口是否为关联模式,如果否,则不触发环网切换;如果是,则进行环网切换。The first detection module is used to detect whether the physical port of the physical link is in association mode when the physical link fails, if not, then do not trigger ring network switching; if yes, perform ring network switching.

优选地,上述装置还包括:Preferably, the above-mentioned device also includes:

判断模块,用于判断所述物理链路是否出现故障。A judging module, configured to judge whether the physical link fails.

优选地,所述第一切换模块包括:Preferably, the first switching module includes:

发送单元,用于如所述物理链路的物理端口为关联模式,阻塞该物理链路所在链路聚合组的端口,并发送链路故障报告给主节点;The sending unit is configured to block the port of the link aggregation group where the physical link is located, if the physical port of the physical link is in an association mode, and send a link failure report to the master node;

切换单元,用于收到所述链路故障报告后,主节点从端口打开,发出环网故障通知报文给传输节点,并进行环网切换。The switching unit is configured to open the slave port of the master node after receiving the link failure report, send a ring network failure notification message to the transmission node, and perform ring network switching.

优选地,以太环网链路聚合组的保护装置还包括:Preferably, the protection device of the Ethernet ring network link aggregation group also includes:

第二检测模块,用于检测所述物理链路是否恢复正常;The second detection module is used to detect whether the physical link returns to normal;

切换模块,用于如恢复,阻塞从端口,发送环网完好通知报文给传输节点,并进行环网切换。The switching module is used for such as recovering, blocking the slave port, sending the ring network intact notification message to the transmission node, and performing ring network switching.

本发明提供的一种以太环网链路聚合组的保护方法和装置,通过为链路聚合组中物理链路的物理端口配置加入聚合组的模式,当链路出现故障时,判断该链路加入聚合组的模式,便可决定是否触发环网切换。可以防止由于环网设备两个环上聚合端口均有物理链路出现故障时形成孤岛,最大程度减少了用户数据丢失。The present invention provides a method and device for protecting a link aggregation group of an Ethernet ring network. By configuring the physical ports of the physical links in the link aggregation group to join the aggregation group mode, when a link fails, the link is judged The mode of joining the aggregation group can determine whether to trigger ring switching. It can prevent the formation of isolated islands when the physical links of the aggregation ports on the two rings of the ring network device fail, and minimize the loss of user data.

附图说明Description of drawings

图1为本发明以太环网链路聚合组的保护方法一实施例的流程示意图;Fig. 1 is a schematic flow chart of an embodiment of a method for protecting an Ethernet ring network link aggregation group according to the present invention;

图2为本发明以太环网链路聚合组的保护方法一实施例中检测的流程示意图;FIG. 2 is a schematic flow diagram of detection in an embodiment of a method for protecting an Ethernet ring network link aggregation group according to the present invention;

图3为本发明以太环网链路聚合组的保护方法又一实施例的流程示意图;FIG. 3 is a schematic flowchart of another embodiment of a method for protecting an Ethernet ring network link aggregation group according to the present invention;

图4为本发明以太环网链路聚合组的保护方法再一实施例的流程示意图;FIG. 4 is a schematic flowchart of another embodiment of the method for protecting an Ethernet ring network link aggregation group according to the present invention;

图5为本发明以太环网链路聚合组的保护装置一实施例的结构示意图;5 is a schematic structural diagram of an embodiment of a protection device for an Ethernet ring network link aggregation group according to the present invention;

图6为本发明以太环网链路聚合组的保护装置一实施例中第一检测模块的结构示意图;6 is a schematic structural diagram of a first detection module in an embodiment of a protection device for an Ethernet ring network link aggregation group according to the present invention;

图7为本发明以太环网链路聚合组的保护装置又一实施例的结构示意图;7 is a schematic structural diagram of another embodiment of a protection device for an Ethernet ring network link aggregation group according to the present invention;

图8为本发明以太环网链路聚合组的保护装置再一实施例的结构示意图;8 is a schematic structural diagram of another embodiment of a protection device for an Ethernet ring network link aggregation group according to the present invention;

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

参照图1,提出本发明以太环网链路聚合组的保护方法一实施例,该方法包括:With reference to Fig. 1, an embodiment of the protection method of the Ethernet ring network link aggregation group of the present invention is proposed, the method includes:

步骤S101,为链路聚合组中物理链路的物理端口配置加入聚合组的模式,所述加入聚合组的模式包括关联模式;Step S101, configuring the mode of joining the aggregation group for the physical port of the physical link in the link aggregation group, the mode of joining the aggregation group includes an association mode;

在节点上配置以太环网技术,整个环内均采用聚合链路控制协议。为链路聚合组中每个物理链路的物理端口配置加入聚合组的模式,默认为关联模式,也可以根据需要配置为非关联模式,如配置为非关联模式,该物理端口所对应的物理链路如出现故障,则不会影响链路聚合组的状态。对于两边的链路聚合组中有物理链路是存在于一根光纤束中的节点,需要至少配置其中一边的一条物理链路的物理端口为非关联模式,当光纤被损坏时,便可通过检测物理链路的物理端口加入聚合组的模式,来确定使用节点两端链路聚合组的其中一个与其他节点继续通信。The Ethernet ring network technology is configured on the nodes, and the aggregation link control protocol is adopted in the entire ring. Configure the mode of joining the aggregation group for the physical port of each physical link in the link aggregation group. The default is association mode, and it can also be configured as non-association mode as required. If it is configured as non-association mode, the physical port corresponding to the physical port If a link fails, it will not affect the state of the link aggregation group. For nodes with physical links in one fiber bundle in the link aggregation groups on both sides, it is necessary to configure the physical port of at least one physical link on one side as non-associated mode. When the fiber is damaged, it can pass Detect the mode in which the physical port of the physical link joins the aggregation group to determine whether to use one of the link aggregation groups at both ends of the node to continue communicating with other nodes.

步骤S102,当所述物理链路出现故障时,检测该物理链路的物理端口是否为关联模式,如果否,则不触发环网切换;如果是,则进行环网切换。Step S102, when the physical link fails, check whether the physical port of the physical link is in association mode, if not, do not trigger ring network switching; if yes, perform ring network switching.

当链路聚合组中的物理链路出现故障时,便需要检测该条物理链路的物理端口加入聚合组的模式,判断其加入聚合组的模式是否为关联模式,如检测结果为非关联模式,则该条物理链路的状态不会影响其所在链路聚合组的状态,即不会触发环网切换,该链路聚合组可以继续与其他节点进行通信;如果检测结果为关联模式,则该条物理链路所在的链路聚合组的状态为故障,此时,需要进行环网切换。When a physical link in the link aggregation group fails, it is necessary to detect the mode in which the physical port of the physical link joins the aggregation group, and judge whether the mode in which it joins the aggregation group is associated mode, if the detection result is non-associated mode , the state of the physical link will not affect the state of the link aggregation group it belongs to, that is, it will not trigger a ring network switchover, and the link aggregation group can continue to communicate with other nodes; if the detection result is association mode, then The state of the link aggregation group where the physical link is located is faulty, and a ring network switchover is required at this time.

本发明提供的一种以太环网链路聚合组的保护方法,通过为链路聚合组中物理链路的物理端口配置加入聚合组的模式,当链路出现故障时,判断该链路加入聚合组的模式,便可决定是否触发环网切换。可以防止由于环网设备两个环上聚合端口均有物理链路出现故障时形成孤岛,最大程度减少了用户数据丢失。The invention provides a method for protecting a link aggregation group of an Ethernet ring network. By configuring the mode of joining the aggregation group for the physical port of the physical link in the link aggregation group, when a link fails, it is judged that the link joins the aggregation group. The mode of the group can determine whether to trigger ring switching. It can prevent the formation of isolated islands when the physical links of the aggregation ports on the two rings of the ring network device fail, and minimize the loss of user data.

参照图2,在本发明以太环网链路聚合组的保护方法一实施例中,步骤S102包括:Referring to FIG. 2, in an embodiment of the protection method for the link aggregation group of the Ethernet ring network of the present invention, step S102 includes:

步骤S1021,如所述物理链路的物理端口为关联模式,阻塞该物理链路所在链路聚合组的端口,并发送链路故障报告给主节点;Step S1021, if the physical port of the physical link is in association mode, block the port of the link aggregation group where the physical link is located, and send a link failure report to the master node;

如所有链路的状态都为正常,通过主节点的主端口所连接的链路聚合组与传输节点进行通信,因此,当主节点检测到该条物理链路出现故障时,则会堵塞主端口;当传输节点检测到该条物理链路出现故障时,会将其所在的链路聚合组的端口堵塞,并发送链路故障报告给主节点。If the status of all links is normal, the link aggregation group connected to the main port of the main node communicates with the transit node. Therefore, when the main node detects that the physical link fails, it will block the main port; When the transit node detects that the physical link fails, it will block the port of the link aggregation group where it is located, and send a link failure report to the master node.

步骤S1022,收到所述链路故障报告后,主节点从端口打开,发出环网故障通知报文给传输节点,并进行环网切换。Step S1022, after receiving the link failure report, the master node opens the slave port, sends a ring network failure notification message to the transit node, and performs ring network switching.

收到链路故障报告后,主节点从端口打开,用户数据可以通过该从端口所连接的链路聚合组继续与其他节点进行通信。打开从端口后,发出环网故障通知报文,通知其他传输节点进行环网切换,传输节点收到环网故障通知报文后,进行环网切换。After receiving the link failure report, the slave port of the master node is opened, and user data can continue to communicate with other nodes through the link aggregation group connected to the slave port. After the slave port is opened, a ring network failure notification message is sent to notify other transmission nodes to perform ring network switching. After the transmission node receives the ring network failure notification message, it performs ring network switching.

通过检测出现故障的物理链路的物理端口加入聚合组的模式,当为关联模式时,堵塞其所在的链路聚合组的端口,触发环网切换,利用主节点的从端口所连接的链路聚合组继续与其他传输节点进行通信,使得用户数据不会中断,保障了业务的连通性。The mode of joining the aggregation group by detecting the physical port of the failed physical link, when it is in the association mode, blocks the port of the link aggregation group where it is located, triggers the ring network switchover, and uses the link connected to the slave port of the master node The aggregation group continues to communicate with other transmission nodes, so that user data will not be interrupted and business connectivity is guaranteed.

参照图3,提出本发明以太环网链路聚合组的保护方法又一实施例,该方法还包括:Referring to Fig. 3, another embodiment of the protection method of the link aggregation group of the Ethernet ring network of the present invention is proposed, the method also includes:

步骤S103,判断该物理链路是否出现故障;Step S103, judging whether the physical link fails;

当为链路聚合组中物理链路的端口配置加入聚合组的模式后,开始对该链路聚合组中的每一条物理链路进行状态的检测,即判断其是否出现故障。After the port of the physical link in the link aggregation group is configured to join the aggregation group, the status of each physical link in the link aggregation group is detected, that is, it is judged whether it is faulty.

预先设定一切换阈值,在本实施例中,可设定所有环网上的链路聚合组的切换阈值均为1,即只要有一条物理链路出现故障,则该条物理链路所在链路聚合组的状态即为故障。因此,当检测出链路聚合组有一条物理链路的状态为故障,则可确定该链路聚合组的状态也为故障。A switching threshold is preset. In this embodiment, the switching thresholds of all link aggregation groups on the ring network can be set to be 1, that is, as long as a physical link fails, the link where the physical link is located The state of the aggregation group is Failed. Therefore, when it is detected that the state of a physical link in the link aggregation group is faulty, it can be determined that the state of the link aggregation group is also faulty.

通过检测链路聚合组中物理链路的状态,如出现故障,根据预先设定的阈值判断链路聚合组是否为故障,使得链路的故障检测更为方便、准确。By detecting the state of the physical link in the link aggregation group, if there is a failure, it is judged whether the link aggregation group is a failure according to the preset threshold, so that the link failure detection is more convenient and accurate.

参照图4,提出本发明以太环网链路聚合组的保护方法再一实施例,该方法还包括:Referring to Fig. 4, propose another embodiment of the protection method of the link aggregation group of the Ethernet ring network of the present invention, the method also includes:

步骤S104,检测所述物理链路是否恢复正常;Step S104, detecting whether the physical link returns to normal;

当主节点打开从端口,并切换至从端口所连接的聚合链路组与其他传输节点进行通信后,需要检测出现故障的物理链路的状态,判断其是否恢复正常。When the master node opens the slave port and switches to the aggregated link group connected to the slave port to communicate with other transmission nodes, it needs to detect the status of the failed physical link to determine whether it returns to normal.

步骤S105,如恢复,阻塞从端口,发送环网完好通知报文给传输节点,所述传输节点进行环网切换。Step S105, if it is restored, block the slave port, and send a ring network intact notification message to the transit node, and the transit node performs ring network switching.

如该物理链路的状态恢复正常,则将主节点的从端口阻塞,重新打开主节点的主端口,并发送环网完好通知报文给传输节点,进行环网切换,切换至恢复完好的链路聚合组进行通信。If the state of the physical link returns to normal, block the slave port of the master node, reopen the master port of the master node, and send a ring network intact notification message to the transit node, perform ring network switching, and switch to the restored link. The road aggregation group communicates.

在切换至备用链路进行通信后,通过检测出现故障的链路的状态是否恢复正常,并切换至恢复完好的链路聚合组进行通信,使得数据不会中断,进一步保障了业务的连通性。After switching to the backup link for communication, by detecting whether the status of the failed link returns to normal, and switching to the recovered link aggregation group for communication, the data will not be interrupted, and the connectivity of the business is further guaranteed.

参照图5,提出本发明以太环网链路聚合组的保护装置一实施例,该装置包括:Referring to Fig. 5, an embodiment of the protection device of the Ethernet ring network link aggregation group of the present invention is proposed, the device includes:

配置模块10,用于为链路聚合组中物理链路的物理端口配置加入聚合组的模式,所述加入聚合组的模式包括关联模式;参照图7,提出本发明一种以太环网链路聚合组的保护装置又一实施例,该装置还包括:Configuration module 10, is used for the physical port configuration of physical link in the link aggregation group joins the mode of aggregation group, and the mode of described joining aggregation group comprises association mode; With reference to Fig. 7, proposes a kind of Ethernet ring network link of the present invention Another embodiment of the protection device of the aggregation group, the device also includes:

第一检测模块20,用于当所述物理链路出现故障时,检测该物理链路的物理端口是否为关联模式,如果否,则不触发环网切换;如果是,则进行环网切换。The first detection module 20 is configured to detect whether the physical port of the physical link is in association mode when the physical link fails, if not, then do not trigger ring network switching; if yes, perform ring network switching.

在节点上配置以太环网技术,整个环内均采用聚合链路控制协议。配置模块10为链路聚合组中每个物理链路的物理端口配置加入聚合组的模式,默认为关联模式,也可以根据需要配置为非关联模式,如配置为非关联模式,该物理端口所对应的物理链路如出现故障,则不会影响链路聚合组的状态。对于两边的链路聚合组中有物理链路是存在于一根光纤束中的节点,需要至少配置其中一边的一条物理链路的物理端口为非关联模式,当光纤被损坏时,便可通过检测物理链路的物理端口加入聚合组的模式,来确定使用节点两端链路聚合组的其中一个与其他节点继续通信。The Ethernet ring network technology is configured on the nodes, and the aggregation link control protocol is adopted in the entire ring. The configuration module 10 configures the physical port of each physical link in the link aggregation group to join the mode of the aggregation group, which is an association mode by default, and can also be configured as a non-association mode as required. If it is configured as a non-association mode, the physical port If the corresponding physical link fails, it will not affect the state of the link aggregation group. For nodes with physical links in one fiber bundle in the link aggregation groups on both sides, it is necessary to configure the physical port of at least one physical link on one side as non-associated mode. When the fiber is damaged, it can pass Detect the mode in which the physical port of the physical link joins the aggregation group to determine whether to use one of the link aggregation groups at both ends of the node to continue communicating with other nodes.

当链路聚合组中的物理链路出现故障时,第一检测模块20便需要检测该条物理链路的物理端口加入聚合组的模式,判断其加入聚合组的模式是否为关联模式,如检测为结果为非关联模式,则该条物理链路的状态不会影响其所在链路聚合组的状态,不会触发环网切换,该链路聚合组可以继续与其他节点进行通信;如果检测结果为关联模式,则该条物理链路所在的链路聚合组的状态为故障,此时,需要进行环网切换。When a physical link in the link aggregation group fails, the first detection module 20 needs to detect the mode in which the physical port of the physical link joins the aggregation group, and judges whether the mode in which it joins the aggregation group is an association mode, such as detecting If the result is non-associated mode, the state of the physical link will not affect the state of the link aggregation group it belongs to, and will not trigger ring network switchover, and the link aggregation group can continue to communicate with other nodes; if the detection result In association mode, the state of the link aggregation group where the physical link is located is faulty. At this time, a ring network switchover is required.

本发明提供的一种以太环网链路聚合组的保护装置,通过为链路聚合组中物理链路的物理端口配置加入聚合组的模式,当链路出现故障时,判断该链路加入聚合组的模式,便可决定是否触发环网切换。可以防止由于环网设备两个环上聚合端口均有物理链路出现故障时形成孤岛,最大程度减少了用户数据丢失。A protection device for an Ethernet ring network link aggregation group provided by the present invention, by configuring the mode of joining the aggregation group for the physical port of the physical link in the link aggregation group, when a link fails, it is judged that the link joins the aggregation group The mode of the group can determine whether to trigger ring switching. It can prevent the formation of isolated islands when the physical links of the aggregation ports on the two rings of the ring network device fail, and minimize the loss of user data.

参照图6,在本发明以太环网链路聚合组的保护装置一实施例中,所述第一检测模块20包括:Referring to FIG. 6, in an embodiment of the protection device of the Ethernet ring network link aggregation group of the present invention, the first detection module 20 includes:

发送单元21,用于如所述物理链路的物理端口为关联模式,阻塞该物理链路所在链路聚合组的端口,并发送链路故障报告给主节点;The sending unit 21 is configured to block the port of the link aggregation group where the physical link is located as the physical port of the physical link is in an association mode, and send a link failure report to the master node;

切换单元22,用于收到所述链路故障报告后,主节点从端口打开,发出环网故障通知报文给传输节点,并进行环网切换。The switching unit 22 is configured to open the slave port of the master node after receiving the link failure report, send a ring network failure notification message to the transit node, and perform ring network switching.

如所有链路的状态都为正常,通过主节点的主端口所连接的链路聚合组与传输节点进行通信,因此,当主节点检测到该条物理链路出现故障时,则会堵塞主端口;当传输节点检测到该条物理链路出现故障时,会将其所在的链路聚合组的端口堵塞,发送单元21发送链路故障报告给主节点。If the status of all links is normal, the link aggregation group connected to the main port of the main node communicates with the transit node. Therefore, when the main node detects that the physical link fails, it will block the main port; When the transit node detects that the physical link fails, it will block the port of the link aggregation group where it is located, and the sending unit 21 sends a link failure report to the master node.

收到链路故障报告后,主节点从端口打开,用户数据可以通过该从端口所连接的链路聚合组继续与其他节点进行通信。打开从端口后,发出环网故障通知报文,通知其他传输节点进行环网切换,传输节点收到环网故障通知报文后,切换单元22进行环网切换。After receiving the link failure report, the slave port of the master node is opened, and user data can continue to communicate with other nodes through the link aggregation group connected to the slave port. After the slave port is opened, a ring network failure notification message is sent to notify other transmission nodes to perform ring network switching. After the transmission node receives the ring network failure notification message, the switching unit 22 performs ring network switching.

通过检测出现故障的物理链路的物理端口加入聚合组的模式,当为关联模式时,堵塞其所在的链路聚合组的端口,触发环网切换,利用主节点的从端口所连接的链路聚合组继续与其他传输节点进行通信,使得用户数据不会中断,保障了业务的连通性。The mode of joining the aggregation group by detecting the physical port of the failed physical link, when it is in the association mode, blocks the port of the link aggregation group where it is located, triggers the ring network switchover, and uses the link connected to the slave port of the master node The aggregation group continues to communicate with other transmission nodes, so that user data will not be interrupted and business connectivity is guaranteed.

参照图7,提出本发明以太环网链路聚合组的保护装置的又一实施例,该装置还包括:Referring to Fig. 7, another embodiment of the protection device of the Ethernet ring network link aggregation group of the present invention is proposed, the device also includes:

判断模块30,用于判断所述物理链路是否出现故障。A judging module 30, configured to judge whether the physical link fails.

当为链路聚合组中物理链路的端口配置加入聚合组的模式后,判断模块30开始对该链路聚合组中的每一条物理链路进行状态的检测,即判断其是否出现故障。After the port of the physical link in the link aggregation group is configured to join the aggregation group, the judging module 30 starts to detect the status of each physical link in the link aggregation group, that is, judges whether it is faulty.

预先设定一切换阈值,在本实施例中,可设定所有环网上的链路聚合组的切换阈值均为1,即只要有一条物理链路出现故障则该条物理链路所在链路聚合组的状态即为故障。因此,当检测出链路聚合组有一条物理链路的状态为故障,则可确定该链路聚合组的状态也为故障。A switching threshold is set in advance. In this embodiment, the switching threshold of all link aggregation groups on the ring network can be set to be 1, that is, as long as a physical link fails, the link aggregation group where the physical link is located The status of the group is Failed. Therefore, when it is detected that the state of a physical link in the link aggregation group is faulty, it can be determined that the state of the link aggregation group is also faulty.

通过检测链路聚合组中物理链路的状态,如出现故障,根据预先设定的阈值判断链路聚合组是否为故障,使得链路的故障检测更为方便、准确。By detecting the state of the physical link in the link aggregation group, if there is a failure, it is judged whether the link aggregation group is a failure according to the preset threshold, so that the link failure detection is more convenient and accurate.

参照图8,提出本发明以太环网链路聚合组的保护装置再一实施例,该装置还包括:Referring to Fig. 8, another embodiment of the protection device of the Ethernet ring network link aggregation group of the present invention is proposed, the device also includes:

第二检测模块40,用于检测所述物理链路是否恢复正常;The second detection module 40 is used to detect whether the physical link returns to normal;

切换模块50,用于如恢复,阻塞从端口,发送环网完好通知报文给传输节点,并进行环网切换。The switching module 50 is configured to, for example, recover, block the slave port, send a ring network intact notification message to the transit node, and perform ring network switching.

当主节点打开从端口,并切换至从端口所连接的聚合链路组与其他传输节点进行通信后,第二检测模块40需要检测出现故障的物理链路的状态,判断其是否恢复正常。After the master node opens the slave port and switches to the aggregated link group connected to the slave port to communicate with other transmission nodes, the second detection module 40 needs to detect the state of the failed physical link to determine whether it is back to normal.

如该物理链路的状态恢复正常,则将主节点的从端口阻塞,重新打开主节点的主端口,并发送环网完好通知报文给传输节点,切换模块50进行环网切换,切换至恢复完好的链路聚合组进行通信。If the state of this physical link returns to normal, then the slave port of the master node will be blocked, the master port of the master node will be reopened, and the ring network integrity notification message will be sent to the transmission node, and the switch module 50 will switch the ring network and switch to recovery Intact link aggregation groups communicate.

在切换至备用链路进行通信后,通过检测出现故障的链路的状态是否恢复正常,并切换至恢复完好的链路聚合组进行通信,使得数据不会中断,进一步保障了业务的连通性。After switching to the backup link for communication, by detecting whether the status of the failed link returns to normal, and switching to the recovered link aggregation group for communication, the data will not be interrupted, and the connectivity of the business is further guaranteed.

以上所述仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related All technical fields are equally included in the scope of patent protection of the present invention.

Claims (8)

1. the guard method of an ethernet ring network link aggregation group is characterized in that, comprising:
For the configuration of the physical port of physical link in the link aggregation group adds the pattern of aggregation group, the pattern of described adding aggregation group comprises association mode;
When described physical link broke down, whether the physical port that detects this physical link was association mode, if not, did not then trigger looped network and switched; If then carry out looped network and switch.
2. the guard method of ethernet ring network link aggregation group as claimed in claim 1 is characterized in that, is carrying out describedly when physical link breaks down, and whether the physical port that detects this physical link is before the association mode, also comprises:
Judge whether described physical link breaks down.
3. the guard method of ethernet ring network link aggregation group as claimed in claim 2 is characterized in that, and is described when physical link breaks down, and whether the physical port that detects this physical link is association mode, if then carry out the looped network switching and comprise:
The physical port of physical link is an association mode as described, blocks the port of this physical link place link aggregation group, and the transmission link failure reports to host node;
After receiving described link failure report, host node slave port is opened, and sends ring network fault notice message and gives transmission node, and carry out the looped network switching.
4. as the guard method of each described ethernet ring network link aggregation group in the claim 1 to 3, it is characterized in that, carry out described receive the link failure report after; host node slave port is opened; send ring network fault notice message and give transmission node, and carry out also comprising after the looped network switching:
Detect described physical link and whether recover normal;
As recovering, block host node slave port, send the intact notice message of looped network to transmission node, and carry out the looped network switching.
5. the protective device of an ethernet ring network link aggregation group is characterized in that, comprising:
Configuration module is used to the physical port of physical link in the link aggregation group to dispose the pattern that adds aggregation group, and the pattern of described adding aggregation group comprises association mode;
First detection module is used for when described physical link breaks down, and whether the physical port that detects this physical link is association mode, if not, does not then trigger looped network and switches; If then carry out looped network and switch.
6. the protective device of ethernet ring network link aggregation group as claimed in claim 5 is characterized in that, this device also comprises:
Judge module is used to judge whether described physical link breaks down.
7. the protective device of ethernet ring network link aggregation group as claimed in claim 6 is characterized in that, described first handover module comprises:
Transmitting element is used for as described that the physical port of physical link is an association mode, blocks the port of this physical link place link aggregation group, and sends link failure and report to host node;
Switch unit, be used to receive the report of described link failure after, host node slave port is opened, and sends ring network fault notice message and gives transmission node, and carry out looped network and switch.
8. as the protective device of each described ethernet ring network link aggregation group in the claim 5 to 7, it is characterized in that this device also comprises:
Second detection module is used to detect described physical link and whether recovers normal;
Handover module is used for blocking from port as recovering, and sends the intact notice message of looped network to transmission node, and carries out the looped network switching.
CN201110163797.3A 2011-06-17 2011-06-17 The guard method of ethernet ring network link aggregation group and device Expired - Fee Related CN102208999B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110163797.3A CN102208999B (en) 2011-06-17 2011-06-17 The guard method of ethernet ring network link aggregation group and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110163797.3A CN102208999B (en) 2011-06-17 2011-06-17 The guard method of ethernet ring network link aggregation group and device

Publications (2)

Publication Number Publication Date
CN102208999A true CN102208999A (en) 2011-10-05
CN102208999B CN102208999B (en) 2017-06-06

Family

ID=44697670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110163797.3A Expired - Fee Related CN102208999B (en) 2011-06-17 2011-06-17 The guard method of ethernet ring network link aggregation group and device

Country Status (1)

Country Link
CN (1) CN102208999B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014063571A1 (en) * 2012-10-24 2014-05-01 中兴通讯股份有限公司 Distributed link aggregation group service handover method and device
CN110875824A (en) * 2018-08-30 2020-03-10 华为技术有限公司 A faulty multilayer link recovery method and controller
CN119544598A (en) * 2024-11-25 2025-02-28 中国农业银行股份有限公司 Method, device, equipment and system for preventing loops in cross-device link aggregation groups

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399737A (en) * 2008-10-21 2009-04-01 中兴通讯股份有限公司 Protection method and apparatus used for link convergence group of loop Ethernet
US20090141622A1 (en) * 2007-12-03 2009-06-04 Verizon Serivices Organization Inc. Pinning and protection on link aggregation groups
CN101984606A (en) * 2010-11-15 2011-03-09 中兴通讯股份有限公司 Device-level redundancy protection method and system based on LACP

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090141622A1 (en) * 2007-12-03 2009-06-04 Verizon Serivices Organization Inc. Pinning and protection on link aggregation groups
CN101399737A (en) * 2008-10-21 2009-04-01 中兴通讯股份有限公司 Protection method and apparatus used for link convergence group of loop Ethernet
CN101984606A (en) * 2010-11-15 2011-03-09 中兴通讯股份有限公司 Device-level redundancy protection method and system based on LACP

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014063571A1 (en) * 2012-10-24 2014-05-01 中兴通讯股份有限公司 Distributed link aggregation group service handover method and device
US9716651B2 (en) 2012-10-24 2017-07-25 Zte Corporation Distributed link aggregation group service handover method and device
CN110875824A (en) * 2018-08-30 2020-03-10 华为技术有限公司 A faulty multilayer link recovery method and controller
CN110875824B (en) * 2018-08-30 2023-10-13 华为技术有限公司 Fault multi-layer link recovery method and controller
CN119544598A (en) * 2024-11-25 2025-02-28 中国农业银行股份有限公司 Method, device, equipment and system for preventing loops in cross-device link aggregation groups

Also Published As

Publication number Publication date
CN102208999B (en) 2017-06-06

Similar Documents

Publication Publication Date Title
CN101127653B (en) Ethernet loop device with backup and implementation method for master device backup
CN101001192B (en) A ring network link protection method, system and equipment
US8208369B2 (en) Ethernet ring system and a master node and an initialization method thereof
CN101127674B (en) Initialization method for transmission nodes of Ethernet loop network system
CN100499505C (en) An Ethernet protection method and apparatus
CN105324959B (en) Communication system, communication device and guard method
CN100440817C (en) A Method for Detecting Single-Pass Faults in Ring Networks
CN101247306A (en) Edge port blocking method in Ethernet ring network, Ethernet ring network system and equipment
CN1997034A (en) A method and system for protection of the link convergence group
WO2010045832A1 (en) Method and apparatus for protecting link aggregation group of ethernet ring
WO2008089701A1 (en) Method, device and system for ring protection
CN101227371B (en) Method and apparatus of backup switch among same level switch equipments
CN101094190B (en) Method for transmitting protective controlled message in Ethernet ring net
EP2023541B1 (en) Method, device and communication system to avoid loops in an Ethernet Ring System with an underlying 802.3ad network
CN101141333A (en) Ethernet system host node slave port fault processing method
CN102148694A (en) Linear 1-to-N protection method, device and system for packet transport network
WO2010031295A1 (en) Control method for ethernet failure recovery
CN101222402B (en) Ethernet ring protection method, system and device
WO2015196676A1 (en) Networking protection method and device, and main convergence network element in networking
CN103973479A (en) Method and apparatus for interworking protection switching
CN101184013B (en) Method for preventing generation of loop, host node and system
WO2013049981A1 (en) Hybrid ring network protection method and system based on shared path
CN102208999B (en) The guard method of ethernet ring network link aggregation group and device
CN102025584A (en) G.8032-based ring network protecting method and system
CN101557333A (en) Processing method of loop fault in dual-homing networking and node device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170606