Data processing method and device based on address resolution message

By using the gateway mutual aid protocol to determine and encapsulate address resolution packets in the S-MLAG network, the performance overhead and bandwidth loss caused by the host ARP dual transmission are solved, and efficient state data synchronization is achieved.

CN120342993APending Publication Date: 2025-07-18JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510749409.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-05
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

In S-MLAG networking, host ARP dual-send technology leads to additional performance overhead and bandwidth loss, and it is impossible to directly synchronize the state of the same host node.

Method used

The destination network address of the packet is resolved by the gateway device, determine whether the link aggregation group includes the gateway device that needs to receive the packet, and encapsulate the packet according to the gateway mutual aid protocol, and send it to the corresponding gateway device to update the interface status data.

Benefits of technology

On the basis of ensuring state data synchronization, the performance overhead and bandwidth losses caused by ARP dual-transmission technology are avoided, and the efficiency of network terminal equipment is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120342993A_ABST
    Figure CN120342993A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device based on an address resolution message, a computer readable medium, electronic equipment and a computer program product. A specific embodiment of the method comprises the following steps: according to a destination network address of an address resolution message received by a first gateway device, determining whether a link aggregation group where the first gateway device is located comprises a second gateway device which needs to receive the address resolution message, the link aggregation group comprises a plurality of gateway devices which are connected with the same network terminal device; in response to the determination, according to parameter configuration data of a second gateway device in a gateway mutual assistance protocol, the address resolution message is packaged to obtain a first packaging message, and the gateway mutual assistance protocol comprises respective parameter configuration data of a plurality of gateway devices in the link aggregation group; and the first packaging message is sent to the second gateway equipment, so that the second gateway equipment updates state data of a first interface according to the first packaging message, and the first interface is an interface for sending the address resolution message on the network terminal equipment. According to the invention, by modifying the communication mechanism of the gateway device, on the basis of ensuring the state data synchronization, extra performance overhead and bandwidth loss brought to the network terminal device are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technologies, specifically to the fields of data center network architectures, network protocols, etc., and particularly to a data processing method, device, computer-readable medium, electronic device, and computer program product based on address resolution messages. Background Art

[0002] S-MLAG (Simple Multi-Chassis Link Aggregation Group) networking is a highly available data center access network solution. Compared with MLAG (Multi-Chassis Link Aggregation Group) networking and stacking networking, the biggest feature of S-MLAG networking is that there is no directly connected link (Peer-Link) between the two (or more) access switches to which the host (virtual machine or container) is uplinked, and the states of the same host node cannot be directly synchronized. For a host using a link aggregation protocol, multiple physical interfaces are equivalent to a Linux bonding logical interface bond4. When the host sends an ARP (Address Resolution Protocol) request message or an ARP reply message, it will only be sent from one of the physical interfaces. To solve the above problems, in traditional S-MLAG, in order to ensure high bandwidth utilization, the host uses the ARP dual (multi)-transmission technology, which brings additional performance overhead and bandwidth loss to the host. Summary of the Invention

[0003] The embodiments of the present application propose a data processing method, device, computer-readable medium, electronic device, and computer program product based on address resolution messages.

[0004] In a first aspect, the embodiments of the present application provide a data processing method based on address resolution messages, including: determining, according to the destination network address of the address resolution message received by a first gateway device, whether a second gateway device that needs to receive the address resolution message is included in the link aggregation group where the first gateway device is located, where the link aggregation group includes multiple gateway devices uplinked by the same network terminal device; in response to determining that it is included, encapsulating the address resolution message according to the parameter configuration data of the second gateway device in the gateway mutual assistance protocol to obtain a first encapsulated message, where the gateway mutual assistance protocol includes the parameter configuration data of each of the multiple gateway devices in the link aggregation group; and sending the first encapsulated message to the second gateway device so that the second gateway device updates the status data of a first interface according to the first encapsulated message, where the first interface is the interface on the network terminal device that sends the address resolution message.

[0005] In some examples, the destination network address of the address resolution message includes a destination logical address, the logical addresses of multiple gateway devices in the link aggregation group are the same, and the above-mentioned determination of whether the link aggregation group where the first gateway device is located includes a second gateway device that needs to receive the address resolution message based on the destination network address of the address resolution message received by the first gateway device includes: in response to the address resolution message being a first request message, and the destination logical address of the address resolution message is different from the source logical address of the address resolution message, determining whether the destination logical address of the address resolution message is the logical address of the gateway device in the link aggregation group; in response to determining that the destination logical address of the address resolution message is the logical address of the gateway device in the link aggregation group, determining other gateway devices in the link aggregation group except the first gateway device as second gateway devices.

[0006] In some examples, the destination network address of the address resolution message includes a destination logical address, the gateway device in the link aggregation group is connected to multiple network terminal devices, and the above-mentioned determination of whether the link aggregation group where the first gateway device is located includes a second gateway device that needs to receive the address resolution message based on the destination network address of the address resolution message received by the first gateway device includes: in response to the address resolution message being a first request message, and the destination logical address of the address resolution message is different from the source logical address of the address resolution message, determining whether the source logical address of the address resolution message is the logical address of the first terminal device among the multiple network terminal devices, and whether the destination logical address of the address resolution message is the logical address of the second terminal device among the multiple network terminal devices; in response to the determination of yes, determining other gateway devices in the link aggregation group except the first gateway device as second gateway devices.

[0007] In some examples, the above method also includes: updating the status data of the first interface stored in the first gateway device according to the address resolution message; constructing and sending a first reply message to the address resolution message according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0008] In some examples, the above-mentioned determination of whether the link aggregation group where the first gateway device is located includes a second gateway device that needs to receive the address resolution message based on the destination network address of the address resolution message received by the first gateway device also includes: in response to the address resolution message being a first request message, and the destination logical address of the address resolution message is the same as the source logical address of the address resolution message, determining that the link aggregation group where the first gateway device is located does not include the second gateway device; and the above-mentioned method also includes: updating the status data of the first interface stored in the first gateway device based on the address resolution message.

[0009] In some examples, the destination network address of the address resolution message includes the destination physical address, and determining whether the link aggregation group where the first gateway device is located includes a second gateway device that needs to receive the address resolution message according to the destination network address of the address resolution message received by the first gateway device includes: in response to the address resolution message being a second reply message and the destination physical address of the address resolution message being the physical address of a target gateway device other than the first gateway device in the link aggregation group, determining the target gateway device as the second gateway device.

[0010] In some examples, the destination network address of the address resolution message includes the destination physical address, and determining whether the link aggregation group where the first gateway device is located includes a second gateway device that needs to receive the address resolution message according to the destination network address of the address resolution message received by the first gateway device includes: in response to the address resolution message being a second reply message and the destination physical address of the address resolution message being the physical address of the first gateway device or the virtual physical address corresponding to the link aggregation group, determining that the link aggregation group where the first gateway device is located does not include the second gateway device.

[0011] In some examples, the above method further includes: updating the status data of the first interface stored in the first gateway device according to the address resolution message; constructing and sending a gratuitous address resolution message for the address resolution message according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0012] In some examples, the above method further includes: determining whether the destination logical address of the second encapsulated message received by the first gateway device is the logical address of the first gateway device, where the second encapsulated message includes a second request message for address resolution; in response to determining that the destination logical address of the second encapsulated message is the logical address of the first gateway device and the destination logical address of the second request message is different from the source logical address of the second request message, determining whether the destination logical address of the second request message is the logical address of a gateway device in the link aggregation group, where the logical addresses of the gateway devices in the link aggregation group are the same; in response to determining that the destination logical address of the second request message is the logical address of a gateway device in the link aggregation group, updating the status data of the second interface stored in the first gateway device according to the second request message, where the second interface is the interface on the network terminal device that sends the second request message.

[0013] In some examples, the above method further includes: determining whether the destination logical address of the second encapsulated packet received by the first gateway device is the logical address of the first gateway device, where the second encapsulated packet includes a second request packet for address resolution; in response to determining that the destination logical address of the second encapsulated packet is the logical address of the first gateway device and the destination logical address of the second request packet is different from the source logical address of the second request packet, determining whether the source logical address of the second request packet is the logical address of a third terminal device among multiple network terminal devices and whether the destination logical address of the second request packet is the logical address of a fourth terminal device among multiple network terminal devices; in response to determining yes, updating the status data of a third interface stored in the first gateway device according to the second request packet, where the third interface is the interface on the third terminal device that sends the second request packet.

[0014] In some examples, the above method further includes: constructing and sending a third reply packet for the second request packet according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0015] In some examples, the above method further includes: in response to the third encapsulated packet received by the first gateway device including a fourth reply packet for address resolution, the destination logical address of the third encapsulated packet being the logical address of the first gateway device, and the destination physical address of the fourth reply packet being the physical address of the first gateway device, updating the status data of a fourth interface stored in the first gateway device according to the fourth reply packet, where the fourth interface is the interface on the network terminal device that sends the fourth reply packet; constructing and sending a gratuitous address resolution packet for the address resolution packet according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0016] In some examples, the parameter configuration data includes a network address and an encapsulation method, and encapsulating the address resolution packet to obtain the first encapsulated packet according to the parameter configuration data of the second gateway device in the gateway mutual assistance protocol includes: encapsulating the address resolution packet according to the network address and encapsulation method of the second gateway device in the gateway mutual assistance protocol to obtain the first encapsulated packet.

