WO2016082609A1 - 一种介质访问控制mac地址选举的方法和装置 - Google Patents

一种介质访问控制mac地址选举的方法和装置 Download PDF

Info

Publication number
WO2016082609A1
WO2016082609A1 PCT/CN2015/090159 CN2015090159W WO2016082609A1 WO 2016082609 A1 WO2016082609 A1 WO 2016082609A1 CN 2015090159 W CN2015090159 W CN 2015090159W WO 2016082609 A1 WO2016082609 A1 WO 2016082609A1
Authority
WO
WIPO (PCT)
Prior art keywords
lag
mac address
chassis
interface
aggregation
Prior art date
Application number
PCT/CN2015/090159
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 RU2017122235A priority Critical patent/RU2675050C1/ru
Priority to MYPI2017000805A priority patent/MY194014A/en
Publication of WO2016082609A1 publication Critical patent/WO2016082609A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks

Definitions

  • the present invention relates to, but is not limited to, a network communication technology, and a method and device for MAC (Media Access Control) address election of an MC-LAG (Multi-Chassis Link Aggregation Group) .
  • MAC Media Access Control
  • MC-LAG Multi-Chassis Link Aggregation Group
  • IP networks have become an indispensable tool in people's daily work and life.
  • MAC address conflict For a network communication device such as an Ethernet switch, its system MAC address is assigned and set at the factory and the request is globally unique. It cannot be the same as the MAC address of other network nodes. Otherwise, MAC address conflict may be caused.
  • the common Ethernet switch device in the industry uses the system MAC address of the node directly for the MAC address of the MC-LAG interface.
  • the MC-LAG interface MAC address of the node 2 is the system MAC address of the node 2
  • the MAC address of the MC-LAG interface of the node 3 is the system MAC address of the node 3, which causes a problem that the MC-LAG interface MAC address of the different chassis of the same MC-LAG group is different.
  • the different aggregation links in the same MC-LAG inter-chassis link aggregation group will use different MAC addresses as the forwarded data frames.
  • the destination MAC address in the net header As shown in the example listed in FIG. 3, we configure the IP address 10.80.1.254 on the MC-LAG interface of node 2 and node 3 as the gateway IP address of the user connected to node 1.
  • the solution currently adopted in the industry is to deploy VRRP (Virtual Router Redundancy Protocol) on the MC-LAG interface of Node 2 and Node 3 to make the MC-LAG use the same VRRP virtual network.
  • the MAC address is used as the interface MAC address.
  • the program currently has the following defects:
  • VRRP is an additional overhead for the system's CPU and other resources.
  • a VRRP group must be enabled on each network segment. When an MC-LAG interface simultaneously carries traffic on multiple network segments, you need to enable the corresponding number of VRRPs.
  • Each VRRP group needs to occupy one real IP address and virtual IP address. This is a waste of IP address resources.
  • the embodiment of the invention provides a medium access control MAC address election method, which is applied to an inter-chassis link aggregation group MC-LAG, and the method includes:
  • the trigger condition is that the MC-LAG is initialized, or the MC-LAG is added/deleted. Except members.
  • determining the interface MAC address of the MC-LAG according to the predetermined election rule includes:
  • the system MAC address with the smallest value among the system MAC addresses of the multiple chassis is used as the interface MAC address of the MC-LAG.
  • the method further includes:
  • the method further includes:
  • the embodiment of the present invention further provides a device for controlling MAC address election of a medium access control, which is applied to an inter-chassis link aggregation group MC-LAG, where the device includes: a calculation module and an election module, where
  • a calculation module configured to perform aggregation calculation on the MC-LAG when a trigger condition is met
  • An election module is configured to acquire a system MAC address of each chassis in the MC-LAG when the aggregation calculation ends and the aggregation succeeds, and obtain a system MAC address from the MC-LAG multiple chassis according to a predetermined election rule.
  • the MAC address of the interface of the MC-LAG is determined in the address.
  • the trigger condition is that the MC-LAG is initialized, or the MC-LAG is added/deleted.
  • the election module is configured to acquire a system MAC address of each chassis in the MC-LAG when the aggregation calculation is successfully ended and the aggregation succeeds, and the system from the MC-LAG multiple chassis according to a predetermined election rule.
  • the MAC address of the interface that determines the MC-LAG in the MAC address refers to:
  • the system MAC address with the smallest value among the system MAC addresses of the multiple chassis is used as the interface MAC address of the MC-LAG.
  • the device further includes:
  • a communication module configured to send an ARP message to each network segment after the election module determines an interface MAC address of the MC-LAG according to a predetermined election rule, where the ARP message carries the MC- determined according to a predetermined election rule.
  • MAC address of the interface of the LAG
  • the device further includes:
  • the processing module is configured to wait for the MC-LAG new aggregation calculation when the aggregation calculation fails.
  • the above solution is based on the existing MC-LAG protocol to solve the problem that the MC-LAG interface MAC address of the different MC-LAGs in the same MC-LAG group is different.
  • the MC-LAG protocol packet is borrowed to implement the MC-LAG.
  • the MAC address of the interface is elected, so that the same MAC address can be selected for the MC-LAG interfaces of different chassis of the same MC-LAG group.
  • FIG. 1 is a schematic diagram of MC-LAG link switching
  • FIG. 2 is a schematic diagram of MAC address information of an MC-LAG interface in the prior art
  • FIG. 3 is a schematic diagram of MAC address information of an MC-LAG interface in a Layer 3 forwarding scenario of an MC-LAG cross-network segment in the prior art
  • FIG. 4 is a schematic diagram of MAC address information of an MC-LAG interface in a Layer 3 forwarding scenario of an MC-LAG cross-network segment according to an embodiment of the present disclosure
  • FIG. 5 is a flowchart of a method for MAC address election in Embodiment 1 of the present invention.
  • FIG. 6 is a flowchart of a method for MAC address election in Embodiment 2 of the present invention.
  • FIG. 7 is a schematic diagram of an apparatus for MAC address election in Embodiment 3 of the present invention.
  • the existing MC-LAG protocol periodically exchanges MC-LAG packets between the chassis that have been added to the MC-LAG aggregation group to complete the aggregation state update and maintenance of the link.
  • the protocol message is a standard Ethernet data frame structure.
  • the source MAC address in the Ethernet header is filled with the system MAC address of the sending node.
  • the MC-LAG aggregation group periodically exchanges MC-LAG packets.
  • the source MAC address in the Ethernet header is filled with the system MAC address of the node that sends the packet.
  • the MC-LAG aggregation group is in the MC-LAG aggregation group. After the calculation is complete and the aggregation is successful, the MAC address election of the MC-LAG interface is added.
  • a media access control MAC address election method is applied to an inter-chassis link aggregation group MC-LAG.
  • the process is as shown in FIG. 5, and the method includes:
  • Step 101 Perform aggregation calculation on the MC-LAG when the trigger condition is met.
  • Step 102 When the aggregation calculation is successfully completed and the aggregation is successful, the system MAC address of each chassis in the MC-LAG is obtained, and the system MAC address of the multiple frames of the MC-LAG is obtained according to a predetermined election rule. The MAC address of the interface of the MC-LAG is determined.
  • the above solution is based on the existing MC-LAG protocol to solve the problem that the MC-LAG interface MAC address of the different MC-LAGs in the same MC-LAG group is different.
  • the MC-LAG protocol packet is borrowed to implement the MC-LAG.
  • the MAC address of the interface is elected, so that the same MAC address can be selected for the MC-LAG interfaces of different chassis of the same MC-LAG group.
  • the initialization may be completed by MC-LAG, or the MC-LAG addition/deletion member is used as a trigger condition for performing aggregation calculation.
  • the system MAC address of each chassis in the MC-LAG is obtained from the protocol packet of the MC-LAG; and the value of the system MAC address of multiple chassis is The minimum system MAC address is used as the interface MAC address of the MC-LAG; or the system MAC address having the largest value among the system MAC addresses of the multiple chassis is used as the interface MAC address of the MC-LAG.
  • it may also include
  • Step 103 Send an ARP message to each network segment, where the ARP message carries the MAC address of the interface of the MC-LAG determined according to the predetermined election rule.
  • the MAC address of the MC-LAG interface may be selected as the MAC address of the MC-LAG interface.
  • the MC-LAG protocol itself is used to define the MAC address election rules of different MC-LAG interfaces. It is only necessary to ensure that all the chassis of the MC-LAG aggregation group elect the same MAC address as the MC-LAG interface MAC address. Just fine.
  • a method for media access control MAC address election includes:
  • Step 1-2 MC-LAG aggregation group initialization or MC-LAG aggregation group member leave/new member join triggers new aggregation calculation;
  • Step 3 After the MC-LAG aggregation calculation is completed, determine whether the aggregation is successful. If the aggregation is successful, Step 4 is performed. If the aggregation fails, go to step 7.
  • Step 4 Each chassis of the aggregation group extracts the system MAC of all member frames of the MC-LAG aggregation group from the MC-LAG protocol packet, and selects the MAC address of the MC-LAG interface with the smallest MAC value; or Select the MAC address with the largest MAC value as the MAC address of the MC-LAG interface.
  • the MAC election process is not performed, and the process directly jumps to the end state to wait for a new round of aggregation calculation process;
  • Step 5 After the MAC election process ends, determine whether the system has enabled the interface MAC change notification function. If the notification function is enabled, step 6 is performed; if the notification function is not enabled, step 7 is performed;
  • Step 6 The system sends gratuitous ARP from the Layer 3 interface where the MC-LAG is located. If there are multiple network segments, you need to send one for each network segment.
  • the purpose of sending the ARP is to quickly notify other nodes in the LAN that the MAC address of the Layer 3 interface where the MC-LAG is located has changed, so that other nodes in the LAN can quickly update the local ARP cache table.
  • Step 7 The election of this address ends, waiting for the conditions for triggering the next departure address election.
  • the embodiment of the present invention further provides a device for media access control MAC address election, which is applied to an inter-chassis link aggregation group MC-LAG, where the device includes:
  • the calculating module 11 is configured to perform aggregation calculation on the MC-LAG when the trigger condition is met;
  • the election module 12 is configured to determine an interface MAC address of the MC-LAG according to a predetermined election rule when the aggregation calculation is successful.
  • the triggering condition is that the MC-LAG completes initialization, or the MC-LAG adds/deletes a member.
  • the election module 12 is configured to determine, according to a predetermined election rule, the interface MAC address of the MC-LAG when the aggregation calculation is successful, that is:
  • the system MAC address with the smallest value among the system MAC addresses of the multiple chassis is used as the interface MAC address of the MC-LAG; or the system MAC address with the largest value among the system MAC addresses of the multiple chassis is used as the MC- MAC address of the interface of the LAG.
  • the device further includes:
  • the communication module 13 is configured to send an ARP message to each network segment after the election module 12 determines the interface MAC address of the MC-LAG according to a predetermined election rule, where the ARP message carries the determined according to a predetermined election rule.
  • MC-LAG interface MAC address is configured to send an ARP message to each network segment after the election module 12 determines the interface MAC address of the MC-LAG according to a predetermined election rule, where the ARP message carries the determined according to a predetermined election rule.
  • the device further includes:
  • the processing module 14 is configured to wait for the MC-LAG new aggregation calculation when the aggregation calculation fails.
  • the embodiment of the present invention further provides a computer readable storage medium, which stores program instructions, and when the program instructions are executed by the processor, implements a method for media access control MAC address election provided by the embodiment of the present invention.
  • the MC-LAG interface MAC address election is implemented by borrowing the existing MC-LAG protocol packets.
  • the same MAC address can be selected for the MC-LAG interfaces of different chassis in the same MC-LAG group. Compared with the existing VRRP scheme, there is no need to add other protocols to open, and no additional links need to be added.

