Movatterモバイル変換


[0]ホーム

URL:


CN113839862B - Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors - Google Patents

Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors
Download PDF

Info

Publication number
CN113839862B
CN113839862BCN202111089267.9ACN202111089267ACN113839862BCN 113839862 BCN113839862 BCN 113839862BCN 202111089267 ACN202111089267 ACN 202111089267ACN 113839862 BCN113839862 BCN 113839862B
Authority
CN
China
Prior art keywords
address resolution
resolution protocol
information
table item
protocol table
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.)
Active
Application number
CN202111089267.9A
Other languages
Chinese (zh)
Other versions
CN113839862A (en
Inventor
董建军
郭巍松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
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 Suzhou Inspur Intelligent Technology Co LtdfiledCriticalSuzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111089267.9ApriorityCriticalpatent/CN113839862B/en
Publication of CN113839862ApublicationCriticalpatent/CN113839862A/en
Application grantedgrantedCritical
Publication of CN113839862BpublicationCriticalpatent/CN113839862B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明提供一种MCLAG邻居之间同步ARP信息的方法、系统、终端及存储介质,包括:监控交换机内核的新地址解析协议表项和地址解析协议报文,并从地址解析协议报文中提取地址解析协议表项信息;将新地址解析协议表项和地址解析协议表项信息均同步至目标节点的邻居节点,所述目标节点和邻居节点属于同一跨设备链路聚合组。本发明可以有效防止跨设备链路聚合组节点或交换机的ARP信息的老化,当链路切换发生时,能够做到极少甚至不丢包,给用户带来更好的使用体验。

Figure 202111089267

The invention provides a method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors, including: monitoring the new address resolution protocol entry and address resolution protocol message of the switch core, and extracting from the address resolution protocol message Address resolution protocol entry information; synchronizing both the new address resolution protocol entry and the address resolution protocol entry information to the neighbor nodes of the target node, and the target node and the neighbor nodes belong to the same cross-device link aggregation group. The present invention can effectively prevent aging of ARP information of cross-device link aggregation group nodes or switches, and when link switching occurs, little or no packet loss can be achieved, bringing better user experience to users.

Figure 202111089267

Description

Translated fromChinese
MCLAG邻居之间同步ARP信息的方法、系统、终端及存储介质Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors

技术领域technical field

本发明涉及数据通信技术领域,具体涉及一种MCLAG邻居之间同步ARP信息的方法、系统、终端及存储介质。The invention relates to the technical field of data communication, in particular to a method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors.

背景技术Background technique

基于IEEE802.3ad标准的LACP(Link Aggregation Control Protocol,链路汇聚控制协议)是一种实现链路动态汇聚的协议。LACP协议通过LACPDU(链路汇聚控制协议数据单元)与对端交互信息。启用某端口的LACP协议后,该端口将通过发送LACPDU向对端通告自己的系统优先级、系统MAC地址、端口优先级、端口号和操作Key。对端接收到这些信息后,将这些信息与其它端口所保存的信息比较以选择能够汇聚的端口,从而双方可以对端口加入或退出某个动态汇聚组达成一致。链路聚合技术的使用,使得逻辑链路的带宽增加了大约(n-1)倍,这里,n为聚合的路数。另外,聚合后,可靠性大大提高,因为,n条链路中只要有一条可以正常工作,则这个链路就可以工作。除此之外,链路聚合可以实现负载均衡。因为,通过链路聚合连接在一起的两个交换机(或其他网络设备),通过内部控制,也可以合理地将数据分配在被聚合连接的设备上,实现负载分担。例如,设备A、B之间运行LACP,将三个端口进行聚合。三条链路既可以运行在active、standby模式,也可以运行在load balance模式。当其中某条链路出现故障,数据转发不受影响。LACP实现了链路备份,但不能跨设备进行聚合,没有解决设备的单点故障问题。设备A、B任意一台设备出现故障,数据转发仍然会受到影响。LACP (Link Aggregation Control Protocol, Link Aggregation Control Protocol) based on the IEEE802.3ad standard is a protocol for realizing dynamic link aggregation. The LACP protocol exchanges information with the peer end through LACPDU (Link Aggregation Control Protocol Data Unit). After the LACP protocol of a certain port is enabled, the port will notify the other end of its system priority, system MAC address, port priority, port number and operation key by sending LACPDU. After receiving the information, the opposite end compares the information with the information saved by other ports to select a port that can be aggregated, so that the two parties can reach a consensus on whether the port joins or exits a dynamic aggregation group. The use of the link aggregation technology increases the bandwidth of the logical link by approximately (n-1) times, where n is the number of aggregated paths. In addition, after aggregation, the reliability is greatly improved, because as long as one of the n links can work normally, this link can work. In addition, link aggregation can achieve load balancing. Because, two switches (or other network devices) connected together through link aggregation, through internal control, can also reasonably distribute data to the devices connected through the aggregation to achieve load sharing. For example, LACP is run between devices A and B, and the three ports are aggregated. The three links can run in active, standby mode, or in load balance mode. When one of the links fails, data forwarding is not affected. LACP implements link backup, but cannot perform aggregation across devices, and does not solve the single point of failure problem of devices. If either device A or B fails, data forwarding will still be affected.

MCLAG(Multi Chassis Link Aggregation Group,跨设备链路聚合组)是一种实现跨设备链路聚合的机制,将两台物理设备虚拟成单台逻辑设备,提供了设备级别的冗余。在一台设备出故障时,流量会迅速切换到另外一台设备,可以实现零丢包或者尽量少的丢包。例如,设备CE1与设备PE1、PE2跨设备进行聚合。在CE1看来,PE1、PE2是同一台设备。当PE1或者PE2出现设备故障时,CE1可以将流量迅速切换到另外一台设备,从而使数据转发不受影响。一般情况下,要求设备reboot时丢包时间越短越好。在目前SONIC的MCLAG实现中,对设备进行reboot操作时在down设备期间会有200毫秒左右的丢包,存在比较大的优化空间。MCLAG (Multi Chassis Link Aggregation Group, cross-device link aggregation group) is a mechanism for realizing cross-device link aggregation. It virtualizes two physical devices into a single logical device and provides device-level redundancy. When one device fails, the traffic will be quickly switched to another device, which can achieve zero packet loss or as little packet loss as possible. For example, CE1, PE1, and PE2 are aggregated across devices. From CE1's perspective, PE1 and PE2 are the same device. When a device failure occurs on PE1 or PE2, CE1 can quickly switch traffic to another device, so that data forwarding is not affected. Generally, the shorter the packet loss time when the device reboots, the better. In the current MCLAG implementation of SONIC, there will be about 200 milliseconds of packet loss during the device down period when the device is rebooted, and there is a relatively large room for optimization.

为了实现当PE1或者PE2出现设备故障时,CE1可以将流量迅速切换到另外一台设备、数据丢包尽量少的目的,需要在两台设备之间提前将转发相关的表项进行同步,例如MAC地址表、ARP表等。这样当一台设备发生故障时,由于另外一台已经提前将所需要的表项准备好了,流量转发基本不受影响。而现有的ARP表常存在同步不及时、ARP表老化的问题,严重影响MCLAG冗余性能。In order to realize that when PE1 or PE2 has a device failure, CE1 can quickly switch traffic to another device and minimize data packet loss, it is necessary to synchronize forwarding-related entries between the two devices in advance, such as MAC Address table, ARP table, etc. In this way, when a device fails, traffic forwarding is basically not affected because the other device has prepared the required entries in advance. However, the existing ARP table often has the problems of untimely synchronization and aging of the ARP table, which seriously affects the MCLAG redundancy performance.

发明内容Contents of the invention

针对现有技术的上述不足,本发明提供一种MCLAG邻居之间同步ARP信息的方法、系统、终端及存储介质,以解决上述技术问题。Aiming at the above shortcomings of the prior art, the present invention provides a method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors to solve the above technical problems.

第一方面,本发明提供一种MCLAG邻居之间同步ARP信息的方法,包括:In the first aspect, the present invention provides a method for synchronizing ARP information between MCLAG neighbors, including:

监控交换机内核的新地址解析协议表项和地址解析协议报文,并从地址解析协议报文中提取地址解析协议表项信息;Monitoring new ARP entries and ARP packets in the core of the switch, and extracting ARP entry information from the ARP packets;

将新地址解析协议表项和地址解析协议表项信息均同步至目标节点的邻居节点,所述目标节点和邻居节点属于同一跨设备链路聚合组。Both the new address resolution protocol entry and the address resolution protocol entry information are synchronized to the neighbor node of the target node, and the target node and the neighbor node belong to the same cross-device link aggregation group.

进一步的,监控交换机内核的新地址解析协议表项和地址解析协议报文,并从地址解析协议报文中提取地址解析协议表项信息,包括:Further, monitor the new address resolution protocol entry and address resolution protocol message of the switch core, and extract the address resolution protocol table item information from the address resolution protocol message, including:

通过交换机的通信保护机制监控交换机内核所学习到的地址解析协议表项,如果所述地址解析协议表项为新的地址解析协议表项则将新的地址解析协议表项同步至邻居节点;Monitoring the address resolution protocol entry learned by the switch core through the communication protection mechanism of the switch, if the address resolution protocol entry is a new address resolution protocol entry, then synchronizing the new address resolution protocol entry to the neighbor node;

从交换机接收的地址解析协议报文中提取提取地址解析协议表项信息,并在将所述地址解析协议报文发送至目标节点的同时将地址解析协议表项信息同步发送至邻居节点。The address resolution protocol entry information is extracted from the address resolution protocol message received by the switch, and the address resolution protocol table entry information is synchronously sent to the neighbor node while the address resolution protocol message is sent to the target node.

进一步的,从交换机接收的地址解析协议报文中提取提取地址解析协议表项信息,并在将所述地址解析协议报文发送至目标节点的同时将地址解析协议表项信息同步发送至邻居节点,包括:Further, the address resolution protocol entry information is extracted from the address resolution protocol packet received by the switch, and the address resolution protocol entry information is synchronously sent to the neighbor node when the address resolution protocol packet is sent to the target node ,include:

邻居节点根据地址解析协议表项信息内容判断本地是否已经存在相同的地址解析协议表项:The neighbor node judges whether the same address resolution protocol entry already exists locally according to the information content of the address resolution protocol entry:

若是,则抛弃所述地址解析协议表项信息;If yes, discarding the address resolution protocol entry information;

若否,则根据所述地址解析协议表项信息将相应的地址解析协议表项保存至本地并向交换机返回地址解析协议表项报文的应答信息。If not, save the corresponding ARP entry locally according to the ARP entry information, and return the response information of the ARP entry message to the switch.

进一步的,将新地址解析协议表项和地址解析协议表项信息均同步至目标节点的邻居节点,所述目标节点和邻居节点属于同一跨设备链路聚合组,包括:Further, synchronizing the new address resolution protocol entry and the address resolution protocol entry information to the neighbor node of the target node, the target node and the neighbor node belong to the same cross-device link aggregation group, including:

设定信息同步周期为30min,每隔30min执行一次数据同步。Set the information synchronization cycle to 30 minutes, and perform data synchronization every 30 minutes.

第二方面,本发明提供一种MCLAG邻居之间同步ARP信息的系统,包括:In a second aspect, the present invention provides a system for synchronizing ARP information between MCLAG neighbors, including:

信息监控单元,用于监控交换机内核的新地址解析协议表项和地址解析协议报文,并从地址解析协议报文中提取地址解析协议表项信息;The information monitoring unit is used to monitor the new address resolution protocol entry and the address resolution protocol message of the switch core, and extract the address resolution protocol table item information from the address resolution protocol message;

信息同步单元,用于将新地址解析协议表项和地址解析协议表项信息均同步至目标节点的邻居节点,所述目标节点和邻居节点属于同一跨设备链路聚合组。An information synchronization unit, configured to synchronize both the new ARP entry and the ARP entry information to the neighbor nodes of the target node, where the target node and the neighbor nodes belong to the same cross-device link aggregation group.

进一步的,所述信息监控单元用于:Further, the information monitoring unit is used for:

通过交换机的通信保护机制监控交换机内核所学习到的地址解析协议表项,如果所述地址解析协议表项为新的地址解析协议表项则将新的地址解析协议表项同步至邻居节点;Monitoring the address resolution protocol entry learned by the switch core through the communication protection mechanism of the switch, if the address resolution protocol entry is a new address resolution protocol entry, then synchronizing the new address resolution protocol entry to the neighbor node;

从交换机接收的地址解析协议报文中提取提取地址解析协议表项信息,并在将所述地址解析协议报文发送至目标节点的同时将地址解析协议表项信息同步发送至邻居节点。The address resolution protocol entry information is extracted from the address resolution protocol message received by the switch, and the address resolution protocol table entry information is synchronously sent to the neighbor node while the address resolution protocol message is sent to the target node.

进一步的,从交换机接收的地址解析协议报文中提取提取地址解析协议表项信息,并在将所述地址解析协议报文发送至目标节点的同时将地址解析协议表项信息同步发送至邻居节点,包括:Further, the address resolution protocol entry information is extracted from the address resolution protocol packet received by the switch, and the address resolution protocol entry information is synchronously sent to the neighbor node when the address resolution protocol packet is sent to the target node ,include:

邻居节点根据地址解析协议表项信息内容判断本地是否已经存在相同的地址解析协议表项:The neighbor node judges whether the same address resolution protocol entry already exists locally according to the information content of the address resolution protocol entry:

若是,则抛弃所述地址解析协议表项信息;If yes, discarding the address resolution protocol entry information;

若否,则根据所述地址解析协议表项信息将相应的地址解析协议表项保存至本地并向交换机返回地址解析协议表项报文的应答信息。If not, save the corresponding ARP entry locally according to the ARP entry information, and return the response information of the ARP entry message to the switch.

进一步的,所述信息同步单元用于:Further, the information synchronization unit is used for:

设定信息同步周期为30min,每隔30min执行一次数据同步。Set the information synchronization cycle to 30 minutes, and perform data synchronization every 30 minutes.

第三方面,提供一种终端,包括:In a third aspect, a terminal is provided, including:

处理器、存储器,其中,processor, memory, where,

该存储器用于存储计算机程序,The memory is used to store computer programs,

该处理器用于从存储器中调用并运行该计算机程序,使得终端执行上述的终端的方法。The processor is used to call and run the computer program from the memory, so that the terminal executes the above-mentioned terminal method.

第四方面,提供了一种计算机存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。In a fourth aspect, a computer storage medium is provided, and instructions are stored in the computer-readable storage medium, and when run on a computer, the computer is made to execute the methods described in the above aspects.

本发明的有益效果在于,The beneficial effect of the present invention is that,

本发明提供的MCLAG邻居之间同步ARP信息的方法、系统、终端及存储介质,通过监控交换机内核的新地址解析协议表项和地址解析协议报文,并从地址解析协议报文中提取地址解析协议表项信息,然后将新地址解析协议表项和地址解析协议表项信息均同步至同一跨设备链路聚合组的目标节点的邻居节点。本发明可以有效防止跨设备链路聚合组节点或交换机的ARP信息的老化,当链路切换发生时,能够做到极少甚至不丢包,给用户带来更好的使用体验。The method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors provided by the present invention, by monitoring the new address resolution protocol entry and the address resolution protocol message of the switch core, and extracting the address resolution from the address resolution protocol message protocol entry information, and then synchronize the new address resolution protocol entry and address resolution protocol entry information to the neighbor nodes of the target node in the same inter-device link aggregation group. The present invention can effectively prevent aging of ARP information of cross-device link aggregation group nodes or switches, and when link switching occurs, little or no packet loss can be achieved, bringing better user experience to users.

此外,本发明设计原理可靠,结构简单,具有非常广泛的应用前景。In addition, the design principle of the present invention is reliable, the structure is simple, and has very wide application prospects.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings on the premise of not paying creative work.

图1是本发明一个实施例的方法的示意性流程图。Fig. 1 is a schematic flowchart of a method according to an embodiment of the present invention.

图2是本发明一个实施例的方法的MCLAG架构示意图。Fig. 2 is a schematic diagram of the MCLAG architecture of the method according to an embodiment of the present invention.

图3是本发明一个实施例的系统的示意性框图。Fig. 3 is a schematic block diagram of a system according to one embodiment of the present invention.

图4为本发明实施例提供的一种终端的结构示意图。FIG. 4 is a schematic structural diagram of a terminal provided by an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

下面对本发明中出现的关键术语进行解释。Key terms appearing in the present invention are explained below.

交换机(Switch)意为“开关”是一种用于电(光)信号转发的网络设备。它可以为接入交换机的任意两个网络节点提供独享的电信号通路。最常见的交换机是以太网交换机。其他常见的还有电话语音交换机、光纤交换机等。交换是按照通信两端传输信息的需要,用人工或设备自动完成的方法,把要传输的信息送到符合要求的相应路由上的技术的统称。交换机根据工作位置的不同,可以分为广域网交换机和局域网交换机。广域的交换机就是一种在通信系统中完成信息交换功能的设备,它应用在数据链路层。交换机有多个端口,每个端口都具有桥接功能,可以连接一个局域网或一台高性能服务器或工作站。实际上,交换机有时被称为多端口网桥。网络交换机,是一个扩大网络的器材,能为子网络中提供更多的连接端口,以便连接更多的计算机。随着通信业的发展以及国民经济信息化的推进,网络交换机市场呈稳步上升态势。它具有性价比高、高度灵活、相对简单和易于实现等特点。以太网技术已成为当今最重要的一种局域网组网技术,网络交换机也就成为了最普及的交换机。Switch是交换机的英文名称,这个产品是由原集线器的升级换代而来,在外观上看和集线器没有很大区别。由于通信两端需要传输信息,而通过设备或者人工来把要传输的信息送到符合要求标准的对应的路由器上的方式,这个技术就是交换机技术。从广义上来分析,在通信系统里对于信息交换功能实现的设备,就是交换机。地址解析协议,即ARP(AddressResolution Protocol),是根据IP地址获取物理地址的一个TCP/IP协议。主机发送信息时将包含目标IP地址的ARP请求广播到局域网络上的所有主机,并接收返回消息,以此确定目标的物理地址;收到返回消息后将该IP地址和物理地址存入本机ARP缓存中并保留一定时间,下次请求时直接查询ARP缓存以节约资源。地址解析协议是建立在网络中各个主机互相信任的基础上的,局域网络上的主机可以自主发送ARP应答消息,其他主机收到应答报文时不会检测该报文的真实性就会将其记入本机ARP缓存;由此攻击者就可以向某一主机发送伪ARP应答报文,使其发送的信息无法到达预期的主机或到达错误的主机,这就构成了一个ARP欺骗。ARP命令可用于查询本机ARP缓存中IP地址和MAC地址的对应关系、添加或删除静态对应关系等。相关协议有RARP、代理ARP。NDP用于在IPv6中代替地址解析协议。工作过程:主机A的IP地址为192.168.1.1,MAC地址为0A-11-22-33-44-01;主机B的IP地址为192.168.1.2,MAC地址为0A-11-22-33-44-02;当主机A要与主机B通信时,地址解析协议可以将主机B的IP地址(192.168.1.2)解析成主机B的MAC地址,以下为工作流程:第1步:根据主机A上的路由表内容,IP确定用于访问主机B的转发IP地址是192.168.1.2。然后A主机在自己的本地ARP缓存中检查主机B的匹配MAC地址。第2步:如果主机A在ARP缓存中没有找到映射,它将询问192.168.1.2的硬件地址,从而将ARP请求帧广播到本地网络上的所有主机。源主机A的IP地址和MAC地址都包括在ARP请求中。本地网络上的每台主机都接收到ARP请求并且检查是否与自己的IP地址匹配。如果主机发现请求的IP地址与自己的IP地址不匹配,它将丢弃ARP请求。第3步:主机B确定ARP请求中的IP地址与自己的IP地址匹配,则将主机A的IP地址和MAC地址映射添加到本地ARP缓存中。第4步:主机B将包含其MAC地址的ARP回复消息直接发送回主机A。第5步:当主机A收到从主机B发来的ARP回复消息时,会用主机B的IP和MAC地址映射更新ARP缓存。本机缓存是有生存期的,生存期结束后,将再次重复上面的过程。主机B的MAC地址一旦确定,主机A就能向主机B发送IP通信了。Switch (Switch) means "switch" and is a network device used for electrical (optical) signal forwarding. It can provide an exclusive electrical signal path for any two network nodes connected to the switch. The most common switches are Ethernet switches. Other common ones are telephone voice switches, fiber optic switches, etc. Switching is a general term for technologies that send the information to be transmitted to the corresponding route that meets the requirements by manually or automatically completing the method according to the needs of the two ends of the communication. Switches can be divided into WAN switches and LAN switches according to different working locations. A wide-area switch is a device that completes the information exchange function in a communication system, and it is applied at the data link layer. The switch has multiple ports, and each port has a bridging function, which can be connected to a local area network or a high-performance server or workstation. In fact, switches are sometimes called multiport bridges. A network switch is a device for expanding the network, which can provide more connection ports in the sub-network to connect more computers. With the development of the communication industry and the advancement of the national economy informatization, the network switch market has shown a steady upward trend. It is cost-effective, highly flexible, relatively simple, and easy to implement. Ethernet technology has become the most important LAN networking technology today, and network switches have become the most popular switches. Switch is the English name of the switch. This product is an upgraded version of the original hub. It is not much different from the hub in appearance. Since the two ends of the communication need to transmit information, and the information to be transmitted is sent to the corresponding router that meets the required standards through equipment or manually, this technology is the switch technology. Analyzing in a broad sense, the equipment that implements the information exchange function in the communication system is the switch. Address Resolution Protocol, namely ARP (Address Resolution Protocol), is a TCP/IP protocol that obtains a physical address based on an IP address. When the host sends information, it broadcasts the ARP request containing the target IP address to all hosts on the LAN, and receives the return message to determine the physical address of the target; after receiving the return message, store the IP address and physical address in the machine In the ARP cache and keep it for a certain period of time, the next request will directly query the ARP cache to save resources. The address resolution protocol is based on the mutual trust of each host in the network. The hosts on the local area network can send ARP reply messages independently. Recorded in the local ARP cache; thus, the attacker can send a fake ARP response message to a certain host, so that the information sent by it cannot reach the expected host or arrive at the wrong host, which constitutes an ARP spoof. The ARP command can be used to query the correspondence between the IP address and the MAC address in the local ARP cache, add or delete the static correspondence, etc. Related protocols include RARP and proxy ARP. NDP is used in place of Address Resolution Protocol in IPv6. Working process: The IP address of host A is 192.168.1.1, and the MAC address is 0A-11-22-33-44-01; the IP address of host B is 192.168.1.2, and the MAC address is 0A-11-22-33-44 -02; when host A wants to communicate with host B, the address resolution protocol can resolve the IP address (192.168.1.2) of host B into the MAC address of host B, the following is the workflow: Step 1: According to The content of the routing table, IP determines that the forwarding IP address used to access host B is 192.168.1.2. Host A then checks host B's matching MAC address in its local ARP cache. Step 2: If host A does not find a mapping in the ARP cache, it will ask for the hardware address of 192.168.1.2, thus broadcasting an ARP request frame to all hosts on the local network. Both the IP address and the MAC address of source host A are included in the ARP request. Every host on the local network receives the ARP request and checks to see if it matches its own IP address. If the host finds that the requested IP address does not match its own IP address, it will discard the ARP request. Step 3: Host B determines that the IP address in the ARP request matches its own IP address, then adds the mapping between the IP address and MAC address of host A to the local ARP cache. Step 4: Host B sends an ARP reply message containing its MAC address directly back to Host A. Step 5: When host A receives the ARP reply message from host B, it will update the ARP cache with host B's IP and MAC address mapping. The native cache has a lifetime. After the lifetime is over, the above process will be repeated again. Once the MAC address of host B is determined, host A can send IP traffic to host B.

图1是本发明一个实施例的方法的示意性流程图。其中,图1执行主体可以为一种MCLAG邻居之间同步ARP信息的系统。Fig. 1 is a schematic flowchart of a method according to an embodiment of the present invention. Wherein, the execution subject in FIG. 1 may be a system for synchronizing ARP information between MCLAG neighbors.

如图1所示,该方法包括:As shown in Figure 1, the method includes:

步骤110,监控交换机内核的新地址解析协议表项和地址解析协议报文,并从地址解析协议报文中提取地址解析协议表项信息;Step 110, monitoring the new ARP entry and the ARP message of the core of the switch, and extracting the ARP table item information from the ARP message;

步骤120,将新地址解析协议表项和地址解析协议表项信息均同步至目标节点的邻居节点,所述目标节点和邻居节点属于同一跨设备链路聚合组。Step 120, synchronizing both the new ARP entry and the ARP entry information to the neighbor nodes of the target node, where the target node and the neighbor nodes belong to the same cross-device link aggregation group.

为了便于对本发明的理解,下面以本发明MCLAG邻居之间同步ARP信息的方法的原理,结合实施例中对ARP信息进行同步的过程,对本发明提供的MCLAG邻居之间同步ARP信息的方法做进一步的描述。In order to facilitate the understanding of the present invention, the principle of the method for synchronizing ARP information between MCLAG neighbors of the present invention will be used below, in conjunction with the process of synchronizing ARP information in the embodiments, to further improve the method for synchronizing ARP information between MCLAG neighbors provided by the present invention description of.

具体的,请参考图2,所述MCLAG邻居之间同步ARP信息的方法包括:Specifically, please refer to FIG. 2, the method for synchronizing ARP information between MCLAG neighbors includes:

S1、监控交换机内核的新地址解析协议表项和地址解析协议报文,并从地址解析协议报文中提取地址解析协议表项信息。S1. Monitor new ARP entries and ARP packets in the core of the switch, and extract ARP entry information from the ARP packets.

设备CE1与设备PE1、PE2跨设备进行聚合。在CE1看来,PE1、PE2是同一台设备。当PE1或者PE2出现设备故障时,CE1可以将流量迅速切换到另外一台设备,从而使数据转发不受影响。为了实现当PE 1或者PE2出现设备故障时,CE1可以将流量迅速切换到另外一台设备、数据丢包尽量少的目的,需要在两台设备之间提前将转发相关的表项进行同步,例如MAC地址表、ARP表等。这样当一台设备发生故障时,由于另外一台已经提前将所需要的表项准备好了,流量转发基本不受影响。The device CE1 is aggregated with the devices PE1 and PE2 across devices. From CE1's perspective, PE1 and PE2 are the same device. When a device failure occurs on PE1 or PE2, CE1 can quickly switch traffic to another device, so that data forwarding is not affected. In order to realize that when PE 1 or PE 2 has a device failure, CE1 can quickly switch traffic to another device and minimize data packet loss, it is necessary to synchronize forwarding-related entries between the two devices in advance, for example MAC address table, ARP table, etc. In this way, when a device fails, traffic forwarding is basically not affected because the other device has prepared the required entries in advance.

交换机通过netlink机制可以监控内核所学习到的ARP表项。当内核学习到一个新的ARP表项,会通过netlink通知MCLAG模块。MCLAG收到以后,可以通过TCP连接同步给邻居。交换机收到从邻居同步过来的ARP信息,可以以动态表项或者静态表项的方式下发自身的linux内核。当以动态表项方式下发内核时,存在一个表项老化的问题。在内核中,ARP表项如果默认超过30分钟没有hit,则会老化。在老化前,内核会发送ARP request,然后等待相应的ARP reply。在交换机中,流量转发是硬件负责的,流量不会上送CPU,ARP表项基本不会hit上,结果是内核中的ARP表项会每隔30分钟老化一次。当以静态表项下发内核时,也存在一个何时老化的问题。静态ARP表项在内核中不会老化,即使是ARP对应的终端已经离开了,其ARP也不会老化。显然这也不是理想的结果。综合考虑,交换机收到从邻居同步过来的ARP信息,以动态表项的方式下发自身的linux内核。在ARP表项老化前,内核会发送ARPrequest,然后等待相应的ARP reply。一般情况下,如果ARP对应的终端还是活跃的,则交换机会收到相应的ARP reply,从而更新自身保存的ARP表项。The switch can monitor the ARP entries learned by the kernel through the netlink mechanism. When the kernel learns a new ARP entry, it will notify the MCLAG module through netlink. After MCLAG is received, it can be synchronized to neighbors through a TCP connection. After receiving the ARP information synchronized from the neighbor, the switch can deliver its own Linux kernel in the form of dynamic or static entries. When the kernel is delivered in the form of dynamic entries, there is a problem of entry aging. In the kernel, if the ARP entry has no hit for more than 30 minutes by default, it will age out. Before aging, the kernel will send an ARP request, and then wait for the corresponding ARP reply. In the switch, the hardware is responsible for traffic forwarding, the traffic will not be sent to the CPU, and the ARP entries will basically not be hit. As a result, the ARP entries in the kernel will age out every 30 minutes. When the kernel is issued with static entries, there is also a problem of aging. Static ARP entries will not age out in the kernel, even if the terminal corresponding to the ARP has left, its ARP will not age out. Obviously this is not the ideal result. Comprehensive consideration, the switch receives the ARP information synchronized from the neighbor, and sends its own linux kernel in the form of dynamic entries. Before the aging of ARP entries, the kernel will send ARPrequest, and then wait for the corresponding ARP reply. Generally, if the terminal corresponding to the ARP is still active, the switch will receive the corresponding ARP reply, thereby updating the ARP entry saved by itself.

然而在MCLAG环境中,当PE发送出ARP request,即使ARP对应的终端还是活跃的,PE也可能不能收到相应的ARP reply。例如,当PE1请求CE1的ARP时,由于CE1认为PE1、PE2是同一台交换机,CE1可能会将ARP reply发送给PE2,从而导致PE1收不到对应的ARP reply。如果此时PE2内核有该ARP表项,则MCLAG也不会收到学习新ARP表项的通知,因此也不会通知PE1,结果是PE1上的ARP表项被老化。However, in the MCLAG environment, when a PE sends an ARP request, even if the terminal corresponding to the ARP is still active, the PE may not receive the corresponding ARP reply. For example, when PE1 requests ARP from CE1, because CE1 thinks that PE1 and PE2 are the same switch, CE1 may send an ARP reply to PE2, so that PE1 cannot receive the corresponding ARP reply. If the PE2 core has the ARP entry at this time, MCLAG will not receive the notification of learning the new ARP entry, so it will not notify PE1, and the result is that the ARP entry on PE1 is aged.

基于此,需要从两个维度进行ARP信息同化。一个方面是监控交换机内核的新地址解析协议表项,即当交换机将ARP信息转发至目标节点后,若目标节点中没有相同的地址解析协议表项,则保存该ARP信息,并向交换机返回一个信号,交换机内核对该ARP信息进行学习得到新地址解析协议表项。即通过交换机的通信保护机制监控交换机内核所学习到的地址解析协议表项,如果所述地址解析协议表项为新的地址解析协议表项则将新的地址解析协议表项同步至邻居节点。Based on this, ARP information assimilation needs to be carried out from two dimensions. One aspect is to monitor the new address resolution protocol entry of the switch core, that is, when the switch forwards the ARP information to the target node, if the target node does not have the same address resolution protocol entry, the ARP information will be saved and an ARP message will be returned to the switch. signal, the switch core learns the ARP information to obtain a new address resolution protocol entry. That is, the ARP entry learned by the switch core is monitored through the communication protection mechanism of the switch, and if the ARP entry is a new ARP entry, the new ARP entry is synchronized to the neighbor node.

同时,针对目标节点错选的情况,监控交换机内核的地址解析协议报文,并从中提取地址解析协议表项信息。具体的,从交换机接收的地址解析协议报文中提取提取地址解析协议表项信息,并在将所述地址解析协议报文发送至目标节点的同时将地址解析协议表项信息同步发送至邻居节点。At the same time, in view of the wrong selection of the target node, the address resolution protocol message of the switch core is monitored, and the address resolution protocol entry information is extracted therefrom. Specifically, the address resolution protocol entry information is extracted from the address resolution protocol packet received by the switch, and the address resolution protocol entry information is synchronously sent to the neighbor node when the address resolution protocol packet is sent to the target node .

S2、将新地址解析协议表项和地址解析协议表项信息均同步至目标节点的邻居节点,所述目标节点和邻居节点属于同一跨设备链路聚合组。S2. Synchronize both the new ARP entry and the ARP entry information to the neighbor nodes of the target node, where the target node and the neighbor nodes belong to the same cross-device link aggregation group.

将步骤S1中的新地址解析协议表项和地址解析协议表项信息均同步至目标节点的邻居节点。邻居节点根据地址解析协议表项信息内容判断本地是否已经存在相同的地址解析协议表项:若是,则抛弃所述地址解析协议表项信息;若否,则根据所述地址解析协议表项信息将相应的地址解析协议表项保存至本地并向交换机返回地址解析协议表项报文的应答信息。Both the new ARP entry and the ARP entry information in step S1 are synchronized to the neighbor nodes of the target node. The neighbor node judges whether the same address resolution protocol entry already exists locally according to the information content of the address resolution protocol entry: if yes, discard the address resolution protocol entry information; if not, then discard the address resolution protocol entry information according to the address resolution protocol entry information. The corresponding address resolution protocol entry is saved locally and the response information of the address resolution protocol entry message is returned to the switch.

交换机除了通过netlink监控Linux内核学习到的ARP表项外,同时监控交换机收到的ARP报文,从报文中提取ARP表项信息,也同步给邻居。例如,当PE1请求CE1的ARP时,由于CE1认为PE1、PE2是同一台交换机,CE1如果将ARP reply发送给PE2,则PE2在收到ARPreply时,MCLAG模块会处理该ARP reply,将该ARP表项同步给PE1,从而更新PE1的ARP表项。In addition to monitoring the ARP entries learned by the Linux kernel through netlink, the switch also monitors the ARP packets received by the switch, extracts ARP entry information from the packets, and synchronizes them to neighbors. For example, when PE1 requests the ARP of CE1, because CE1 thinks that PE1 and PE2 are the same switch, if CE1 sends an ARP reply to PE2, when PE2 receives the ARPreply, the MCLAG module will process the ARP reply, and the ARP table The entry is synchronized to PE1, thereby updating the ARP entry of PE1.

通过以上机制,可以确保PE1、PE2保存的ARP表项都不会被老化。Through the above mechanism, you can ensure that the ARP entries saved by PE1 and PE2 will not be aged out.

为了防止PE1、PE2之间ARP同步信息过于频繁,导致CPU忙碌、带宽占用高,可以记录ARP表项同步给邻居的时间。在30分钟以内,只向邻居同步一次相关的ARP表项,这样可以在尽量减少网络通讯量及CPU占用的情况下保证ARP表项不会老化。To prevent frequent ARP synchronization between PE1 and PE2, resulting in busy CPU and high bandwidth usage, you can record the time when ARP entries are synchronized to neighbors. Within 30 minutes, the relevant ARP entries are only synchronized with neighbors once, which can ensure that ARP entries will not age while minimizing network traffic and CPU usage.

如图3所示,该系统300包括:As shown in Figure 3, the system 300 includes:

信息监控单元310,用于监控交换机内核的新地址解析协议表项和地址解析协议报文,并从地址解析协议报文中提取地址解析协议表项信息;An information monitoring unit 310, configured to monitor new ARP entries and ARP packets in the core of the switch, and extract ARP entry information from the ARP packets;

信息同步单元320,用于将新地址解析协议表项和地址解析协议表项信息均同步至目标节点的邻居节点,所述目标节点和邻居节点属于同一跨设备链路聚合组。The information synchronization unit 320 is configured to synchronize both the new ARP entry and the ARP entry information to the neighbor nodes of the target node, where the target node and the neighbor nodes belong to the same cross-device link aggregation group.

可选地,作为本发明一个实施例,所述信息监控单元用于:Optionally, as an embodiment of the present invention, the information monitoring unit is used for:

通过交换机的通信保护机制监控交换机内核所学习到的地址解析协议表项,如果所述地址解析协议表项为新的地址解析协议表项则将新的地址解析协议表项同步至邻居节点;Monitoring the address resolution protocol entry learned by the switch core through the communication protection mechanism of the switch, if the address resolution protocol entry is a new address resolution protocol entry, then synchronizing the new address resolution protocol entry to the neighbor node;

从交换机接收的地址解析协议报文中提取提取地址解析协议表项信息,并在将所述地址解析协议报文发送至目标节点的同时将地址解析协议表项信息同步发送至邻居节点。The address resolution protocol entry information is extracted from the address resolution protocol message received by the switch, and the address resolution protocol table entry information is synchronously sent to the neighbor node while the address resolution protocol message is sent to the target node.

可选地,作为本发明一个实施例,从交换机接收的地址解析协议报文中提取提取地址解析协议表项信息,并在将所述地址解析协议报文发送至目标节点的同时将地址解析协议表项信息同步发送至邻居节点,包括:Optionally, as an embodiment of the present invention, the address resolution protocol entry information is extracted from the address resolution protocol message received by the switch, and the address resolution protocol Table entry information is sent to neighbor nodes synchronously, including:

邻居节点根据地址解析协议表项信息内容判断本地是否已经存在相同的地址解析协议表项:The neighbor node judges whether the same address resolution protocol entry already exists locally according to the information content of the address resolution protocol entry:

若是,则抛弃所述地址解析协议表项信息;If yes, discarding the address resolution protocol entry information;

若否,则根据所述地址解析协议表项信息将相应的地址解析协议表项保存至本地并向交换机返回地址解析协议表项报文的应答信息。If not, save the corresponding ARP entry locally according to the ARP entry information, and return the response information of the ARP entry message to the switch.

可选地,作为本发明一个实施例,所述信息同步单元用于:Optionally, as an embodiment of the present invention, the information synchronization unit is used for:

设定信息同步周期为30min,每隔30min执行一次数据同步。Set the information synchronization cycle to 30 minutes, and perform data synchronization every 30 minutes.

图4为本发明实施例提供的一种终端400的结构示意图,该终端400可以用于执行本发明实施例提供的MCLAG邻居之间同步ARP信息的方法。FIG. 4 is a schematic structural diagram of a terminal 400 provided by an embodiment of the present invention. The terminal 400 can be used to implement the method for synchronizing ARP information between MCLAG neighbors provided by the embodiment of the present invention.

其中,该终端400可以包括:处理器410、存储器420及通信单元430。这些组件通过一条或多条总线进行通信,本领域技术人员可以理解,图中示出的服务器的结构并不构成对本发明的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Wherein, the terminal 400 may include: aprocessor 410 , amemory 420 and acommunication unit 430 . These components communicate through one or more buses. Those skilled in the art can understand that the structure of the server shown in the figure does not constitute a limitation to the present invention. It can be a bus structure, a star structure, or a More or fewer components than shown, or combinations of certain components, or different arrangements of components may be included.

其中,该存储器420可以用于存储处理器410的执行指令,存储器420可以由任何类型的易失性或非易失性存储终端或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。当存储器420中的执行指令由处理器410执行时,使得终端400能够执行以下上述方法实施例中的部分或全部步骤。Wherein, thememory 420 can be used to store the execution instructions of theprocessor 410, and thememory 420 can be realized by any type of volatile or non-volatile storage terminal or their combination, such as static random access memory (SRAM), electronic Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk . When the execution instructions in thememory 420 are executed by theprocessor 410, the terminal 400 is enabled to perform some or all of the steps in the following above-mentioned method embodiments.

处理器410为存储终端的控制中心,利用各种接口和线路连接整个电子终端的各个部分,通过运行或执行存储在存储器420内的软件程序和/或模块,以及调用存储在存储器内的数据,以执行电子终端的各种功能和/或处理数据。所述处理器可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器410可以仅包括中央处理器(Central Processing Unit,简称CPU)。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。Theprocessor 410 is the control center of the storage terminal, using various interfaces and lines to connect various parts of the entire electronic terminal, by running or executing software programs and/or modules stored in thememory 420, and calling data stored in the memory, To perform various functions of the electronic terminal and/or process data. The processor may be composed of an integrated circuit (Integrated Circuit, IC for short), for example, may be composed of a single packaged IC, or may be composed of multiple packaged ICs connected with the same function or different functions. For example, theprocessor 410 may only include a central processing unit (Central Processing Unit, CPU for short). In the embodiments of the present invention, the CPU may be a single computing core, or may include multiple computing cores.

通信单元430,用于建立通信信道,从而使所述存储终端可以与其它终端进行通信。接收其他终端发送的用户数据或者向其他终端发送用户数据。Thecommunication unit 430 is configured to establish a communication channel, so that the storage terminal can communicate with other terminals. Receive user data sent by other terminals or send user data to other terminals.

本发明还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时可包括本发明提供的各实施例中的部分或全部步骤。所述的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include part or all of the steps in the various embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, ROM for short), or a random access memory (English: random access memory, RAM for short), and the like.