[0017] In the second aspect, an embodiment of the present application provides a data processing device based on an address resolution message, including: a gateway determination unit, configured to determine whether the link aggregation group where the first gateway device is located includes a second gateway device that needs to receive the address resolution message according to the destination network address of the address resolution message received by the first gateway device, wherein the link aggregation group includes multiple gateway devices connected to the same network terminal device; a message encapsulation unit, configured to respond to the determination, including, according to the parameter configuration data of the second gateway device in the gateway mutual assistance protocol, encapsulate the address resolution message to obtain a first encapsulated message, wherein the gateway mutual assistance protocol includes the parameter configuration data of each of the multiple gateway devices in the link aggregation group; a message sending unit, configured to send the first encapsulated message to the second gateway device, so that the second gateway device updates the status data of the first interface according to the first encapsulated message, wherein the first interface is the interface for sending the address resolution message on the network terminal device.

[0018] In some examples, the destination network address of the address resolution message includes a destination logical address, the logical addresses of multiple gateway devices in a link aggregation group are the same, and the above-mentioned gateway determination unit is further configured to: in response to the address resolution message being a first request message, and the destination logical address of the address resolution message is different from the source logical address of the address resolution message, determine whether the destination logical address of the address resolution message is the logical address of the gateway device in the link aggregation group; in response to determining that the destination logical address of the address resolution message is the logical address of the gateway device in the link aggregation group, determine other gateway devices in the link aggregation group except the first gateway device as second gateway devices.

[0019] In some examples, the destination network address of the address resolution message includes a destination logical address, the gateway device in the link aggregation group is connected to multiple network terminal devices, and the above-mentioned gateway determination unit is further configured to: in response to the address resolution message being a first request message, and the destination logical address of the address resolution message is different from the source logical address of the address resolution message, determine whether the source logical address of the address resolution message is the logical address of the first terminal device among the multiple network terminal devices, and whether the destination logical address of the address resolution message is the logical address of the second terminal device among the multiple network terminal devices; in response to determining yes, determine the other gateway devices in the link aggregation group except the first gateway device as the second gateway device.

[0020] In some examples, the above-mentioned apparatus also includes: a status update unit, configured to update the status data of the first interface stored in the first gateway device according to the address resolution message; and a message reply unit, configured to construct and send a first reply message for the address resolution message according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0021] In some examples, the above gateway determination unit is further configured to: in response to the address resolution message being a first request message and the destination logical address of the address resolution message being the same as the source logical address of the address resolution message, determine that the link aggregation group where the first gateway device is located does not include the second gateway device; and the above status update unit is further configured to update the status data of the first interface stored in the first gateway device according to the address resolution message.

[0022] In some examples, the destination network address of the address resolution message includes the destination physical address, and the above gateway determination unit is further configured to: in response to the address resolution message being a second reply message and the destination physical address of the address resolution message being the physical address of the target gateway device other than the first gateway device in the link aggregation group, determine the target gateway device as the second gateway device.

[0023] In some examples, the destination network address of the address resolution message includes the destination physical address, and the above gateway determination unit is further configured to: in response to the address resolution message being a second reply message and the destination physical address of the address resolution message being the physical address of the first gateway device or the virtual physical address corresponding to the link aggregation group, determine that the link aggregation group where the first gateway device is located does not include the second gateway device.

[0024] In some examples, the above status update unit is further configured to: update the status data of the first interface stored in the first gateway device according to the address resolution message; the above message reply unit is further configured to construct and send a gratuitous address resolution message for the address resolution message according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0025] In some examples, the above status update unit is further configured to: determine whether the destination logical address of the second encapsulated message received by the first gateway device is the logical address of the first gateway device, where the second encapsulated message includes a second request message for address resolution; in response to determining that the destination logical address of the second encapsulated message is the logical address of the first gateway device and the destination logical address of the second request message is different from the source logical address of the second request message, determine whether the destination logical address of the second request message is the logical address of the gateway device in the link aggregation group, where the logical addresses of the gateway devices in the link aggregation group are the same; in response to determining that the destination logical address of the second request message is the logical address of the gateway device in the link aggregation group, update the status data of the second interface stored in the first gateway device according to the second request message, where the second interface is the interface on the network terminal device that sends the second request message.

[0026] In some examples, the above state update unit is further configured to: determine whether the destination logical address of the second encapsulated packet received by the first gateway device is the logical address of the first gateway device, where the second encapsulated packet includes a second request packet for address resolution; in response to determining that the destination logical address of the second encapsulated packet is the logical address of the first gateway device, and the destination logical address of the second request packet is different from the source logical address of the second request packet, determine whether the source logical address of the second request packet is the logical address of a third terminal device among multiple network terminal devices, and whether the destination logical address of the second request packet is the logical address of a fourth terminal device among multiple network terminal devices; in response to determining yes, update the status data of a third interface stored in the first gateway device according to the second request packet, where the third interface is the interface on the third terminal device that sends the second request packet.

[0027] In some examples, the above packet reply unit is further configured to: construct and send a third reply packet for the second request packet according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0028] In some examples, the above state update unit is further configured to: in response to the third encapsulated packet received by the first gateway device including a fourth reply packet for address resolution, the destination logical address of the third encapsulated packet being the logical address of the first gateway device, and the destination physical address of the fourth reply packet being the physical address of the first gateway device, update the status data of a fourth interface stored in the first gateway device according to the fourth reply packet, where the fourth interface is the interface on the network terminal device that sends the fourth reply packet; the above packet reply unit is further configured to: construct and send a gratuitous address resolution packet for the address resolution packet according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0029] In some examples, the parameter configuration data includes a network address and an encapsulation method, and the above packet encapsulation unit is further configured to: encapsulate the address resolution packet according to the network address and the encapsulation method of the second gateway device in the gateway mutual assistance protocol to obtain a first encapsulated packet.

[0030] In a third aspect, an embodiment of the present application provides a computer-readable medium, on which a computer program is stored, where the program, when executed by a processor, implements the method described in any implementation manner of the first aspect.

[0031] In a fourth aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a storage device, on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the first aspect.

[0032] Fifth aspect, an embodiment of the present application provides a computer program product, including: a computer program, which when executed by a processor, implements the method described in any implementation manner of the first aspect.

[0033] The data processing method and apparatus based on an address resolution message provided by the embodiments of the present application determine whether a second gateway device that needs to receive the address resolution message is included in the link aggregation group where the first gateway device is located according to the destination network address of the address resolution message received by the first gateway device, where the link aggregation group includes multiple gateway devices connected upstream to the same network terminal device; in response to determining that it is included, encapsulate the address resolution message according to the parameter configuration data of the second gateway device in the gateway mutual assistance protocol to obtain a first encapsulated message, where the gateway mutual assistance protocol includes the parameter configuration data of each of the multiple gateway devices in the link aggregation group; send the first encapsulated message to the second gateway device so that the second gateway device updates the status data of the first interface according to the first encapsulated message, where the first interface is the interface on the network terminal device that sends the address resolution message, thereby providing a synchronization mechanism for updating the status data of the interface of the network terminal device stored in the gateway device. By introducing the gateway mutual assistance protocol and configuring multiple gateway devices connected upstream to the network terminal device as a link aggregation group, the gateway devices in the link aggregation group, after receiving the address resolution message, determine whether to send the address resolution message to other gateway devices in the link aggregation group. If so, encapsulate the address resolution message according to the parameter configuration data of the other gateway devices in the gateway mutual assistance protocol and forward the encapsulated message to the other gateway devices. In this way, by modifying the communication mechanism of the gateway device, on the basis of ensuring the synchronization of status data, the additional performance overhead and bandwidth loss brought by the ARP double (multiple) sending technology to the network terminal device are avoided. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] By reading the detailed description of the non-restrictive embodiments with reference to the following drawings, other features, objectives, and advantages of the present application will become more obvious:

[0035] Figure 1 is an exemplary system architecture diagram to which an embodiment of the present application can be applied;

[0036] Figure 2 is a flowchart of an embodiment of the data processing method based on an address resolution message according to the present application;

[0037] Figure 3A is a schematic diagram of the architecture of the S-MLAG networking according to this embodiment;

[0038] Figure 3B is a schematic diagram of a message transmission process according to this embodiment;

[0039] Figure 3C is a schematic diagram of another message transmission process according to this embodiment;

[0040] Figure 3D is a schematic diagram of another message transmission process according to this embodiment;

[0041] Figure 4 is a schematic diagram of an application scenario of the data processing method based on the address resolution message according to this embodiment;

[0042] Figure 5 is a flowchart of another embodiment of the data processing method based on the address resolution message according to this application;

[0043] Figure 6 is a structural diagram of an embodiment of the data processing device based on the address resolution message according to this application;

[0044] Figure 7 is a schematic structural diagram of a computer system suitable for implementing the embodiments of this application. Detailed implementation manners

[0045] The following further elaborates on this application with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the relevant invention and do not limit the invention. Additionally, it should be noted that for ease of description, only parts related to the relevant invention are shown in the drawings.