Landscapes

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

Abstract

本发明实施例提供一种介质访问控制MAC地址选举的方法,应用于跨机框链路聚合组MC-LAG,所述方法包括:当满足触发条件时,对MC-LAG进行聚合计算;当聚合计算结束且聚合成功时,获取MC-LAG中每一个机框的系统MAC地址,按照预定的选举规则从MC-LAG多个机框的系统MAC地址中确定MC-LAG的接口MAC地址。

Description

一种介质访问控制MAC地址选举的方法和装置 技术领域
本发明涉及但不限于网络通信技术,具体设计一种MC-LAG(Multi-Chassis Link Aggregation Group,跨机框链路聚合组)的MAC(Media Access Control,介质访问控制)地址选举的方法和装置。
背景技术
随着因特网的高速发展,IP网络逐渐成为人们日常工作和生活中必不可少的工具。
在IP通信网络中,为了避免出现网络上行出口的单节点故障,我们可以选择部署MC-LAG跨机框链路聚合组来实现上行出口链路和节点的冗余备份。如附图1所示,我们在节点2和节点3之间部署MC-LAG把它们和节点1互联的两条链路捆绑到一个MC-LAG跨机框链路聚合组里,这样当出现譬如节点2宕机等单节点故障时,MC-LAG会自动把节点1的上行出口业务流量全部切换到节点3上。
对于一台以太网交换机等网络通信设备,它的系统MAC地址是在出厂前已分配设置好且要求是全球唯一,不能和其他网络节点的MAC地址相同,否则可能会引发MAC地址冲突问题。
目前业界常见的以太网交换机设备对于MC-LAG接口的MAC地址都是直接采用节点的系统MAC地址,如附图2所示,节点2的MC-LAG接口MAC地址是节点2的系统MAC地址、节点3的MC-LAG接口MAC地址是节点3的系统MAC地址,这就会出现同一个MC-LAG组的不同机框的MC-LAG接口MAC地址不一样的问题。
当MC-LAG被部署在跨网段的三层转发场景里时,对同一个MC-LAG跨机框链路聚合组内的不同聚合链路将会采用不同的MAC地址作为被转发数据帧以太网头部里的目的MAC地址。如附图3所列举的实例所示,我们在节点2和节点3的MC-LAG接口上配置IP地址10.80.1.254来作为节点1下挂用户的网关IP地址。这样当业务流量从左侧链路转发时,则业务流量的 数据帧以太网头部里的目的MAC地址字段将填写节点2的系统MAC地址;当业务流量从右侧链路转发时,则业务流量的数据帧以太网头部里的目的MAC地址字段将填写节点3的系统MAC地址。这将导致用户主机上的网关ARP(Address Resolution Protocol,地址解析协议)表项一直在反复变化和业务流量丢包的问题。
为了解决上述问题,目前业界通常采用的解决方案是在节点2和节点3的MC-LAG接口上部署VRRP(Virtual Router Redundancy Protocol,虚拟路由器冗余协议)来让MC-LAG都采用相同的VRRP虚拟MAC地址来作为接口MAC地址。但该方案目前存在如下几点缺陷:
1、该方案需要额外开启VRRP协议,VRRP对系统的CPU等资源是一种额外的开销。而且每个网段都要独立开启一个VRRP组,这样当一个MC-LAG接口同时承载多个网段业务流量时就需要开启相应数量的VRRP
2、每个VRRP组都需要占用1个实IP地址和虚IP地址,这对IP地址资源是一种浪费
3、需要在节点2和节点3之间为VRRP部署额外的心跳链路,这会额外增加网络建设成本和维护工作量。
发明内容
以下是对本文详细描述的主题的概述,本概述并非是为了限制权利要求的保护范围。
本发明实施例提供一种介质访问控制MAC地址选举的方法,应用于跨机框链路聚合组MC-LAG,所述方法包括:
当满足触发条件时,对所述MC-LAG进行聚合计算;
当所述聚合计算结束且聚合成功时,获取所述MC-LAG中每一个机框的系统MAC地址,按照预定的选举规则从所述MC-LAG多个机框的系统MAC地址中确定所述MC-LAG的接口MAC地址。
可选地,
所述触发条件为所述MC-LAG完成初始化,或者所述MC-LAG增加/删 除成员。
可选地,
获取所述MC-LAG中每一个机框的系统MAC地址,按照预定的选举规则从所述MC-LAG多个机框的系统MAC地址中确定所述MC-LAG的接口MAC地址当所述聚合计算成功时,按照预定的选举规则确定所述MC-LAG的接口MAC地址包括:
当所述聚合计算成功时,从所述MC-LAG的协议报文中获取所述MC-LAG每一个机框的系统MAC地址;
将多个机框的系统MAC地址中数值最小的系统MAC地址作为所述MC-LAG的接口MAC地址。
可选地,
所述按照预定的选举规则确定所述MC-LAG的接口MAC地址之后,还包括:
向每一个网段发送ARP消息,所述ARP消息携带所述按照预定选举规则确定的MC-LAG的接口MAC地址。
可选地,
所述对所述MC-LAG进行聚合计算之后,还包括:
当所述聚合计算失败时,则等待所述MC-LAG新的聚合计算。
本发明实施例还提供一种介质访问控制MAC地址选举的装置,应用于跨机框链路聚合组MC-LAG,所述装置包括:计算模块和选举模块,其中,
计算模块,设置为当满足触发条件时对所述MC-LAG进行聚合计算;
选举模块,设置为当所述聚合计算结束且聚合成功时,获取所述MC-LAG中每一个机框的系统MAC地址,按照预定的选举规则从所述MC-LAG多个机框的系统MAC地址中确定所述MC-LAG的接口MAC地址。
可选地,
所述触发条件为所述MC-LAG完成初始化,或者所述MC-LAG增加/删除成员。
可选地,
所述选举模块设置为当所述聚合计算成功结束且聚合成功时获取所述MC-LAG中每一个机框的系统MAC地址,按照预定的选举规则从所述MC-LAG多个机框的系统MAC地址中确定所述MC-LAG的接口MAC地址是指:
当所述聚合计算成功时,从所述MC-LAG的协议报文中获取所述MC-LAG中每一个机框的系统MAC地址;
将多个机框的系统MAC地址中数值最小的系统MAC地址作为所述MC-LAG的接口MAC地址。
可选地,所述装置还包括:
通信模块,设置为当所述选举模块按照预定的选举规则确定所述MC-LAG的接口MAC地址后,向各网段发送ARP消息,所述ARP消息携带所述按照预定选举规则确定的MC-LAG的接口MAC地址。
可选地,所述装置还包括:
处理模块,设置为当所述聚合计算失败时,则等待所述MC-LAG新的聚合计算。
上述方案基于已有的MC-LAG协议来解决同一个MC-LAG组的不同机框的MC-LAG接口MAC地址不一样的问题,通过借用已有的MC-LAG协议报文来实现MC-LAG接口MAC地址选举,从而实现对同一个MC-LAG组的不同机框的MC-LAG接口都能选用相同的MAC地址。相对目前已有的VRRP方案,无需额外增加开启其他协议,也无需额外增加新的链路。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1是MC-LAG链路切换示意图;
图2是现有技术中的MC-LAG接口MAC地址信息示意图;
图3是现有技术中的MC-LAG跨网段的三层转发场景的MC-LAG接口MAC地址信息示意图;
图4是本发明实施例中的MC-LAG跨网段的三层转发场景的MC-LAG接口MAC地址信息示意图;
图5是本发明实施例一中的MAC地址选举的方法的流程图;
图6是本发明实施例二中的MAC地址选举的方法的流程图;
图7是本发明实施例三中的MAC地址选举的装置的示意图。
本发明的较佳实施方式
为使本申请实施例的的目的、技术方案和优点更加清楚明白,下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
目前现有的MC-LAG协议会在已加入到该MC-LAG聚合组的各个机框之间周期性的交互MC-LAG协议报文来完成链路的聚合状态更新和维持,该MC-LAG协议报文是标准的以太网数据帧结构,以太网头部里的源MAC地址填充的是发送节点的系统MAC地址。MC-LAG聚合组的各个机框之间周期性的交互MC-LAG协议报文以太网头部里的源MAC地址填充的是发送该报文的节点的系统MAC地址,在MC-LAG聚合组的计算结束,且聚合成功后,增加一个MC-LAG接口的MAC地址选举环节。
实施例一
一种介质访问控制MAC地址选举的方法,应用于跨机框链路聚合组MC-LAG,其流程如图5所示,所述方法包括:
步骤101、当满足触发条件时,对所述MC-LAG进行聚合计算;
步骤102、当所述聚合计算成功结束且聚合成功时,获取所述MC-LAG中每一个机框的系统MAC地址,按照预定的选举规则从所述MC-LAG多个机框的系统MAC地址中确定所述MC-LAG的接口MAC地址。
上述方案基于已有的MC-LAG协议来解决同一个MC-LAG组的不同机框的MC-LAG接口MAC地址不一样的问题,通过借用已有的MC-LAG协议报文来实现MC-LAG接口MAC地址选举,从而实现对同一个MC-LAG组的不同机框的MC-LAG接口都能选用相同的MAC地址。相对目前已有的VRRP方案,无需额外增加开启其他协议,也无需额外增加新的链路。
在上述技术方案中,可以以MC-LAG完成初始化,或者MC-LAG增加/删除成员作为进行聚合计算的触发条件。
当所述聚合计算成功结束且聚合成功时,从所述MC-LAG的协议报文中获取所述MC-LAG中每一个机框的系统MAC地址;将多个机框的系统MAC地址中数值最小的系统MAC地址作为所述MC-LAG的接口MAC地址;或者,将多个机框的系统MAC地址中数值最大的系统MAC地址作为所述MC-LAG的接口MAC地址。
当所述聚合计算失败时,则等待MC-LAG新的聚合计算。
可选地,还可以包括
步骤103、向各网段发送ARP消息,所述ARP消息携带所述按照预定选举规则确定的MC-LAG的接口MAC地址。
需要说明的是,对于MC-LAG接口的MAC地址选举规则,可以采用选则机框系统MAC地址数值最小的来作为该MC-LAG接口的MAC地址,在其它的实施例中,也可以根据各自的MC-LAG协议本身的特征来定义不同的MC-LAG接口的MAC地址选举规则,只要确保MC-LAG聚合组的所有机框都是选举出同一个MAC地址来作为该MC-LAG接口MAC地址即可。
实施例二
如图4和图6所示,结合实施场景进一步说明本发明的技术方案,一种介质访问控制MAC地址选举的方法,包括:
步骤1-2:MC-LAG聚合组初始化或MC-LAG聚合组成员离开/新成员加入触发新的聚合计算;
步骤3:待MC-LAG聚合计算结束,判断聚合是否成功;若聚合成功, 执行步骤4,若聚合失败执行步骤7;
步骤4:该聚合组的每一个机框从MC-LAG协议报文里提取该MC-LAG聚合组所有成员机框的系统MAC,选择MAC数值最小的作为该MC-LAG接口MAC地址;或者,选择MAC数值最大的作为该MC-LAG接口MAC地址;
若聚合失败,则不进行MAC选举流程,直接跳转到结束状态等待新一轮的聚合计算过程;
步骤5:在MAC选举流程结束后,判断系统是否开启了接口MAC变更通知功能。如果开启该通知功能,则执行步骤6;如果未开启该通知功能,则执行步骤7;
步骤6:系统从该MC-LAG所在的三层接口发送免费ARP,若有多个网段则需要为每个网段都发送一份。
发送该ARP的目的是快速通知局域网内其他节点表明该MC-LAG所在的三层接口MAC地址已发生变化,使得局域网内其他节点能快速更新本地ARP缓存表。
步骤7:本次地址选举结束,等待触发下一次出发地址选举的条件。
实施例三
如图7所示,本发明实施例还提供一种介质访问控制MAC地址选举的装置,应用于跨机框链路聚合组MC-LAG,所述装置包括:
计算模块11,设置为当满足触发条件时对所述MC-LAG进行聚合计算;
选举模块12,设置为当所述聚合计算成功时,按照预定的选举规则确定所述MC-LAG的接口MAC地址。
可选地,所述触发条件为所述MC-LAG完成初始化,或者所述MC-LAG增加/删除成员。
可选地,
所述选举模块12设置为当所述聚合计算成功时按照预定的选举规则确定所述MC-LAG的接口MAC地址是指:
当所述聚合计算成功时,从所述MC-LAG的协议报文中获取所述MC-LAG每一个机框的系统MAC地址;
将多个机框的系统MAC地址中数值最小的系统MAC地址作为所述MC-LAG的接口MAC地址;或者,将多个机框的系统MAC地址中数值最大的系统MAC地址作为所述MC-LAG的接口MAC地址。
可选地地,所述装置还包括:
通信模块13,设置为当所述选举模块12按照预定的选举规则确定所述MC-LAG的接口MAC地址后,向各网段发送ARP消息,所述ARP消息携带所述按照预定选举规则确定的MC-LAG的接口MAC地址。
可选地,所述装置还包括:
处理模块14,设置为当所述聚合计算失败时,则等待所述MC-LAG新的聚合计算。
实施例四
本发明实施例还提供一种计算机可读存储介质,存储有程序指令,当该程序指令被处理器执行时实现本发明实施例所提供的一种介质访问控制MAC地址选举的方法。
以上所述仅为本发明的可选实施例,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现,相应地,上述实施例中的各模块/模块可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本申请不限制于任何特定形式的硬件和软件的结合。
工业实用性
通过借用已有的MC-LAG协议报文来实现MC-LAG接口MAC地址选举,从而实现对同一个MC-LAG组中的不同机框的MC-LAG接口都能选用相同的MAC地址。相对目前已有的VRRP方案,无需额外增加开启其他协议,也无需额外增加新的链路。