因此,本发明通过监控交换机内核的新地址解析协议表项和地址解析协议报文,并从地址解析协议报文中提取地址解析协议表项信息,然后将新地址解析协议表项和地址解析协议表项信息均同步至同一跨设备链路聚合组的目标节点的邻居节点。本发明可以有效防止跨设备链路聚合组节点或交换机的ARP信息的老化,当链路切换发生时,能够做到极少甚至不丢包,给用户带来更好的使用体验,本实施例所能达到的技术效果可以参见上文中的描述,此处不再赘述。Therefore, the present invention extracts the address resolution protocol table item information from the address resolution protocol message by monitoring the new address resolution protocol table item and the address resolution protocol message of the switch core, and then converts the new address resolution protocol table item and the address resolution protocol The entry information is synchronized to the neighbor nodes of the target node in the same cross-device link aggregation group. The present invention can effectively prevent the aging of ARP information of inter-device link aggregation group nodes or switches, and when link switching occurs, it can achieve little or no packet loss and bring better user experience to users. This embodiment The technical effect that can be achieved can refer to the above description, and will not be repeated here.

本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中如U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质,包括若干指令用以使得一台计算机终端(可以是个人计算机,服务器,或者第二终端、网络终端等)执行本发明各个实施例所述方法的全部或部分步骤。Those skilled in the art can clearly understand that the technologies in the embodiments of the present invention can be implemented by means of software plus a necessary general-purpose hardware platform. Based on such an understanding, the technical solutions in the embodiments of the present invention essentially or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium such as a USB flash drive, mobile Hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes, including several instructions to make a computer terminal (It may be a personal computer, a server, or a second terminal, a network terminal, etc.) Execute all or part of the steps of the methods described in the various embodiments of the present invention.