[0046] It should be noted that, without conflict, the embodiments in this application and the features in the embodiments can be combined with each other. The following will elaborate on this application in detail with reference to the drawings and embodiments.

[0047] It should be noted that in the technical solutions of this disclosure, in aspects such as the collection, gathering, update, analysis, processing, use, transmission, and storage of user personal information, they all comply with the provisions of relevant laws and regulations, are used for legal purposes, and do not violate public order and good customs. Necessary measures are taken for user personal information to prevent illegal access to user personal information data, and to safeguard user personal information security, network security, and national security.

[0048] Figure 1 Shows an exemplary architecture 100 to which the data processing method and device based on the address resolution message of this application can be applied.

[0049] As Figure 1As shown, the system architecture 100 may include gateway devices 101, 102, 103, network 104, and network terminal device 105. The gateway devices 101, 102, 103 are communicatively connected through the network layer (three-layer network) to form a topology network. Network 104 serves as the medium for providing communication links between the gateway devices 101, 102, 103 and the network terminal device 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.

[0050] The gateway devices 101, 102, 103 can interact with the network terminal device 105 through network 104 to receive or send data, etc. The gateway devices 101, 102, 103 can be hardware devices or software that support network connections for data interaction and data processing. When the gateway devices 101, 102, 103 are hardware, they are mainly used for connections between different networks or different communication protocols, implementing functions such as protocol conversion, data forwarding, security control, network address translation, and routing selection, to ensure the efficiency and security of communication between networks, including but not limited to routers, three-layer switches, proxy servers, etc. When the gateway devices 101, 102, 103 are software, they can be installed in the above-listed electronic devices. It can be implemented as, for example, multiple software or software modules for providing distributed services, or as a single software or software module. No specific limitation is made here.

[0051] The network terminal device 105 can be a server that provides various services. For example, it is a background processing server that receives and sends data based on the gateway devices 101, 102, 103 and processes the data.

[0052] It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or as a single server. When the server is software, it can be implemented as multiple software or software modules (such as software or software modules for providing distributed services), or as a single software or software module. No specific limitation is made here.

[0053] It should also be noted that the data processing method based on the address resolution message provided by the embodiments of the present application is generally executed by the gateway device, but the possibility of being executed by the network terminal device, or by the cooperation between the network terminal device and the gateway device is not excluded. Correspondingly, each part (such as each unit) included in the data processing device based on the address resolution message can be all set in the network terminal device, or all set in the gateway device, or separately set in the network terminal device and the gateway device.

[0054] It should be understood, Figure 1The number of gateway devices, networks, and network terminal devices in the system is only illustrative. Depending on the implementation requirements, there may be any number of gateway devices, networks, and network terminal devices. When the electronic device on which the data processing method based on the address resolution message is running does not need to transmit data with other electronic devices, the system architecture may only include the electronic device (e.g., gateway device) on which the data processing method based on the address resolution message is running.

[0055] Continue to refer Figure 2 , shows a process 200 of an embodiment of a data processing method based on an address resolution message. The process 200 includes the following steps:

[0056] Step 201: Determine, based on the destination network address of the address resolution message received by the first gateway device, whether the link aggregation group to which the first gateway device belongs includes a second gateway device that needs to receive the address resolution message.