Claims (11)

  1. 一种介质访问控制MAC地址选举的方法,应用于跨机框链路聚合组MC-LAG,所述方法包括:
    当满足触发条件时,对所述MC-LAG进行聚合计算;
    当所述聚合计算结束且聚合成功时,获取所述MC-LAG中每一个机框的系统MAC地址,按照预定的选举规则从所述MC-LAG多个机框的系统MAC地址中确定所述MC-LAG的接口MAC地址。
  2. 如权利要求1所述的方法,其中,
    所述触发条件为所述MC-LAG完成初始化,或者所述MC-LAG增加/删除成员。
  3. 如权利要求2所述的方法,其中,
    获取所述MC-LAG中每一个机框的系统MAC地址,按照预定的选举规则从所述MC-LAG多个机框的系统MAC地址中确定所述MC-LAG的接口MAC地址包括:
    从所述MC-LAG的协议报文中获取所述MC-LAG中每一个机框的系统MAC地址;
    将多个机框的系统MAC地址中数值最小的系统MAC地址作为所述MC-LAG的接口MAC地址;或者,将多个机框的系统MAC地址中数值最大的系统MAC地址作为所述MC-LAG的接口MAC地址。
  4. 如权利要求3所述的方法,其中,
    按照预定的选举规则确定所述MC-LAG的接口MAC地址之后,所述方法还包括:
    向每一个网段发送地址解析协议ARP消息,所述ARP消息携带所述按照预定选举规则确定的MC-LAG的接口MAC地址。
  5. 如权利要求1至4任一所述的方法,其中,
    对所述MC-LAG进行聚合计算之后,所述方法还包括:
    当所述聚合计算失败时,则等待所述MC-LAG新的聚合计算。
  6. 一种介质访问控制MAC地址选举的装置,应用于跨机框链路聚合组 MC-LAG,所述装置包括:计算模块和选举模块,其中
    所述计算模块,设置为当满足触发条件时,对所述MC-LAG进行聚合计算;
    所述选举模块,设置为当所述聚合计算结束且聚合成功时,获取所述MC-LAG中每一个机框的系统MAC地址,按照预定的选举规则从所述MC-LAG多个机框的系统MAC地址中确定所述MC-LAG的接口MAC地址。
  7. 如权利要求6所述的装置,其中,
    所述触发条件为所述MC-LAG完成初始化,或者所述MC-LAG增加/删除成员。
  8. 如权利要求7所述的装置,其中,
    所述选举模块设置为获取所述MC-LAG中每一个机框的系统MAC地址,按照预定的选举规则从所述MC-LAG多个机框的系统MAC地址中确定所述MC-LAG的接口MAC地址是指:
    从所述MC-LAG的协议报文中获取所述MC-LAG中每一个机框的系统MAC地址;
    将多个机框的系统MAC地址中数值最小的系统MAC地址作为所述MC-LAG的接口MAC地址;或者,将多个机框的系统MAC地址中数值最大的系统MAC地址作为所述MC-LAG的接口MAC地址。
  9. 如权利要求8所述的装置,还包括:
    通信模块,设置为在所述选举模块按照预定的选举规则确定所述MC-LAG的接口MAC地址后,向每一个网段发送地址解析协议ARP消息,所述ARP消息携带所述按照预定选举规则确定的MC-LAG的接口MAC地址。
  10. 如权利要求6至9任一所述的装置,还包括:
    处理模块,设置为当所述聚合计算失败时,则等待所述MC-LAG新的聚合计算。
  11. 一种计算机可读存储介质,存储有程序指令,当该程序指令被处理器执行时实现权利要求1-5任一项所述的方法。