本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于终端实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。For the same and similar parts among the various embodiments in this specification, refer to each other. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant details, refer to the description in the method embodiment.

在本发明所提供的几个实施例中,应该理解到,所揭露的系统和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,系统或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the system embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of systems or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

尽管通过参考附图并结合优选实施例的方式对本发明进行了详细描述,但本发明并不限于此。在不脱离本发明的精神和实质的前提下,本领域普通技术人员可以对本发明的实施例进行各种等效的修改或替换,而这些修改或替换都应在本发明的涵盖范围内/任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。Although the present invention has been described in detail in conjunction with preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, those skilled in the art can make various equivalent modifications or replacements to the embodiments of the present invention, and these modifications or replacements should be within the scope of the present invention/any Those skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention, and all should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (6)

CN202111089267.9A2021-09-162021-09-16 Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighborsActiveCN113839862B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202111089267.9ACN113839862B (en)2021-09-162021-09-16 Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202111089267.9ACN113839862B (en)2021-09-162021-09-16 Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors

Publications (2)

Publication NumberPublication Date
CN113839862A CN113839862A (en)2021-12-24
CN113839862Btrue CN113839862B (en)2023-06-06

Family

ID=78959629

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202111089267.9AActiveCN113839862B (en)2021-09-162021-09-16 Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors

Country Status (1)

CountryLink
CN (1)CN113839862B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114281438A (en)*2021-12-302022-04-05杭州云合智网技术有限公司Method for improving communication model between SONIC (silicon oxide nitride oxide semiconductor) devices
CN115150352B (en)*2022-06-302023-08-04苏州浪潮智能科技有限公司 Method, device, device and readable medium for ARP synchronization across link aggregation groups
CN115225604A (en)*2022-07-152022-10-21北京天融信网络安全技术有限公司Method and device for acquiring network equipment information, electronic equipment and storage medium
CN116094997B (en)*2022-12-152024-11-05瑞斯康达科技发展股份有限公司MAC address synchronization method, equipment, storage medium and M-LAG
CN119211124B (en)*2024-11-282025-05-06苏州元脑智能科技有限公司 A table item updating method, product, device and medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102904818B (en)*2012-09-272015-11-25北京星网锐捷网络技术有限公司A kind of ARP information entry updating method and device
CN108173691B (en)*2017-12-272021-05-28杭州迪普科技股份有限公司Cross-device aggregation method and device
CN111682927B (en)*2020-04-272022-07-12浪潮思科网络科技有限公司Message synchronization method, device, equipment and medium based on MLAG environment
CN111865779B (en)*2020-07-132022-08-02中国联合网络通信集团有限公司 A route synchronization method and cross-device link aggregation group
CN112367254B (en)*2020-10-302022-08-26新华三技术有限公司Cross-device link aggregation method and device and electronic device