[0057] In this embodiment, the above execution entities (for example, Figure 1 The first gateway device may determine whether the link aggregation group to which the first gateway device belongs includes a second gateway device that needs to receive the address resolution message according to the destination network address of the address resolution message received by the first gateway device. The link aggregation group includes multiple gateway devices connected to the same network terminal device.

[0058] Continue to refer Figure 3A , showing a schematic diagram of the architecture of S-MLAG networking.

[0059] The network terminal device 301 is connected to gateway devices 302 and 303, and the gateway devices 302 and 303 are connected to each other through Spine switches 304 and 305. The gateway devices 302 and 303 form a link aggregation group, such as a ToR (Top of Rack) switch. The multiple physical interfaces e1 and e2 on the network terminal device 301 are equivalent to a logical Linux bonding logical interface bond4. When the network terminal device sends an address resolution message, it will only be sent from one of the physical interfaces, and the gateway device that is connected to the interface that sends the address resolution message will receive the address resolution message.

[0060] The first gateway device may be any gateway device in the link aggregation group, and the second gateway device may be any gateway device in the link aggregation group except the first gateway device, or any plurality of gateway devices.

[0061] The address resolution message is mainly used to resolve the logical address into the physical address of the data link layer to ensure that data can be accurately sent to the target device. The logical address is, for example, an IP (Internet Protocol) address, and the physical address is, for example, a MAC (Media Access Control Address) address. The address resolution message is, for example, an ARP message or an NDP (Neighbor Discovery Protocol) message.

[0062] The ARP message includes an ARP Request message and an ARP Reply message. The ARP request message is an address resolution request message sent by the source device to the target device, used to query the MAC address of the target device.

[0063] The ARP reply message is an address resolution reply message sent by the target device to the source device after receiving the ARP request, containing the MAC address of the target device.

[0064] In an IPv4 (Internet Protocol version 4) network, the ARP message is used to resolve the IP address of the target device into a MAC address. Since the IP address of the network layer is used to identify the location of the host in the network, and the MAC address of the data link layer is used to identify the physical address of the network interface, data transmission needs to know the MAC address of the target device to perform encapsulation and sending. When a device needs to communicate with another device within the same local area network, it will look up the MAC address corresponding to the target IP address in its own ARP cache. If not found, it will send an ARP request message to query the MAC address corresponding to the target IP address. The device that receives the request will recognize its own IP address and thus send an ARP reply message to the requester, informing it of the MAC address. The ARP cache of the requester will update this mapping relationship, and then it can directly use this MAC address for data transmission.

[0065] The NDP message includes an NS (Neighbor Solicitation) message and an NA (Neighbor Advertisement) message. The NS message is used to request the MAC address of the target device. The NA message is a reply message sent by the target device after receiving the NS message, containing its MAC address.

[0066] In an IPv6 (Internet Protocol version 6) network, NDP packets are used for neighbor discovery and address resolution, and their function is similar to that of ARP packets in IPv4. It can not only resolve the IPv6 address of the target device into a MAC address, but also be used for neighbor unreachability detection, duplicate address detection, router discovery, prefix discovery, etc. For example, when a device needs to communicate with another device within the same link, it will send an NS (Neighbor Solicitation) packet to query the MAC address corresponding to the target IPv6 address. The target device that receives the NS packet will reply with an NA (Neighbor Advertisement) packet to inform its MAC address. In addition, NDP packets are also used to detect the reachability of neighbor devices and discover information such as routers and network prefixes, so that the device can correctly perform automatic configuration and communication of IPv6 addresses.

[0067] It can be understood that from the perspective of the request and reply of the packet, the address resolution packet can be divided into an address resolution request packet and an address resolution reply packet. The address resolution request packet is, for example, an ARP request packet, an NDP NS packet, and the address resolution reply packet is, for example, an ARP reply packet, an NDP NA packet.

[0068] The destination network address of the address resolution packet can be a logical address and / or a physical address. As an example, for the destination network address of the address resolution packet received by the first gateway device, there may be various situations. For example, the destination network address is the network address corresponding to a certain gateway device in the link aggregation group, and the destination network address is the network address of other network terminal devices outside the sending end (source network terminal device) of the address resolution packet. For each situation, it is determined in advance whether the link aggregation group includes a second gateway device that needs to receive the address resolution packet, and specifically which second gateway devices are included, so as to obtain the corresponding relationship between each situation corresponding to the destination network address of the address resolution packet and the second gateway device that needs to receive the address resolution packet.

[0069] After receiving the address resolution packet, the first gateway device parses and determines the destination network address of the address resolution packet; according to the above-mentioned pre-determined corresponding relationship, it determines whether the link aggregation group where the first gateway device is located includes a second gateway device that needs to receive the address resolution packet.

[0070] Step 202, in response to determining that it includes, encapsulate the address resolution packet according to the parameter configuration data of the second gateway device in the gateway mutual assistance protocol to obtain a first encapsulated packet.

[0071] In this embodiment, the execution subject may respond to the determination by encapsulating the address resolution message according to the parameter configuration data of the second gateway device in the gateway mutual assistance protocol to obtain a first encapsulation message.

[0072] GHEOP (Gateway Help Each Other Protocol) is used by gateway devices to synchronize the status data of the interfaces of network terminal devices connected to the gateway devices, including the parameter configuration data of each of the multiple gateway devices in the link aggregation group. The parameter configuration data is used to guide the encapsulation process of the address resolution message, for example, including the network address and the encapsulation method. The encapsulation method can be various methods suitable for message encapsulation, such as GRE (Generic Routing Encapsulation) and ERSPAN (Encapsulated Remote Switched Port Analyzer). For compatibility with existing Internet protocols, the encapsulation method can support multiple protocol encapsulation.

[0073] As an example, GHEOP includes GHEOP-ARP and GHEOP-NDP. GHEOP-ARP is used in an IPv4 network to synchronize IPv4 ARP neighbor states between gateway devices in a link aggregation group; GHEOP-NDP is used in an IPv6 network to synchronize IPv6 NDP neighbor states between gateway devices in a link aggregation group.

[0074] In this embodiment, first, in response to the fact that the link aggregation group where the first gateway device is located includes a second gateway device that needs to receive an address resolution message, parameter configuration data of the second gateway device is determined from the gateway mutual assistance protocol; then, according to the parameter configuration data of the second gateway device in the gateway mutual assistance protocol, the address resolution message is encapsulated to obtain a first encapsulated message.

[0075] In some implementation manners of this embodiment, GHEOP-ARP includes the following fields: enable, VLAN (Virtual Local Area Network)-ID (Identity document), IPv4 detection address, partner list; among them, there is a partnership between gateway devices in the link aggregation group, and the partner list includes the IPv4 address, ARP encapsulation method, and MAC address of each gateway device in the link aggregation group. Among them, the number of IPv4 detection addresses is indefinite and should be determined according to the number of all IPv4 addresses of the current VLAN. For example, if the VALN1000 of the gateway device is configured with two address segments of 11.9.0.1 / 17 primary address and 11.13.155.1 / 24, 11.252.100.33 / 27, then one IPv4 detection should also be configured for each of the 11.9.0.0 / 17 network segment, 11.13.155.0 / 24 network segment, and 11.252.100.32 / 27 network segment. To avoid conflicts when network terminal devices respond to ARP / ND messages, the detection addresses of each partner should be different from each other.

[0076] GHEOP-NDP includes the following fields: enable, VLAN-ID, IPv6 detection address, partner list; among them, the partner list includes the IPv6 address, NDP encapsulation method, and MAC address of each gateway device in the link aggregation group. Similarly, the number of IPv6 detection addresses is the same as the number of IPv6 addresses actually configured in the VLAN.

[0077] In this implementation manner, the above execution subject can execute the above step 202 in the following manner: encapsulate the address resolution message according to the network address and encapsulation method of the second gateway device in the gateway mutual assistance protocol to obtain the first encapsulated message.

[0078] Among them, the network address includes the logical address and the physical address.

[0079] In this implementation manner, a specific implementation manner of the gateway mutual assistance protocol and the message encapsulation process based on the gateway mutual assistance protocol three are provided, ensuring the reliability of the forwarding process of the address resolution message.

[0080] In addition, for the IPv6 NDP message, since its length is variable, to avoid exceeding the Ethernet default MTU (Maximum Transmission Unit), the maximum length of the NDP message carried by the GHEOP-NDP message is set to 1200 bytes, and for the NDP message exceeding this maximum length, the exceeded part will be discarded.

[0081] Step 203: Send the first encapsulated packet to the second gateway device so that the second gateway device updates the status data of the first interface according to the first encapsulated packet.

[0082] In this embodiment, the above-mentioned execution entity may send the first encapsulated packet to the second gateway device so that the second gateway device updates the status data of the first interface according to the first encapsulated packet. Herein, the first interface is the interface on the network terminal device for sending the address resolution packet.

[0083] The first gateway device sends the first encapsulated packet to the second gateway device through a three-layer network; after receiving the first encapsulated packet, the second gateway device parses the address resolution packet therein and updates the stored status data of the first interface to link-up (online). Herein, the first interface is the interface on the network terminal device for sending the address resolution packet.

[0084] The three-layer network is the third layer in the OSI (Open Systems Interconnection) model. The OSI model from bottom to top is the physical layer, data link layer, network layer, transport layer, session layer, presentation layer, and application layer. Each layer provides services for the layer above it and depends on the services provided by the layer below it to jointly achieve network communication.

[0085] In some implementation manners of this embodiment, the destination network address of the address resolution packet includes the destination logical address, and the logical addresses of multiple gateway devices in the link aggregation group are the same.

[0086] In this implementation manner, the above-mentioned execution entity may execute the above step 201 in the following manner:

[0087] First, in response to the address resolution packet being the first request packet and the destination logical address of the address resolution packet being different from the source logical address of the address resolution packet, determine whether the destination logical address of the address resolution packet is the logical address of the gateway device in the link aggregation group.

[0088] Then, in response to determining that the destination logical address of the address resolution packet is the logical address of the gateway device in the link aggregation group, determine the other gateway devices in the link aggregation group except the first gateway device as the second gateway devices.

[0089] If the destination logical address of the address resolution packet is the same as the source logical address of the address resolution packet, it indicates that the address resolution packet is a gratuitous address resolution packet. For example, it is a gratuitous ARP packet or a gratuitous NDP packet.

[0090] When the destination logical address of the address resolution message of the first request message is different from the source logical address of the address resolution message, and the destination logical address of the address resolution message is the logical address of the gateway device in the link aggregation group, all gateway devices in the link aggregation group need to update the status data of the first interface. At this time, the other gateway devices in the link aggregation group except the first gateway device need to be determined as the second gateway device.

[0091] This implementation generally corresponds to the following scenarios:

[0092] Scenario 1: A network namespace IPv4 / IPv6 address on a network terminal device wants to start communication and sends an ARP / ND (Neighbor Discovery) broadcast request to the gateway IPv4 / IPv6 address of the gateway device in the link aggregation group. Although it is a broadcast, the ARP / ND broadcast request is ultimately sent to only one physical link, and a gateway device in the link aggregation group receives the ARP / ND broadcast.

[0093] Scenario 2: A network namespace on a network terminal device does not receive ARP / ND updates from the IPv4 / IPv6 address of the gateway device for a period of time, and sends a unicast probe to the IPv4 / IPv6 address of the gateway device.

[0094] Continue to refer Figure 3B , showing a schematic diagram of a message transmission process. The physical link of the ARP / ND broadcast request of the network terminal device 301 is the link corresponding to the gateway device 301. After receiving the first request message, the gateway device 301 determines that the destination logical address of the first request message is different from the source logical address of the first request message, and determines the other gateway devices in the link aggregation group except the first gateway device as the second gateway device.

[0095] In this implementation, the first gateway device is gateway device 302 , and the second gateway device is gateway device 303 .

[0096] The gateway device 301 encapsulates the address resolution message according to the parameter configuration data of the gateway device 302 in the gateway mutual assistance protocol to obtain a first encapsulation message; sends the first encapsulation message to the gateway device 302, and the gateway device 302 updates the status data of the first interface according to the first encapsulation message.

[0097] In this implementation, a specific implementation method for specifically determining the second gateway device is provided, which ensures the accuracy and determination efficiency of the determined second gateway device.

[0098] In some implementations of this embodiment, the destination network address of the address resolution message includes a destination logical address, and the gateway device in the link aggregation group is connected to multiple network terminal devices.

[0099] In this implementation manner, the above-mentioned execution entity may execute the above step 201 in the following manner:

[0100] First, in response to the address resolution message being a first request message and the destination logical address of the address resolution message being different from the source logical address of the address resolution message, determine whether the source logical address of the address resolution message is the logical address of the first terminal device among multiple network terminal devices, and whether the destination logical address of the address resolution message is the logical address of the second terminal device among multiple network terminal devices.

[0101] Then, in response to determining yes, determine other gateway devices in the link aggregation group except the first gateway device as the second gateway device.

[0102] When the destination logical address of the address resolution message of the first request message is different from the source logical address of the address resolution message, and the source logical address of the first request message is the logical address of the first terminal device among multiple network terminal devices, and the destination logical address of the first request message is the logical address of the second terminal device among multiple network terminal devices, it indicates that the first request message is an address resolution request message sent by the first terminal device to the second terminal device. In this case, all gateway devices in the link aggregation group need to update the status data of the first interface. At this time, it is necessary to determine other gateway devices in the link aggregation group except the first gateway device as the second gateway device.

[0103] This implementation manner generally corresponds to the following scenario:

[0104] Scenario 3: The target IPv4 / IPv6 address of the ARP / ND request message received by the first gateway device from the network terminal device is another non-gateway IPv4 / IPv6 address within the VLAN subnet.

[0105] In this implementation manner, the first gateway device is gateway device 302, and the second gateway device is gateway device 303.

[0106] In this implementation manner, the transmission process of the message is the same as that of Figure 3B The gateway device 301 encapsulates the address resolution message according to the parameter configuration data of the gateway device 302 in the gateway mutual assistance protocol to obtain the first encapsulated message; sends the first encapsulated message to the gateway device 302, and the gateway device 302 updates the status data of the first interface according to the first encapsulated message.

[0107] In this implementation manner, another specific implementation manner for specifically determining the second gateway device is provided, which ensures the accuracy and determination efficiency of the second gateway device.

[0108] In some implementation manners of this embodiment, in addition to forwarding the first request message, the above execution entity may also perform the following operations:

[0109] First, update the status data of the first interface stored in the first gateway device according to the address resolution message.

[0110] As an example, the first gateway device updates the status data of the first interface stored in the first gateway device to link-up according to the first request message.

[0111] It should be noted that the order of the first gateway device performing the status data update operation and the first request message forwarding operation is not limited. The first gateway device may first perform the status data update operation, may also first perform the first request message forwarding operation, or may also perform the status data update operation and the first request message forwarding operation simultaneously.

[0112] Then, construct and send a first reply message for the address resolution message according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0113] Each link aggregation group is provided with a virtual MAC address, that is, a virtual physical address.

