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
CN113839862B CN202111089267.9A CN202111089267A CN113839862B CN 113839862 B CN113839862 B CN 113839862B CN 202111089267 A CN202111089267 A CN 202111089267A CN 113839862 B CN113839862 B CN 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 Inspur 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 Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111089267.9A priority Critical patent/CN113839862B/en
Publication of CN113839862A publication Critical patent/CN113839862A/en
Application granted granted Critical
Publication of CN113839862B publication Critical patent/CN113839862B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The invention provides a method, a system, a terminal and a storage medium for synchronizing ARP information among MCLAG neighbors, which comprises the following steps: monitoring a new address resolution protocol table item and an address resolution protocol message of the switch core, and extracting address resolution protocol table item information from the address resolution protocol message; and synchronizing the new address resolution protocol table item and the address resolution protocol table item information to neighbor nodes of the target node, wherein the target node and the neighbor nodes belong to the same cross-equipment link aggregation group. The invention can effectively prevent ARP information of the cross-equipment link aggregation group node or the switch from aging, and can realize little or even no packet loss when the link switching occurs, thereby bringing better use experience for users.

Description

Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors
Technical Field
The invention relates to the technical field of data communication, in particular to a method, a system, a terminal and a storage medium for synchronizing ARP information among MCLAG neighbors.
Background
LACP (Link Aggregation Control Protocol ) based on the ieee802.3ad standard is a protocol that implements dynamic aggregation of links. The LACP protocol exchanges information with the counterpart through LACPDU (link convergence control protocol data unit). After the LACP protocol of a certain port is started, the port will announce its own system priority, system MAC address, port priority, port number and operation Key to the opposite terminal by sending LACPDU. After the opposite end receives the information, the information is compared with the information stored by other ports to select the ports capable of gathering, so that the opposite end can agree on whether the ports join or leave a dynamic gathering group. The use of link aggregation techniques increases the bandwidth of a logical link by a factor of about (n-1), where n is the number of aggregated lanes. In addition, after aggregation, the reliability is greatly improved, because only one of the n links can work normally, and the link can work. In addition, link aggregation may enable load balancing. Because, through link aggregation, two switches (or other network devices) connected together, through internal control, data can also be reasonably distributed on the devices connected together in an aggregated manner, so as to realize load sharing. For example, the LACP is run between the devices A, B, aggregating the three ports. The three links may operate in both active, standby mode and load balance mode. When a certain link fails, data forwarding is not affected. The LACP realizes link backup, but cannot aggregate across devices, and does not solve the problem of single point failure of devices. Any one of the devices A, B fails, and data forwarding is still affected.
MCLAG (Multi Chassis Link Aggregation Group, cross-device link aggregation group) is a mechanism to implement cross-device link aggregation, virtualizing two physical devices into a single logical device, providing device-level redundancy. When one device fails, the flow can be rapidly switched to the other device, and zero packet loss or as little packet loss as possible can be realized. For example, device CE1 is aggregated with devices PE1, PE2 across devices. PE1 and PE2 are the same device in view of CE 1. When the PE1 or the PE2 has equipment failure, the CE1 can quickly switch the traffic to the other equipment, so that the data forwarding is not affected. In general, the shorter the packet loss time at the time of the device reboot, the better. In the current MCLAG implementation of the sonoc, when the device is reboot operated, packet loss of about 200 ms occurs during the down device, and a relatively large optimization space exists.
In order to achieve the purpose that when the PE1 or the PE2 fails, the CE1 can quickly switch the traffic to another device and the packet loss is as small as possible, forwarding related entries, such as a MAC address table, an ARP table, etc., need to be synchronized in advance between the two devices. Thus, when one device fails, traffic forwarding is not substantially affected since another device is already prepared in advance for the required entry. However, the existing ARP table often has the problems of untimely synchronization and ageing of the ARP table, and seriously affects the MCLAG redundancy performance.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a method, a system, a terminal and a storage medium for synchronizing ARP information among MCLAG neighbors, so as to solve the technical problems.
In a first aspect, the present invention provides a method for synchronizing ARP information between MCLAG neighbors, including:
monitoring a new address resolution protocol table item and an address resolution protocol message of the switch core, and extracting address resolution protocol table item information from the address resolution protocol message;
and synchronizing the new address resolution protocol table item and the address resolution protocol table item information to neighbor nodes of the target node, wherein the target node and the neighbor nodes belong to the same cross-equipment link aggregation group.
Further, monitoring a new address resolution protocol table entry and an address resolution protocol message of the switch core, and extracting address resolution protocol table entry information from the address resolution protocol message, including:
monitoring an address resolution protocol table item learned by a switch core through a communication protection mechanism of the switch, and synchronizing the new address resolution protocol table item to a neighbor node if the address resolution protocol table item is the new address resolution protocol table item;
extracting address resolution protocol table item information from an address resolution protocol message received by a switch, and synchronously transmitting the address resolution protocol table item information to a neighbor node while transmitting the address resolution protocol message to a target node.
Further, extracting address resolution protocol table entry information from an address resolution protocol message received by the switch, and synchronously transmitting the address resolution protocol table entry information to a neighbor node while transmitting the address resolution protocol message to a target node, includes:
the neighbor node judges whether the same address resolution protocol table item exists locally according to the information content of the address resolution protocol table item:
if yes, discarding the address resolution protocol table entry information;
if not, storing the corresponding address resolution protocol table entry to the local according to the address resolution protocol table entry information and returning response information of the address resolution protocol table entry message to the switch.
Further, synchronizing the new address resolution protocol table entry and the address resolution protocol table entry information to a neighbor node of a target node, where the target node and the neighbor node belong to the same cross-device link aggregation group, and the method includes:
the information synchronization period is set to 30min, and data synchronization is performed every 30 min.
In a second aspect, the present invention provides a system for synchronizing ARP information between MCLAG neighbors, comprising:
the information monitoring unit is used for monitoring a new address resolution protocol table item and an address resolution protocol message of the switch core and extracting address resolution protocol table item information from the address resolution protocol message;
and the information synchronization unit is used for synchronizing the new address resolution protocol table item and the address resolution protocol table item information to the neighbor node of the target node, wherein the target node and the neighbor node belong to the same cross-equipment link aggregation group.
Further, the information monitoring unit is configured to:
monitoring an address resolution protocol table item learned by a switch core through a communication protection mechanism of the switch, and synchronizing the new address resolution protocol table item to a neighbor node if the address resolution protocol table item is the new address resolution protocol table item;
extracting address resolution protocol table item information from an address resolution protocol message received by a switch, and synchronously transmitting the address resolution protocol table item information to a neighbor node while transmitting the address resolution protocol message to a target node.
Further, extracting address resolution protocol table entry information from an address resolution protocol message received by the switch, and synchronously transmitting the address resolution protocol table entry information to a neighbor node while transmitting the address resolution protocol message to a target node, includes:
the neighbor node judges whether the same address resolution protocol table item exists locally according to the information content of the address resolution protocol table item:
if yes, discarding the address resolution protocol table entry information;
if not, storing the corresponding address resolution protocol table entry to the local according to the address resolution protocol table entry information and returning response information of the address resolution protocol table entry message to the switch.
Further, the information synchronization unit is configured to:
the information synchronization period is set to 30min, and data synchronization is performed every 30 min.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program,
the processor is configured to call and run the computer program from the memory, so that the terminal performs the method of the terminal as described above.
In a fourth aspect, there is provided a computer storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of the above aspects.
The invention has the advantages that,
the method, the system, the terminal and the storage medium for synchronizing ARP information among MCLAG neighbors are characterized in that a new address resolution protocol table entry and an address resolution protocol message of a switch kernel are monitored, address resolution protocol table entry information is extracted from the address resolution protocol message, and then the new address resolution protocol table entry and the address resolution protocol table entry information are synchronized to neighbor nodes of a target node of the same cross-equipment link aggregation group. The invention can effectively prevent ARP information of the cross-equipment link aggregation group node or the switch from aging, and can realize little or even no packet loss when the link switching occurs, thereby bringing better use experience for users.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic flow chart of a method of one embodiment of the invention.
Figure 2 is a schematic view of the MCLAG architecture of the method of one embodiment of the present invention.
FIG. 3 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solution of the present invention better understood by those skilled in the art, the technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
The following explains key terms appearing in the present invention.
A Switch (Switch) means a "Switch" is a network device used for electrical (optical) signal forwarding. It can provide an unshared electrical signal path for any two network nodes of the access switch. The most common switch is an ethernet switch. Other common are voice over phone switches, fiber optic switches, etc. Switching is a collective term for techniques in which information to be transmitted is sent to a corresponding route that meets the requirements, by a method that is manually or automatically accomplished by equipment, according to the need of information transmission at both ends of communication. The switch can be divided into a wide area network switch and a local area network switch according to different working positions. A wide area switch is a device that performs information exchange functions in a communication system and is used at the data link layer. The switch has a plurality of ports, each with bridging functionality, that can connect to a local area network or a high performance server or workstation. Indeed, switches are sometimes referred to as multiport bridges. The network switch is an expanding network device, and can provide more connection ports for the subnetworks to connect more computers. With the development of the communication industry and the advancement of national economy informatization, the market of network switches is steadily rising. The method has the characteristics of high cost performance, high flexibility, relative simplicity, easy realization and the like. Ethernet technology has become one of the most important local area network networking technologies today, and network switches have become the most popular switches. Switch is the english name of the Switch, and this product is updated from the upgrade of the original hub, and is not very different from the hub in appearance. This technology is a switch technology, because both ends of the communication need to transmit information, and the information to be transmitted is sent to the corresponding router meeting the required standard by a device or manually. In a broad sense, the devices implemented in the communication system for the information exchange function are switches. The address resolution protocol, ARP (Address Resolution Protocol), is a TCP/IP protocol that obtains a physical address from an IP address. Broadcasting an ARP request containing a target IP address to all hosts on a local area network when the hosts send information, and receiving a return message so as to determine the physical address of the target; after receiving the return message, the IP address and the physical address are stored in the local ARP cache and kept for a certain time, and the ARP cache is directly inquired when the request is next time so as to save resources. The address resolution protocol is based on that all the hosts in the network trust each other, the hosts on the local area network can autonomously send ARP response messages, and other hosts can record the response messages into the local ARP cache without detecting the authenticity of the messages when receiving the response messages; thus, an attacker can send a pseudo ARP response message to a certain host, so that the sent information cannot reach the expected host or reach the wrong host, and an ARP spoofing is formed. The ARP command may be used to query the correspondence between IP addresses and MAC addresses in the native ARP cache, add or delete static correspondences, etc. Related protocols are RARP and proxy ARP. NDP is used to replace address resolution protocols in IPv 6. The working process comprises the following steps: the IP address of the host A is 192.168.1.1, and the MAC address is 0A-11-22-33-44-01; the IP address of the host B is 192.168.1.2, and the MAC address is 0A-11-22-33-44-02; when host a is to communicate with host B, the address resolution protocol may resolve the IP address of host B (192.168.1.2) to the MAC address of host B, as follows: step 1: from the routing table contents on host a, IP determines that the forwarding IP address for accessing host B is 192.168.1.2. The a host then checks its own local ARP cache for a matching MAC address for host B. Step 2: if host A does not find a mapping in the ARP cache, it will query 192.168.1.2 for a hardware address, broadcasting an ARP request frame to all hosts on the local network. Both the IP address and MAC address of source host a are included in the ARP request. Each host on the local network receives the ARP request and checks 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: and if the host B determines that the IP address in the ARP request is matched with the own IP address, the IP address and the MAC address mapping of the host A are added into a local ARP cache. Step 4: host B sends an ARP reply message back directly to host a that contains its MAC address. Step 5: when host a receives the ARP reply message from host B, the ARP cache is updated with the IP and MAC address mapping of host B. The local cache is in a lifetime, and after the lifetime is over, the above process is repeated again. Once the MAC address of host B is determined, host a can send an IP communication to host B.
FIG. 1 is a schematic flow chart of a method of one embodiment of the invention. The executing body of fig. 1 may be a system for synchronizing ARP information between MCLAG neighbors.
As shown in fig. 1, the method includes:
step 110, monitoring new address resolution protocol table items and address resolution protocol messages of the switch core, and extracting address resolution protocol table item information from the address resolution protocol messages;
step 120, synchronizing the new address resolution protocol table entry and the address resolution protocol table entry information to the neighbor node of the target node, where the target node and the neighbor node belong to the same cross-device link aggregation group.
In order to facilitate understanding of the present invention, the method for synchronizing ARP information between MCLAG neighbors provided by the present invention is further described below by using the principle of the method for synchronizing ARP information between MCLAG neighbors of the present invention, and combining the process of synchronizing ARP information in the embodiment.
Specifically, referring to fig. 2, the method for synchronizing ARP information between MCLAG neighbors includes:
s1, monitoring a new address resolution protocol table item and an address resolution protocol message of a switch core, and extracting address resolution protocol table item information from the address resolution protocol message.
Device CE1 aggregates with devices PE1, PE2 across devices. PE1 and PE2 are the same device in view of CE 1. When the PE1 or the PE2 has equipment failure, the CE1 can quickly switch the traffic to the other equipment, so that the data forwarding is not affected. In order to achieve the purpose that when the PE1 or the PE2 fails, the CE1 can quickly switch the traffic to another device and the packet loss is as small as possible, forwarding related entries, such as a MAC address table, an ARP table, etc., need to be synchronized in advance between the two devices. Thus, when one device fails, traffic forwarding is not substantially affected since another device is already prepared in advance for the required entry.
The switch can monitor ARP list items learned by the kernel through a netlink mechanism. When the kernel learns a new ARP table entry, the MCLAG module is notified through the netlink. After receipt by the MCLAG, it may be synchronized to the neighbors over the TCP connection. The switch receives ARP information synchronized from the neighbor and can send the own linux kernel in a dynamic table entry or static table entry mode. When a kernel is issued in a dynamic table entry manner, there is a problem of aging of an entry. In the kernel, ARP entries age if there is no hit by default for more than 30 minutes. Before burn-in, the kernel will send an ARP request and then wait for the corresponding ARP reply. In the switch, the traffic forwarding is responsible for the hardware, the traffic is not sent to the CPU, the ARP entry is basically not hit, and as a result, the ARP entry in the kernel is aged once every 30 minutes. There is also a problem when aging when the kernel is issued in a static table entry. Static ARP list items cannot age in the kernel, and ARP cannot age even if a terminal corresponding to ARP leaves. Obviously this is also not an ideal result. Considering comprehensively, the switch receives ARP information synchronized from the neighbors and transmits the Linux kernel of the switch in a dynamic table entry mode. Before the ARP entry ages, the kernel sends an ARP request and then waits for a corresponding ARP reply. In general, if the terminal corresponding to the ARP is still active, the switch receives the corresponding ARP reply, thereby updating the ARP entry stored in the switch.
However, in MCLAG environments, when a PE sends out an ARP request, the PE may not receive the corresponding ARP reply even if the ARP-corresponding terminal is still active. For example, when PE1 requests ARP of CE1, since CE1 considers PE1 and PE2 to be the same switch, CE1 may send ARP reply to PE2, resulting in PE1 not receiving the corresponding ARP reply. If the PE2 core has the ARP entry at this time, the MCLAG will not receive notification of learning the new ARP entry, and therefore will not notify PE1, with the result that the ARP entry on PE1 is aged.
Based on this, ARP information assimilation is required from two dimensions. One aspect is to monitor a new address resolution protocol entry of a switch core, that is, after the switch forwards ARP information to a target node, if the target node does not have the same address resolution protocol entry, the ARP information is saved, and a signal is returned to the switch, and the switch core learns the ARP information to obtain the new address resolution protocol entry. The method comprises the steps of monitoring address resolution protocol table entries learned by a switch core through a communication protection mechanism of the switch, and synchronizing the new address resolution protocol table entries to neighbor nodes if the address resolution protocol table entries are new address resolution protocol table entries.
Meanwhile, aiming at the situation of wrong selection of the target node, the address resolution protocol message of the switch core is monitored, and address resolution protocol table item information is extracted from the address resolution protocol message. Specifically, address resolution protocol table item information is extracted from an address resolution protocol message received by a switch, and the address resolution protocol table item information is synchronously transmitted to a neighbor node while the address resolution protocol message is transmitted to a target node.
S2, synchronizing the new address resolution protocol table item and the address resolution protocol table item information to neighbor nodes of the target node, wherein the target node and the neighbor nodes belong to the same cross-equipment link aggregation group.
And synchronizing the new address resolution protocol table entry and the address resolution protocol table entry information in the step S1 to the neighbor node of the target node. The neighbor node judges whether the same address resolution protocol table item exists locally according to the information content of the address resolution protocol table item: if yes, discarding the address resolution protocol table entry information; if not, storing the corresponding address resolution protocol table entry to the local according to the address resolution protocol table entry information and returning response information of the address resolution protocol table entry message to the switch.
The switch monitors ARP list items learned by the Linux kernel through the netlink, monitors ARP messages received by the switch, extracts ARP list item information from the messages, and synchronizes the ARP list items to the neighbors. For example, when the PE1 requests the ARP of the CE1, since the CE1 considers that the PE1 and the PE2 are the same switch, if the CE1 sends the ARP reply to the PE2, the MCLAG module processes the ARP reply when the PE2 receives the ARP reply, and synchronizes the ARP entry to the PE1, thereby updating the ARP entry of the PE 1.
Through the mechanism, the ARP table entries stored by PE1 and PE2 can be ensured not to be aged.
In order to prevent the ARP synchronization information between PE1 and PE2 from being too frequent, which causes the CPU to be busy and the bandwidth to be occupied to be high, the time of synchronizing the ARP table entry to the neighbor can be recorded. Within 30 minutes, the related ARP list items are only synchronized to the neighbors once, so that the ARP list items can be ensured not to be aged under the condition of reducing network communication quantity and CPU occupation as much as possible.
As shown in fig. 3, the system 300 includes:
an information monitoring unit 310, configured to monitor a new address resolution protocol table entry and an address resolution protocol packet of the switch core, and extract address resolution protocol table entry information from the address resolution protocol packet;
and the information synchronization unit 320 is configured to synchronize the new address resolution protocol table entry and the address resolution protocol table entry information to a neighboring node of the target node, where the target node and the neighboring node belong to the same cross-device link aggregation group.
Optionally, as an embodiment of the present invention, the information monitoring unit is configured to:
monitoring an address resolution protocol table item learned by a switch core through a communication protection mechanism of the switch, and synchronizing the new address resolution protocol table item to a neighbor node if the address resolution protocol table item is the new address resolution protocol table item;
extracting address resolution protocol table item information from an address resolution protocol message received by a switch, and synchronously transmitting the address resolution protocol table item information to a neighbor node while transmitting the address resolution protocol message to a target node.
Optionally, as an embodiment of the present invention, extracting address resolution protocol entry information from an address resolution protocol packet received by a switch, and synchronously sending the address resolution protocol entry information to a neighboring node while sending the address resolution protocol packet to a target node, includes:
the neighbor node judges whether the same address resolution protocol table item exists locally according to the information content of the address resolution protocol table item:
if yes, discarding the address resolution protocol table entry information;
if not, storing the corresponding address resolution protocol table entry to the local according to the address resolution protocol table entry information and returning response information of the address resolution protocol table entry message to the switch.
Optionally, as an embodiment of the present invention, the information synchronization unit is configured to:
the information synchronization period is set to 30min, and data synchronization is performed every 30 min.
Fig. 4 is a schematic structural diagram of a terminal 400 according to an embodiment of the present invention, where the terminal 400 may be used to execute the method for synchronizing ARP information between MCLAG neighbors according to the embodiment of the present invention.
The terminal 400 may include: processor 410, memory 420, and communication unit 430. The components may communicate via one or more buses, and it will be appreciated by those skilled in the art that the configuration of the server as shown in the drawings is not limiting of the invention, as it may be a bus-like structure, a star-like structure, or include more or fewer components than shown, or may be a combination of certain components or a different arrangement of components.
The memory 420 may be used to store instructions for execution by the processor 410, and the memory 420 may be implemented by any type of volatile or nonvolatile memory terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically 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. The execution of the instructions in memory 420, when executed by processor 410, enables terminal 400 to perform some or all of the steps in the method embodiments described below.
The processor 410 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by running or executing software programs and/or modules stored in the memory 420, and invoking data stored in the memory. The processor may be comprised of an integrated circuit (Integrated Circuit, simply referred to as an IC), for example, a single packaged IC, or may be comprised of a plurality of packaged ICs connected to the same function or different functions. For example, the processor 410 may include only a central processing unit (Central Processing Unit, simply CPU). In the embodiment of the invention, the CPU can be a single operation core or can comprise multiple operation cores.
And a communication unit 430 for establishing a communication channel so that the storage terminal can communicate with other terminals. Receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium in which a program may be stored, which program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (random access memory, RAM), or the like.
Therefore, the invention monitors the new address resolution protocol table item and address resolution protocol message of the switch core, extracts the address resolution protocol table item information from the address resolution protocol message, and synchronizes the new address resolution protocol table item and address resolution protocol table item information to the neighbor node of the target node of the same cross-equipment link aggregation group. The method and the device can effectively prevent ARP information of the cross-equipment link aggregation group node or the switch from aging, and can realize little or even no packet loss when the link switching occurs, thereby bringing better use experience to users.
It will be apparent to those skilled in the art that the techniques of embodiments of the present invention may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solution in the embodiments of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium such as a U-disc, a mobile hard disc, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, etc. various media capable of storing program codes, including several instructions for causing a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the method described in the embodiments of the present invention.
The same or similar parts between the various embodiments in this specification are referred to each other. In particular, for the terminal embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference should be made to the description in the method embodiment for relevant points.
In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods may be implemented in other ways. For example, the system embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, system or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
Although the present invention has been described in detail by way of preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Various equivalent modifications and substitutions may be made in the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and it is intended that all such modifications and substitutions be within the scope of the present invention/be within the scope of the present invention as defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (6)

