CN100490411C - Method for studying MAC address and network element apparatus - Google Patents

Method for studying MAC address and network element apparatus Download PDF

Info

Publication number
CN100490411C
CN100490411C CN 200710129551 CN200710129551A CN100490411C CN 100490411 C CN100490411 C CN 100490411C CN 200710129551 CN200710129551 CN 200710129551 CN 200710129551 A CN200710129551 A CN 200710129551A CN 100490411 C CN100490411 C CN 100490411C
Authority
CN
China
Prior art keywords
arp reply
type
reply packet
packet
arp
Prior art date
Application number
CN 200710129551
Other languages
Chinese (zh)
Other versions
CN101075933A (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 200710129551 priority Critical patent/CN100490411C/en
Publication of CN101075933A publication Critical patent/CN101075933A/en
Application granted granted Critical
Publication of CN100490411C publication Critical patent/CN100490411C/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L29/00Arrangements, apparatus, circuits or systems, not covered by a single one of groups H04L1/00 - H04L27/00
    • H04L29/12Arrangements, apparatus, circuits or systems, not covered by a single one of groups H04L1/00 - H04L27/00 characterised by the data terminal
    • H04L29/12009Arrangements for addressing and naming in data networks
    • H04L29/12018Mapping of addresses of different types; address resolution
    • H04L29/12028Mapping of addresses of different types; address resolution across network layers, e.g. resolution of network layer into physical layer addresses, Address Resolution Protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements or network protocols for addressing or naming
    • H04L61/10Mapping of addresses of different types; Address resolution
    • H04L61/103Mapping of addresses of different types; Address resolution across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Abstract

本发明公开一种学习MAC地址的方法,包括:VRRP备用路由器在接收的含有多个源IP地址相同和源MAC地址不同的ARP回复报文中,可检测源IP地址不是本路由器IP地址,而源MAC地址是本路由器虚拟MAC地址的ARP回复报文,其中,虚拟MAC地址的格式为:00-00-5E-00-01-{VRID};根据硬件地址解析协议表中MAC地址与所述软件地址解析协议表中IP地址的映射关系,将所述源MAC地址不是虚拟MAC地址的ARP回复报文中的源MAC地址刷新到硬件地址解析协议表中,而源MAC地址是虚拟MAC地址的ARP回复报文被忽略掉。 The present invention discloses a method of learning a MAC address, comprising: a VRRP backup router received the same source IP address and a plurality of different source MAC address in the ARP reply packet, the source IP address is not detectable router IP address, source MAC address is the MAC address of the virtual router ARP reply packet, wherein the format of the virtual MAC address is: 00-00-5E-00-01- {VRID}; the hardware ARP table with the MAC address software address resolution protocol mapping between IP addresses in the table, the source MAC address is not virtual MAC address of the ARP reply packet source MAC address to refresh hardware ARP table, and the source MAC address is a virtual MAC address ARP reply packets are ignored. 使用本发明的技术方案,可以使备用路由器学习正确的MAC地址。 Using the techniques of the present invention, the backup router can learn a MAC address.

Description

学习MAC地址的方法及网元设备 MAC address learning method and network element device

技术领域 FIELD

本发明涉及通信技术领域,特别涉及一种学习MAC地址的方法及网元设备。 The present invention relates to communication technology, and particularly relates to a method of learning the MAC address and network element device.

背景技术 Background technique

在现实的应用中,经常釆用如图1所示的双归组网的拓朴结构。 In real applications, a dual-homing network topology shown in Figure 1 is often preclude. 其中, 接入网关(Access Gateway, AG)通过两条链路分别连接到两台接入交换机SA和SB,两台接入交换机SA和SB再分別连接到两台接入路由器RA和RB 。 Wherein, the access gateway (Access Gateway, AG) are connected through two links to two access switches SA and SB, the two access switches SA and SB are then connected to the two access routers RA and RB. 为了解决AG设备如何在RA和RB之间选路,引入了虚拟路由器冗余协议(Virtual Router Redundancy Protocol, VRRP )。 How to solve the AG device routing between RA and RB, introduced the Virtual Router Redundancy Protocol (Virtual Router Redundancy Protocol, VRRP). VRRP协议将局域网的一组路由器构成一个备份组,相当于一台虚拟路由器,局域网内的设备AG通过这个虚拟路由器与其他网络进行通信。 A group of VRRP routers on a LAN into a backup group, as a virtual router, AG device in the LAN communicates with other networks through the virtual router. VRRP将该虚拟路由器动态关联到承载传输业务的物理路由器上,该物理路由器作为主用路由器,当该主用路由器或者主用链路出现故障时,VRRP触发倒换,让备用路由器升为主用路由器来接替业务传输工作。 The VRRP virtual router dynamically linked to the physical router of bearer transport service, the physical router as a primary router, when a failure occurs with the main router or the active link, VRRP trigger the switching, so that a main router the backup router liter to take over the service transmission work. 参阅图1,可以假设RA作为主用路由器,RB作为备用路由器。 Referring to Figure 1, it may be assumed as the master router RA, RB as a backup router.

々£定RA的El端口4吏能了ARP代理(Address Resolution Protocol Proxy, ARP Proxy),现有技术提供的在倒换前MAC地址学习方法是: £ 々 set port 4 to El RA officials can proxy ARP (Address Resolution Protocol Proxy, ARP Proxy), the prior art provided in the MAC address learning method before switching is:

当老化时间到达时,RB主动向RA和AG发起ARP请求, 一般预设的老化时间是20分钟。 When the aging time is reached, RB initiates an ARP request to the RA and AG, general default aging time is 20 minutes. AG收到ARP请求报文后,向RB发送ARP回复报文, 该ARP回复报文中的源IP地址是AG的IP地址,源MAC地址是AG的MAC 地址,此时RB能够学到正确的AG的MAC地址,即将ARP回复寺艮文中的AG的MAC地址刷新到预存的ARP表项。 AG receiving the ARP request packet, it sends an ARP reply packet to RB, the source IP address of the ARP reply packet is the IP address of AG, AG source MAC address is a MAC address, in this RB can learn the correct AG's MAC address, MAC address ARP reply soon Temple Gen text of the AG to refresh the ARP entries stored. 其中,ARP表项是硬件地址解析协议表,用于存储RB下挂的AG的MAC地址。 Wherein, the ARP table entry is ARP table hardware, the MAC address for the AG under the hanging storage RB. 由于RA是VRRP的主用路由器,且E1端口使能了ARP代理,RA收到RB发出的ARP请求报文后, 也会向RB发送ARP回复报文,其ARP回复报文中源IP地址是AG的IP地址,而源MAC地址是VRRP虚拟MAC地址。 Since RA is a master VRRP router and E1 port enable proxy ARP, the RB RA received ARP packet sent by the request, will send an ARP reply packet to the RB, its ARP reply packet source IP address is AG, IP address, and the source MAC address is the VRRP virtual MAC address. 如果RA和RB下挂多个AG设备时,RA会向RB发送多份此类ARP回复报文。 If a plurality of AG devices linked to the RA and RB, RA will send multiple copies of such an ARP reply packet to RB. 其中,虛拟MAC地址可以是00-00-5E-00-01-{VRID}, RB将该虚拟MAC地址刷新到ARP表项中上, 此时ARP表项存储的内容由原来正确的AG的MAC地址被刷新成虛拟MAC 地址。 Wherein the virtual MAC address may be 00-00-5E-00-01- {VRID}, RB flushed to the virtual MAC address in the ARP entry, then the contents stored in the original ARP entry of the correct MAC AG refresh address is a virtual MAC address. 其中,RB向RA发送ARP请求和RA向RB发送ARP回复报文的路径如图2中*1实线所示,RB向AG发送ARP请求和AG向RB发送ARP回复报文的路径如图2中虚线所示。 Wherein, RB sends an ARP request to RA and RA ARP reply packet transmission path 2 as shown in solid lines in FIG. 1 * to RB, RB sends an ARP request to the AG and the AG sends ARP reply packet to the path 2 in FIG RB the broken line in FIG.

在实现本发明过程中,发明人发现现有技术中至少存在如下问题: In implementing the present invention, the inventor finds at least the following problems in the prior art:

现有技术先将来自AG的ARP回复报文中的源MAC地址刷新到ARP表项中,再将来自RA的ARP回复报文中的虚拟MAC地址刷新到ARP表项, 使ARP表项存储的内容由原来正确的AG的MAC地址变成虚拟MAC地址, 导致将AG的MAC地址学习错了。 AG from the prior art first ARP reply packet to the source MAC address refreshing the ARP entry, and then the ARP reply message RA from the virtual MAC address to refresh the ARP entry, so that items stored in the ARP AG content from the original correct MAC address becomes the virtual MAC address, MAC address learning AG wrong. 当主用路由器RA故障或者主用链路故障时,RA的E1端口down掉,备用路由器RB升为主用路由器,此时报文的传输路径如图1中标注所示,下行报文是路由器RC传给AG的。 When the active router RA fault or the active link fails, the RA E1 port is down, the standby router with the router RB liter based, packet transmission path at this time as shown in FIG. 1 are denoted, the downlink packet is a router pass RC to AG. 由于RB在为备用路由器时,将AG的MAC地址学习错了,所以在下一次老化时间到达以获取正确的AG的MAC地址之前,RB接收的下行报文由于在ARP表项中找不到正确的AG的MAC地址,就直接将该下行报文丟弃,使下行报文的传输中断。 Since RB is at before backup router, the MAC address learning AG wrong, so the next time the aging time to obtain the correct AG reaches a MAC address, the received downlink packet RB unable to find the correct entry in the ARP AG MAC address directly in the downlink packet discarding the downlink packet transmission interruption.

发明内容 SUMMARY

本发明实施例是提供一种学习MAC地址的方法及网元设备,达到备用路由器正确学习MAC地址的目的。 Embodiment of the present invention is to provide a method of learning the MAC address and network element device, reaches the standby router to learn the correct destination MAC address.

有鉴于此,本发明实施例提供: In view of this, the present invention provides:

一种学习MAC地址的方法,包括: A method for MAC address learning, comprising:

接收地址解析协议ARP回复报文组,所述ARP回复报文组包括:第一类ARP回复报文和第二类ARP回复报文;其中,所述第一类ARP回复报文是源MAC地址不是虚拟MAC地址的ARP回复报文,所述第二类ARP回复报文是源MAC地址是虚拟MAC地址的ARP回复报文; Receiving an ARP reply ARP packet group, the ARP reply packet includes: a first ARP reply packet type and second type of ARP reply packets; wherein the first type of ARP reply message is the source MAC address virtual MAC address is not an ARP reply packet, the second type of ARP reply message is the source MAC address is a virtual MAC address ARP reply message;

判断所述ARP回复报文组中的各报文是所述第一类ARP回复报文还是所述第二类ARP回复报文,当判断结果是所述第一类ARP回复报文时,获 When determining that the packet of each ARP reply packet is set in the first ARP reply packet type or the second type ARP reply packet, when the determination result of the first type is an ARP reply packet, is eligible

6得所述第一类ARP回复报文,将获得的所述第一类ARP回复^^艮文中的源MAC地址刷新到硬件地址解析协议表中。 6 have the first type of ARP reply packet, the first type of the obtained MAC address of the ARP reply ^^ Gen source text refresh hardware ARP table.

一种网元设备,该设备包括: A network element apparatus, the apparatus comprising:

ARP回复报文组接收单元,用于接收地址解析协议ARP回复才艮文组,所述ARP回复报文组包括:第一类ARP回复报文和第二类ARP回复报文;其中,所述第一类ARP回复报文是源MAC地址不是虚拟MAC地址的ARP回复报文,所述第二类ARP回复报文是源MAC地址是虛拟MAC地址的ARP 回复报文; Group ARP reply packet receiving unit, for receiving the address resolution protocol ARP reply packet before Gen group, the ARP reply packet includes: a first ARP reply packet type and second type of ARP reply packet; wherein said the first ARP reply packet is not the source MAC address of the virtual MAC address of the ARP reply packet, the second type of ARP reply message is the source MAC address is a virtual MAC address ARP reply message;

判断单元,用于判断所述ARP回复报文组中的各报文是第一类ARP回复报文还是第二类ARP回复报文; Determination means for determining whether the packets of each ARP reply packet is a first group ARP reply packet type or the second type ARP reply packet;

第一类ARP回复报文获得单元,用于当所述判断单元的判断结果为是第一类ARP回复报文时,获得所述第一类ARP回复报文; The first ARP reply packet obtaining unit, configured to, when said determination means determines the result of the first type is an ARP reply packet, obtaining the first type of ARP reply message;

第一类ARP回复报文刷新单元,用于将所获得的所述第一类ARP回复报文中的源MAC地址刷新到硬件地址解析协议表中。 The first refresh unit ARP reply packet, for the first class of the obtained source MAC address of an ARP reply packet to the hardware refresh ARP table.

上述技术方案中的一个技术方案具有以下技术效果: One aspect of the above solution has the following technical effects:

本发明实施例通过判断ARP回复报文组中的报文是第一类ARP回复报文还是第二类ARP回复报文,以获得第一类ARP回复^J:,并将该类报文中的源MAC地址刷新到硬件地址解析协议表中,使备用^^由器学习到的自身下挂的网关的MAC地址正确,即硬件地址解析协议表中存储的是正确的网关的MAC地址。 Embodiments of the invention is determined by the ARP reply packet in the packet group ARP reply is the first type or the second type packet ARP reply packet to obtain a first class ^ J :, and ARP reply packet class MAC address to the source MAC address refresh hardware ARP table that is learned by the standby ^^ linked to the gateway itself correctly, i.e. the hardware address resolution protocol table stored in the MAC address is correct gateway. 当主用路由器故障或者主用链路故障,备用路由器升为主用路由器并接收到下行报文时,就可以从硬件地址解析协议表中找到正确的备用路由器下挂的网关的MAC地址,向该网关传输下行报文,不会中断下行报文的传输。 When the active router fails or the active link fails, the standby router with the router and the main lift receiving the downlink packet, the MAC address can be found linked to the correct gateway hardware standby router ARP table, to gateway downlink packet transmission without interrupting the downlink packet transmission.

附图说明 BRIEF DESCRIPTION

图1是现有技术提供的双归组网图; FIG 1 is a view of a prior art dual-homed network provided;

图2是现有技术提供的ARP报文传输路径图; FIG 2 is a transmission path of FIG ARP packets prior art provided;

图3是本发明实施例一提供的学习MAC地址的方法流程图;图4是本发明实施例二提供的学习MAC地址的方法流程图; 图5是本发明实施例三提供的网元设备结构图; 图6是本发明实施例四提供的网元设备结构图。 FIG 3 is a flowchart of a method of learning a MAC address according to a first embodiment of the present invention; FIG. 4 is a flowchart of a method of learning a MAC address according to a second embodiment of the present invention; FIG. 5 is a network element device structure according to a third embodiment of the present invention FIG.; FIG. 6 is a configuration diagram of a network element device according to a fourth embodiment of the present invention. 务沐实施方式 Service Mu Embodiment

参阅图l和图3,本发明实施例一提供一种学习MAC地址的方法,该方法所适用的双归组网的拓朴结构如图1所示。 Referring to FIGS. L and 3, the embodiment of the present invention provides a method of learning a MAC address, the topology of the method applies dual-homing networking shown in Figure 1. 其中,网关AG通过两条链路分别连接到两台接入交换机SA和SB,两台接入交换才几SA和SB再分别连接到两台接入路由器RA和RB,假设RA作为主用路由器,RB作为备用路由器。 Wherein the gateway AG are connected through two links to two access switches SA and SB, the two access switches SA and SB are then only a few are connected to the two access routers RA and the RB, RA is assumed as the active router , RB as a backup router. 学习MAC地址的方法包括: MAC address learning method comprising:

步骤301、在老化时间到达时,备用路由器RB主动向RA和RB下挂的AG发起ARP请求,并接收来自AG和RA的ARP回复报文,构成ARP回复 Step 301, upon the arrival of the aging time, the standby router linked to the active RB RA and RB AG initiates an ARP request, and receives the ARP response from the AG and RA packets constituting an ARP reply

报文组。 Message group.

步骤302、在ARP回复报文组中,查找源IP地址相同的ARP回复报文, 并将找到的源IP地址相同的ARP回复报文归到相应的小组。 Step 302, the ARP reply packet group, the same source IP address lookup ARP reply packet, the same source IP address and the ARP reply packet to find normalized to the corresponding group. 此时,ARP回复报文组由多个小组组成,每个小组中的ARP回复报文具有相同的源IP地址。 In this case, an ARP reply packet group composed of a plurality of groups, each group in the ARP reply packets with the same source IP address.

对于AG的IP地址发生变化的情况,根据路由协议,RA是可以及时获知AG的新的IP地址的,因此,来自RA的ARP回复4艮文中的源IP地址是AG的当前的IP地址。 For the case where the IP address of AG is changed, the routing protocol, RA is to be informed of the new IP address AG, therefore, the ARP from the RA response the source IP address of 4 Gen text is the current IP address of AG. 所以在接收的ARP回复报文组中,将找到的源IP地址相同的ARP回复报文归到相应的小组。 Therefore, the same source IP address in the ARP receiving an ARP reply packet group, found in the reply message returned to the appropriate team. 此时,ARP回复报文组由多个小组组成,每个小组中的两个ARP回复报文一个来自RA,另外一个来自AG。 In this case, an ARP reply packet group composed of a plurality of groups, each group in a two ARP reply packet from RA, from another AG.

步骤303 、判断各小組中的各报文是第一类ARP回复报文还是第二类ARP 回复报文,如果是第一类ARP回复报文,执行步骤304;如果是第二类ARP 回复报文,执行步骤305。 Step 303 determines whether each packet is a first group of each ARP reply packet type or the second type ARP reply packet, if the first type is an ARP reply packet, step 304 is performed; if the second type of ARP reply message is Wen, step 305 is performed.

其中,第一类ARP回复报文是指源MAC地址不是虛拟MAC地址的ARP 回复4艮文,即源IP地址是AG的IP地址,源MAC地址是AG的MAC地址的ARP回复报文;第二类ARP回复报文是指源MAC地址是虚拟MAC地址的ARP回复才艮文,即源IP地址是AG的IP地址,而源MAC地址是虚拟MAC Wherein the first type of ARP reply message is not the source MAC address refers to a virtual MAC address of the ARP reply packet Gen 4, i.e., the source IP address is the IP address of AG, the source MAC address is the MAC address of the ARP reply packet AG; first two types of ARP reply packets refers to the source MAC address is a virtual MAC address of the ARP reply only to Gen text, that is the source IP address is the IP address of the AG, and the source MAC address is a virtual MAC

8地址的ARP回复报文。 ARP 8 address reply messages.

本步骤中判断各小组中的各报文是第一类ARP回复报文还是第二类ARP 回复报文是通过各报文中的源MAC地址判断的。 In this step, each group is determined each message is a first type or the second ARP reply packet type is an ARP reply packet by the source MAC addresses of packets determination. 如果ARP回复报文中的源MAC地址不是虚拟MAC地址,而是AG的MAC地址,则该ARP回复报文是第一类ARP回复报文。 If the source MAC address of the ARP reply packet is not the virtual MAC address, the MAC address instead of AG, the ARP reply packet is the first type of ARP reply message. 如果ARP回复报文中的源MAC地址是虚拟MAC 地址,则该ARP回复报文是第二类ARP回复报文。 If the source MAC address of the ARP reply packet is a virtual MAC address, the ARP reply packet is a second type of ARP reply message.

步骤304、获得第一类ARP回复报文,执行步骤306。 Step 304, to obtain a first type ARP reply packet, step 306 is performed.

步骤305、获得第二类ARP回复报文。 Step 305, the second type is obtained ARP reply packet.

步骤306、根据预先设置的第二类ARP回复报文的刷新时间,将第二类ARP回复报文中的源MAC地址刷新到硬件地址解析协议表。 Step 306, according to a second preset type of ARP reply message refresh time, the second type of ARP reply packet source MAC address refresh hardware ARP table.

RB上预置硬件地址解析协议表和软件地址解析协议表,正确的硬件地址解析协议表应该存储AG的MAC地址,软件地址解析协议表用于存储AG的IP地址,该硬件地址解析协议表中的MAC地址与软件地址解析协议表中的IP地址存在映射关系。 Preset hardware and software ARP table ARP table, the correct hardware ARP table should be stored on the AG RB MAC address, software ARP table for storing the IP address of AG, the hardware ARP table MAC address and software address resolution protocol mapping exists between IP address table. 对于AG的IP地址发生变化的情况,根据路由协议RB 可以及时获知AG的新的IP地址,将AG的新的IP地址自动刷新到软件地址解析协议表,保证软件地址解析协议表中的AG的IP地址是正确的AG的IP 地址。 In the case of IP address AG is changed, according to the routing protocol RB to be informed of the new IP address AG, the new IP address AG automatically refresh the software ARP table, to ensure that the software ARP table AG, IP addresses are correct AG IP address.

其中,第二类ARP回复报文中的源MAC地址刷新到硬件地址解析协议表的具体实现过程是:在软件地址解析协议表中找到第二类ARP回复报文中的源IP地址,根据预置的硬件地址解析协议表中的MAC地址与软件地址解析协议表中的IP地址的映射关系,将该第二类ARP回复报文中的源MAC地址,即虚拟MAC地址刷新到硬件地址解析协议表中。 Wherein the second type of ARP reply packet source MAC address specific to the hardware refresh ARP table process: found in the software ARP table second type source IP address in an ARP reply packets, according to the pre mapping between opposing hardware ARP table with the MAC address table software ARP the IP address, the second type of ARP reply packet source MAC address, i.e., the virtual MAC address to the hardware refresh ARP table. 此时,硬件地址解析协议表中存储的内容错误。 In this case, the hardware address resolution protocol error content stored in the table.

步骤307、根据预先设置的第一类ARP回复报文的刷新时间,将第一类ARP回复报文中的源MAC地址刷新到硬件地址解析协议表中。 Step 307, according to a first pre-set type of ARP reply message refresh time, the first type of ARP reply packet source MAC address refresh hardware ARP table.

其中,在RB上预先设置第二类ARP回复报文的刷新时间在第一类ARP 回复报文的刷新时间之前,刷新时间可以在ms级或者s级,上述刷新时间的起算点可以是:在获得第二类ARP回复报文之后。 Wherein RB is set in advance on the second type of ARP reply packet before the first refresh time type ARP reply message refresh time, refresh time can be in ms or s level above the starting point in the refresh time may be: after obtaining a second class of ARP reply packets. 其中,将第一类ARP回复报文中的源MAC地址刷新到石更件地址解析协议表的具体实现过程是:在软件地址解析协议表中找到第一类ARP回复报文中的源IP地址,根据预置的硬件地址解析协议表中的MAC地址与软件地址解析协议表中的IP地址的映射关系,将该第一类ARP回复净艮文中的源MAC 地址刷新到硬件地址解析协议表中。 Wherein the first type of ARP reply packet source MAC address are flushed to the stone member ARP table more specific implementation process is: find a first type ARP reply packet source IP address in the ARP table software the mapping between the IP preset hardware ARP table with the MAC address software ARP table, the first type of ARP reply packet source MAC address in the refresh net Gen hardware ARP table .

在实施例一中可以没有上述步骤302,步骤303中直接判断ARP回复报文组中的报文是第一类ARP回复报文还是第二类ARP回复报文,不影响本发明的实现。 In one embodiment the above-described embodiment can not step 302, step 303 determines an ARP reply packet directly to the packet type is a first group ARP reply packet or the second type ARP reply packet, does not affect the implementation of the invention.

本发明实施例一将源MAC地址是虚拟MAC地址的第二类ARP回复报文先刷新到硬件地址解析协议表,将源MAC地址不是虚拟MAC地址的第一类ARP回复报文后刷新到硬件地址解析协议表,使备用路由器RB能学习到正确的AG的MAC地址,即硬件地址解析协议表中存储的是正确的AG的MAC地址。 Embodiments of the invention will be a source MAC address of the second class virtual MAC address ARP reply message to the first hardware refresh address resolution protocol table, the source MAC address is not a virtual flush to the MAC address of the ARP reply packet to the first type of hardware ARP tables, so that the backup router RB AG can learn the correct MAC address, i.e., the hardware address resolution protocol table stored in the AG is correct MAC address. 当主用路由器故障或者主用链路故障,备用路由器RB升为主用路由器接收到下行报文时,就可以从硬件地址解析协议表中找到正确的AG 的MAC地址,向该AG传输下行报文,不会中断下行报文的传输。 When the active router fails or the active link fails, the standby router RB liter based downlink packet received by the router, you can find the correct AG hardware MAC address in the ARP table, transmitting the downlink packet to the AG without interruption downlink packet transmission.

参阅图4,本发明实施例二提供一种学习MAC地址的方法,该方法包括: Referring to Figure 4, there is provided a method of learning the MAC address according to the second embodiment of the present invention, the method comprising:

步骤401、在老化时间到达时,备用路由器RB主动向RA和RB下挂的AG发起ARP请求,并接收来自AG和RA的ARP回复报文,构成ARP回复报文组。 Step 401, upon the arrival of the aging time, the standby router linked to the active RB RA and RB AG initiates an ARP request, and receives the ARP response from the AG and RA messages, ARP reply packets constituting the group.

步骤402-步骤405与步骤302-步骤305相同。 Step 402- Step 405 is the same as step 302 to step 305.

步骤406、删除步骤405中获得的第二类ARP回复报文。 Step 406, to obtain the deletion step 405 second class of ARP reply packets.

步骤407、将第一类ARP回复报文中的源MAC地址刷新到硬件地址解析协议表中。 Step 407, the first type of ARP reply packet source MAC address refresh hardware ARP table.

其中,步骤406可以在步骤407之后执行,也可以同步骤407同时执行, 不影响本发明的实现。 Wherein, the step 406 may be performed after step 407, step 407 may be performed simultaneously with, it does not affect the implementation of the invention.

在实施例二中可以没有上述步骤402,步骤403中直接判断ARP回复报文组中的报文是第一类ARP回复报文还是第二类ARP回复报文,不影响本发 In the two embodiments may be implemented without the above step 402, step 403 determines an ARP reply packet directly to the packet type is a first group ARP reply packet or the second type ARP reply packet, the present invention does not affect

10明的实现。 10 out of realization.

上述实施例二也可以采用如下方式实现:在老化时间到达时,备用路由 The above-described second embodiment may also be implemented in the following way: upon the arrival of the aging time, alternate route

器RB主动向RA和RB下挂的AG发起ARP请求,先接收到来自AG的ARP 回复报文,通过判断来自AG的ARP回复报文中的源MAC地址确定该ARP 回复报文是第一类ARP回复报文,将第一类ARP回复报文中的源MAC地址刷新到硬件地址解析协议表。 RB, initiates an ARP request to the RA and RB hanging AG, AG from the first receiving an ARP reply packet, by determining whether the AG ARP reply from the source MAC address of the packet is an ARP reply packet to determine the first type ARP reply packet, the first type of ARP reply packet source MAC address refresh hardware ARP table. 再接收来自RA的ARP回复报文,通过判断来自RA的ARP回复报文中的源MAC地址确定该ARP回复报文是第二类ARP 回复报文,将第二类ARP回复报文删除。 RA is again received from the ARP reply packet, by determining the RA ARP reply from the source MAC address of the packet to determine the second ARP reply packet is an ARP reply packet type, the second type of ARP reply message to delete.

本发明实施例二将源MAC地址是虚拟MAC地址的第二类ARP回复报文删除,将源MAC地址不是虛拟MAC地址的第一类ARP回复净艮文刷新到硬件地址解析协议表,使备用路由器RB能学习到正确的AG的MAC地址, 即硬件地址解析协议表中存储的是正确的AG的MAC地址。 According to a second embodiment of the present invention, the source MAC address is the MAC address of the second class virtual ARP reply packet deleting the source MAC address of the virtual MAC address is not a first type of ARP reply message net Gen refresh hardware ARP tables, so that the standby router RB AG can learn the correct MAC address, i.e., the hardware address resolution protocol table stored in the AG is correct MAC address. 当主用路由器故障或者主用链路故障,备用路由器RB升为主用路由器接收到下行报文时,就可以从硬件地址解析协议表中找到正确的AG的MAC地址,向该AG传输下行报文,不会中断下行报文的传输。 When the active router fails or the active link fails, the standby router RB liter based downlink packet received by the router, you can find the correct AG hardware MAC address in the ARP table, transmitting the downlink packet to the AG without interruption downlink packet transmission.

本领域普通技术人员可以理解实现上述实施例方法中的全部或者部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读取存储介质中,如:ROM/RAM,磁盘、光盘等。 Those of ordinary skill in the art may understand that the above-described embodiment, all or part of the method steps may be hardware instructed by a program, the program may be stored in a computer readable storage medium, such as: ROM / RAM, disk, CD-ROM.

参阅图5,本发明实施例三提供一种网元设备,该设备包括:ARP回复报文组接收单元501、判断单元502、第一类ARP回复报文获得单元503、第—类ARP回复报文刷新单元504; Referring to Figure 5, according to a third embodiment of the present invention there is provided a network element, the apparatus comprising: an ARP reply packet group receiving unit 501, determining unit 502, a first type ARP reply packet obtaining unit 503, the first - class ARP reply message Wen refresh unit 504;

ARP回复报文组接收单元501,接收解析协议ARP回复报文组,ARP回复报文组包括:第一类ARP回复报文和第二类ARP回复报文;其中,第一类ARP回复报文是源MAC地址不是虛拟MAC地址的ARP回复报文,第二类ARP回复报文是源MAC地址是虛拟MAC地址的ARP回复报文;判断单元502,判断接收的ARP回复报文组中的各报文是第一类ARP回复报文还是第二类ARP回复报文;第一类ARP回复报文获得单元503,当判断单元502的判断结果为是第一类ARP回复报文时,获得第一类ARP回复报文;第一类ARP回复报文刷新单元504,将获得的第一类ARP回复报文中的源MAC地址刷新到硬件地址解析协议表中。 ARP reply packet group receiving unit 501 receives resolution protocol ARP reply packet group, an ARP reply packet includes: a first ARP reply packet type and second type of ARP reply packets; wherein the first type of ARP reply message the source MAC address is not a virtual MAC address ARP reply packet, the second packet is an ARP reply is the source MAC address of the virtual MAC address ARP reply message; determining unit 502 determines whether the received packet is an ARP reply in each group the first packet is an ARP reply packet or the second type ARP reply message; a first type ARP reply packet obtaining unit 503, when the judgment result of the judgment unit 502 is a first type is an ARP reply packet to obtain first an ARP reply packet type; a first type ARP reply packet refresh unit 504, the obtained first type ARP reply packet source MAC address refresh hardware ARP table.

在ARP回复报文组接收单元501和判断单元502之间,该设备还包括: In the ARP reply packet receiving unit 501 and the group determination unit 502 between, the apparatus further comprising:

划组单元505 ,用于在接收的ARP回复4艮文组中,查找源IP地址相同的ARP回复报文,并将找到的源IP地址相同的ARP回复报文归到相应的小组; Designated group unit 505, configured to receive an ARP reply packet group Gen 4, the same look the same source IP address of an ARP reply packet, and to find the source IP address to return an ARP reply packet corresponding group;

判断单元502判断ARP回复报文组中的各报文是第一类ARP回复报文还是第二类ARP回复报文是:判断被划归到各小组中的报文是第一类ARP回复报文还是第二类ARP回复报文。 Determination unit 502 determines an ARP reply packet for each packet type is a first group ARP reply packet or the second type is an ARP reply message: the message is determined to be classified into each group is the first type of ARP reply message The second type text or ARP reply packets.

该设备还包括: The apparatus further comprising:

第二类ARP回复报文获得单元506,当判断单元502的判断结果为是第二类ARP回复报文时,获得第二类ARP回复报文。 The second category ARP reply packet obtaining unit 506, when the judgment result of the judgment unit 502 is the second type is an ARP reply packet to obtain a second type of ARP reply message.

刷新时间设置单元507,设置第二类ARP回复报文的刷新时间在第一类ARP回复报文的刷新时间之前; Refresh time setting unit 507, before the second refresh time type ARP reply packet to the first refresh time type ARP reply message is provided;

第二类ARP回复报文刷新单元508,在设置的第二类ARP回复报文的刷新时间,将获得的第二类ARP回复报文中的虚拟MAC地址刷新到硬件地址解析协议表; The second category ARP reply packet refresh unit 508, provided in the second type of ARP reply message refresh time, the second type of the obtained virtual MAC address ARP reply packet to the hardware refresh address resolution protocol table;

第一类ARP回复报文刷新单元504将获得的第一类ARP回复报文中的源MAC地址刷新到硬件地址解析协议表中是:在设置的第一类ARP回复报文的刷新时间,将获得的第一类ARP回复报文中的源MAC地址刷新到硬件地址解析协议表中。 The first refresh unit ARP reply packets 504 obtained first source MAC address based ARP reply packet to the hardware refresh ARP table are: a first class provided ARP reply message refresh time, the obtaining a first type of ARP reply packet source MAC address refresh hardware ARP table.

本发明实施例三中的第二类ARP回复报文刷新单元508根据预先设置的第二类ARP回复报文的刷新时间,将源MAC地址是虛拟MAC地址的第二类ARP回复报文先刷新到硬件地址解析协议表,第一类ARP回复报文刷新单元504根据预先设置的第一类ARP回复报文的刷新时间,将源MAC地址不是虚拟MAC地址的第一类ARP回复报文后刷新到硬件地址解析协议表,使备用路由器RB能学习到正确的AG的MAC地址,即硬件地址解析协议表中存储的是正确的AG的MAC地址。 The second type according to a third embodiment of the ARP reply packet of the present invention, the refresh unit 508 according to a second preset type of ARP reply message refresh time, the source MAC address is the MAC address of the second class virtual ARP response message to the first refresh hardware address resolution protocol table, a first ARP reply packet type refresh unit 504 refresh after a first packet according to a preset type ARP reply packets refresh time, the source MAC address of the virtual MAC address is not a first type of ARP reply hardware address resolution protocol table, so that the backup router RB AG can learn the correct MAC address, i.e., the hardware address resolution protocol table stored in the AG is correct MAC address. 当主用路由器故障或者主用链路故障,备 When the active router fails or the active link fails, the standby

12用路由器RB升为主用路由器接收到下行报文时,就可以从硬件地址解析协议 12 liters with the router RB based downlink packet received by the router, can be hardware address resolution protocol

表中找到正确的AG的MAC地址,向该AG传输下行报文,不会中断下行报文的传输。 AG table to find the correct MAC address to the AG downlink packet transmission without interrupting the downlink packet transmission.

参阅图6,本发明实施例四提供一种网元设备,该设备包^^舌:ARP回复报文组接收单元60〗、判断单元602、第一类ARP回复报文获得单元603、第一类ARP回复报文刷新单元604、划组单元605,第二类ARP回复报文获得单元606、上述单元功能与连接关系与实施例三中的相同; Referring to Figure 6, according to a fourth embodiment of the present invention there is provided a network element device, which device tongue ^^: ARP reply packet receiving unit 60〗 group judgment unit 602, a first type ARP reply packet obtaining unit 603, a first class ARP reply packet refresh unit 604, a designated group unit 605, the second ARP reply packet obtaining unit 606, the same as in the above-described three functional units and connection relation embodiment;

该设备还包括: The apparatus further comprising:

第二类ARP回复报文删除单元607,删除获得的第二类ARP回复报文。 The second category ARP reply message deletion unit 607 deletes obtained second class of ARP reply packets.

本发明实施例四中的第二类ARP回复报文删除单元607将源MAC地址是虚拟MAC地址的第二类ARP回复报文删除,第一类ARP回复报文刷新单元604将源MAC地址不是虚拟MAC地址的第一类ARP回复报文刷新到硬件地址解析协议表,使备用路由器RB能学习到正确的AG的MAC地址,即硬件地址解析协议表中存储的是正确的AG的MAC地址。 ARP second type according to a fourth embodiment of the present invention reply message deletion unit 607 of the source MAC address is the MAC address of the second class virtual ARP response message to remove the first type of ARP reply packet to the source MAC address of the refresh unit 604 is not a first class virtual MAC address of the ARP reply packet to the hardware refresh ARP tables, so that the backup router RB AG can learn the correct MAC address, i.e., the hardware address resolution protocol table stored in the AG is correct MAC address. 当主用路由器故障或者主用链路故障,备用路由器RB升为主用路由器接收到下行报文时,就可以从硬件地址解析协议表中找到正确的AG的MAC地址,向该AG传输下行报文,不会中断下行报文的传输。 When the active router fails or the active link fails, the standby router RB liter based downlink packet received by the router, you can find the correct AG hardware MAC address in the ARP table, transmitting the downlink packet to the AG without interruption downlink packet transmission.

以上对本发明所提供的一种学习MAC地址的方法及网元设备进行了详细介绍,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 The foregoing method and apparatus for a network element of learning the MAC address provided by the invention will be described in detail, for those of ordinary skill in the art, according to the idea of ​​an embodiment of the present invention may make modifications to the specific implementation and application scope place, Therefore, the specification shall not be construed as limiting the present invention.

13 13

Claims (8)

1、一种学习MAC地址的方法,其特征在于,包括:接收地址解析协议ARP回复报文组,所述ARP回复报文组包括:第一类ARP回复报文和第二类ARP回复报文;其中,所述第一类ARP回复报文是源MAC地址不是虚拟MAC地址的ARP回复报文,所述第二类ARP回复报文是源MAC地址是虚拟MAC地址的ARP回复报文;判断所述ARP回复报文组中的各报文是所述第一类ARP回复报文还是所述第二类ARP回复报文;在第二类ARP回复报文的刷新时间,将所述第二类ARP回复报文中的虚拟MAC地址刷新到硬件地址解析协议表;在第一类ARP回复报文的刷新时间,将所述第一类ARP回复报文中的源MAC地址刷新到所述硬件地址解析协议表;其中,所述第二类ARP回复报文的刷新时间在所述第一类ARP回复报文的刷新时间之前。 1. A method for MAC address learning, wherein, comprising: receiving an address resolution protocol ARP reply packet group, the ARP reply packet includes: a first ARP reply packet type and second type of ARP reply message ; wherein the first type of ARP reply message is not the source MAC address of the virtual MAC address of the ARP reply packet, the second type of ARP reply message is the source MAC address is a virtual MAC address ARP reply message; Analyzing the ARP reply packet for each packet of the first group is the ARP reply packet type or the second type ARP reply packet; in a second type refresh time ARP reply message, the second class virtual MAC address ARP reply packet to the hardware refresh ARP table; in a first refresh time type ARP reply message, the first type of ARP reply packet source MAC address to the hardware refresh ARP table; wherein, prior to the second type refresh time ARP reply packet in the first type of ARP reply message refresh time.
2、根据权利要求1所示的方法,其特征在于:在判断所述ARP回复报文组中的各报文是第一类ARP回复报文还是第二类ARP回复I艮文之前,该方法还包括:在所述ARP回复报文组中,查找源IP地址相同的ARP回复才艮文,并将找到的源IP地址相同的ARP回复报文划归到相应的小组;判断所述ARP回复报文组中的各报文是第一类ARP回复报文还是第二类ARP回复报文具体为:判断所述各小组中的报文是第一类ARP回复报文还是第二类ARP回复报文。 2. The method according to claim 1 illustrated, wherein: in said determining of each ARP reply packet in the packet group ARP reply is the first type or the second type packet ARP reply packet before Gen I, which further comprising: in the ARP reply packet group, to find the source IP address is the same before an ARP reply packet Burgundy, the same source IP address and find ARP reply packet corresponding to the classified group; determining whether the ARP reply each packet in the packet group of the first type or the second ARP reply packet ARP reply packet type specifically comprises: determining whether the packet is a first group of each ARP reply packet type or the second type ARP reply message.
3、 一种学习MAC地址的方法,其特征在于,包括:接收地址解析协议ARP回复报文组,所述ARP回复报文组包括:第一类ARP回复报文和第二类ARP回复报文;其中,所述第一类ARP回复报文是源MAC地址不是虚拟MAC地址的ARP回复报文,所述第二类ARP回复才艮文是源MAC地址是虚拟MAC地址的ARP回复l艮文;判断所述ARP回复报文组中的各报文是所述第一类ARP回复报文还是所述第二类ARP回复报文;删除所述第二类ARP回复报文;将所述第一类ARP回复报文中的源MAC地址刷新到硬件地址解析协议表中。 3, a method for MAC address learning, wherein, comprising: receiving an address resolution protocol ARP reply packet group, the ARP reply packet includes: a first ARP reply packet type and second type of ARP reply message ; wherein the first type of ARP reply message is not the source MAC address of the virtual MAC address of the ARP reply packet, the second type of ARP reply message is only Burgundy source MAC address is the MAC address of the virtual ARP reply packet Gen l ; determining whether the ARP reply packet for each packet of the first group is the ARP reply packet type or the second type ARP reply packet; deleting the second type of ARP reply packet; the first a source MAC address based ARP reply packet to the hardware refresh ARP table.
4、 根据权利要求3所示的方法,其特征在于:在判断所述ARP回复报文组中的各报文是第一类ARP回复报文还是第二类ARP回复报文之前,该方法还包括:在所述ARP回复l艮文组中,查找源IP地址相同的ARP回复报文,并将找到的源IP地址相同的ARP回复报文划归到相应的小组;判断所述ARP回复报文组中的各报文是第一类ARP回复报文还是第二类ARP回复报文具体为:判断所述各小组中的报文是第一类ARP回复报文还是第二类ARP回复报文。 4, according to the method shown in claim 3, wherein: in said determining of each ARP reply packet in the packet group type is a first packet or an ARP reply packet before the ARP reply the second type, the method further comprising: the ARP reply packet Gen l group, the same look the same source IP address of an ARP reply packet, and to find the source IP address of an ARP reply packets classified to the respective groups; determining whether the ARP reply packet each packet in the packet group of the first type or the second ARP reply packet ARP reply packet type specifically comprises: determining whether the packet is a first group of each ARP reply packet type or the second type ARP reply message Wen.
5、 一种网元设备,其特征在于,该设备包括:ARP回复报文组接收单元,用于接收地址解析协议ARP回复报文组,所述ARP回复报文组包括:第一类ARP回复报文和第二类ARP回复报文;其中,所述第一类ARP回复报文是源MAC地址不是虚拟MAC地址的ARP回复报文,所述第二类ARP回复报文是源MAC地址是虚拟MAC地址的ARP 回复寺艮文;判断单元,用于判断所述ARP回复报文组中的各报文是第一类ARP回复报文还是第二类ARP回复报文;第二类ARP回复报文获得单元,用于当所述判断单元的判断结果为是第二类ARP回复报文时,获得所述第二类ARP回复报文;第二类ARP回复报文刷新单元,用于在第二类ARP回复报文的刷新时间, 将获得的所述第二类ARP回复才艮文中的虛拟MAC地址刷新到所述硬件地址解析协议表;第一类ARP回复报文获得单元,用于当所述判断单元的判断结果为是第一类ARP 5. A network element apparatus, wherein, the apparatus comprising: a set of ARP reply packet receiving unit, for receiving the address resolution protocol ARP reply packet group, the ARP reply packet includes: a first category ARP reply a second type packets and ARP response message; wherein the first type of ARP reply message is not the source MAC address of the virtual MAC address of the ARP reply packet, the second type is an ARP reply packet source MAC address virtual MAC address ARP reply packet Gen Temple; determining means for determining whether the packets of each ARP reply packet is a first group ARP reply packet type or the second type ARP reply packet; second ARP reply packet obtaining means, for determining when the judgment result is a second type cell is an ARP reply packet time to obtain the second type of ARP reply message; second ARP reply packet refreshing unit for the second category refresh time ARP reply message, the second category will receive an ARP reply packet Gen only the virtual MAC address to the hardware refresh address resolution protocol table; a first type ARP reply packet obtaining means, for when the determination result of the determination means is a first type of ARP 回复报文时,获得所述第一类ARP回复报文;第一类ARP回复报文刷新单元,用于在第一类ARP回复报文的刷新时间, 将所获得的所述第一类ARP回复报文中的源MAC地址刷新到所述硬件地址解析协议表中;刷新时间设置单元,用于设置所述第二类ARP回复报文的刷新时间在所述第一类ARP回复报文的刷新时间之前。 When the response message to obtain the first type of ARP reply message; a first type ARP reply packet refreshing unit, a first refresh time for the ARP reply packet type, the first type of the obtained ARP reply packet source MAC address to the hardware refresh address resolution protocol table; refresh time setting unit for setting the second type of ARP reply message refresh time in the first type of ARP reply packets refresh before time.
6、 根据权利要求5所示的设备,其特征在于:在ARP回复报文组接收单元和判断单元之间,该设备还包括:划组单元,用于在接收的所述ARP回复寺艮文组中,查找源IP地址相同的ARP回复报文,并将找到的源IP地址相同的ARP回复报文划归到相应的小组;所述判断单元判断所述ARP回复报文组中的各报文是第一类ARP回复报文还是第二类ARP回复报文是:判断所述各小组中的报文是第一类ARP回复报文还是第二类ARP回复报文。 6. The apparatus as claimed in claim 5 shown, wherein: the group receiving reply packets between the unit and the determination unit ARP, the apparatus further comprising: a designated group unit, for receiving the ARP reply packet temple Gen the same group, the same source IP address lookup ARP reply packet, and to find the source IP address of an ARP reply packets classified to the respective groups; the judging unit judges that the packets of each ARP reply packet group ARP reply packet is a first packet type or the second type is an ARP reply packet: determining whether the packet is a first group of each ARP reply packet type or the second type of ARP reply message.
7、 一种网元设备,其特征在于,该设备包括:ARP回复报文组接收单元,用于接收地址解析协议ARP回复报文组,所述ARP回复报文组包括:第一类ARP回复报文和第二类ARP回复报文;其中,所述第一类ARP回复报文是源MAC地址不是虚拟MAC地址的ARP回复报文,所述第二类ARP回复报文是源MAC地址是虚拟MAC地址的ARP 回复报文;判断单元,用于判断所述ARP回复报文组中的各报文是第一类ARP回复报文还是第二类ARP回复报文;第二类ARP回复报文获得单元,用于当所述判断单元的判断结果为是第二类ARP回复报文时,获得所述第二类ARP回复报文;第二类ARP回复才艮文删除单元,用于删除所述获得的第二类ARP回复报文;第一类ARP回复报文获得单元,用于当所述判断单元的判断结果为是第一类ARP回复报文时,获得所述第一类ARP回复报文;第一类ARP回复报文刷新单元,用于将所 7. A network element apparatus, wherein, the apparatus comprising: a set of ARP reply packet receiving unit, for receiving the address resolution protocol ARP reply packet group, the ARP reply packet includes: a first category ARP reply a second type packets and ARP response message; wherein the first type of ARP reply message is not the source MAC address of the virtual MAC address of the ARP reply packet, the second type is an ARP reply packet source MAC address virtual MAC address of an ARP reply packet; determining means for determining whether the packets of each ARP reply packet is a first group ARP reply packet type or the second type ARP reply packet; second ARP reply message packet obtaining unit, configured to, when the judgment result of the judgment unit is the second type is an ARP reply packet to obtain the second type of ARP reply packet; second ARP reply packet before Gen deleting unit for deleting the obtained second ARP reply packet type; a first type ARP reply packet obtaining means, for determining result when the determining unit when the first type is an ARP reply packet, obtaining the first type of ARP reply message; a first type ARP reply packet refreshing unit, for the 得的所述第一类ARP回复报文中的源MAC地址刷新到石更件地址解析协议表中。 Was the first type of ARP reply packet source MAC address are flushed to more stone member ARP table.
8、 根据权利要求7所示的设备,其特征在于:在ARP回复报文组接收单元和判断单元之间,该设备还包括: 划组单元,用于在接收的所述ARP回复才艮文组中,查找源IP地址相同的ARP回复报文,并将找到的源IP地址相同的ARP回复报文划归到相应的小组;所述判断单元判断所述ARP回复报文组中的各报文是第一类ARP回复报文还是第二类ARP回复报文是:判断所述各小组中的报文是第一类ARP回复报文还是第二类ARP回复报文。 8. The apparatus shown in claim 7, wherein: the group receiving reply packets between the unit and the determination unit ARP, the apparatus further comprising: a designated group unit, for receiving the ARP reply packet before Gen the same group, the same source IP address lookup ARP reply packet, and to find the source IP address of an ARP reply packets classified to the respective groups; the judging unit judges that the packets of each ARP reply packet group ARP reply packet is a first packet type or the second type is an ARP reply packet: determining whether the packet is a first group of each ARP reply packet type or the second type of ARP reply message.
CN 200710129551 2007-06-29 2007-06-29 Method for studying MAC address and network element apparatus CN100490411C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200710129551 CN100490411C (en) 2007-06-29 2007-06-29 Method for studying MAC address and network element apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 200710129551 CN100490411C (en) 2007-06-29 2007-06-29 Method for studying MAC address and network element apparatus
PCT/CN2008/071439 WO2009003394A1 (en) 2007-06-29 2008-06-26 Method for studying mac address and network element apparatus

Publications (2)

Publication Number Publication Date
CN101075933A CN101075933A (en) 2007-11-21
CN100490411C true CN100490411C (en) 2009-05-20

Family

ID=38976760

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200710129551 CN100490411C (en) 2007-06-29 2007-06-29 Method for studying MAC address and network element apparatus

Country Status (2)

Country Link
CN (1) CN100490411C (en)
WO (1) WO2009003394A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100490411C (en) * 2007-06-29 2009-05-20 华为技术有限公司 Method for studying MAC address and network element apparatus
CN102291320B (en) 2011-09-29 2015-03-18 杭州华三通信技术有限公司 MAC (media access control) address learning method and edge device
CN102420768A (en) * 2011-12-15 2012-04-18 北京星网锐捷网络技术有限公司 Link switching method and device, data transmission method and device, and network equipment
CN103227757B (en) 2012-08-31 2016-12-28 杭州华三通信技术有限公司 OSPF packets forwarding method and apparatus
CN102868616B (en) * 2012-09-21 2015-07-08 华为技术有限公司 Method for establishing virtual MAC (Media Access Control) address table item in network as well as router and system
CN103491000B (en) * 2013-09-17 2016-09-28 烽火通信科技股份有限公司 Virtual Router Redundancy Protocol Virtual management system and method of ip and mac
CN104468855B (en) * 2013-09-25 2018-04-03 阿里巴巴集团控股有限公司 Method and apparatus for processing address resolution protocol messages arp
CN104869063B (en) * 2014-02-21 2019-02-12 华为技术有限公司 Host routes processing method and relevant device and communication system in virtual subnet
CN105530187B (en) * 2015-12-14 2019-06-14 小米科技有限责任公司 Physical address acquisition methods and device
CN105827532A (en) * 2016-05-12 2016-08-03 深圳市蜂联科技有限公司 Methods for discovering and converting true MACs of STAs linked under repeater by router

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6567377B1 (en) 1999-03-18 2003-05-20 3Com Corporation High performance load balancing of outbound internet protocol traffic over multiple network interface cards
CN1531262A (en) 2003-03-11 2004-09-22 华为技术有限公司 Network communication method for carrying out load division
US6856591B1 (en) 2000-12-15 2005-02-15 Cisco Technology, Inc. Method and system for high reliability cluster management
JP2006041593A (en) 2004-07-22 2006-02-09 Mitsubishi Electric Corp Encryption communication system and encryption apparatus
JP2006050307A (en) 2004-08-05 2006-02-16 Matsushita Electric Ind Co Ltd Router and setting method therefor
CN1754374A (en) 2003-03-28 2006-03-29 思科技术公司 Network address translation with gateway load distribution
CN1905488A (en) 2006-08-15 2007-01-31 华为技术有限公司 Method and system for access user by virtual router redundance protocol

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1272937C (en) * 2002-12-04 2006-08-30 联想(北京)有限公司 Dynamic resolution method of a single IP address multiple hardware address
CN100492984C (en) * 2003-10-14 2009-05-27 华为技术有限公司 Method for realizing data transfer backup through address interpretation protocol messages
CN100490411C (en) * 2007-06-29 2009-05-20 华为技术有限公司 Method for studying MAC address and network element apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6567377B1 (en) 1999-03-18 2003-05-20 3Com Corporation High performance load balancing of outbound internet protocol traffic over multiple network interface cards
US6856591B1 (en) 2000-12-15 2005-02-15 Cisco Technology, Inc. Method and system for high reliability cluster management
CN1531262A (en) 2003-03-11 2004-09-22 华为技术有限公司 Network communication method for carrying out load division
CN1754374A (en) 2003-03-28 2006-03-29 思科技术公司 Network address translation with gateway load distribution
JP2006041593A (en) 2004-07-22 2006-02-09 Mitsubishi Electric Corp Encryption communication system and encryption apparatus
JP2006050307A (en) 2004-08-05 2006-02-16 Matsushita Electric Ind Co Ltd Router and setting method therefor
CN1905488A (en) 2006-08-15 2007-01-31 华为技术有限公司 Method and system for access user by virtual router redundance protocol

Also Published As

Publication number Publication date
CN101075933A (en) 2007-11-21
WO2009003394A1 (en) 2009-01-08

Similar Documents

Publication Publication Date Title
JP4060378B2 (en) Multi-layer distributed network element
US8619595B2 (en) Fault isolation in trill networks
US8331220B2 (en) Edge node redundant system
CN102449963B (en) Load balancing across layer-2 domains
CN103098424B (en) Systems and methods for multi-chassis link aggregation
CN101529809B (en) Distributed storage of routing information in a link state protocol controlled network
US8953590B1 (en) Layer two virtual private network having control plane address learning supporting multi-homed customer networks
US8705528B2 (en) Subnet scoped multicast/broadcast packet distribution mechanism over a routed network
CN101483558B (en) Method, system and apparatus for packet switching network access by network appliance
US7492766B2 (en) Dynamic building of VLAN interfaces based on subscriber information strings
US8339940B2 (en) Multi-active detection method and stack member device
EP2618535A1 (en) Method and system for realizing virtual machine mobility
US8923296B2 (en) System and methods for managing network packet forwarding with a controller
US20050111352A1 (en) Method and system for monitoring a network containing routers using a backup routing protocol
US7362700B2 (en) Methods and systems for hitless restart of layer 3 packet forwarding
US7751329B2 (en) Providing an abstraction layer in a cluster switch that includes plural switches
CN100334866C (en) Method for realizing dynamic gateway load sharing and backup
US10097372B2 (en) Method for resource optimized network virtualization overlay transport in virtualized data center environments
EP2093944B1 (en) A method, a system and a router for implementing communication between the ip devices
CN101601232B (en) Triple-tier anycast addressing
CN1208929C (en) Method for realizing router interface backup by using virtual router redundancy procotol
CN101047601B (en) Implementing method and system of double-attach network based on VPLS
US8694664B2 (en) Active-active multi-homing support for overlay transport protocol
US8089967B2 (en) Modification of a switching table of an internet protocol switch
EP2124418B1 (en) Reliability processing method and system of metro ethernet network which provides multi-service group network

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
CF01