[0114] As an example, first, construct a first reply message for the first request message with the virtual physical address corresponding to the link aggregation group as the source physical address and the logical address of the first gateway device as the source logical address; feedback the first reply message to the sending end (network terminal device) of the first request message.

[0115] In this implementation manner, while performing the message forwarding operation, the first gateway device needs to update the interface status of the network terminal device according to the received first request message and perform message reply, improving the integrity and reliability of the data processing process and ensuring the accuracy of the status data synchronization process.

[0116] In some implementation manners of this embodiment, the above execution entity may execute the above step 201 in the following manner: in response to the address resolution message being the first request message and the destination logical address of the address resolution message being the same as the source logical address of the address resolution message, determine that the second gateway device is not included in the link aggregation group where the first gateway device is located.

[0117] When the destination logical address of the first request message is the same as the source logical address of the first request message, it indicates that the first request message is a gratuitous address resolution protocol message.

[0118] This implementation manner corresponds to the following scenario:

[0119] Scenario 4: The gateway device receives a gratuitous ARP message or a gratuitous NDP message.

[0120] In this implementation manner, the above execution entity may also perform the following operations:

[0121] Update the status data of the first interface stored in the first gateway device according to the address resolution message.

[0122] For a gratuitous address resolution message, the first gateway device updates the status data of the first interface stored in the first gateway device to link-up according to the address resolution message and does not perform the message reply operation.

[0123] In this implementation manner, a status data update method in the case of receiving a gratuitous address resolution message is provided, which improves the integrity and reliability of the data processing process.

[0124] In some implementation manners of this embodiment, the destination network address of the address resolution message includes the destination physical address.

[0125] In this implementation manner, the above execution entity may execute the above step 201 in the following manner: in response to the address resolution message being a second reply message and the destination physical address of the address resolution message being the physical address of the target gateway device other than the first gateway device in the link aggregation group, determine the target gateway device as the second gateway device.

[0126] The second reply message is, for example, an ARP Reply message or an NDP NA message.

[0127] This implementation manner corresponds to the following scenario:

[0128] Scenario Five: When the gateway device forwards a message to the VLAN subnet address, if it does not find the corresponding ARP entry for IPv4 or the ND entry for IPv6, the first gateway device will send a broadcast / multicast probe within the VLAN.

[0129] Scenario Six: When the gateway device does not receive ARP / ND updates regarding a certain target IPv4 / IPv6 address from the network terminal device or other gateway devices in the link aggregation group within a period of time, it needs to send a unicast probe to the specified interface.

[0130] The above Scenarios Five and Six are cases where the gateway devices in the link aggregation group actively probe. The gateway device uses its own MAC address as the source MAC address and performs ARP / ND probing with a probe IP / IPv6 address in the same network segment as the target IPv4 / IPv6 address to be probed.

[0131] Continue to refer to Figure 3C , which shows a schematic diagram of another message transmission process.

[0132] The gateway device 302 sends an ARP request message or an NDP NS message to the network terminal device 301; the network terminal device 301 generates an ARP reply message or an NDP NA message to be sent to the gateway device 303; the gateway device 303 determines that the destination physical address of the ARP reply message or the NDP NA message is the physical address of the gateway device 302, and determines the gateway device 302 as the second gateway device.

[0133] The gateway device 303 determines the parameter configuration data of the gateway device 302 from the gateway mutual assistance protocol, encapsulates a second reply message according to the parameter configuration data to obtain a first encapsulated message; sends the first encapsulated message to the gateway device 302; the gateway device 302 updates the status data of the first interface according to the first encapsulated message; constructs and feeds back a gratuitous address resolution request message to the network terminal device.

[0134] In this implementation manner, the first gateway device is the gateway device 303, and the second gateway device is the gateway device 302.

[0135] In this implementation manner, another specific implementation manner for specifically determining the second gateway device is provided, which ensures the accuracy and determination efficiency of the determined second gateway device.

[0136] In some implementation manners of this embodiment, the destination network address of the address resolution message includes the destination physical address.

[0137] In this implementation manner, the above execution entity may execute the above step 201 in the following manner:

[0138] In response to the address resolution message being a second reply message, and the destination physical address of the address resolution message being the physical address of the first gateway device or the virtual physical address corresponding to the link aggregation group, it is determined that the second gateway device is not included in the link aggregation group where the first gateway device is located.

[0139] The second reply message is, for example, an ARP Reply message or an NDP NA message. Similarly, in the above scenarios five or six, it is possible that the destination physical address of the second reply message is the physical address of the first gateway device or the virtual physical address corresponding to the link aggregation group.

[0140] Continue to refer to Figure 3D , which shows a schematic diagram of another message transmission process.

[0141] The gateway device 302 sends an ARP request message or an NDP NS message to the network terminal device 301; the network terminal device 301 generates an ARP reply message or an NDP NA message to be sent to the gateway device 302. At this time, the destination physical address of the ARP reply message or the NDP NA message is the physical address of the gateway device 302.

[0142] In this implementation manner, the first gateway device is gateway device 302.

[0143] In this implementation manner, a specific implementation manner for specifically determining whether the two link aggregation groups include the second gateway device is provided, which ensures the accuracy and efficiency of the determination result.

[0144] In some implementation manners of this embodiment, after the above-mentioned execution entity determines that the link aggregation group where the first gateway device is located does not include the second gateway device in response to the address resolution message being the second reply message and the destination physical address of the address resolution message being the physical address of the first gateway device or the virtual physical address corresponding to the link aggregation group, the following operations may also be performed:

[0145] First, update the status data of the first interface stored in the first gateway device according to the address resolution message.

[0146] Specifically, update the status data of the first interface stored in the first gateway device to link-up according to the address resolution message.

[0147] Then, construct and send a gratuitous address resolution message for the address resolution message according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0148] As an example, construct and send a gratuitous address resolution message for the address resolution message with the virtual physical address corresponding to the link aggregation group as the source physical address and the logical address of the first gateway device as the source logical address.

[0149] In this implementation manner, the interface status update process and message reply process of the first gateway device according to the second reply message are provided, which improves the integrity and reliability of the data processing process.

[0150] In some implementation manners of this embodiment, the above-mentioned execution entity may also perform the following operations:

[0151] First, determine whether the destination logical address of the second encapsulated message received by the first gateway device is the logical address of the first gateway device.

[0152] Among them, the second encapsulated message includes a second request message for address resolution.

[0153] It can be understood that the first gateway device can not only be the receiving end of the address resolution message to determine whether the link aggregation group includes the second gateway device that needs to receive the address resolution protocol, but also be the receiving party of the encapsulated message to receive the encapsulated message forwarded by other gateway devices in the link aggregation group.

[0154] After the first gateway device receives the second encapsulated packet, it determines whether the destination logical address of the second encapsulated packet is the logical address of the first gateway device, and whether the packet therein is an address resolution packet, that is, the second request packet.

[0155] Then, in response to determining that the destination logical address of the second encapsulated packet is the logical address of the first gateway device, and that the destination logical address of the second request packet is different from the source logical address of the second request packet, it determines whether the destination logical address of the second request packet is the logical address of the gateway device in the link aggregation group.

[0156] Among them, the logical addresses of the gateway devices in the link aggregation group are the same.

[0157] Finally, in response to determining that the destination logical address of the second request packet is the logical address of the gateway device in the link aggregation group, it updates the status data of the second interface stored in the first gateway device according to the second request packet.

[0158] Among them, the second interface is the interface on the network terminal device that sends the second request packet.

[0159] If the destination logical address of the second encapsulated packet is the logical address of the first gateway device, it indicates that the second encapsulated packet is correctly forwarded and received. On this basis, when the destination logical address of the address resolution packet of the second request packet is different from the source logical address of the second request packet, and the destination logical address of the second request packet is the logical address of the gateway device in the link aggregation group, all the gateway devices in the link aggregation group need to update the status data of the second interface. The first gateway device updates the status data of the second interface stored in the first gateway device to link-up according to the second request packet.

[0160] Continue to refer to Figure 3B , in this implementation manner, the first gateway device is gateway device 302. The first gateway device receives the encapsulated packet from gateway device 302.

[0161] In this implementation manner, a targeted data processing method based on the encapsulated packet is provided, which improves the integrity and reliability of the interface status update process of the first gateway device.

[0162] In some implementation manners of this embodiment, the above execution subject may also perform the following operations:

[0163] First, determine whether the destination logical address of the second encapsulated packet received by the first gateway device is the logical address of the first gateway device.

[0164] Among them, the second encapsulated packet includes a second request packet for address resolution.

[0165] Then, in response to determining that the destination logical address of the second encapsulated message is the logical address of the first gateway device, and that the destination logical address of the second request message is different from the source logical address of the second request message, determine whether the source logical address of the second request message is the logical address of a third terminal device among multiple network terminal devices, and whether the destination logical address of the second request message is the logical address of a fourth terminal device among multiple network terminal devices.

[0166] Finally, in response to determining yes, update the status data of the third interface stored in the first gateway device according to the second request message.

[0167] Wherein, the third interface is the interface on the third terminal device that sends the second request message.

[0168] When the destination logical address of the address resolution message of the second request message is different from the source logical address of the second request message, and the source logical address of the second request message is the logical address of a third terminal device among multiple network terminal devices, and the destination logical address of the second request message is the logical address of a fourth terminal device among multiple network terminal devices, it indicates that the second request message is an address resolution request message sent by the third terminal device to the fourth terminal device. In this case, all gateway devices in the link aggregation group need to update the status data of the third interface.

[0169] In this implementation, a targeted data processing method based on the encapsulated message is provided, improving the integrity and reliability of the interface status update process of the first gateway device.

[0170] In some implementations of this embodiment, after the above execution entity completes the update operation of the status data of the third interface based on the second encapsulated message, the following operations can also be performed: construct and send a third reply message for the second request message according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0171] As an example, construct and send a third reply message for the second request message with the virtual physical address corresponding to the link aggregation group as the source physical address and the logical address of the first gateway device as the source logical address.

[0172] In this implementation, after the first gateway device completes the update operation of the status data of the third interface based on the second encapsulated message, it is also necessary to reply to the second request message, further improving the integrity and reliability of the data processing process.

[0173] In some implementations of this embodiment, the above execution entity can also perform the following operations:

[0174] First, in response to the third encapsulated packet received by the first gateway device including a fourth reply packet for address resolution, where the destination logical address of the third encapsulated packet is the logical address of the first gateway device and the destination physical address of the fourth reply packet is the physical address of the first gateway device, update the status data of the fourth interface stored in the first gateway device according to the fourth reply packet.

[0175] Among them, the fourth interface is the interface on the network terminal device that sends the fourth reply packet.

[0176] In response to the destination logical address of the third encapsulated packet being the logical address of the first gateway device and the destination physical address of the fourth reply packet being the physical address of the first gateway device, it indicates that the third encapsulated packet is accurately forwarded and received. At this time, update the status data of the fourth interface stored in the first gateway device to link-up according to the fourth reply packet.

[0177] Continue to refer to Figure 3C , in this implementation manner, the first gateway device is the gateway device 302.

[0178] Then, construct and send a gratuitous address resolution packet for the address resolution packet according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0179] As an example, construct and send a gratuitous address resolution packet for the fourth reply packet with the virtual physical address corresponding to the link aggregation group as the source physical address and the logical address of the first gateway device as the source logical address.

[0180] In this implementation manner, a targeted data processing method based on the encapsulated packet is provided, improving the integrity and reliability of the interface status update process of the first gateway device.

[0181] Continue to refer to Figure 4 , Figure 4FIG. 400 is a schematic diagram of an application scenario of a data processing method based on an address resolution message according to the present embodiment. The server 401 is connected to ToR switches 402 and 403 upstream. The ToR switches 402 and 403 are communicatively connected through Spine switches 404 and 405. The ToR switches 402 and 403 form a link aggregation group. For each ToR switch in the link aggregation group, determine whether there is another ToR switch in the link aggregation group where the ToR switch is located that needs to receive the address resolution message according to the destination network address of the address resolution message received by the ToR switch; in response to determining that there is, encapsulate the address resolution message according to the parameter configuration data of the other ToR switch in the gateway mutual assistance protocol to obtain a first encapsulated message, where the gateway mutual assistance protocol includes the parameter configuration data of each of the multiple ToR switches in the link aggregation group; send the first encapsulated message to the other ToR switch so that the other ToR switch updates the status data of the first interface according to the first encapsulated message, where the first interface is the interface on the server that sends the address resolution message.

[0182] The method provided in the foregoing embodiment of the present application determines whether there is a second gateway device in the link aggregation group where the first gateway device is located that needs to receive the address resolution message according to the destination network address of the address resolution message received by the first gateway device, where the link aggregation group includes multiple gateway devices connected upstream to the same network terminal device; in response to determining that there is, encapsulate the address resolution message according to the parameter configuration data of the second gateway device in the gateway mutual assistance protocol to obtain a first encapsulated message, where the gateway mutual assistance protocol includes the parameter configuration data of each of the multiple gateway devices in the link aggregation group; send the first encapsulated message to the second gateway device so that the second gateway device updates the status data of the first interface according to the first encapsulated message, where the first interface is the interface on the network terminal device that sends the address resolution message, thereby providing a synchronization mechanism for updating the status data of the interface of the network terminal device stored in the gateway device, introducing the gateway mutual assistance protocol, configuring multiple gateway devices connected upstream to the network terminal device as a link aggregation group, and after receiving the address resolution message, the gateway devices in the link aggregation group determine whether to send the address resolution message to other gateway devices in the link aggregation group. If so, encapsulate the address resolution message according to the parameter configuration data of the other gateway devices in the gateway mutual assistance protocol and forward the encapsulated message to the other gateway devices. In this way, by modifying the communication mechanism of the gateway device, on the basis of ensuring the synchronization of status data, the additional performance overhead and bandwidth loss brought by the ARP dual (multiple) transmission technology to the network terminal device are avoided.

[0183] Continuing to refer to Figure 5 , FIG. 500 shows a schematic flow of another embodiment of the data processing method based on an address resolution message according to the present application, including the following steps:

[0184] Step 501: Determine the type of the target message received by the first gateway device.

[0185] Step 502: In response to determining that the target message is a first request message for address resolution, determine whether the destination logical address of the first request message is the same as the source logical address of the first request message.

[0186] Step 503, in response to determining that the destination logical address of the first request message is different from the source logical address of the first request message, determine whether the destination logical address of the first request message is the logical address of a gateway device in the link aggregation group, or whether the source logical address of the first request message is the logical address of a first terminal device among multiple network terminal devices, and whether the destination logical address of the first request message is the logical address of a second terminal device among multiple network terminal devices.

[0187] The link aggregation group includes multiple gateway devices connected to the same network terminal device.

[0188] Step 504: In response to the determination being yes, determine other gateway devices in the link aggregation group except the first gateway device as second gateway devices.

[0189] Step 505, encapsulate the first request message according to the parameter configuration data of the second gateway device in the gateway mutual assistance protocol, obtain the first encapsulation message, and send the first encapsulation message to the second gateway device, so that the second gateway device updates the status data of the first interface according to the first encapsulation message.

[0190] The first interface is an interface on the network terminal device for sending the first request message.

[0191] Step 506: Update the state data of the first interface stored in the first gateway device according to the first request message, and construct and send a first reply message for the first request message according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0192] Step 507: In response to the destination logical address of the first request message being the same as the source logical address of the first request message, update the state data of the first interface stored in the first gateway device according to the first request message.

[0193] Step 508: In response to the address resolution message being the second reply message, determine whether the destination physical address of the second reply message is the physical address of the first gateway device or the virtual physical address corresponding to the link aggregation group.

[0194] Step 509, in response to determining that the destination physical address of the second reply message is the physical address of the first gateway device or the virtual physical address corresponding to the link aggregation group, update the status data of the first interface stored in the first gateway device according to the second reply message, and construct and send a gratuitous address resolution message for the second reply message according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0195] Wherein, the first interface is the interface on the network terminal device that sends the second reply message.

[0196] Step 510, in response to determining that the destination physical address of the second reply message is not the physical address of the first gateway device or the virtual physical address corresponding to the link aggregation group, determine that the destination physical address of the second reply message is the physical address of the target gateway device other than the first gateway device in the link aggregation group.

[0197] Step 511, in response to the destination physical address of the second reply message being the physical address of the target gateway device, determine the target gateway device as the second gateway device.

[0198] Step 512, encapsulate the second reply message according to the parameter configuration data of the second gateway device in the gateway mutual assistance protocol to obtain a first encapsulated message, and send the first encapsulated message to the second gateway device, so that the second gateway device updates the status data of the first interface according to the first encapsulated message.

[0199] Step 513, in response to the target message being the second encapsulated message, determine whether the destination logical address of the second encapsulated message is the logical address of the first gateway device.

[0200] The second encapsulated message includes a second request message for address resolution.

[0201] Step 514, in response to determining that the destination logical address of the second encapsulated message is the logical address of the first gateway device, determine whether the destination logical address of the second request message is the same as the source logical address of the second request message.

[0202] Step 515, in response to determining that the destination logical address of the second request message is different from the source logical address of the second request message, determine whether the destination logical address of the second request message is the logical address of a gateway device in the link aggregation group, or whether the source logical address of the second request message is the logical address of a third terminal device among multiple network terminal devices, and whether the destination logical address of the second request message is the logical address of a fourth terminal device among multiple network terminal devices.

[0203] Step 516, in response to determining yes, update the status data of the third interface stored in the first gateway device according to the second request message, and construct and send a third reply message for the second request message according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0204] The third interface is the interface on the third terminal device that sends the second request message.

[0205] Step 517, in response to the destination logical address of the second request message being the same as the source logical address of the second request message, update the status data of the third interface in the first gateway device according to the second request message.

[0206] Step 518, in response to the target message being the third encapsulated message, determine that the destination logical address of the third encapsulated message is the logical address of the first gateway device.

[0207] The third encapsulated message includes a fourth reply message for address resolution.

[0208] Step 519, in response to the destination logical address of the third encapsulated message being the logical address of the first gateway device, determine whether the destination physical address of the fourth reply message is the physical address of the first gateway device.

[0209] Step 520, in response to determining that the destination physical address of the fourth reply message is the physical address of the first gateway device, update the status data of the fourth interface stored in the first gateway device according to the fourth reply message, and construct and send a gratuitous address resolution message for the address resolution message according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0210] Wherein, the fourth interface is the interface on the network terminal device that sends the fourth reply message.

[0211] It can be seen from this embodiment that compared with Figure 2 the corresponding embodiment, the process 500 of the data processing method based on the address resolution message in this embodiment specifically describes the data processing process of the gateway device in link aggregation for different types of received messages. By modifying the communication mechanism of the gateway device, on the basis of ensuring the synchronization of status data, it avoids the additional performance overhead and bandwidth loss brought to the network terminal device by the ARP double - sending technology.

[0212] Continuing to refer to Figure 6 , as an implementation of the methods shown in the above figures, an embodiment of a data processing device based on the address resolution message is provided in this application. This device embodiment corresponds to Figure 2 the method embodiment shown, and this device can be specifically applied to various electronic devices.

[0213] AsFigure 6 As shown, the data processing device 600 based on the address resolution message includes: a gateway determination unit 601 is configured to determine whether the link aggregation group where the first gateway device is located includes a second gateway device that needs to receive the address resolution message according to the destination network address of the address resolution message received by the first gateway device, wherein the link aggregation group includes multiple gateway devices connected to the same network terminal device; a message encapsulation unit 602 is configured to respond to the determination, including, according to the parameter configuration data of the second gateway device in the gateway mutual assistance protocol, encapsulate the address resolution message to obtain a first encapsulated message, wherein the gateway mutual assistance protocol includes the parameter configuration data of each of the multiple gateway devices in the link aggregation group; a message sending unit 603 is configured to send the first encapsulated message to the second gateway device, so that the second gateway device updates the status data of the first interface according to the first encapsulated message, wherein the first interface is the interface for sending the address resolution message on the network terminal device.

[0214] In some implementations of this embodiment, the destination network address of the address resolution message includes a destination logical address, the logical addresses of multiple gateway devices in the link aggregation group are the same, and the above-mentioned gateway determination unit 601 is further configured to: in response to the address resolution message being a first request message, and the destination logical address of the address resolution message is different from the source logical address of the address resolution message, determine whether the destination logical address of the address resolution message is the logical address of the gateway device in the link aggregation group; in response to determining that the destination logical address of the address resolution message is the logical address of the gateway device in the link aggregation group, determine the other gateway devices in the link aggregation group except the first gateway device as the second gateway device.

[0215] In some implementations of this embodiment, the destination network address of the address resolution message includes a destination logical address, the gateway device in the link aggregation group is connected to multiple network terminal devices, and the above-mentioned gateway determination unit 601 is further configured to: in response to the address resolution message being a first request message, and the destination logical address of the address resolution message is different from the source logical address of the address resolution message, determine whether the source logical address of the address resolution message is the logical address of the first terminal device among the multiple network terminal devices, and whether the destination logical address of the address resolution message is the logical address of the second terminal device among the multiple network terminal devices; in response to determining yes, determine the other gateway devices in the link aggregation group except the first gateway device as the second gateway device.

[0216] In some implementation manners of this embodiment, the above device further includes: a status update unit (not shown in the figure), configured to update the status data of the first interface stored in the first gateway device according to the address resolution message; a message reply unit (not shown in the figure), configured to construct and send a first reply message for the address resolution message according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0217] In some implementation manners of this embodiment, the above gateway determination unit 601 is further configured to: in response to the address resolution message being a first request message and the destination logical address of the address resolution message being the same as the source logical address of the address resolution message, determine that the second gateway device is not included in the link aggregation group where the first gateway device is located; and the above status update unit is further configured to update the status data of the first interface stored in the first gateway device according to the address resolution message.

[0218] In some implementation manners of this embodiment, the destination network address of the address resolution message includes a destination physical address, and the above gateway determination unit 601 is further configured to: in response to the address resolution message being a second reply message and the destination physical address of the address resolution message being the physical address of the target gateway device other than the first gateway device in the link aggregation group, determine the target gateway device as the second gateway device.

[0219] In some implementation manners of this embodiment, the destination network address of the address resolution message includes a destination physical address, and the above gateway determination unit 601 is further configured to: in response to the address resolution message being a second reply message and the destination physical address of the address resolution message being the physical address of the first gateway device or the virtual physical address corresponding to the link aggregation group, determine that the second gateway device is not included in the link aggregation group where the first gateway device is located.

[0220] In some implementation manners of this embodiment, the above status update unit is further configured to: update the status data of the first interface stored in the first gateway device according to the address resolution message; the above message reply unit is further configured to construct and send a gratuitous address resolution message for the address resolution message according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0221] In some implementation manners of this embodiment, the above state update unit is further configured to: determine whether the destination logical address of the second encapsulated packet received by the first gateway device is the logical address of the first gateway device, where the second encapsulated packet includes a second request packet for address resolution; in response to determining that the destination logical address of the second encapsulated packet is the logical address of the first gateway device and the destination logical address of the second request packet is different from the source logical address of the second request packet, determine whether the destination logical address of the second request packet is the logical address of the gateway device in the link aggregation group, where the logical addresses of the gateway devices in the link aggregation group are the same; in response to determining that the destination logical address of the second request packet is the logical address of the gateway device in the link aggregation group, update the status data of the second interface stored in the first gateway device according to the second request packet, where the second interface is the interface on the network terminal device that sends the second request packet.

[0222] In some implementation manners of this embodiment, the above state update unit is further configured to: determine whether the destination logical address of the second encapsulated packet received by the first gateway device is the logical address of the first gateway device, where the second encapsulated packet includes a second request packet for address resolution; in response to determining that the destination logical address of the second encapsulated packet is the logical address of the first gateway device and the destination logical address of the second request packet is different from the source logical address of the second request packet, determine whether the source logical address of the second request packet is the logical address of the third terminal device among multiple network terminal devices and whether the destination logical address of the second request packet is the logical address of the fourth terminal device among multiple network terminal devices; in response to determining yes, update the status data of the third interface stored in the first gateway device according to the second request packet, where the third interface is the interface on the third terminal device that sends the second request packet.

[0223] In some implementation manners of this embodiment, the above packet reply unit is further configured to: construct and send a third reply packet for the second request packet according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0224] In some implementation manners of this embodiment, the above state update unit is further configured to: in response to the third encapsulated packet received by the first gateway device including a fourth reply packet for address resolution, the destination logical address of the third encapsulated packet being the logical address of the first gateway device, and the destination physical address of the fourth reply packet being the physical address of the first gateway device, update the status data of the fourth interface stored in the first gateway device according to the fourth reply packet, where the fourth interface is the interface on the network terminal device that sends the fourth reply packet; the above packet reply unit is further configured to: construct and send a gratuitous address resolution packet for the address resolution packet according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

[0225] In some implementation manners of this embodiment, the parameter configuration data includes a network address and an encapsulation method, and the above message encapsulation unit 602 is further configured to: encapsulate an address resolution message according to the network address and the encapsulation method of a second gateway device in the gateway mutual assistance protocol, so as to obtain a first encapsulated message.

[0226] In this embodiment, a data processing device based on an address resolution message provides a synchronization mechanism for updating status data of an interface of a network terminal device stored in a gateway device. By introducing GHEOP (Gateway Help Each Other Protocol), multiple gateway devices to which the network terminal device is connected are configured as a link aggregation group. After receiving an address resolution message, the gateway devices in the link aggregation group determine whether to send the address resolution message to other gateway devices in the link aggregation group. If so, the address resolution message is encapsulated according to the parameter configuration data of other gateway devices in the gateway mutual assistance protocol, and the encapsulated message is forwarded to other gateway devices. In this way, by modifying the communication mechanism of the gateway device, on the basis of ensuring status data synchronization, the additional performance overhead and bandwidth loss brought by the ARP dual - sending technology to the network terminal device are avoided.

[0227] The following refers to Figure 7 , which shows a schematic structural diagram of a computer system 700 suitable for implementing the devices (such as Figure 1 the devices 101, 102, 103, 105 shown) of the embodiments of the present application. Figure 7 The devices shown are only examples and should not impose any limitations on the functions and usage scopes of the embodiments of the present application.

[0228] As Figure 7 shown, the computer system 700 includes a processor (such as a CPU, a central processing unit) 701, which can perform various appropriate actions and processes according to a program stored in a read - only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The processor 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0229] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is mounted on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.

[0230] Specifically, according to an embodiment of the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, an embodiment of the present application includes a computer program product that includes a computer program carried on a computer-readable medium, the computer program including program codes for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 709, and / or installed from the removable medium 711. When the computer program is executed by the processor 701, the above-described functions defined in the method of the present application are performed.

[0231] It should be noted that the computer-readable medium of the present application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of a computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, and this computer-readable medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0232] Computer program code for performing the operations of the present application can be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages - such as Java, Smalltalk, C++, and also include conventional procedural programming languages - such as the "C" language or similar programming languages. The program code can be executed entirely on the client computer, partially on the client computer, executed as an independent software package, partially on the client computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the client computer through any type of network - including a local area network (LAN) or a wide area network (WAN) - or can be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).

