A redundant network, network switching module and ARP entry learning method thereof
By setting chip identifiers for the physical ports of the dual-chip network switching module, the problem of erroneous ARP request packet discarding was solved, enabling accurate learning and updating of ARP entries and improving the robustness and communication stability of the redundant network.
Patent Information
- Application Number
- CN202211272609.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-18
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2042-10-18
AI Technical Summary
In redundant networks, communication interruptions can occur between terminal devices when network switching modules switch over, especially when the power supply to the network switching module fails and the primary network switching module of the VRRP group switches to the backup network switching module. In such cases, ARP entries may fail to learn in time, leading to communication interruptions.
By assigning chip identifiers to the physical ports of the dual-chip network switching module and storing them in the port information table, the port status can be accurately determined, preventing ARP request packets from being mistakenly discarded, and enabling the learning and updating of ARP entries.
It improves the robustness of the redundant network, ensures the stability and reliability of communication connections, avoids the accidental dropping of ARP request packets, and ensures the normal recovery of communication after the network switching module is switched.
Smart Images

Figure CN115733809B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of network communication, in particular to a redundant network, a network switching module and an ARP table entry learning method thereof. BACKGROUND
[0002] In order to meet the requirements of high real-time performance, high stability and high reliability of the communication network in use, the terminal devices are usually connected in redundancy so as to realize switching when a fault occurs. For example, as shown in FIG. 1, a topology diagram of a typical redundant network is shown. Figure 1
[0003] In this scheme, each host (such as host 1, host 2, host 3 and host 4) is connected to form a hot standby redundant network through two network switching modules (such as switches), wherein a VRRP (Virtual Router Redundancy Protocol) group is formed between the two network switching modules, and in actual work, network switching module 1 is the master network switching module and network switching module 2 is the standby network switching module in the initial state, host 1, host 2 and host 3 are each equipped with two network cards and are connected to network switching module 1 through network card 1 and connected to network switching module 2 through network card 2 respectively, and host 4 is connected to network switching module 1 through network card 1. Host 3, host 4, host 1 and host 2 are respectively in different partition broadcast domains Vlan1, Vlan2 and Vlan3.
[0004] This scheme realizes good redundancy and protection, but still produces some problems in different scenarios. For example, the present applicant found in a practice that when network switching module 1 has a power supply problem in power-on testing, the master network switching module of the VRRP group is switched to network switching module 2, at this time, host 1 and host 2 cannot communicate with host 3 and host 4, that is, the terminals in Vlan3 network segment cannot communicate with the terminals in Vlan2 and Vlan1 network segments, while the communication between host 1 and host 2 is normal; when network switching module 1 is re-powered normally, the communication is restored to normal.
[0005] The above situation affects the normal use of the related redundant network, and needs to be analyzed and solved by the technical personnel in the field. SUMMARY
[0006] Therefore, the present application aims to provide a redundant network, a network switching module and an ARP table entry learning method thereof by accurately analyzing and investigating the problem source, so as to improve the communication efficiency, reduce the probability of failure and enhance the robustness of the redundant network.
[0007] In a first aspect, an embodiment of the present application provides a network switching module, which comprises a first chip, a second chip, a first group of physical ports corresponding to the first chip, a second group of physical ports corresponding to the second chip, and a port information acquisition unit. The network switching module further comprises an identification unit configured to set a first chip identification for the first group of physical ports and a second chip identification for the second group of physical ports. The first chip identification and the second chip identification are stored in a port information table queried by the port information acquisition unit.
[0008] In a second aspect, an embodiment of the present application provides a redundant network, which comprises a first network switching module and a second network switching module. The first network switching module and the second network switching module form a VRRP group. At least one of the first network switching module and the second network switching module is the network switching module of the first aspect.
[0009] In a third aspect, an embodiment of the present application provides an ARP entry learning method of a dual-chip network switching module. The network switching module and another network switching module form a VRRP group in a redundant network. The method comprises the following steps: obtaining a port state of a physical port receiving an ARP request packet from an initiating terminal according to a predetermined port information table. Each piece of port information in the port information table comprises chip identification information of a physical port group to which each physical port belongs. Determining whether the port state meets a predetermined requirement. If the result is yes, triggering subsequent processing of the ARP request packet. After receiving a response packet carrying MAC information from a target terminal, adding or updating target terminal MAC information in the response packet to an ARP entry.
[0010] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method of the third aspect can be implemented.
[0011] After the technical solution of the embodiment of the present application is adopted, the related problems existing in the redundant network can be solved in a targeted manner. In particular, the redundant performance of the dual-chip network switching module is further guaranteed and improved, and the ARP request packet is prevented from being discarded abnormally. After the dual-chip network switching module is switched to the Master of the VRRP group, the ARP entry on the original Master can be learned, and the communication connection can be guaranteed. Therefore, the robustness of the redundant network is improved as a whole. BRIEF DESCRIPTION OF DRAWINGS
[0012] Figure 1 A topological schematic diagram of a typical redundant network is shown;
[0013] Figure 2A framework schematic diagram of a network switching module provided for an embodiment of the present application is shown in FIG. 1.
[0014] Figure 3 A topology schematic diagram of a redundant network combined with an actual scenario provided for an embodiment of the present application is shown in FIG. 2.
[0015] Figure 4 A flowchart schematic diagram of a packet receiving and processing method for a network switching module provided for an embodiment of the present application is shown in FIG. 3.
[0016] Figure 5 A flowchart schematic diagram of an ARP entry learning method for a dual-chip network switching module combined with an actual scenario provided for an embodiment of the present application is shown in FIG. 4. DETAILED DESCRIPTION
[0017] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below in detail with reference to the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present application, but not all. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort belong to the scope of the present application. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other at will.
[0018] The invention logic starting point (finding problems), core idea (solving ideas) and specific implementation (specific paths) of the embodiments of the present application will be described below in combination with the accompanying drawings and actual scenarios.
[0019] In order to better illustrate the invention logic starting point, core idea and the innovative efforts made by the inventors of the present application, first of all, the actual scenario shown in FIG. 1 will be combined to switch the perspective back to the analysis and solution of the problems described in the background art. Figure 3
[0020] In this actual scenario, the network switching module 1 and the network switching module 2 are connected through a convergence link, i.e. through a 1 / 45 trunk internal direct connection; the virtual gateway IP (Internet Protocol) address of the VRRP group formed by the network switching module 1 and the network switching module 2 is 192.168.3.253.
[0021] Specifically, after the failure (network switch module 1 has power supply problem) occurs, the master network switch module (i.e. Master) of the VRRP group is switched from network switch module 1 to network switch module 2, and various tests and troubleshooting are carried out on site, and it is found that the terminal (center machine or display control terminal) cannot ping the virtual gateway 192.168.3.253, the network switch module 2 also cannot ping the virtual gateway 192.168.3.253, and the terminal (center machine or display control terminal) also cannot ping the terminal (point control system).
[0022] As is known to all, ping (Packet Internet Groper, Internet packet explorer) is a program for quickly testing network connectivity, which is simple and convenient, but the actual process of ping is complex and has many steps, and ping failure can be caused by problems in the protocol stack at the software level, or problems in the network card driver or hardware driver, or network failure between the terminal and the network switch module, etc.
[0023] After step-by-step analysis, it is found through mirror packet capture that the ARP request message of the terminal (center machine or display control terminal) inquires the virtual gateway 192.168.3.253, but the virtual gateway 192.168.3.253 does not respond. It should be noted that ARP (Address Resolution Protocol) can obtain the physical address MAC (Media Access Control Address) through the target IP address; in the network access layer, a device in the same local area network needs to locate through the MAC address before communicating with another device, and then data packets can be sent, and in the network layer and the transport layer, devices locate the target device through IP address without MAC address. Therefore, the MAC address needs to be obtained according to the IP address before the data packet is sent to the correct target device, and this acquisition process is completed through the ARP protocol.
[0024] After analyzing the above various situations, it is determined that when the failure occurs, the VRRP runs on switch module 1, and the terminal (center machine or display control terminal) ping failure of the virtual gateway is mainly because the switch module 2 does not learn the virtual gateway ARP table item on 1, which is confirmed when checking the ARP table item on the network switch module 2. When the network switch module 1 starts to recover as the master (Master), it is found through debug that there are a large number of packet loss, and thus it is determined that the request message of the network switch module 2 is sent to the virtual gateway 192.168.3.253 on the network switch module 1 through the blocked port, and then the network switch module 2 fails to establish a connection with the virtual gateway 192.168.3.253.
[0025] From this situation, it can be further determined that VRRP is running on the network switching module 1 at this time, and the (central machine or display terminal) ping does not pass through the virtual gateway mainly because the network switching module 2 does not learn the virtual gateway ARP table item on the network switching module 1.
[0026] The inventors of the present application found that after obtaining the above inference, it is still insufficient to build an effective solution, and therefore further root cause analysis was carried out, mainly to further locate what causes the network switching module 2 to fail to learn the virtual gateway ARP table item on the network switching module 1. After understanding, troubleshooting and research in software and hardware aspects, it is found that the network switching module 2 adopts a typical dual-chip switching module, and the 48 ports of the module actually correspond to two switching chips (switching chip 0 and switching chip 1), and the first 24 ports and the last 24 ports share a set of physical port numbers, that is, ports 1 / 1-1 / 24 correspond to physical port port_id 2-25, and ports 1 / 25-1 / 48 also share a set of physical port mapping port_id 2-25. Therefore, in the use process, the storage of port information at the software level only stores the state of 24 physical ports, while the actual port is 48. Therefore, when the port states on the switching chip 0 and the switching chip 1 are inconsistent, the state storage array will randomly store a state, which will cause an error when checking the port state during the packet processing process of the network switching module 2, resulting in that the ARP request message from the port on the switching chip 1 is discarded. After the ARP request message is discarded, the ARP table item cannot be successfully established, and without the ARP table item, the ping will not pass.
[0027] On this basis, based on the root cause analysis result obtained, the inventors of the present application build a solution concept, and further form various schemes of the embodiments of the present application.
[0028] Specifically, Figure 2 The network switching module provided by the embodiment of the present application can include a first chip, a second chip, a plurality of physical interfaces, a port information acquisition unit and an identification unit. The plurality of physical interfaces can be divided into a first group of physical ports corresponding to the first chip and a second group of physical ports corresponding to the second chip. The identification unit can be used to set a first chip identification for the first group of physical ports and a second chip identification for the second group of physical ports. The first chip identification and the second chip identification can be stored in a port information table queried by the port information acquisition unit.
[0029] In the implementation process, the network switching module can be a switch or a router; the number of the first group of physical ports and the second group of physical ports can be 24, but is not limited to this; in addition, as shown in Table 1 below, the port information table can include a plurality of port information records, and each port information record can include a port name, a port state, a physical port number, and a chip identification (unit number), and different groups of physical ports use or correspond to different chip identifications.
[0030] Port Name Port State Physical Port Number Unit Number Ethernet 1 / 1 Forward 14 0 Ethernet 1 / 2 Forward 15 0 Ethernet 1 / 3 Forward 16 0 Ethernet 1 / 4 Block 17 0 … … … … Ethernet 1 / 21 Forward 22 0 Ethernet 1 / 22 Block 18 0 Ethernet 1 / 23 Block 20 0 Ethernet 1 / 24 Block 19 0 Ethernet 1 / 25 Block 25 1 Ethernet 1 / 26 Forward 24 1 Ethernet 1 / 27 Forward 25 1 … … … … Ethernet 1 / 35 Block 16 1 Ethernet 1 / 36 Block 17 1 Ethernet 1 / 37 Block 10 1 Ethernet 1 / 38 Block 11 1 … … … … Ethernet 1 / 42 Block 7 1 Ethernet 1 / 43 Block 8 1 Ethernet 1 / 44 Block 9 1 Ethernet 1 / 45 Forward 2 1 Ethernet 1 / 46 Block 3 1 Ethernet 1 / 47 Block 4 1 Ethernet 1 / 48 Block 5 1
[0031] Table 1: Port information table
[0032] The network switching module can further include a packet receiving processing unit configured to, after receiving an ARP request message from an initiating terminal, determine whether the port state of the physical port receiving the ARP request message is a forwarding state according to the port information table queried by the port information acquisition unit, and trigger subsequent processing of the ARP request message when the determination result is yes, and discard the ARP request message when the determination result is no. In addition, the network switching module can further include an ARP entry maintenance unit configured to, after receiving an ARP request response message of a target terminal, add or update the MAC address information of the target terminal carried in the ARP request response message to the ARP entry. The ARP request response message is a response message carrying MAC information fed back by the target terminal, and the target terminal is the destination terminal corresponding to the ARP request message when it is determined that the port state of the physical port of the ARP request message is a forwarding state.
[0033] The network switching module using the embodiment of the present application can create a mapping relationship of each physical port of the dual-chip network switching module, that is, by setting the chip identification, the physical ports corresponding to different chips have corresponding chip identifications, and a one-to-one correspondence is formed in the port information table, so that the state of the corresponding port can be accurately determined in use, the misjudgment and discarding of the ARP request message are avoided, and the influence of the communication requirement caused by the failure of ARP entry learning is avoided.
[0034] Figure 3 The present application provides a redundant network suitable for the network switching module described in the foregoing embodiments, and specifically, the redundant network can include a first network switching module (network switching module 1) and a second network switching module (network switching module 2), the first network switching module and the second network switching module form a VRRP group, and the second network switching module (network switching module 2) is the network switching module described in the foregoing embodiments.
[0035] In implementation, the network switching module 1 and the network switching module 2 can be directly connected through the 1 / 45 trunk port. In addition, the redundant network can further include at least one first terminal, at least one second terminal and at least one third terminal, Figure 3 In an example, the first terminal includes a center machine and a display control terminal, the second terminal includes a command control system, and the third terminal includes a measurement system. Each of the first terminals (the center machine and the display control terminal) and the second terminal (the command control system) has two network cards and is connected to the first network switching module and the second network switching module through the two network cards respectively. Each of the first terminals (the center machine and the display control terminal) is in a first broadcast domain (Vlan3), the second terminal is in a second broadcast domain (Vlan1), and the third terminal (the measurement system) is in a third broadcast domain (Vlan2).
[0036] When the master network switching module of the VRRP group is switched from the first network switching module (the network switching module 1) to the second network switching module (the network switching module 2), the packet receiving processing unit in the second network switching module can determine whether the port state of the physical port receiving the ARP request packet is a forwarding state according to the port information table queried by the port information acquisition unit after receiving the ARP request packet, and trigger the subsequent processing of the ARP request packet when the determination result is yes and discard the ARP request packet when the determination result is no. Specifically, in combination with the packet receiving flowchart shown in Figure 4 After being switched to the master module, the packet receiving processing process of the network switching module 2 is as follows:
[0037] S101, receiving an ARP request packet, that is, when a fault occurs, network communication requests continue to exist, and the network switching module 2 as the master module receives ARP request packets sent by each terminal;
[0038] S102, obtaining the port state of the packet source, that is, after receiving the packet, the network switching module 2 obtains the port state of the receiving physical port of the packet. The port state of the physical port can be obtained from the port information table.
[0039] S103, determining whether the port state is forward, that is, determining whether the port state of the physical port is a forwarding state according to the record in the port information table. If the determination result is yes, S104 is executed, otherwise S105 is executed;
[0040] S104, sending the ARP request packet to the CPU for processing;
[0041] S105, discarding the ARP request packet.
[0042] It should be noted that in implementation, the related functions of the identification unit, the port information acquisition unit, the port information table, the packet receiving processing unit, the ARP table item maintenance unit and the like on the network switching module 1 can be realized by means of software programming. Further, the identification setting (adding) function of the identification unit can create the mapping relationship of each physical port of the dual-chip switching module by means of the init unit, that is, the chip identification is added, and different chip numbers correspond to different groups of physical ports.
[0043] The redundant network of the embodiment of the present application can accurately determine the state of the corresponding physical port on the basis of distinguishing the chip identification of each physical port of the network switching module 2 after a fault occurs, so that the ARP request message from the terminal will not be discarded, and the ARP performance on the switching module 1 can be learned, thereby ensuring the establishment of the communication connection.
[0044] The embodiment of the present application further provides an ARP table item learning method of a dual-chip network switching module. The dual-chip network switching module (such as the network switching module 1) constitutes a VRRP group in a redundant network with another network switching module (such as the network switching module 2) when in use. The method comprises the following steps: obtaining the port state of the physical port receiving the ARP request message from the initiating terminal (such as the center machine shown in Figure 3 Each piece of port information in the port information table contains the chip identification information of the physical port group to which each physical port belongs; judging whether the port state conforms to the forwarding state (such as whether it is forward); if the result is yes, triggering the subsequent processing of the ARP request message, otherwise discarding the ARP message; after receiving the reply message carrying the MAC information from the target terminal (such as the command and control system shown in Figure 3 The target terminal MAC information in the ARP table item is added or updated.
[0045] Further, the subsequent processing in the method can comprise: comparing the target terminal IP information in the ARP request message with the IP information of the dual-chip network switching module, and if they are inconsistent, further determining the physical port belonging to the same subnet as the target terminal IP information, and interacting with the target terminal by means of the physical port to obtain the reply message carrying the MAC information. In addition, the subsequent processing in the method can further comprise: adding or updating the MAC information of the initiating terminal carried by the ARP request message to the ARP table item.
[0046] The specific process of the ARP table item learning method described in the above embodiment will be described in detail below in combination with the flowchart shown in Figure 5 and in combination with Figure 3 , Figure 4 and Table 1.
[0047] In the redundant network, when the network switching module 1 in Master mode fails, the network switching module 2 switches to the master switching module, and the process of the terminal, i.e., the display control terminal (192.168.3.12) accessing the target terminal, i.e., the pointing control system (192.168.1.1) is as follows:
[0048] S201, the display control terminal sends an ARP request message, specifically, the display control terminal performs logical operation according to its IP information, target IP information and subnet mask, and obtains that the target terminal and the local terminal are not in the same subnet, so the data packet is first sent to the network switching module 2 through the 1 / 26 port;
[0049] S202, the network switching module 2 judges the port state and processes the message, the judgment and processing logic of this step can be referred to Figure 4 and the foregoing related description, specifically, the network switching module 2 first judges the state of the 1 / 26 port, since the unit chip number is added, there is no repeated physical identification in the bottom layer, and the 1 / 2 port is in Down state, so the 1 / 26 port is in Forward state, therefore the network processing module 2 continues to process the received APR request message;
[0050] S203, target IP comparison processing and determination of forwarding port, specifically, the network switching module 2 compares the target IP information in the ARP request message with its own IP information, and determines that they are inconsistent, after checking the routing table, it is found that the 1 / 27 port and the target IP information are in the same subnet, i.e., the data packet is handed over to the 1 / 27 port for forwarding processing, since the unit chip number is added, there is no repeated physical identification in the bottom layer, and the network switching module 1 fails, the 1 / 24 connected with the network switching module 1 is in Down state, and the 1 / 27 port connected with the network switching module 2 is in Forward state.
[0051] S204, the port sends an ARP request message, specifically, the interface 1 / 27 of the network switching module finds that there is no MAC of the target terminal (the pointing control system) when forwarding, so the IP information of the target terminal is broadcasted, and the MAC of the target terminal is requested.
[0052] S205, the pointing control system returns a message, specifically, after the target terminal (the pointing control system) receives the broadcast message of the network switching module 2, it finds that the requested IP information and its own IP information are in the same subnet, and sends a unicast message to the network switching module 2, which carries the MAC of the pointing control system;
[0053] S206, the network switching module 2 adds or updates ARP table items, specifically, after the network switching module 2 receives the message sent by the target terminal, it adds or updates the MAC of the pointing control system to its own MAC address table;
[0054] S207, the network switching module 2 returns a message, specifically, after the network switching module 2 receives the feedback of the target terminal (the control system) and adds or updates the MAC information thereof, the MAC of the requested target terminal is returned to the initiating terminal (the control terminal) through the 1 / 26 port of the same subnet as the initiating terminal.
[0055] S208, the control terminal and the control system communicate, specifically, after the control terminal records the MAC of the target terminal (the control system) to the MAC address table of itself, the control terminal can subsequently directly communicate with the target terminal.
[0056] The ARP entry learning method of the embodiment of the application can accurately identify the port state of the corresponding physical port, correctly process the ARP request message from the terminal, and then learn the ARP entry, thereby guaranteeing the communication connection between nodes.
[0057] The embodiment of the application further provides a computer readable storage medium, which stores a computer program, and the computer program can realize the method in the foregoing embodiment when being executed by a processor. Since the method in the foregoing embodiment has the foregoing technical effects, the computer storage medium also has corresponding technical effects, which will not be repeated here.
[0058] It should be noted that the computer readable medium can be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium, for example, can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination of the above. More specific examples (a non-exhaustive list) of the computer readable storage medium include an electrical connection having one or more wires, a portable computer diskette, 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 this document, the computer readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus or device.
[0059] In addition, the computer readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, in which a computer readable program code is borne. Such a propagated data signal can take various forms, including, but not limited to, an electromagnetic signal, an optical signal or any suitable combination of the above. The computer readable signal medium can also be any computer readable medium that is not a computer readable storage medium and that can transmit, propagate or transport a program for use by or in connection with an instruction execution system, apparatus or device.
[0060] In addition, program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to wireless, wired, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0061] Further, the computer program code for carrying out operations of the present application can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0062] To sum up, by using the technical solutions of the embodiments of the present application, the problems existing in the redundant network can be solved in a targeted manner, the redundant performance of the dual-chip network switching module is further guaranteed and improved, the ARP request message misjudgment and discard from the terminal are avoided, the dual-chip network switching module can learn the ARP table items on the original Master after the dual-chip network switching module is switched to the Master of the VRRP group, and the communication connection can be guaranteed, so that the robustness of the redundant network is improved as a whole.
[0063] The above-described specific embodiments further illustrate the purpose, technical solutions and beneficial effects of the present application, and it should be understood that the above-described specific embodiments are merely specific embodiments of the present application and are not used to limit the present application, and any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims
1. A network switching module comprising a first chip, a second chip, a first set of physical ports corresponding to the first chip, a second set of physical ports corresponding to the second chip, and a port information acquisition unit, characterized by, The network switching module further comprises an identification unit configured to set a first chip identification for the first group of physical ports and a second chip identification for the second group of physical ports, and the first chip identification and the second chip identification are stored in a port information table queried by the port information acquisition unit. The method further comprises a packet receiving processing unit configured to, after receiving an ARP request message from an initiating terminal, judging whether a port state of a physical port receiving the ARP request message is a forwarding state according to the port information table queried by the port information acquisition unit, and triggering subsequent processing of the ARP request message if the judgment result is yes, or discarding the ARP request message if the judgment result is no. The method further comprises an ARP entry maintenance unit configured to, after receiving an ARP request response message from a target terminal, adding or updating MAC address information of the target terminal carried in the ARP request response message into an ARP entry. And / or adding or updating MAC information of the initiating terminal carried in the ARP request message into the ARP entry if the port state of the physical port receiving the ARP request message is the forwarding state.
2. The network switch module of claim 1, wherein, The port information table comprises at least one port information record, and each port information comprises a port name, a port state, a physical port number and a chip identification, and the chip identification is a corresponding one of the first chip identification and the second chip identification.
3. A redundant network comprising a first network switching module and a second network switching module, the first network switching module and the second network switching module forming a VRRP group, characterized in that, At least one of the first network switching module and the second network switching module is the network switching module of any one of claims 1 to 2.
4. The redundant network of claim 3, wherein, The redundant network further comprises at least one first terminal and at least one second terminal, each of the first terminals and each of the second terminals has two network cards and is connected to the first network switching module and the second network switching module through the two network cards respectively, each of the first terminals is in a first broadcast domain, and each of the second terminals is in a second broadcast domain.
5. The redundant network of claim 4, wherein, The first network switching module and the second network switching module are connected by using a convergence link.
6. A method for ARP entry learning of a dual-chip network switching module, the network switching module and another network switching module constituting a VRRP group in a redundant network, characterized in that, The method comprises: acquiring a port state of a physical port receiving an ARP request message from an initiating terminal according to a predetermined port information table, each piece of port information in the port information table containing chip identification information of a physical port group to which each physical port belongs; judging whether the port state conforms to a forwarding state; if the result of judging whether the port state conforms to the forwarding state is no, discarding the ARP request message; if the result is yes, triggering subsequent processing of the ARP request message; the subsequent processing comprises: adding or updating MAC information of the initiating terminal carried in the ARP request message into an ARP entry; comparing target terminal IP information in the ARP request message with IP information of the dual-chip network switching module, if the target terminal IP information is inconsistent with the IP information of the dual-chip network switching module, further determining a physical port belonging to a same subnet as the target terminal IP information, and interacting with the target terminal by using the physical port to obtain a response message carrying MAC information. After receiving the reply message carrying the MAC information from the target terminal, the target terminal MAC information is added or updated in the ARP entry.
7. The ARP entry learning method of claim 6, wherein, The port information table includes at least one port information record, and each port information record includes a port name, a port state, a physical port number, and a chip identifier of a physical port group to which the physical port number belongs.
8. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by a processor, implements the method of any one of claims 6-7.
Citation Information
Patent Citations
Method and device used for synchronous ARP (Address Resolution Protocol) list item of virtual router redundancy protocol backup set
CN103001868A
Virtual switching device address learning method, apparatus and system
CN104038566A