Also Published As

Publication numberPublication date
CN113839862A (en)2021-12-24

Similar Documents

PublicationPublication DateTitle
CN113839862B (en) Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors
CN110912780B (en)High-availability cluster detection method, system and controlled terminal
US10534601B1 (en)In-service software upgrade of virtual router with reduced packet loss
AU2004306913B2 (en)Redundant routing capabilities for a network node cluster
US8730793B2 (en)Method and apparatus providing network redundancy and high availability to remote network nodes
US7830882B2 (en)Switch scaling for virtualized network interface controllers
CN114745255B (en)Hardware chip, DPU, server, communication method and related device
CN101601232A (en)Triple-tier anycast addressing
US20150372869A1 (en)Distributed Gateways for Overlay Networks
US10931601B2 (en)Method and apparatus for conditional broadcasting of network configuration data
CN115225634B (en)Data forwarding method, device and computer program product under virtual network
CN100492984C (en) A method for realizing data forwarding and backup through address resolution protocol message
CN113965521B (en)Data packet transmission method, server and storage medium
CN112968965B (en) Metadata service method, server and storage medium of NFV network node
CN115941493B (en)Multi-activity distribution method and device for cloud scene NAT gateway cluster based on multicast
CN115118660B (en) A method and device for synchronizing forwarding table entries
EP4344158B1 (en)Network interface card management system, packet processing method, and device
US12003417B2 (en)Communication method and apparatus
CN110661710A (en)Message transmission method and device of virtualization system
CN119276834A (en)Port binding method and related device
CN114172841B (en)Message forwarding method and device, electronic equipment and read storage medium
CN116743663A (en)Data packet processing method, device and storage medium
KR20030083864A (en)A Processing Method of the Distributed Forwarding Table in the High Speed Router
CN115550418A (en) Troubleshooting method and device
US20210226839A1 (en)Mac-sync based mechanism for bridge port failover

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CP03Change of name, title or address

Address after:215100 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Patentee after:Suzhou Yuannao Intelligent Technology Co.,Ltd.

Country or region after:China

Address before:215100 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Patentee before:SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Country or region before:China


[8]ページ先頭

©2009-2025 Movatter.jp