1. A method for synchronizing ARP information between MCLAG neighbors, comprising:
monitoring a new address resolution protocol table item and an address resolution protocol message of the switch core, and extracting address resolution protocol table item information from the address resolution protocol message;
synchronizing the new address resolution protocol table item and the address resolution protocol table item information to neighbor nodes of a target node, wherein the target node and the neighbor nodes belong to the same cross-equipment link aggregation group;
monitoring new address resolution protocol table items and address resolution protocol messages of the switch core, and extracting address resolution protocol table item information from the address resolution protocol messages, comprising:
monitoring an address resolution protocol table item learned by a switch core through a communication protection mechanism of the switch, and synchronizing the new address resolution protocol table item to a neighbor node if the address resolution protocol table item is the new address resolution protocol table item;
extracting address resolution protocol table item information from an address resolution protocol message received by a switch, and synchronously transmitting the address resolution protocol table item information to a neighbor node while transmitting the address resolution protocol message to a target node;
extracting address resolution protocol table item information from an address resolution protocol message received by a switch, and synchronously transmitting the address resolution protocol table item information to a neighbor node while transmitting the address resolution protocol message to a target node, wherein the method comprises the following steps:
the neighbor node judges whether the same address resolution protocol table item exists locally according to the information content of the address resolution protocol table item:
if yes, discarding the address resolution protocol table entry information;
if not, storing the corresponding address resolution protocol table entry to the local according to the address resolution protocol table entry information and returning response information of the address resolution protocol message to the switch.
2. The method of claim 1, wherein synchronizing both the new address resolution protocol entry and the address resolution protocol entry information to a neighbor node of a target node, the target node and the neighbor node belonging to the same cross-device link aggregation group, comprises:
the information synchronization period is set to 30min, and data synchronization is performed every 30 min.
3. A system for synchronizing ARP information between MCLAG neighbors, comprising:
the information monitoring unit is used for monitoring a new address resolution protocol table item and an address resolution protocol message of the switch core and extracting address resolution protocol table item information from the address resolution protocol message;
the information synchronization unit is used for synchronizing the new address resolution protocol table item and the address resolution protocol table item information to neighbor nodes of a target node, wherein the target node and the neighbor nodes belong to the same cross-equipment link aggregation group;
the information monitoring unit is used for:
monitoring an address resolution protocol table item learned by a switch core through a communication protection mechanism of the switch, and synchronizing the new address resolution protocol table item to a neighbor node if the address resolution protocol table item is the new address resolution protocol table item;
extracting address resolution protocol table item information from an address resolution protocol message received by a switch, and synchronously transmitting the address resolution protocol table item information to a neighbor node while transmitting the address resolution protocol message to a target node;
extracting address resolution protocol table item information from an address resolution protocol message received by a switch, and synchronously transmitting the address resolution protocol table item information to a neighbor node while transmitting the address resolution protocol message to a target node, wherein the method comprises the following steps:
the neighbor node judges whether the same address resolution protocol table item exists locally according to the information content of the address resolution protocol table item:
if yes, discarding the address resolution protocol table entry information;
if not, storing the corresponding address resolution protocol table entry to the local according to the address resolution protocol table entry information and returning response information of the address resolution protocol message to the switch.
4. A system according to claim 3, characterized in that the information synchronization unit is adapted to:
the information synchronization period is set to 30min, and data synchronization is performed every 30 min.
5. A terminal, comprising:
a processor;
a memory for storing execution instructions of the processor;
wherein the processor is configured to perform the method of any of claims 1-2.
6. A computer readable storage medium storing a computer program, which when executed by a processor implements the method of any one of claims 1-2.
CN202111089267.9A 2021-09-16 2021-09-16 Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors Active CN113839862B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111089267.9A CN113839862B (en) 2021-09-16 2021-09-16 Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111089267.9A CN113839862B (en) 2021-09-16 2021-09-16 Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors

Publications (2)

Publication Number Publication Date
CN113839862A CN113839862A (en) 2021-12-24
CN113839862B true CN113839862B (en) 2023-06-06

Family

ID=78959629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111089267.9A Active CN113839862B (en) 2021-09-16 2021-09-16 Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors

Country Status (1)

Country Link
CN (1) CN113839862B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150352B (en) * 2022-06-30 2023-08-04 苏州浪潮智能科技有限公司 Method, device, equipment and readable medium for ARP synchronization across link aggregation groups
CN115225604A (en) * 2022-07-15 2022-10-21 北京天融信网络安全技术有限公司 Method and device for acquiring network equipment information, electronic equipment and storage medium

Family Cites Families (5)

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

Also Published As

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

Similar Documents

Publication Publication Date Title
CN108449282B (en) Load balancing method and device
US20190342117A1 (en) Method for controlling a remote service access path and relevant device
US6732186B1 (en) High availability networking with quad trunking failover
CN106789526B (en) method and device for connecting multiple system networks
US20140022894A1 (en) Network system, switch and connected terminal detection method
CN113839862B (en) Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors
CN105791126B (en) Ternary Content Addressable Memory (TCAM) table look-up method and device
AU2004306913A1 (en) Redundant routing capabilities for a network node cluster
US11403319B2 (en) High-availability network device database synchronization
CN111010340B (en) Data message forwarding control method and device and computing device
CN111970362B (en) LVS-based vehicle networking gateway clustering method and system
US10771402B2 (en) Link aggregated fibre channel over ethernet system
CN114745255B (en) Hardware chip, DPU, server, communication method and related device
CN113472646B (en) Data transmission method, node, network manager and system
US20240097940A1 (en) Packet Transmission Method, Device, and System
US20080205376A1 (en) Redundant router having load sharing functionality
CN112887229A (en) Session information synchronization method and device
EP4020904A1 (en) Packet transmission method, device, and system
CN112583655B (en) Data transmission method and device, electronic equipment and readable storage medium
CN114172841B (en) Message forwarding method and device, electronic equipment and read storage medium
CN109413142B (en) Method for realizing iSCSI virtual agent under L inux
CN114928615B (en) Load balancing method, device, equipment and readable storage medium
CN115333991A (en) Cross-device link aggregation method, device, system and computer-readable storage medium
US10969984B2 (en) Maintaining a DNS store for control plane restart or failover
CN109039680B (en) Method and system for switching main Broadband Network Gateway (BNG) and standby BNG and BNG

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant