CN105704257A - Media access control (MAC) address election method and device - Google Patents
Media access control (MAC) address election method and device Download PDFInfo
- Publication number
- CN105704257A CN105704257A CN201410710259.5A CN201410710259A CN105704257A CN 105704257 A CN105704257 A CN 105704257A CN 201410710259 A CN201410710259 A CN 201410710259A CN 105704257 A CN105704257 A CN 105704257A
- Authority
- CN
- China
- Prior art keywords
- lag
- mac address
- machine frame
- election
- interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
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地址。上述方案通过借用已有的MC-LAG协议报文来实现MC-LAG接口MAC地址选举,从而实现对同一个MC-LAG组的不同机框的MC-LAG接口都能选用相同的MAC地址,相对目前已有的VRRP方案,无需额外增加开启其他协议,也无需额外增加新的链路。
The present invention provides a method for media access control MAC address election, which is applied to a cross-frame link aggregation group MC-LAG. The method includes: when the trigger condition is met, perform aggregation calculation on MC-LAG; And when the aggregation is successful, obtain the system MAC address of each frame of the MC-LAG, and determine the interface MAC address of the MC-LAG from the system MAC addresses of each frame of the MC-LAG according to a predetermined election rule. The above solution uses the existing MC-LAG protocol packets to implement MC-LAG interface MAC address election, so that the same MAC address can be selected for the MC-LAG interfaces of different chassis in the same MC-LAG group. The current VRRP solution does not need to open other protocols or add new links.
Description
技术领域technical field
本发明涉及网络通信技术,具体设计一种MC-LAG(Multi-ChassisLinkAggregationGroup,跨机框链路聚合组)的MAC(MediaAccessControl,介质访问控制)地址选举的方法和装置。The present invention relates to network communication technology, and specifically designs a method and device for MAC (MediaAccessControl, Media Access Control) address election of MC-LAG (Multi-ChassisLinkAggregationGroup, cross-chassis link aggregation group).
背景技术Background technique
随着因特网的高速发展,IP网络逐渐成为人们日常工作和生活中必不可少的工具。With the rapid development of the Internet, IP networks have gradually become an indispensable tool in people's daily work and life.
在IP通信网络中,为了避免出现网络上行出口的单节点故障,我们可以选择部署MC-LAG跨机框链路聚合组来实现上行出口链路和节点的冗余备份。如附图1所示,我们在节点2和节点3之间部署MC-LAG把它们和节点1互联的两条链路捆绑到一个MC-LAG跨机框链路聚合组里,这样当出现譬如节点2宕机等单节点故障时,MC-LAG会自动把节点1的上行出口业务流量全部切换到节点3上。In an IP communication network, in order to avoid single node failure at the network uplink egress, we can choose to deploy MC-LAG cross-chassis link aggregation group to realize redundant backup of uplink egress links and nodes. As shown in Figure 1, we deploy MC-LAG between Node 2 and Node 3, and bind the two links interconnected with Node 1 into an MC-LAG cross-chassis link aggregation group. When a single node fails such as node 2 downtime, MC-LAG will automatically switch all the uplink egress traffic of node 1 to node 3.
对于一台以太网交换机等网络通信设备,它的系统MAC地址是在出厂前已分配设置好且要求是全球唯一,不能和其他网络节点的MAC地址相同,否则可能会引发MAC地址冲突问题。For a network communication device such as an Ethernet switch, its system MAC address has been assigned and set before leaving the factory and is required to be globally unique. It cannot be the same as the MAC address of other network nodes, otherwise it may cause MAC address conflicts.
目前业界常见的以太网交换机设备对于MC-LAG接口的MAC地址都是直接采用节点的系统MAC地址,如附图2所示,节点2的MC-LAG接口MAC地址是节点2的系统MAC地址、节点3的MC-LAG接口MAC地址是节点3的系统MAC地址,这就会出现同一个MC-LAG组的不同机框的MC-LAG接口MAC地址不一样的问题。At present, common Ethernet switch devices in the industry directly use the system MAC address of the node for the MAC address of the MC-LAG interface. As shown in Figure 2, the MAC address of the MC-LAG interface of node 2 is the system MAC address of node 2, The MAC address of the MC-LAG interface of node 3 is the system MAC address of node 3, which causes the problem that the MAC addresses of the MC-LAG interfaces of different chassis in the same MC-LAG group are different.
当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(AddressResolutionProtocol,地址解析协议)表项一直在反复变化和业务流量丢包的问题。When MC-LAG is deployed in the Layer 3 forwarding scenario across network segments, different aggregated links in the same MC-LAG cross-chassis link aggregation group will use different MAC addresses as the Ethernet addresses of forwarded data frames. The destination MAC address in the network header. As shown in the example shown in Figure 3, we configure the IP address 10.80.1.254 on the MC-LAG interfaces of Node 2 and Node 3 as the gateway IP address of the users connected to Node 1. In this way, when the service traffic is forwarded from the left link, the destination MAC address field in the Ethernet header of the data frame of the service traffic will be filled with the system MAC address of node 2; when the service traffic is forwarded from the right link, the service traffic The destination MAC address field in the Ethernet header of the traffic data frame will be filled with the system MAC address of node 3. This will cause the gateway ARP (Address Resolution Protocol, Address Resolution Protocol) entry on the user host to change repeatedly and the problem of service traffic packet loss.
为了解决上述问题,目前业界通常采用的解决方案是在节点2和节点3的MC-LAG接口上部署VRRP(VirtualRouterRedundancyProtocol,虚拟路由器冗余协议)来让MC-LAG都采用相同的VRRP虚拟MAC地址来作为接口MAC地址。但该方案目前存在如下几点缺陷:In order to solve the above problems, the current solution commonly used in the industry is to deploy VRRP (VirtualRouterRedundancyProtocol, Virtual Router Redundancy Protocol) on the MC-LAG interfaces of node 2 and node 3 so that MC-LAG uses the same VRRP virtual MAC address to as the interface MAC address. However, this scheme currently has the following shortcomings:
1、该方案需要额外开启VRRP协议,VRRP对系统的CPU等资源是一种额外的开销。而且每个网段都要独立开启一个VRRP组,这样当一个MC-LAG接口同时承载多个网段业务流量时就需要开启相应数量的VRRP1. This solution needs to additionally enable the VRRP protocol. VRRP is an additional overhead for the system's CPU and other resources. Moreover, each network segment must independently enable a VRRP group, so that when an MC-LAG interface carries traffic from multiple network segments at the same time, it is necessary to enable a corresponding number of VRRP groups.
2、每个VRRP组都需要占用1个实IP地址和虚IP地址,这对IP地址资源是一种浪费2. Each VRRP group needs to occupy a real IP address and a virtual IP address, which is a waste of IP address resources
3、需要在节点2和节点3之间为VRRP部署额外的心跳链路,这会额外增加网络建设成本和维护工作量。3. It is necessary to deploy an additional heartbeat link for VRRP between node 2 and node 3, which will increase the network construction cost and maintenance workload.
发明内容:Invention content:
本发明提供一种MAC地址选举的方法和装置,以解决同一个MC-LAG组的不同机框的MC-LAG接口MAC地址不一样的问题。The invention provides a method and device for MAC address election to solve the problem that the MAC addresses of MC-LAG interfaces of different machine frames of the same MC-LAG group are not the same.
为解决上述技术问题,本发明提供一种介质访问控制MAC地址选举的方法,应用于跨机框链路聚合组MC-LAG,所述方法包括:In order to solve the above technical problems, the present invention provides a method for media access control MAC address election, which is applied to a cross-chassis link aggregation group MC-LAG, and the method includes:
当满足触发条件时,对所述MC-LAG进行聚合计算;When the trigger condition is met, perform aggregation calculation on the MC-LAG;
当所述聚合计算结束且聚合成功时,获取所述MC-LAG各机框的系统MAC地址,按照预定的选举规则从所述MC-LAG各机框的系统MAC地址中确定所述MC-LAG的接口MAC地址。When the aggregation calculation ends and the aggregation is successful, obtain the system MAC address of each frame of the MC-LAG, and determine the MC-LAG from the system MAC addresses of each frame of the MC-LAG according to a predetermined election rule MAC address of the interface.
进一步地,further,
所述触发条件为所述MC-LAG完成初始化,或者所述MC-LAG增加/删除成员。The trigger condition is that the MC-LAG completes initialization, or the MC-LAG adds/deletes members.
进一步地,further,
获取所述MC-LAG各机框的系统MAC地址,按照预定的选举规则从所述MC-LAG各机框的系统MAC地址中确定所述MC-LAG的接口MAC地址当所述聚合计算成功时,按照预定的选举规则确定所述MC-LAG的接口MAC地址包括:Obtain the system MAC address of each frame of the MC-LAG, and determine the interface MAC address of the MC-LAG from the system MAC addresses of each frame of the MC-LAG according to a predetermined election rule when the aggregation calculation is successful , determining the interface MAC address of the MC-LAG according to a predetermined election rule includes:
当所述聚合计算成功时,从所述MC-LAG的协议报文中获取所述MC-LAG各机框的系统MAC地址;When the aggregation calculation is successful, obtain the system MAC address of each frame of the MC-LAG from the protocol message of the MC-LAG;
将各机框的系统MAC地址中数值最小的系统MAC地址作为所述MC-LAG的接口MAC地址。The system MAC address with the smallest value among the system MAC addresses of each chassis is used as the interface MAC address of the MC-LAG.
进一步地,further,
所述按照预定的选举规则确定所述MC-LAG的接口MAC地址后还包括:After said determining the interface MAC address of the MC-LAG according to the predetermined election rules, it also includes:
向各网段发送ARP消息,所述ARP消息携带所述按照预定选举规则确定的MC-LAG的接口MAC地址。sending an ARP message to each network segment, where the ARP message carries the interface MAC address of the MC-LAG determined according to the predetermined election rule.
进一步地,further,
所述对所述MC-LAG进行聚合计算后还包括:After the aggregation calculation of the MC-LAG is performed, it also includes:
当所述聚合计算失败时,则等待所述MC-LAG新的聚合计算。When the aggregation calculation fails, wait for a new aggregation calculation of the MC-LAG.
本发明还提供一种介质访问控制MAC地址选举的装置,应用于跨机框链路聚合组MC-LAG,所述装置包括:The present invention also provides a device for media access control MAC address election, which is applied to a cross-frame link aggregation group MC-LAG, and the device includes:
计算模块,用于当满足触发条件时对所述MC-LAG进行聚合计算;A calculation module, configured to perform aggregate calculation on the MC-LAG when a trigger condition is met;
选举模块,用于当所述聚合计算结束且聚合成功时,获取所述MC-LAG各机框的系统MAC地址,按照预定的选举规则从所述MC-LAG各机框的系统MAC地址中确定所述MC-LAG的接口MAC地址。An election module, configured to obtain the system MAC address of each frame of the MC-LAG when the aggregation calculation is completed and the aggregation is successful, and determine from the system MAC addresses of each frame of the MC-LAG according to a predetermined election rule MAC address of the MC-LAG interface.
进一步地,further,
所述触发条件为所述MC-LAG完成初始化,或者所述MC-LAG增加/删除成员。The trigger condition is that the MC-LAG completes initialization, or the MC-LAG adds/deletes members.
进一步地,further,
所述选举模块用于当所述聚合计算成功结束且聚合成功时获取所述MC-LAG各机框的系统MAC地址,按照预定的选举规则从所述MC-LAG各机框的系统MAC地址中确定所述MC-LAG的接口MAC地址是指:The election module is used to obtain the system MAC addresses of each frame of the MC-LAG when the aggregation calculation is successfully completed and the aggregation is successful, and select from the system MAC addresses of each frame of the MC-LAG according to a predetermined election rule Determining the interface MAC address of the MC-LAG refers to:
当所述聚合计算成功时,从所述MC-LAG的协议报文中获取所述MC-LAG各机框的系统MAC地址;When the aggregation calculation is successful, obtain the system MAC address of each frame of the MC-LAG from the protocol message of the MC-LAG;
将各机框的系统MAC地址中数值最小的系统MAC地址作为所述MC-LAG的接口MAC地址。The system MAC address with the smallest value among the system MAC addresses of each chassis is used as the interface MAC address of the MC-LAG.
进一步地,所述装置还包括:Further, the device also includes:
通信模块,用于当所述选举模块按照预定的选举规则确定所述MC-LAG的接口MAC地址后,向各网段发送ARP消息,所述ARP消息携带所述按照预定选举规则确定的MC-LAG的接口MAC地址。A communication module, configured to send an ARP message to each network segment after the election module determines the interface MAC address of the MC-LAG according to predetermined election rules, and the ARP message carries the MC-LAG determined according to predetermined election rules. MAC address of the interface of the LAG.
进一步地,所述装置还包括:Further, the device also includes:
处理模块,用于当所述聚合计算失败时,则等待所述MC-LAG新的聚合计算。A processing module, configured to wait for a new aggregation calculation of the MC-LAG when the aggregation calculation fails.
上述方案基于已有的MC-LAG协议来解决同一个MC-LAG组的不同机框的MC-LAG接口MAC地址不一样的问题,通过借用已有的MC-LAG协议报文来实现MC-LAG接口MAC地址选举,从而实现对同一个MC-LAG组的不同机框的MC-LAG接口都能选用相同的MAC地址。相对目前已有的VRRP方案,无需额外增加开启其他协议,也无需额外增加新的链路。The above solution is based on the existing MC-LAG protocol to solve the problem that the MC-LAG interface MAC addresses of different chassis in the same MC-LAG group are not the same, and implement MC-LAG by borrowing the existing MC-LAG protocol packets Interface MAC address election, so that 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 solution, there is no need to open other protocols or add new links.
附图说明Description of drawings
图1是MC-LAG链路切换示意图;Figure 1 is a schematic diagram of MC-LAG link switching;
图2是现有技术中的MC-LAG接口MAC地址信息示意图;FIG. 2 is a schematic diagram of MAC address information of an MC-LAG interface in the prior art;
图3是现有技术中的MC-LAG跨网段的三层转发场景的MC-LAG接口MAC地址信息示意图;Fig. 3 is a schematic diagram of the MAC address information of the MC-LAG interface in the three-layer forwarding scenario of the MC-LAG cross-network segment in the prior art;
图4是本发明实施例一中的MC-LAG跨网段的三层转发场景的MC-LAG接口MAC地址信息示意图;Fig. 4 is a schematic diagram of the MAC address information of the MC-LAG interface in the three-layer forwarding scenario of the MC-LAG cross-network segment in Embodiment 1 of the present invention;
图5是本发明实施例一中的MAC地址选举的方法的流程图;FIG. 5 is a flowchart of a method for MAC address election in Embodiment 1 of the present invention;
图6是本发明实施例一中的MAC地址选举的装置的示意图。FIG. 6 is a schematic diagram of an apparatus for MAC address election in Embodiment 1 of the present invention.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚明白,下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the application clearer, the embodiments of the application will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.
目前现有的MC-LAG协议会在已加入到该MC-LAG聚合组的各个机框之间周期性的交互MC-LAG协议报文来完成链路的聚合状态更新和维持,该MC-LAG协议报文是标准的以太网数据帧结构,以太网头部里的源MAC地址填充的是发送节点的系统MAC地址。MC-LAG聚合组的各个机框之间周期性的交互MC-LAG协议报文以太网头部里的源MAC地址填充的是发送该报文的节点的系统MAC地址,我们在MC-LAG聚合组的计算结束且聚合成功的后面增加一个MC-LAG接口的MAC地址选举处理环节。At present, the existing MC-LAG protocol will periodically exchange MC-LAG protocol packets between the chassis that have joined the MC-LAG aggregation group to update and maintain the link aggregation status. The protocol message is a standard Ethernet data frame structure, and the source MAC address in the Ethernet header is filled with the system MAC address of the sending node. The source MAC address in the Ethernet header of the MC-LAG protocol message is filled with the system MAC address of the node that sends the message during the periodical exchange between each chassis of the MC-LAG aggregation group. After the calculation of the group is completed and the aggregation is successful, a MAC address election processing link of the MC-LAG interface is added.
实施例一Embodiment one
本申请提供一种介质访问控制MAC地址选举的方法,应用于跨机框链路聚合组MC-LAG,所述方法包括:The present application provides a method for media access control MAC address election, which is applied to a cross-chassis link aggregation group MC-LAG, and the method includes:
步骤一、当满足触发条件时,对所述MC-LAG进行聚合计算;Step 1. When the trigger condition is met, perform aggregation calculation on the MC-LAG;
步骤二、当所述聚合计算成功结束且聚合成功时,获取所述MC-LAG各机框的系统MAC地址,按照预定的选举规则从所述MC-LAG各机框的系统MAC地址中确定所述MC-LAG的接口MAC地址。Step 2. When the aggregation calculation is successfully completed and the aggregation is successful, obtain the system MAC address of each frame of the MC-LAG, and determine the system MAC address of each frame of the MC-LAG according to a predetermined election rule. MAC address of the interface on the MC-LAG.
上述方案基于已有的MC-LAG协议来解决同一个MC-LAG组的不同机框的MC-LAG接口MAC地址不一样的问题,通过借用已有的MC-LAG协议报文来实现MC-LAG接口MAC地址选举,从而实现对同一个MC-LAG组的不同机框的MC-LAG接口都能选用相同的MAC地址。相对目前已有的VRRP方案,无需额外增加开启其他协议,也无需额外增加新的链路。The above solution is based on the existing MC-LAG protocol to solve the problem that the MC-LAG interface MAC addresses of different chassis in the same MC-LAG group are not the same, and implement MC-LAG by borrowing the existing MC-LAG protocol packets Interface MAC address election, so that 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 solution, there is no need to open other protocols or add new links.
在上述技术方案中,可以以MC-LAG完成初始化,或者MC-LAG增加/删除成员作为进行聚合计算的触发条件。In the above technical solution, the MC-LAG may be used to complete the initialization, or the MC-LAG may add/delete members as a trigger condition for aggregation calculation.
当所述聚合计算成功结束且聚合成功时,从所述MC-LAG的协议报文中获取所述MC-LAG各机框的系统MAC地址;将各机框的系统MAC地址中数值最小的系统MAC地址作为所述MC-LAG的接口MAC地址。When the aggregation calculation ends successfully and the aggregation is successful, obtain the system MAC address of each frame of the MC-LAG from the protocol message of the MC-LAG; The MAC address is used as the interface MAC address of the MC-LAG.
当所述聚合计算失败时,则等待MC-LAG新的聚合计算。When the aggregation calculation fails, it waits for a new aggregation calculation of the MC-LAG.
可选地,还可以包括Optionally, can also include
步骤三、向各网段发送ARP消息,所述ARP消息携带所述按照预定选举规则确定的MC-LAG的接口MAC地址。Step 3: Send an ARP message to each network segment, and the ARP message carries the interface MAC address of the MC-LAG determined according to the predetermined election rule.
需要说明的是,对于MC-LAG接口的MAC地址选举规则,可以采用选则机框系统MAC地址数值最小的来作为该MC-LAG接口的MAC地址,在其它的实施例中,也可以根据各自的MC-LAG协议本身的特征来定义不同的MC-LAG接口的MAC地址选举规则,只要确保MC-LAG聚合组的所有机框都是选举出同一个MAC地址来作为该MC-LAG接口MAC地址即可。It should be noted that, for the MAC address election rules of the MC-LAG interface, the MAC address of the selected shelf system with the smallest value can be used as the MAC address of the MC-LAG interface. The characteristics of the MC-LAG protocol itself are used to define the MAC address election rules of different MC-LAG interfaces. Just ensure that all the chassis of the MC-LAG aggregation group elect the same MAC address as the MAC address of the MC-LAG interface. That's it.
实施例二Embodiment two
如图4和图5所示,结合具体的场景进一步说明本发明的技术方案。As shown in FIG. 4 and FIG. 5 , the technical solution of the present invention is further described in combination with specific scenarios.
步骤1-2:MC-LAG聚合组初始化或MC-LAG聚合组成员离开/新成员加入触发新的聚合计算;Step 1-2: MC-LAG aggregation group initialization or MC-LAG aggregation group member leaving/new member joining triggers new aggregation calculation;
步骤3:待MC-LAG聚合计算结束,判断聚合是否成功;若聚合成功,执行步骤4,若聚合失败执行步骤7;Step 3: After the MC-LAG aggregation calculation is completed, determine whether the aggregation is successful; if the aggregation is successful, perform step 4, and if the aggregation fails, perform step 7;
步骤4:该聚合组的各机框从MC-LAG协议报文里提取该MC-LAG聚合组所有成员机框的系统MAC,选择MAC数值最小的作为该MC-LAG接口MAC地址;Step 4: Each frame of the aggregation group extracts the system MACs of all member frames of the MC-LAG aggregation group from the MC-LAG protocol message, and selects the one with the smallest MAC value as the MAC address of the MC-LAG interface;
若聚合失败,则不进行MAC选举流程,直接跳转到结束状态等待新一轮的聚合计算过程;If the aggregation fails, the MAC election process will not be performed, and it will directly jump to the end state to wait for a new round of aggregation calculation process;
步骤5:在MAC选举流程结束后,判断系统是否开启了接口MAC变更通知功能。如果开启该通知功能,则执行步骤6;如果未开启该通知功能,则执行步骤7;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 turned on, go to step 6; if the notification function is not turned on, go to step 7;
步骤6:系统从该MC-LAG所在的三层interface接口发送免费ARP,若有多个网段则需要为每个网段都发送一份。Step 6: The system sends gratuitous ARP from the Layer 3 interface where the MC-LAG is located. If there are multiple network segments, it needs to send one copy for each network segment.
发送该ARP的目的是快速通知局域网内其他节点表明该MC-LAG所在的三层interface接口MAC地址已发生变化,使得局域网内其他节点能快速更新本地ARP缓存表。The purpose of sending this 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.
步骤7:本次地址选举结束,等待触发下一次出发地址选举的条件。Step 7: This address election is over, waiting for the conditions to trigger the next departure address election.
如图6所示,本发明还提供一种介质访问控制MAC地址选举的装置,应用于跨机框链路聚合组MC-LAG,所述装置包括:As shown in FIG. 6, the present invention also provides a device for media access control MAC address election, which is applied to a cross-chassis link aggregation group MC-LAG, and the device includes:
计算模块11,用于当满足触发条件时对所述MC-LAG进行聚合计算;A calculation module 11, configured to perform aggregate calculation on the MC-LAG when a trigger condition is met;
选举模块12,用于当所述聚合计算成功时,按照预定的选举规则确定所述MC-LAG的接口MAC地址。The election module 12 is configured to determine the interface MAC address of the MC-LAG according to a predetermined election rule when the aggregation calculation is successful.
进一步地,所述触发条件为所述MC-LAG完成初始化,或者所述MC-LAG增加/删除成员。Further, the trigger condition is that the MC-LAG completes the initialization, or the MC-LAG adds/deletes members.
进一步地,further,
所述选举模块用于当所述聚合计算成功时按照预定的选举规则确定所述MC-LAG的接口MAC地址是指:The election module is used to determine the interface MAC address of the MC-LAG according to a predetermined election rule when the aggregation calculation is successful:
当所述聚合计算成功时,从所述MC-LAG的协议报文中获取所述MC-LAG各机框的系统MAC地址;When the aggregation calculation is successful, obtain the system MAC address of each frame of the MC-LAG from the protocol message of the MC-LAG;
将各机框的系统MAC地址中数值最小的系统MAC地址作为所述MC-LAG的接口MAC地址。The system MAC address with the smallest value among the system MAC addresses of each chassis is used as the interface MAC address of the MC-LAG.
进一步地,所述装置还包括:Further, the device also includes:
通信模块13,用于当所述选举模块按照预定的选举规则确定所述MC-LAG的接口MAC地址后,向各网段发送ARP消息,所述ARP消息携带所述按照预定选举规则确定的MC-LAG的接口MAC地址。The communication module 13 is configured to send an ARP message to each network segment after the election module determines the interface MAC address of the MC-LAG according to predetermined election rules, and the ARP message carries the MC determined according to predetermined election rules. -MAC address of the interface of the LAG.
进一步地,所述装置还包括:Further, the device also includes:
处理模块14,用于当所述聚合计算失败时,则等待所述MC-LAG新的聚合计算。The processing module 14 is configured to wait for a new aggregation calculation of the MC-LAG when the aggregation calculation fails.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现,相应地,上述实施例中的各模块/模块可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本申请不限制于任何特定形式的硬件和软件的结合。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention. Those skilled in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, and the like. Optionally, all or part of the steps in the above embodiments can also be implemented using one or more integrated circuits. Correspondingly, each module/module in the above embodiments can be implemented in the form of hardware, or can be implemented in the form of software function modules. The form is realized. This application is not limited to any specific form of combination of hardware and software.
Claims (10)
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410710259.5A CN105704257A (en) | 2014-11-28 | 2014-11-28 | Media access control (MAC) address election method and device |
| PCT/CN2015/090159 WO2016082609A1 (en) | 2014-11-28 | 2015-09-21 | Media access control (mac) address election method and apparatus |
| RU2017122235A RU2675050C1 (en) | 2014-11-28 | 2015-09-21 | Method and device for selecting access control address to mac environment |
| MYPI2017000805A MY194014A (en) | 2014-11-28 | 2015-09-21 | Media access control (mac) address election method and apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410710259.5A CN105704257A (en) | 2014-11-28 | 2014-11-28 | Media access control (MAC) address election method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN105704257A true CN105704257A (en) | 2016-06-22 |
Family
ID=56073557
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410710259.5A Pending CN105704257A (en) | 2014-11-28 | 2014-11-28 | Media access control (MAC) address election method and device |
Country Status (4)
| Country | Link |
|---|---|
| CN (1) | CN105704257A (en) |
| MY (1) | MY194014A (en) |
| RU (1) | RU2675050C1 (en) |
| WO (1) | WO2016082609A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2019076047A1 (en) * | 2017-10-20 | 2019-04-25 | 华为技术有限公司 | Traffic forwarding method and traffic forwarding apparatus |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101442484A (en) * | 2008-12-05 | 2009-05-27 | 杭州华三通信技术有限公司 | Method, system and equipment for detecting stacking multi-Active |
| CN101610182A (en) * | 2009-06-26 | 2009-12-23 | 杭州华三通信技术有限公司 | Multi-primary apparatus conflict detection method and stack member apparatus in piling up |
| CN102916857A (en) * | 2012-11-09 | 2013-02-06 | 迈普通信技术股份有限公司 | Stacking and splitting quick detection method and device |
| CN102932230A (en) * | 2012-11-21 | 2013-02-13 | 杭州华三通信技术有限公司 | Method and device for virtual router redundancy protocol backup group issuing routing |
| CN103001868A (en) * | 2012-12-31 | 2013-03-27 | 杭州华三通信技术有限公司 | Method and device used for synchronous ARP (Address Resolution Protocol) list item of virtual router redundancy protocol backup set |
| CN103152283A (en) * | 2013-03-15 | 2013-06-12 | 杭州华三通信技术有限公司 | Method and device for sharing load of aggregation link |
| CN103220234A (en) * | 2013-04-19 | 2013-07-24 | 杭州华三通信技术有限公司 | Topology discovery method and device of matrix stacking system |
| CN103414801A (en) * | 2013-08-12 | 2013-11-27 | 杭州华三通信技术有限公司 | Method and device for synchronizing medium access control addresses in stacking system |
| CN103428088A (en) * | 2012-05-14 | 2013-12-04 | 中兴通讯股份有限公司 | Tree root allocation and message processing method and routing network bridge |
| CN104092621A (en) * | 2014-07-25 | 2014-10-08 | 杭州华三通信技术有限公司 | Load sharing method and device |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5115391B2 (en) * | 2008-08-07 | 2013-01-09 | 日本電気株式会社 | Network connection device |
| CN102098201B (en) * | 2009-12-14 | 2014-08-20 | 中兴通讯股份有限公司 | Method for realizing L2TP user access backup and network system |
| US8462774B2 (en) * | 2010-08-04 | 2013-06-11 | Alcatel Lucent | Virtual IP interfaces on multi-chassis link aggregates |
| US8885562B2 (en) * | 2012-03-28 | 2014-11-11 | Telefonaktiebolaget L M Ericsson (Publ) | Inter-chassis redundancy with coordinated traffic direction |
| CN102984014A (en) * | 2012-12-18 | 2013-03-20 | 北京华为数字技术有限公司 | Data transmission method and network system |
-
2014
- 2014-11-28 CN CN201410710259.5A patent/CN105704257A/en active Pending
-
2015
- 2015-09-21 MY MYPI2017000805A patent/MY194014A/en unknown
- 2015-09-21 WO PCT/CN2015/090159 patent/WO2016082609A1/en not_active Ceased
- 2015-09-21 RU RU2017122235A patent/RU2675050C1/en active
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101442484A (en) * | 2008-12-05 | 2009-05-27 | 杭州华三通信技术有限公司 | Method, system and equipment for detecting stacking multi-Active |
| CN101610182A (en) * | 2009-06-26 | 2009-12-23 | 杭州华三通信技术有限公司 | Multi-primary apparatus conflict detection method and stack member apparatus in piling up |
| CN103428088A (en) * | 2012-05-14 | 2013-12-04 | 中兴通讯股份有限公司 | Tree root allocation and message processing method and routing network bridge |
| CN102916857A (en) * | 2012-11-09 | 2013-02-06 | 迈普通信技术股份有限公司 | Stacking and splitting quick detection method and device |
| CN102932230A (en) * | 2012-11-21 | 2013-02-13 | 杭州华三通信技术有限公司 | Method and device for virtual router redundancy protocol backup group issuing routing |
| CN103001868A (en) * | 2012-12-31 | 2013-03-27 | 杭州华三通信技术有限公司 | Method and device used for synchronous ARP (Address Resolution Protocol) list item of virtual router redundancy protocol backup set |
| CN103152283A (en) * | 2013-03-15 | 2013-06-12 | 杭州华三通信技术有限公司 | Method and device for sharing load of aggregation link |
| CN103220234A (en) * | 2013-04-19 | 2013-07-24 | 杭州华三通信技术有限公司 | Topology discovery method and device of matrix stacking system |
| CN103414801A (en) * | 2013-08-12 | 2013-11-27 | 杭州华三通信技术有限公司 | Method and device for synchronizing medium access control addresses in stacking system |
| CN104092621A (en) * | 2014-07-25 | 2014-10-08 | 杭州华三通信技术有限公司 | Load sharing method and device |
Non-Patent Citations (1)
| Title |
|---|
| 鹿南南: "通信设备智能弹性架构系统的设计与实现", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2019076047A1 (en) * | 2017-10-20 | 2019-04-25 | 华为技术有限公司 | Traffic forwarding method and traffic forwarding apparatus |
| US11582141B2 (en) | 2017-10-20 | 2023-02-14 | Huawei Technologies Co., Ltd. | Traffic forwarding method and traffic forwarding apparatus |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2016082609A1 (en) | 2016-06-02 |
| RU2675050C1 (en) | 2018-12-14 |
| MY194014A (en) | 2022-11-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105164991B (en) | Redundant Network Protocol System | |
| CN111638957B (en) | Method for realizing cluster sharing type public cloud load balance | |
| CN104283756B (en) | A kind of method and apparatus for realizing distributed multi-tenant virtual network | |
| US11128489B2 (en) | Maintaining data-plane connectivity between hosts | |
| EP3229406B1 (en) | Performing a protocol, such as micro bidirectional forwarding detection, on member links of an aggregated link that uses an address of the aggregated link | |
| US10785137B2 (en) | Dataplane-based seamless bidirectional forwarding detection monitoring for network entities | |
| CN104104570A (en) | Aggregation processing method in IRF (Intelligent Resilient Framework) system and device | |
| CN107306215B (en) | A data processing method, system and node | |
| BR112014001861B1 (en) | Method for implementing a packet radio general service tunnel protocol, and cloud computing system for managing the implementation of a packet radio general service tunneling protocol | |
| US20160087894A1 (en) | Method and system for changing path and controller thereof | |
| US9912592B2 (en) | Troubleshooting openflow networks | |
| US10581669B2 (en) | Restoring control-plane connectivity with a network management entity | |
| US20220191130A1 (en) | Oam-based suboptimal ecmp path detection in software-defined fabric | |
| TWI636679B (en) | Virtual area network configuration system and method and computer program product thereof | |
| CN107241208A (en) | A kind of message forwarding method, the first interchanger and related system | |
| CN105119993A (en) | Virtual machine deployment method and apparatus | |
| US10447581B2 (en) | Failure handling at logical routers according to a non-preemptive mode | |
| CN102571586B (en) | Method and device for setting customer virtual local area network (CVLAN) in transparent interconnect of lots of links (TRILL) network | |
| CN106302076A (en) | Set up the method in VXLAN tunnel, system and SDN controller | |
| CN105656715A (en) | Method and device for monitoring state of network device under cloud computing environment | |
| US20150334019A1 (en) | Routing control method and non-transitory computer-readable recording medium storing routing control program | |
| CN107241455B (en) | Apparatus and method for performing duplicate address detection for integrated routing and bridging devices | |
| CN104796276B (en) | A kind of link switch-over method and system | |
| CN105704257A (en) | Media access control (MAC) address election method and device | |
| JP2014041414A (en) | Migration system of virtual machine, control device, and migration method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160622 |