PCT/CN2015/090159 2014-11-28 2015-09-21 一种介质访问控制mac地址选举的方法和装置 WO2016082609A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
RU2017122235A RU2675050C1 (ru) 2014-11-28 2015-09-21 Способ и устройство выбора адреса управления доступом к среде mac
MYPI2017000805A MY194014A (en) 2014-11-28 2015-09-21 Media access control (mac) address election method and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410710259.5A CN105704257A (zh) 2014-11-28 2014-11-28 一种介质访问控制mac地址选举的方法和装置
CN201410710259.5 2014-11-28

Publications (1)

Publication Number Publication Date
WO2016082609A1 true WO2016082609A1 (zh) 2016-06-02

Family

ID=56073557

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/090159 WO2016082609A1 (zh) 2014-11-28 2015-09-21 一种介质访问控制mac地址选举的方法和装置

Country Status (4)

Country Link
CN (1) CN105704257A (zh)
MY (1) MY194014A (zh)
RU (1) RU2675050C1 (zh)
WO (1) WO2016082609A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109698788B (zh) * 2017-10-20 2021-06-15 华为技术有限公司 流量转发方法、装置及计算机可读介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098201A (zh) * 2009-12-14 2011-06-15 中兴通讯股份有限公司 一种实现l2tp用户接入备份的方法及网络系统
CN102984014A (zh) * 2012-12-18 2013-03-20 北京华为数字技术有限公司 数据发送方法及网络系统
CN103428088A (zh) * 2012-05-14 2013-12-04 中兴通讯股份有限公司 一种树根分配、报文处理的方法及路由网桥
WO2014169855A1 (en) * 2013-04-19 2014-10-23 Hangzhou H3C Technologies Co., Ltd. Topology discovery in a stacked switches system

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5115391B2 (ja) * 2008-08-07 2013-01-09 日本電気株式会社 ネットワーク接続装置
CN101442484B (zh) * 2008-12-05 2012-09-05 杭州华三通信技术有限公司 一种检测堆叠多Active的方法、系统及设备
CN101610182B (zh) * 2009-06-26 2011-09-07 杭州华三通信技术有限公司 堆叠中多主用设备冲突检测方法及堆叠成员设备
US9059940B2 (en) * 2010-08-04 2015-06-16 Alcatel Lucent System and method for transport control protocol in a multi-chassis domain
US8885562B2 (en) * 2012-03-28 2014-11-11 Telefonaktiebolaget L M Ericsson (Publ) Inter-chassis redundancy with coordinated traffic direction
CN102916857B (zh) * 2012-11-09 2015-04-15 迈普通信技术股份有限公司 一种堆叠分裂的快速检测方法和装置
CN102932230B (zh) * 2012-11-21 2015-07-15 杭州华三通信技术有限公司 用于虚拟路由器冗余协议备份组发布路由的方法和装置
CN103001868B (zh) * 2012-12-31 2016-03-09 杭州华三通信技术有限公司 用于虚拟路由器冗余协议备份组同步arp表项的方法和装置
CN103152283B (zh) * 2013-03-15 2016-04-13 杭州华三通信技术有限公司 一种聚合链路负载分担的方法和设备
CN103414801B (zh) * 2013-08-12 2016-08-17 杭州华三通信技术有限公司 一种堆叠系统中媒质访问控制地址同步的方法和设备
CN104092621B (zh) * 2014-07-25 2017-11-14 新华三技术有限公司 一种负载分担方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098201A (zh) * 2009-12-14 2011-06-15 中兴通讯股份有限公司 一种实现l2tp用户接入备份的方法及网络系统
CN103428088A (zh) * 2012-05-14 2013-12-04 中兴通讯股份有限公司 一种树根分配、报文处理的方法及路由网桥
CN102984014A (zh) * 2012-12-18 2013-03-20 北京华为数字技术有限公司 数据发送方法及网络系统
WO2014169855A1 (en) * 2013-04-19 2014-10-23 Hangzhou H3C Technologies Co., Ltd. Topology discovery in a stacked switches system