[0233] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the device, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0234] The units involved in the embodiments of the present application may be implemented in software or in hardware. The units described may also be provided in a processor, for example, may be described as: a processor comprising a gateway determination unit, a message encapsulation unit and a message sending unit. Among them, the names of these units do not constitute limitations on the unit itself in certain circumstances, for example, the message encapsulation unit may also be described as "in response to determining including, according to the parameter configuration data of the second gateway device in the gateway mutual assistance protocol, encapsulating the address resolution message to obtain a first encapsulated message, wherein the gateway mutual assistance protocol includes a unit for the parameter configuration data of each of the multiple gateway devices in the link aggregation group".

[0235] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the device, the computer device: determines whether the link aggregation group where the first gateway device is located includes a second gateway device that needs to receive the address resolution message according to the destination network address of the address resolution message received by the first gateway device, wherein the link aggregation group includes multiple gateway devices connected to the same network terminal device; in response to the determination, encapsulate the address resolution message according to the parameter configuration data of the second gateway device in the gateway mutual assistance protocol to obtain a first encapsulated message, wherein the gateway mutual assistance protocol includes the parameter configuration data of each of the multiple gateway devices in the link aggregation group; sends the first encapsulated message to the second gateway device, so that the second gateway device updates the status data of the first interface according to the first encapsulated message, wherein the first interface is the interface on the network terminal device for sending the address resolution message.

[0236] The above description is only a preferred embodiment of the present application and an explanation of the technical principles applied. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solutions formed by the specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, the technical solutions formed by mutually replacing the above features with the technical features (but not limited to) disclosed in the present application that have similar functions.

Claims

1. A data processing method based on an address resolution message, comprising: Determine, according to the destination network address of the address resolution message received by the first gateway device, whether the link aggregation group to which the first gateway device belongs includes a second gateway device that needs to receive the address resolution message, wherein the link aggregation group includes multiple gateway devices connected to the same network terminal device; In response to the determination, the method includes encapsulating the address resolution message according to the parameter configuration data of the second gateway device in the gateway mutual assistance protocol to obtain a first encapsulation message, wherein the gateway mutual assistance protocol includes the parameter configuration data of each of the plurality of gateway devices in the link aggregation group; The first encapsulation message is sent to the second gateway device, so that the second gateway device updates the status data of the first interface according to the first encapsulation message, wherein the first interface is the interface on the network terminal device for sending the address resolution message.

2. The method according to claim 1, wherein, The destination network address of the address resolution message includes a destination logical address, and the logical addresses of multiple gateway devices in the link aggregation group are the same, and The determining, according to the destination network address of the address resolution message received by the first gateway device, whether the link aggregation group to which the first gateway device belongs includes a second gateway device that needs to receive the address resolution message comprises: In response to the address resolution message being a first request message, and the destination logical address of the address resolution message being different from the source logical address of the address resolution message, determining whether the destination logical address of the address resolution message is a logical address of a gateway device in the link aggregation group; In response to determining that the destination logical address of the address resolution message is the logical address of the gateway device in the link aggregation group, other gateway devices in the link aggregation group except the first gateway device are determined as the second gateway devices.

3. The method according to claim 1, wherein The destination network address of the address resolution message includes a destination logical address, the gateway device in the link aggregation group is connected to multiple network terminal devices, and The determining, according to the destination network address of the address resolution message received by the first gateway device, whether the link aggregation group to which the first gateway device belongs includes a second gateway device that needs to receive the address resolution message comprises: In response to the address resolution message being a first request message, and the destination logical address of the address resolution message being different from the source logical address of the address resolution message, determining whether the source logical address of the address resolution message is the logical address of a first terminal device among the multiple network terminal devices, and whether the destination logical address of the address resolution message is the logical address of a second terminal device among the multiple network terminal devices; In response to the determination being yes, other gateway devices in the link aggregation group except the first gateway device are determined as the second gateway devices.

4. The method according to claim 2 or 3, wherein, Also includes: Updating the state data of the first interface stored in the first gateway device according to the address resolution message; According to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device, a first reply message for the address resolution message is constructed and sent.

5. The method according to claim 2 or 3, wherein Determining whether the link aggregation group where the first gateway device is located includes a second gateway device that needs to receive the address resolution message according to the destination network address of the address resolution message received by the first gateway device further includes: In response to the address resolution message being a first request message and the destination logical address of the address resolution message being the same as the source logical address of the address resolution message, determining that the link aggregation group where the first gateway device is located does not include the second gateway device; and The method further includes: Updating the status data of the first interface stored in the first gateway device according to the address resolution message.

6. The method according to claim 1, wherein The destination network address of the address resolution message includes a destination physical address, and Determining whether the link aggregation group where the first gateway device is located includes a second gateway device that needs to receive the address resolution message according to the destination network address of the address resolution message received by the first gateway device includes: In response to the address resolution message being a second reply message and the destination physical address of the address resolution message being the physical address of a target gateway device other than the first gateway device in the link aggregation group, determining the target gateway device as the second gateway device.

7. The method according to claim 1, wherein, The destination network address of the address resolution message includes a destination physical address, and Determining whether the link aggregation group where the first gateway device is located includes a second gateway device that needs to receive the address resolution message according to the destination network address of the address resolution message received by the first gateway device includes: In response to the address resolution message being a second reply message and the destination physical address of the address resolution message being the physical address of the first gateway device or the virtual physical address corresponding to the link aggregation group, determining that the link aggregation group where the first gateway device is located does not include the second gateway device.

8. The method according to claim 7, wherein, Further includes: Updating the status data of the first interface stored in the first gateway device according to the address resolution message; Constructing and sending a gratuitous address resolution message for the address resolution message according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

9. The method according to claim 1, wherein Further includes: Determining whether the destination logical address of the second encapsulated message received by the first gateway device is the logical address of the first gateway device, where the second encapsulated message includes a second request message for address resolution; In response to determining that the destination logical address of the second encapsulated message is the logical address of the first gateway device and the destination logical address of the second request message is different from the source logical address of the second request message, determining whether the destination logical address of the second request message is the logical address of a gateway device in the link aggregation group, where the logical addresses of the gateway devices in the link aggregation group are the same; In response to determining that the destination logical address of the second request message is the logical address of the gateway device in the link aggregation group, the status data of the second interface stored in the first gateway device is updated according to the second request message, wherein the second interface is the interface on the network terminal device that sends the second request message.

10. The method according to claim 1, wherein, Also includes: Determine whether the destination logical address of the second encapsulation message received by the first gateway device is the logical address of the first gateway device, wherein the second encapsulation message includes a second request message for address resolution; In response to determining that the destination logical address of the second encapsulated message is the logical address of the first gateway device, and the destination logical address of the second request message is different from the source logical address of the second request message, determining whether the source logical address of the second request message is the logical address of a third terminal device among the multiple network terminal devices, and whether the destination logical address of the second request message is the logical address of a fourth terminal device among the multiple network terminal devices; In response to the determination being yes, the status data of the third interface stored in the first gateway device is updated according to the second request message, wherein the third interface is the interface on the third terminal device through which the second request message is sent.

11. The method according to claim 9 or 10, wherein Also includes: Construct and send a third reply message for the second request message according to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device.

12. The method according to claim 1, wherein, Also includes: In response to the third encapsulated message received by the first gateway device including a fourth reply message for address resolution, the destination logical address of the third encapsulated message is the logical address of the first gateway device, and the destination physical address of the fourth reply message is the physical address of the first gateway device, updating the status data of the fourth interface stored in the first gateway device according to the fourth reply message, wherein the fourth interface is the interface on the network terminal device that sends the fourth reply message; According to the virtual physical address corresponding to the link aggregation group and the logical address of the first gateway device, a free address resolution message for the address resolution message is constructed and sent.

13. The method according to claim 1, wherein The parameter configuration data includes the network address and encapsulation mode, and The encapsulating the address resolution message according to the parameter configuration data of the second gateway device in the gateway mutual assistance protocol to obtain a first encapsulation message includes: The address resolution message is encapsulated according to the network address and encapsulation method of the second gateway device in the gateway mutual assistance protocol to obtain the first encapsulation message.

14. A data processing device based on address resolution message, comprising: A gateway determination unit, configured to determine, according to the destination network address of the address resolution message received by the first gateway device, whether the link aggregation group to which the first gateway device belongs includes a second gateway device that needs to receive the address resolution message, wherein the link aggregation group includes multiple gateway devices connected to the same network terminal device; A message encapsulation unit, configured to respond to a determination of inclusion, encapsulate the address resolution message according to the parameter configuration data of the second gateway device in the gateway mutual assistance protocol, to obtain a first encapsulated message, wherein the gateway mutual assistance protocol includes the parameter configuration data of each of the multiple gateway devices in the link aggregation group; A message sending unit, configured to send the first encapsulated message to the second gateway device, so that the second gateway device updates the status data of the first interface according to the first encapsulated message, wherein the first interface is the interface on the network terminal device that sends the address resolution message.

15. A computer-readable medium having a computer program stored thereon, wherein, When the program is executed by a processor, it implements the method according to any one of claims 1-13.

16. An electronic device, comprising: One or more processors; A storage device having stored thereon one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-13.

17. A computer program product, comprising: A computer program, which when executed by a processor implements the method according to any one of claims 1-13.

Citation Information

Cited By

  • Method and device for setting network parameters of server, equipment and medium

    CN122226610A