CN102684914B - Method and system for achieving bridge interface linkage - Google Patents

Method and system for achieving bridge interface linkage Download PDF

Info

Publication number
CN102684914B
CN102684914B CN 201210122174 CN201210122174A CN102684914B CN 102684914 B CN102684914 B CN 102684914B CN 201210122174 CN201210122174 CN 201210122174 CN 201210122174 A CN201210122174 A CN 201210122174A CN 102684914 B CN102684914 B CN 102684914B
Authority
CN
China
Prior art keywords
bridge
interface
current
step
sub
Prior art date
Application number
CN 201210122174
Other languages
Chinese (zh)
Other versions
CN102684914A (en
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 CN 201210122174 priority Critical patent/CN102684914B/en
Publication of CN102684914A publication Critical patent/CN102684914A/en
Application granted granted Critical
Publication of CN102684914B publication Critical patent/CN102684914B/en

Links

Abstract

本发明公开了一种网桥接口联动的实现方法及系统,涉及网络通信技术领域,所述方法包括以下步骤:S1:在当前网桥的子接口出现了down状态时,判断所述当前网桥是否启动了接口联动;S2:若是,则执行步骤S3,否则执行步骤S4;S3:进行接口联动处理过程,返回步骤S1;S4:将mac地址表中出现了down状态的子接口对应的mac地址表项清除,返回步骤S1。 The present invention discloses a method and system for implementing an interface bridge linkage, relates to network communication technologies, said method comprising the steps of: S1: When the interface goes down state in the current sub-bridge, the bridge determines the current whether to activate the interface association; S2: if yes, execute step S3, the otherwise step S4; S3: interfacing linkage process returns to step S1; S4: the emergence of the sub-interfaces corresponding to the down state mac address mac address table clear entry returns to step S1. 本发明在网桥的子接口的链路状态出现异常时,通过接口联动处理过程,能够尽快的让动态路由发现异常,让其它路径代替故障路径。 The present invention is an abnormality occurs in the link state of the bridge sub-interface, through the interface association process, as soon as possible to make the dynamic routing abnormal, so that instead of the failed path other paths.

Description

网桥接口联动的实现方法及系统 Method and system bridge interface linkage

技术领域 FIELD

[0001] 本发明涉及网络通信技术领域,特别涉及一种网桥接口联动的实现方法及系统。 [0001] The present invention relates to network communication technology field, and particularly relates to a method and system implement linkage bridge interface.

背景技术 Background technique

[0002] 网桥用于将至少两个相似的网络连接起来,并对网络数据的流通进行管理。 [0002] at least two similar bridges for connecting networks, and manage the flow of network data. 它工作于数据链路层,不但能扩展网络的距离或范围,而且可提高网络的性能、可靠性和安全性。 It works in the data link layer, not only to extend the distance or range of the network, but also can improve network performance, reliability and security. 当网络I和网络2通过网桥连接后,网桥接收网络I发送的数据包,检查数据包中的地址,如果地址属于网络1,它就将其放弃,相反,如果是网络2的地址,它就继续发送给网络2。 When the packet network I and the network 2 via the bridge connection, a network bridge receives I sent an address check packet, if the address belonging to the network 1, to abandon it, on the contrary, if the network address is 2, it continues to send to the network 2. 这样可利用网桥隔离信息,将同一个网络号划分成多个网段(属于同一个网络号),隔离出安全网段,防止其它网段内的用户非法访问。 Such information can be used isolated bridge, be divided into multiple segments (belonging to the same network number) with a network number, a safety spacer segment, the other network segment to prevent unauthorized access to the user. 由于网络的分段,各网段相对独立(属于同一个网络号),一个网段的故障不会影响到另一个网段的运行。 Since the network segment, each segment independent (belonging to the same network number), a network failure does not affect the operation of another segment.

[0003] 参照图1,假设所述网络I和网络2分别与同一个网桥(透明桥)上的2个子接口g0/0和gO/Ι连接。 [0003] Referring to FIG. 1, assuming that the network I and 2 are connected to the network on the same bridge (transparent bridge) 2 subinterface g0 / 0 and gO / Ι. 当网络I和网络2要与外部网络发生数据交互时,需要先通过桥接口,也就是说在3层交互上,外部网络并不知道子接口g0/0和gO/Ι的存在,只是与桥接口在进行数据交互。 When 2 to interact with the external data network and network I network, through the need to bridge interface, i.e. in the interaction layer 3, the external network does not know the presence of the sub-interface g0 / 0 and gO / Ι, but with the bridge making data exchange interfaces. 假设子接口g0/0的链路状态出现了异常(比如接口故障、网线故障等等),处于down状态,外部网络并不能感知到这事件,报文依然会被发送到桥接口,但实际上此时网桥已经出现了故障。 Assuming that the sub-interface link state g0 / 0 appeared abnormal (such as interface failures, cable faults, etc.), is down, the external network can not perceive this event, the message will still be sent to the bridge interface, but in fact At this time, the bridge has malfunctioned. 如果不采取措施的话,则链路备份、双机热备及生成树协议(Spanning Tree Protocol, STP)等就都无法发挥真正的作用。 If nothing is done, then link back up, hot standby and Spanning Tree Protocol (Spanning Tree Protocol, STP) and so it can not play a real role.

发明内容 SUMMARY

[0004]( 一)要解决的技术问题 [0004] (a) To solve technical problems

[0005] 本发明要解决的技术问题是:如何在网桥的子接口的链路状态出现异常时,尽快让动态路由发现异常,让其它路径代替故障路径。 [0005] The present invention to solve the technical problem is: How abnormal state in the link bridge sub-interfaces, as soon as possible to make dynamic routing abnormal, so that other path instead of the failed path.

[0006] ( 二)技术方案 [0006] (ii) Technical Solution

[0007] 为解决上述技术问题,本发明提供了一种网桥接口联动的实现方法,所述方法包括以下步骤: [0007] In order to solve the above technical problem, the present invention provides a method for implementing a bridge interface linkage, said method comprising the steps of:

[0008] S1:在当前网桥的子接口出现了down状态时,判断所述当前网桥是否启动了接口联动; [0008] S1: When the interface goes down state in the current sub-bridge, the bridge determines whether to start the current linkage interface;

[0009] S2:若是,则执行步骤S3,否则执行步骤S4 ; [0009] S2: If yes, execute step S3, a step S4 otherwise;

[0010] S3:进行接口联动处理过程,返回步骤SI ; [0010] S3: interfacing linkage process returns to step the SI;

[0011] S4:将mac地址表中出现了down状态的子接口对应的mac地址表项清除,返回步骤SI。 [0011] S4: the down state appears mac address table corresponding to the sub-interface mac address entry to clear, returns to the step SI.

[0012] 优选地,步骤S3中,所述接口联动处理过程进一步包括以下步骤: [0012] Preferably, the step S3, the interface association process further comprises the steps of:

[0013] S31:检查所述当前网桥的桥接口是否处于up状态,若是,则执行步骤S32 ; [0013] S31: checking the current interface is a bridge the bridge is up, if yes, executing step S32;

[0014] S32:检查所述当前网桥的当前子接口是否处于down状态,若是,则执行步骤S33,否则执行步骤S34 ; [0014] S32: checking the current bridge current sub-interfaces in the down state, if yes, performing step S33, the step S34 otherwise;

[0015] S33:将所述当前网桥的所有子接口和网桥口均置于down状态,并删除所述mac地址表中所述当前网桥的所有子接口和网桥口所对应的mac地址表项,返回步骤SI ; [0015] S33: the current bridge and bridge all sub port interfaces are placed down state, and deleting the mac address table of the current bridge and all sub-interfaces corresponding bridge port mac address entry, the step returns the SI;

[0016] S34:判断所述当前网桥的所有子接口是否均进行了检查,若是,则返回步骤SI,否则将所述当前网桥上未被检查过的子接口作为所述当前子接口,返回步骤S32。 [0016] S34: Analyzing all sub-interface on the bridge of the current were carried out to check whether, and if so, returns to step SI, otherwise the current bridge on the sub-interface is not checked as the current sub-interfaces, returns to step S32.

[0017] 优选地,步骤S31中,所述当前网桥的桥接口不处于up状态时,则执行以下步骤: When [0017] Preferably, in step S31, the bridge interface is not currently bridge is up, perform the following steps:

[0018] S35:检查所述当前网桥的当前子接口是否处于up状态,若是,则对所述当前网桥的其它子接口进行处理,执行步骤S36,否则执行步骤S38 ; [0018] S35: checking the current bridge current sub-interface is in the up state, if yes, to the other sub-processing of the current bridge interfaces, performing step S36, the step S38 otherwise;

[0019] S36:检查所述当前网桥的其它子接口是否均处于up状态,若是,则对所述当前网桥的桥接口进行处理,以使得所述当前网桥的桥接口处于up状态,返回步骤SI,否则执行步骤S37 ; [0019] S36: checking the other sub-interface on the bridge current if the average is up, if yes, the current bridge bridge interface process, such that the current bridge is a bridge interface is up, returns to step SI, otherwise step S37;

[0020] S37:将所述当前网桥的所有子接口均置为down状态,返回步骤SI ; [0020] S37: All the current bridge sub-interfaces are set to the down state, the SI returns to step;

[0021] S38:判断所述当前网桥的所有子接口是否均进行了检查,若是,则返回步骤SI,否则将所述当前网桥上未被检查过的子接口作为所述当前子接口,返回步骤S35。 [0021] S38: Analyzing all sub-interface on the bridge of the current were carried out to check whether, and if so, returns to step SI, otherwise the current bridge on the sub-interface is not checked as the current sub-interfaces, returns to step S35.

[0022] 优选地,步骤S36和步骤S37之间还包括以下步骤: [0022] Preferably, between step S36 and step S37 further comprises the step of:

[0023] S361:判断是否超过了预设时间,若是,则执行步骤S37,否则返回步骤S36。 [0023] S361: determine whether exceeds a preset time, and if so, to step S37, otherwise it returns to step S36.

[0024] 本发明还公开了一种网桥接口联动的实现系统,所述系统包括: [0024] The present invention also discloses a linkage system for implementing the bridge interface, the system comprising:

[0025] 判断模块,用于在当前网桥的子接口出现了down状态时,判断所述当前网桥是否启动了接口联动; When the [0025] determination module, an interface for the down state appears in the current sub-bridge, the bridge determines whether to start the current linkage interface;

[0026] 选择执行模块,用于若是,则执行处理模块,否则执行清除模块; [0026] The selection execution module, if used, the processing module is executed, otherwise clearing module;

[0027] 处理模块,用于进行接口联动处理过程,返回判断模块; [0027] The processing module, for performing processing associated with an interface, returns to the decision module;

[0028] 清除模块,用于将mac地址表中出现了down状态的子接口对应的mac地址表项清除,返回判断模块。 [0028] clearing module, for the emergence of the sub-mac address entries cleared down state of the interface corresponding to the mac address table, determining module returns.

[0029](三)有益效果 [0029] (c) beneficial effect

[0030] 本发明在网桥的子接口的链路状态出现异常时,通过接口联动处理过程,能够尽快的让动态路由发现异常,让其它路径代替故障路径。 [0030] The present invention, when an abnormality occurs in the link state of the bridge sub-interface, through the interface association process, as soon as possible to make the dynamic routing abnormal, so that instead of the failed path other paths.

附图说明 BRIEF DESCRIPTION

[0031] 图1是具有两个子接口的网桥的结构不意图; [0031] FIG. 1 is a structural bridge having two sub-interfaces are not intended;

[0032] 图2是按照本发明一种实施方式的网桥接口联动的实现方法的流程图; [0032] FIG 2 is a flowchart of a method implemented according to an embodiment of interlocking bridge interface embodiment of the present invention;

[0033] 图3是按照本发明一种实施例的网桥接口联动的实现方法的流程图。 [0033] FIG. 3 is a flowchart of a method according to implement the bridge interface linkage to an embodiment of the present invention.

具体实施方式 Detailed ways

[0034] 下面结合附图和实施例,对本发明的具体实施方式作进一步详细描述。 [0034] The following embodiments and the accompanying drawings, specific embodiments of the present invention will be further described in detail. 以下实施例用于说明本发明,但不用来限制本发明的范围。 The following examples serve to illustrate the present invention but are not intended to limit the scope of the present invention.

[0035] 图2是按照本发明一种实施方式的网桥接口联动的实现方法的流程图;参照图2,本实施方式的方法包括以下步骤: [0035] FIG 2 is a flowchart of a method implemented according to an embodiment of interlocking bridge interface embodiment of the present invention; 2, the method according to the present embodiment with reference to FIG embodiment comprises the steps of:

[0036] S1:在当前网桥的子接口出现了down状态(此处的down状态为物理down状态,所述物理down状态指设备端口无连线,或有连线但连线是断开的,例如连线的对端无连接设备或连线断了)时,判断所述当前网桥是否启动了接口联动; [0036] S1: In the current sub-interface bridge appeared down state (down state here as physical down, down state of the physical device port means no connection, or the connection is disconnected but connection , for example, when no wired connection device for an end connection or broken), it is determined whether to start the current bridge linkage interface;

[0037] S2:若是,则执行步骤S3,否则执行步骤S4 ; [0037] S2: If yes, execute step S3, a step S4 otherwise;

[0038] S3:进行接口联动处理过程,返回步骤SI ; [0038] S3: interfacing linkage process returns to step the SI;

[0039] S4:将mac地址表中出现了down状态的子接口对应的mac地址表项清除,返回步骤SI。 [0039] S4: the down state appears mac address table corresponding to the sub-interface mac address entry to clear, returns to the step SI.

[0040] 端口联动要做的就是尽快让动态路由发现异常,并更新路由表,让其它路径代替故障路径。 [0040] port interlock to do is to make dynamic routing abnormal as soon as possible, and update the routing table, so that other path instead of the failed path. 以图1所示的网桥为例,当检测到子接口g0/0出现down状态(此处的down状态为物理down状态)时,就把网桥上的其它所有子接口都down (此处的down状态为逻辑down状态,所述逻辑down状态指强制下电)掉,同时把网桥口也down (此处的down状态为逻辑down状态)掉。 In the bridge shown in Figure 1 as an example, when detecting a sub-interface g0 / 0 appears down state (down state here as physical down state), put all the other sub-interface on the bridge are down (here down down state to a logic state, the logic means to force the power down state) off, while the bridge port is also down (down to a logic state here down state) off. 这样动态路由就会发现异常并更新,网络有望尽快恢复,优选地,步骤S3中,所述接口联动处理过程进一步包括以下步骤: Such abnormal and dynamic routing will update, the network is expected to resume as soon as possible, preferably, the step S3, the interface association process further comprises the steps of:

[0041] S31:检查所述当前网桥的桥接口是否处于up状态(此处的up状态为物理up状态,所述物理up状态指设备端口正常连接),若是,则执行步骤S32 ; [0041] S31: checking whether the current bridge bridge interface is up (up up state as physical state here, refers to the physical state of the device up normally connected port), if yes, executing step S32;

[0042] S32:检查所述当前网桥的当前子接口是否处于down状态(此处的down状态为物理down状态),若是,则执行步骤S33,否则执行步骤S34 ; [0042] S32: checking a current of the current sub-interface is a bridge is down (down state here as physical down state), if yes, performing step S33, the step S34 otherwise;

[0043] S33:将所述当前网桥的所有子接口和网桥口均置于down状态(此处的down状态为逻辑down状态),并删除所述mac地址表中所述当前网桥的所有子接口和网桥口所对应的mac地址表项,返回步骤SI ; [0043] S33: the current bridge and bridge all sub port interfaces are placed in the down state (down state is a logic here down state), and deleting the mac address table of the current bridges All sub-interfaces, and the bridge port corresponding to the mac address table entry, is returned to step the SI;

[0044] S34:判断所述当前网桥的所有子接口是否均进行了检查,若是,则返回步骤SI,否则将所述当前网桥上未被检查过的子接口作为所述当前子接口,返回步骤S32。 [0044] S34: Analyzing all sub-interface on the bridge of the current were carried out to check whether, and if so, returns to step SI, otherwise the current bridge on the sub-interface is not checked as the current sub-interfaces, returns to step S32.

[0045] 当处于down状态(此处的down状态为物理down状态)的子接口的状态变为up状态(此处的UP状态为物理up状态)时,就需要尝试将桥下的其他所有接口置为UP状态(此处的UP状态为逻辑UP状态)。 [0045] When the state is down (down state here as physical down state) of the sub-interface becomes up (UP state up here as physical state), it is necessary to try all the other interfaces of the bridge state to UP (UP UP state here a logic state). 当故障被排除以后,之前发生异常的子接口有可能再次变为UP状态(此处的up状态为物理up状态),此时应该尝试让网桥下的子接口都重新处于UP状态(此处的up状态为物理up状态)。 When the fault is removed, the sub-interface exception occurs before there is likely to become UP state again (up to state here up physical state), then it should try to get under the bridge sub-interfaces are re-UP state (here the up state physics up state). 如果都能够处于up状态(此处的up状态为物理UP状态),说明整个网桥已经可以正常工作了,此时再将网桥口也置为UP状态(此处的UP状态为物理UP状态),否则如果有子接口的状态不能处于UP状态(此处的UP状态为物理up状态),则网桥下的所有接口均被置为down状态(此处的down状态为逻辑down状态),此时网桥口依然为down状态(此处的down状态为物理down状态),优选地,步骤S31中,所述当前网桥的桥接口不处于up状态时,则执行以下步骤: If the can is up (up to the physical state of the UP state here), have described the entire bridge can work normally, then this case is also the bridge port state to UP (UP UP state here is the physical state ), or if there is not sub-interface state is uP (uP state up here as physical state), all the interfaces in the bridge are set down state (down state down to a logic state here), in this case the bridge port is still down state (down state here as physical down state), preferably in step S31, the current bridge when the bridge is not the interface is up, perform the following steps:

[0046] S35:检查所述当前网桥的当前子接口是否处于up状态(此处的up状态为物理up状态),若是,则对所述当前网桥的其它子接口进行处理,尝试将当前网桥的其它子接口均置于up状态(此处的up状态为逻辑up状态,所述逻辑up状态指通过命令行等方式进行强制上电),执行步骤S36,否则执行步骤S38 ; [0046] S35: checking whether the current interface is the bridge current sub up state (up state up here as physical state), if yes, to the other sub-processing of the current bridge interfaces, the current attempts other sub-interface are placed in the bridge up state (up state here a logic up state, the logic state refers forced up power command line, etc.), performing step S36, the step S38 otherwise;

[0047] S36:检查所述当前网桥的其它子接口是否均处于up状态(此处的up状态为物理UP状态),若是,则对所述当前网桥的桥接口进行处理,以使得所述当前网桥的桥接口处于up状态(此处的up状态为物理up状态),返回步骤SI,否则执行步骤S37 ; [0047] S36: checking the current bridges whether other sub-interfaces are in the up state (up state here as physical UP state), if yes, the current bridge bridge interface are processed such that the current bridge said bridge interface is up (up to the physical state here up state), the step returns the SI, otherwise step S37;

[0048] S37:将所述当前网桥的所有子接口均置为down状态(此处的down状态为逻辑down状态),返回步骤SI ; [0048] S37: All the current bridge sub-interfaces are set to the down state (down state is a logic here down state), the step returns the SI;

[0049] S38:判断所述当前网桥的所有子接口是否均进行了检查,若是,则返回步骤SI,否则将所述当前网桥上未被检查过的子接口作为所述当前子接口,返回步骤S35。 [0049] S38: Analyzing all sub-interface on the bridge of the current were carried out to check whether, and if so, returns to step SI, otherwise the current bridge on the sub-interface is not checked as the current sub-interfaces, returns to step S35.

[0050] 为保证一定的处理时间,优选地,步骤S36和步骤S37之间还包括以下步骤: [0050] In order to ensure a certain processing time, preferably between step S36 and step S37 further comprises the step of:

[0051] S361:判断是否超过了预设时间,若是,则执行步骤S37,否则返回步骤S36。 [0051] S361: determine whether exceeds a preset time, and if so, to step S37, otherwise it returns to step S36.

[0052] 实施例 [0052] Example

[0053] 图3是按照本发明一种实施例的网桥接口联动的实现方法的流程图;参照图3,本实施例中,处理流程与上述实施方式基本相同,不同之处在于:所述预设时间为10秒;S4返回步骤SI之前、步骤S34返回步骤SI之前及S38返回步骤SI之前均进行了I秒的休眠。 [0053] FIG. 3 is a flowchart of a method according to implement the bridge interface linkage to an embodiment of the present invention; FIG. 3, in this embodiment, the processing flow of the above embodiment is basically the same, except that: said the predetermined time is 10 seconds; SI before returning to step S4, step S34 returns I were carried out prior to the step SI seconds before sleep returns to step S38 and SI.

[0054] 本发明还公开了一种网桥接口联动的实现系统,所述系统包括: [0054] The present invention also discloses a linkage system for implementing the bridge interface, the system comprising:

[0055] 判断模块,用于在当前网桥的子接口出现了down状态时,判断所述当前网桥是否启动了接口联动; When the [0055] determination module, an interface for the down state appears in the current sub-bridge, the bridge determines whether to start the current linkage interface;

[0056] 选择执行模块,用于若是,则执行处理模块,否则执行清除模块; [0056] The selection execution module, if used, the processing module is executed, otherwise clearing module;

[0057] 处理模块,用于进行接口联动处理过程,返回判断模块; [0057] The processing module, an interface for linkage process, returns to the decision module;

[0058] 清除模块,用于将mac地址表中出现了down状态的子接口对应的mac地址表项清除,返回判断模块。 [0058] clearing module, for the emergence of the sub-mac address entries cleared down state of the interface corresponding to the mac address table, determining module returns.

[0059] 以上实施方式仅用于说明本发明,而并非对本发明的限制,有关技术领域的普通技术人员,在不脱离本发明的精神和范围的情况下,还可以做出各种变化和变型,因此所有等同的技术方案也属于本发明的范畴,本发明的专利保护范围应由权利要求限定。 [0059] The above embodiments are merely illustrative of the present invention, and are not restrictive of the invention, relating to ordinary skill in the art, without departing from the spirit and scope of the present invention, can make various changes and modifications , all equivalent technical solutions also within the scope of the present invention, the scope of the present invention patent is defined by the appended claims.

Claims (4)

1.一种网桥接口联动的实现方法,其特征在于,所述方法包括以下步骤: 51:在当前网桥的子接口出现了down状态时,判断所述当前网桥是否启动了接口联动; 52:若是,则执行步骤S3,否则执行步骤S4 ; 53:进行接口联动处理过程,返回步骤SI ; 54:将mac地址表中出现了down状态的子接口对应的mac地址表项清除,返回步骤SI ; 其中,步骤S3中,所述接口联动处理过程进一步包括以下步骤: 531:检查所述当前网桥的桥接口是否处于up状态,若是,则执行步骤S32 ; 532:检查所述当前网桥的当前子接口是否处于down状态,若是,则执行步骤S33,否则执行步骤S34 ; 533:将所述当前网桥的所有子接口和网桥口均置于down状态,并删除所述mac地址表中所述当前网桥的所有子接口和网桥口所对应的mac地址表项,返回步骤SI ; S34:判断所述当前网桥的所有子接口是否均进行了检查 A bridge interface implementation linkage, characterized in that the method comprises the steps of: 51: interface goes down state in the current sub-bridge, the bridge determines whether to start the current linkage interface; 52: if yes, step S3, the otherwise step S4; 53: interfacing linkage process returns to step SI; 54: appears sub-interfaces corresponding to the down state mac address entry to clear mac address table returns to step the SI; wherein the step S3, the interface association process further comprising the step of: 531: the current bridge interface checking whether the bridge is up, if yes, step S32; 532: checking the current bridge whether the current sub-interface is down, if yes, performing step S33, the otherwise step S34; 533: All the current bridge and a bridge port sub-interfaces are placed in the down state, and deleting the mac address table in all of the current bridges and bridge sub-interfaces mac address port corresponding entry returns to step SI; S34: determining whether the current sub-interfaces to all bridges have been checked whether 若是,则返回步骤SI,否则将所述当前网桥上未被检查过的子接口作为所述当前子接口,返回步骤S32。 If, in step SI is returned, otherwise the current bridge on the sub-interface is not checked as the current sub-interface, returns to step S32.
2.如权利要求1所述的方法,其特征在于,步骤S31中,所述当前网桥的桥接口不处于up状态时,则执行以下步骤: S35:检查所述当前网桥的当前子接口是否处于up状态,若是,则对所述当前网桥的其它子接口进行处理,执行步骤S36,否则执行步骤S38 ; 536:检查所述当前网桥的其它子接口是否均处于up状态,若是,则对所述当前网桥的桥接口进行处理,以使得所述当前网桥的桥接口处于up状态,返回步骤SI,否则执行步骤S37 ; 537:将所述当前网桥的所有子接口均置为down状态,返回步骤SI ; S38:判断所述当前网桥的所有子接口是否均进行了检查,若是,则返回步骤SI,否则将所述当前网桥上未被检查过的子接口作为所述当前子接口,返回步骤S35。 2. The method according to claim 1, characterized in that, in step S31, the bridge interface is not currently bridge is up, perform the following steps: S35: checking a current of the current bridge subinterface is in the up state, if yes, to the other sub-processing of the current bridge interfaces, performing step S36, the otherwise step S38; 536: check the current bridges are the other sub-interface is in the up state, and if so, then the bridge bridges the interface of the current processing, so that the bridges bridge the current interface is up, returns to step the SI, otherwise step S37; 537: all sub-interfaces are set to the current bridge is down, the process returns to step SI; S38: determining whether the current sub-interfaces to all bridges were carried out to check whether, and if so, returns to step SI, otherwise the current bridge on the sub-interface is not checked as the said current sub-interface, returns to step S35.
3.如权利要求2所述的方法,其特征在于,步骤S36和步骤S37之间还包括以下步骤: S361:判断是否超过了预设时间,若是,则执行步骤S37,否则返回步骤S36。 The method according to claim 2, wherein step further comprises the step S36 and S37 between steps: S361: determining whether more than a preset time, if yes, step S37, otherwise returns to step S36.
4.一种网桥接口联动的实现系统,其特征在于,所述系统包括: 判断模块,用于在当前网桥的子接口出现了down状态时,判断所述当前网桥是否启动了接口联动; 选择执行模块,用于若是,则执行处理模块,否则执行清除模块; 处理模块,用于进行接口联动处理过程,返回判断模块; 清除模块,用于将mac地址表中出现了down状态的子接口对应的mac地址表项清除,返回判断模块; 其中,所述处理模块通过执行以下步骤进行接口联动处理过程: 531:检查所述当前网桥的桥接口是否处于up状态,若是,则执行步骤S32 ; 532:检查所述当前网桥的当前子接口是否处于down状态,若是,则执行步骤S33,否则执行步骤S34 ; 533:将所述当前网桥的所有子接口和网桥口均置于down状态,并删除所述mac地址表中所述当前网桥的所有子接口和网桥口所对应的mac地址表项; S34:判断 A linkage system for implementing the bridge interface, characterized in that, the system comprising: a determining module, is used for the interface goes down state in the current sub-bridge, the bridge determines whether to start the current linkage interface ; selecting execution module, if used, the processing module is executed, otherwise clearing module; a processing module, an interface for linkage process, returns to the decision module; clearing module, for the down state appears mac address of the sub-table mac address corresponding to the interface entry to clear, returns to the decision module; wherein the processing module interface association process by performing the following steps: 531: bridge interface checks whether the current bridge is up, if yes, perform step S32; 532: check whether the current bridge current sub-interfaces are down, if yes, performing step S33, the otherwise step S34; 533: All the current bridge and a bridge sub-interface are placed in the mouth down state, and deleting the mac address mac address table entries for all the sub-interface and the bridge port corresponding to the current bridge; S34: Analyzing 所述当前网桥的所有子接口是否均进行了检查,否则将所述当前网桥上未被检查过的子接口作为所述当前子接口,返回步骤S32。 All the current sub-bridge interface were carried out to check whether, otherwise the current bridge has not been checked on the sub-interface sub-interface as the current returns to step S32.
CN 201210122174 2012-04-23 2012-04-23 Method and system for achieving bridge interface linkage CN102684914B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210122174 CN102684914B (en) 2012-04-23 2012-04-23 Method and system for achieving bridge interface linkage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210122174 CN102684914B (en) 2012-04-23 2012-04-23 Method and system for achieving bridge interface linkage

Publications (2)

Publication Number Publication Date
CN102684914A CN102684914A (en) 2012-09-19
CN102684914B true CN102684914B (en) 2014-12-10

Family

ID=46816309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210122174 CN102684914B (en) 2012-04-23 2012-04-23 Method and system for achieving bridge interface linkage

Country Status (1)

Country Link
CN (1) CN102684914B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866922A (en) * 2006-02-10 2006-11-22 华为技术有限公司 Control system and data message transmission method in Ethernet
CN101151853A (en) * 2005-05-31 2008-03-26 思科技术公司 A spanning-tree protocol for wireless networks
WO2010135392A1 (en) * 2009-05-20 2010-11-25 Verizon Patent And Licensing, Inc. Automatic protection switching of virtual connections

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101151853A (en) * 2005-05-31 2008-03-26 思科技术公司 A spanning-tree protocol for wireless networks
CN1866922A (en) * 2006-02-10 2006-11-22 华为技术有限公司 Control system and data message transmission method in Ethernet
WO2010135392A1 (en) * 2009-05-20 2010-11-25 Verizon Patent And Licensing, Inc. Automatic protection switching of virtual connections

Also Published As

Publication number Publication date
CN102684914A (en) 2012-09-19

Similar Documents

Publication Publication Date Title
US9106528B2 (en) Link aggregation protection
CN101478434B (en) Method for configuring stacking port and exchange equipment
CN1859811B (en) Passive optical network system and its service protective method
JP5508289B2 (en) Network recovery system and method of the multi-link failures
CN101072125B (en) Cluster structure and the control unit
US20060206602A1 (en) Network switch link failover in a redundant switch configuration
CN101431449B (en) Network flux cleaning system
US8295160B2 (en) Data communication system, device and method of detecting a failure on an access line in a network
CN104871131A (en) Deploying hardware inventory as cloud-computing stamp
CN1756184A (en) Multiprotocol label switching network protection switching method
CN102752624B (en) TV remote fault diagnosis method, and system for TV
CN101908974B (en) Heat switching system and heat switching method of dual-redundant CAN bus
US20110016243A1 (en) Method and device of load-sharing in irf stack
US20060203715A1 (en) Method for redirection of virtual LAN network traffic
ES2459966T3 (en) Method, system and equipment to manage addresses in an Ethernet ring network
CN101447858B (en) Method for realizing synchronous switching of virtual router redundancy protocol in dual-machine hot backup system
CN101127653B (en) Ethernet loop device with backup and implementation method for master device backup
EP2204947A1 (en) Method and node device of ethernet failure detecting and converging
US8792330B2 (en) Hierarchical virtual private LAN service hub connectivity failure recovery
JP4835422B2 (en) Network device and communication system
US9602373B2 (en) Method, apparatus and system for dual-homing protection switching
CN1960376A (en) Automated network blocking method and system
CN103607297B (en) A method of troubleshooting computer cluster system
CN103346903B (en) A method and apparatus for dual-backup
CN1997034B (en) A method and system for protection of the link convergence group

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
CF01 Termination of patent right due to non-payment of annual fee