Also Published As

Publication number Publication date
CN105704257A (zh) 2016-06-22
RU2675050C1 (ru) 2018-12-14
MY194014A (en) 2022-11-08

Similar Documents

Publication Publication Date Title
US10257265B2 (en) Redundancy network protocol system
US10257019B2 (en) Link aggregation split-brain detection and recovery
EP3122004B1 (en) Traffic switching method, device, and system
US9769054B2 (en) Network topology discovery method and system
US20170257309A1 (en) Network management system control service for vxlan on an mlag domain
US7995499B2 (en) Minimizing spanning-tree protocol event processing and flooding in distribution networks
US20160065503A1 (en) Methods, systems, and computer readable media for virtual fabric routing
US8879549B2 (en) Clearing forwarding entries dynamically and ensuring consistency of tables across ethernet fabric switch
US20140075047A1 (en) Network-Assisted Virtual Machine Mobility
WO2016023436A1 (zh) 一种虚拟路由器冗余协议故障检测的方法及路由设备
JP6072278B2 (ja) 仮想シャーシシステム制御プロトコル
WO2017054770A1 (zh) 集群通信
WO2016086713A1 (zh) 一种等价多路径的出接口更新方法及装置
WO2012075731A1 (zh) 基于arp交互的链路故障检测与恢复的方法和设备
WO2011110029A1 (zh) 一种分组传送网络接入环中主机路由可达的方法及系统
US20160316011A1 (en) Sdn network element affinity based data partition and flexible migration schemes
WO2016095322A1 (zh) 一种基于vrrp的数据传输方法及装置
US10447581B2 (en) Failure handling at logical routers according to a non-preemptive mode
JPWO2014132954A1 (ja) 通信システム、制御装置、通信方法及びプログラム
US20150334019A1 (en) Routing control method and non-transitory computer-readable recording medium storing routing control program
WO2016082609A1 (zh) 一种介质访问控制mac地址选举的方法和装置
Veeramani et al. Novel approach to secure channel using c-scan and microcontroller in openflow
JP2011146977A (ja) 経路切替方法、通信装置および通信システム
CN107483340B (zh) 一种动态路由通告方法及sdn控制器和网络系统
CN113965509A (zh) 路由方法、跨设备链路聚合组、装置、存储介质和网络

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: 15863878

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2017122235

Country of ref document: RU

Kind code of ref document: A

122 Ep: pct application non-entry in european phase

Ref document number: 15863878

Country of ref document: EP

Kind code of ref document: A1