CN111865655A - ARP table configuration method and system for service board card - Google Patents

ARP table configuration method and system for service board card Download PDF

Info

Publication number
CN111865655A
CN111865655A CN202010499730.6A CN202010499730A CN111865655A CN 111865655 A CN111865655 A CN 111865655A CN 202010499730 A CN202010499730 A CN 202010499730A CN 111865655 A CN111865655 A CN 111865655A
Authority
CN
China
Prior art keywords
arp
card
uni
board card
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010499730.6A
Other languages
Chinese (zh)
Other versions
CN111865655B (en
Inventor
罗婷
王志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Information And Communication Technology Group Co ltd
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
China Information And Communication Technology Group Co ltd
Fiberhome Telecommunication Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Information And Communication Technology Group Co ltd, Fiberhome Telecommunication Technologies Co Ltd filed Critical China Information And Communication Technology Group Co ltd
Priority to CN202010499730.6A priority Critical patent/CN111865655B/en
Publication of CN111865655A publication Critical patent/CN111865655A/en
Application granted granted Critical
Publication of CN111865655B publication Critical patent/CN111865655B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/255Maintenance or indexing of mapping tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5053Lease time; Renewal aspects

Abstract

The invention discloses a method and a system for configuring an ARP table of a service board card, and relates to the field of ARP configuration. The method comprises the following steps: the main control card divides all service board cards needing to be used into NNI board cards or UNI board cards, and configures an NNI ARP table corresponding to each NNI board card and a UNI ARP table corresponding to each UNI board card; and the master control card issues a corresponding NNI ARP table to each NNI board card, issues a corresponding UNI ARP table to each UNI board card, and both the NNI board card and the UNI board card establish a local ARP hardware table according to the received ARP tables. The invention can obviously reduce the capacity of the ARP table on the service board card, thereby greatly improving the use bottleneck of the service board card while not increasing the use cost of the service board card.

Description

ARP table configuration method and system for service board card
Technical Field
The present invention relates to the field of ARP (Address Resolution Protocol) configuration, and in particular, to a method and a system for configuring an ARP table of a service board.
Background
With the maturation of 40G, 100G ethernet technology, high performance FULL MESH three-layer switches are also rapidly being developed. Compared with the traditional distributed three-layer switch, the switch with the FULL MESH structure breaks through the limitation that the service board cards are connected through the switching board cards, and realizes distributed forwarding of data messages by interconnecting a plurality of service board cards in pairs at low cost, so that the switch with the structure has more service ports, and can be widely applied to small and medium-sized data switching networks.
The working mechanism of the switch configuration ARP table of the traditional FULL MESH framework is as follows:
all service boards in the switch with the FULL MESH architecture are interconnected, the concept of a switch board is not adopted, and all the service boards are managed by a master control card in a centralized manner. After ARP information is configured on the main control card (dynamic ARP information is learned through an ARP protocol module or static ARP information is configured through a configuration module), an ARP table is generated according to the ARP information; the master control card sends the ARP table to all the service cards through the ARP message through inter-board communication. The service board card locally creates an ARP table which is the same as the main control card according to the received ARP message, and then configures (adds, updates or deletes) the local ARP table according to the received ARP message.
However, the above working mechanism has the following disadvantages:
since the ARP tables of the service board and the main control card are the same, each service board needs to have hardware resources with the same capacity as the ARP table of the main control card. However, the ARP table generated by the ARP management module includes the card numbers, port numbers, IP addresses, and user MAC addresses of all the service boards, which has a high capacity, and thus has a high requirement for the service boards.
For example: when the switch of the FULL MESH architecture has 2 service boards, the size of the ARP table to be issued by the master control card is 128K. When 2 service board cards are added (namely 4 service board cards are total), the scale of an ARP table which needs to be issued by a main control card is 256K, if 1 service board card can not meet the 256K capacity of the ARP table, the ARP table is failed to be issued, and three layers of services can not be forwarded; at this time, the service board card which cannot meet the capacity of the ARP table needs to be upgraded.
Disclosure of Invention
Aiming at the defects in the prior art, the invention solves the technical problems that: how to remarkably reduce the capacity of the ARP table on the service board card, and further greatly improve the use bottleneck of the service board card while not increasing the use cost of the service board card.
In order to achieve the above object, the ARP table configuration method for the service board card provided by the present invention comprises the following steps: the main control card divides all service board cards needing to be used into NNI board cards or UNI board cards, and configures an NNIARP table corresponding to each NNI board card and a UNI ARP table corresponding to each UNI board card; the NNI ARP table comprises communication information corresponding to the NNI board card and board card information of all UNI board cards communicated with the NNI board card; the UNI ARP table comprises communication information corresponding to the UNI board card; and the master control card issues a corresponding NNI ARP table to each NNI board card, issues a corresponding UNI ARP table to each UNI board card, and both the NNI board card and the UNI board card establish a local ARP hardware table according to the received ARP tables.
On the basis of the technical scheme, all the service board cards needing to be used are interconnected through a FULL MESH architecture switch; the process of configuring the NNI ARP table corresponding to each NNI board card and the UNI ARP table corresponding to each UNI board card comprises the following steps: the master control card creates a master control ARP table with a two-stage tree structure;
the first-level tree node of the master control ARP table comprises an IP address section, a mask length which is the same as the global IP address linked list of the master control card and an NNI ARP table; the communication information of the NNI board card in the NNI ARP table comprises the card number and the port number of the NNI board card, and the board card information of the UNI board card comprises the card number and the user MAC address of the UNI board card;
each secondary tree node of the master control ARP table comprises a UNI ARP table corresponding to a UNI board card, and communication information of the UNI board card in the UNI ARP table comprises an IP address, a card number, a port number and a user MAC address of the UNI board card; and the IP address of the UNI board card is in the range of the IP address field in the first-level tree node.
On the basis of the technical scheme, the method further comprises the following steps: after receiving the ARP message, the NNI board card acquires an IP address, VLAN information, a user MAC address, a UNI card number and a UNI port number in the ARP message; when a local ARP hardware table corresponding to the ARP message does not exist, ARP addition information corresponding to the ARP message is sent to the main control card;
The main control card acquires ARP addition information, wherein the ARP addition information comprises an IP address, VLAN information, a user MAC address, and a card number and a port number of a UNI board card; the master control card is in the global IP address linked list, determines the mask length corresponding to the IP address and VLAN information in the ARP adding information, and determines the master control ARP table according to the mask length; adding a user MAC address, a card number and a port number of a UNI board card and a card number and a port number of an NNI board card corresponding to the port number of the UNI board card in ARP addition information to a primary tree of a master control ARP table; and determining a secondary tree node of the master control ARP table according to the IP address in the ARP addition information, and adding the user MAC address, the card number and the port number of the UNI board card in the ARP addition information to the secondary tree of the master control ARP table.
On the basis of the technical scheme, the method further comprises the following steps: after the NNI board card receives the ARP message, if a local ARP hardware table corresponding to the ARP message exists and needs to be updated, ARP update information corresponding to the ARP message is sent to the main control card;
the main control card acquires ARP update information, wherein the ARP update information comprises an acquired IP address, VLAN information, an original user MAC address, a card number and a port number of an original UNI board card, a new user MAC address, a card number and a port number of a new UNI board card;
The master control card is in the global IP address linked list, determines the mask length corresponding to the IP address and VLAN information in the ARP update information, and determines the master control ARP table according to the mask length; in a primary tree of a master control ARP table, updating an original user MAC address, a card number and a port number of an original UNI board card into a new user MAC address, a card number and a port number of a new UNI board card, and updating a card number and a port number of an NNI board card corresponding to the port number of the original UNI board card into a card number and a port number of the NNI board card corresponding to the port number of the new UNI board card;
and the main control card determines a secondary tree node of a main control ARP table according to the IP address in the ARP updating information, and updates the original user MAC address, the card number and the port number of the original UNI board card into a new user MAC address, the card number and the port number of the new UNI board card in the secondary tree of the main control ARP table.
On the basis of the technical scheme, the method further comprises the following steps: when the NNI board card and the UNI board card monitor that a local ARP hardware table is not hit for use in a specified time length, ARP deletion information is sent to the main control card;
the master control card acquires ARP deletion information, wherein the ARP deletion information comprises an IP address to be deleted and VLAN information; and deleting the corresponding tree node information according to the IP address and the VLAN information to be deleted in the ARP deletion information.
The ARP table configuration system of the service board card provided by the invention comprises an ARP management configuration module and a master control ARP table management module which are arranged on a master control card, and an ARP table management module which is arranged on each service board card;
the ARP management configuration module is used for: dividing all service board cards required to be used into NNI board cards or UNI board cards;
the master control ARP table management module is used for: configuring an NNI ARP table corresponding to each NNI board card and a UNI ARP table corresponding to each UNI board card; the NNI ARP table comprises communication information corresponding to the NNI board card and board card information of all UNI board cards communicated with the NNI board card; the UNI ARP table comprises communication information corresponding to the UNI board card; issuing a corresponding NNI ARP table to each NNI board card, and issuing a corresponding UNI ARP table to each UNI board card;
the ARP table management module is used for: a local ARP hardware table is created based on the received ARP table.
On the basis of the technical scheme, all the service board cards needing to be used are interconnected through a FULL MESH architecture switch; the process that the master control ARP table management module configures the NNI ARP table corresponding to each NNI board card and the UNI ARP table corresponding to each UNI board card comprises the following steps: creating a master control ARP table with a two-stage tree structure;
The first-level tree node of the master control ARP table comprises an IP address section, a mask length which is the same as the global IP address linked list of the master control card and an NNI ARP table; the communication information of the NNI board card in the NNI ARP table comprises the card number and the port number of the NNI board card, and the board card information of the UNI board card comprises the card number and the user MAC address of the UNI board card;
each secondary tree node of the master control ARP table comprises a UNI ARP table corresponding to a UNI board card, and communication information of the UNI board card in the UNI ARP table comprises an IP address, a card number, a port number and a user MAC address of the UNI board card; and the IP address of the UNI board card is in the range of the IP address field in the first-level tree node.
On the basis of the technical scheme, the master control ARP table management module is further used for:
acquiring ARP addition information, wherein the ARP addition information comprises an IP address, VLAN information, a user MAC address and a card number and a port number of a UNI board card; determining a mask length corresponding to an IP address and VLAN information in ARP addition information in a global IP address linked list, and determining a master control ARP table according to the mask length; adding a user MAC address, a card number and a port number of a UNI board card and a card number and a port number of an NNI board card corresponding to the port number of the UNI board card in ARP addition information to a primary tree of a master control ARP table; determining a secondary tree node of a master control ARP table according to the IP address in the ARP addition information, and adding the user MAC address, the card number and the port number of the UNI board card in the ARP addition information to a secondary tree of the master control ARP table; sending hardware addition ARP information to an NNI board card and a UNI board card corresponding to the addition information;
Acquiring ARP updating information, wherein the ARP updating information comprises an IP address, VLAN information, an original user MAC address, a card number and a port number of an original UNI board card, a new user MAC address, and a card number and a port number of a new UNI board card; determining mask lengths corresponding to the IP addresses and the VLAN information in the ARP update information in the global IP address linked list, and determining a master control ARP table according to the mask lengths; in a primary tree of a master control ARP table, updating an original user MAC address, a card number and a port number of an original UNI board card into a new user MAC address, a card number and a port number of a new UNI board card, and updating a card number and a port number of an NNI board card corresponding to the port number of the original UNI board card into a card number and a port number of the NNI board card corresponding to the port number of the new UNI board card; determining a secondary tree node of a master control ARP table according to the IP address in the ARP updating information, and updating the original user MAC address, the card number and the port number of the original UNI board card into a new user MAC address, the card number and the port number of the new UNI board card in the secondary tree of the master control ARP table; issuing hardware updating ARP information to NNI board cards and/or UNI board cards corresponding to the updating information;
acquiring ARP deletion information, wherein the ARP deletion information comprises an IP address to be deleted and VLAN information; deleting the corresponding tree node information according to the IP address and the VLAN information to be deleted in the ARP deletion information; and issuing hardware deletion ARP information to the NNI board card and/or the UNI board card corresponding to the deletion information.
On the basis of the above technical solution, the ARP table management module is further configured to:
after receiving the ARP message, acquiring an IP address, VLAN information, a user MAC address, a UNI card number and a UNI port number in the ARP message; when a local ARP hardware table corresponding to the ARP message does not exist, ARP addition information corresponding to the ARP message is sent to the main control card;
after receiving the ARP message, if a local ARP hardware table corresponding to the ARP message exists and needs to be updated, sending ARP update information corresponding to the ARP message to a main control card;
and when the local ARP hardware table is not hit for use within the specified time, ARP deletion information is sent to the master control card.
On the basis of the above technical solution, the ARP table management module is further configured to: adding a local ARP hardware table according to the hardware addition ARP information; updating the local ARP hardware table according to the hardware updating ARP information; and deleting the local ARP hardware table according to the hardware deletion ARP information.
Compared with the prior art, the invention has the advantages that:
before configuring the ARP table, the invention can classify the service board cards in advance according to the working mode, and configure and issue the corresponding ARP table for the service board cards according to different categories. All NNI ARP tables and UNI ARP tables are added to be equivalent to the ARP table in the prior art; compared with the ARP table on the service board card in the prior art, the method and the device can obviously reduce the capacity of the ARP table on each service board card, thereby not only greatly improving the use bottleneck of the service board card without increasing the use cost of the service board card, but also avoiding the hardware resource requirement that all service board cards are required to have the same capacity in the prior art. Therefore, the invention realizes large-scale ARP user application, simultaneously utilizes hardware board card resources to the maximum extent, and is very suitable for practical use and popularization.
In addition, it should be emphasized that the innovation of the present invention is mainly to use the operation mode of the service board card for the configuration of the ARP table, and the reason for the innovation is that: as mentioned in the background art, a solution to the insufficient capacity of the service board card is to upgrade the service board card by a person of ordinary skill in the art; without creative work, the method of configuring the corresponding ARP table according to the working mode of the service board card is not conceivable.
Drawings
Fig. 1 is a flowchart of an ARP table configuration method of a service board in an embodiment of the present invention;
fig. 2 is a schematic diagram of an ARP table configuration method of a service board in an embodiment of the present invention;
FIG. 3 is a resource allocation diagram of an ARP hardware table of a service board in an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a master ARP table with a two-level tree structure according to an embodiment of the present invention;
fig. 5 is a block diagram of a system for configuring an ARP table of a service board according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Referring to fig. 1 and fig. 2, in the ARP table configuration method for the service boards in the embodiment of the present invention, all service boards to be used in the method are interconnected through a switch of a FULL MESH architecture, and the method includes the following steps:
S1: initializing (clearing) the ARP data of all the service boards to be used, so as to ensure the normal learning of the subsequent new ARP table, and going to S2.
S2: the main control card configures a working mode for each service board card to be used, the working mode includes NNI (network side) and UNI (user side), that is, all service board cards to be used can be classified into 2 types according to the working mode: the NNI service board (hereinafter referred to as NNI board) or UNI service board (hereinafter referred to as UNI board) proceeds to S3.
In S2, the operation mode (UNI or NNI) of the service board can be determined directly according to the parameter information of the service board, which is common knowledge in the art.
S3: the main control card configures an NNI ARP table corresponding to each NNI board card and a UNI ARP table corresponding to each UNI board card according to the working modes of all service board cards required to be used; the NNI ARP table comprises communication information corresponding to the NNI board card and board card information of all UNI board cards communicated with the NNI board card; the UNI ARP table includes the communication information corresponding to the UNI board, and the process goes to S4.
S4: the main control card issues a corresponding NNI ARP table to each NNI board card, and issues a corresponding UNI ARP table to each UNI board card; and the NNI board card and the UNI board card establish a local ARP hardware table according to the received ARP table.
As can be seen from S2 to S4, before configuring the ARP table, the present invention can classify the service boards in advance according to the operating mode, and configure and issue corresponding ARP tables for the service boards according to different categories. All NNI ARP tables and UNI ARP tables are added to be equivalent to the ARP table in the prior art; compared with the ARP table on the service board card in the prior art, the method and the device can obviously reduce the capacity of the ARP table on each service board card, thereby not only greatly improving the use bottleneck of the service board card without increasing the use cost of the service board card, but also avoiding the hardware resource requirement that all service board cards are required to have the same capacity in the prior art.
For example, as shown in fig. 3, the designated board 2 is an NNI board, referred to as NNI-2 for short; the board card 1 and the board card 3 are UNI board cards, which are called UNI-1 and UNI-3 for short. The equipment configures an IP address of 192.168.1.254/24 as a three-layer gateway to learn a user terminal ARP, wherein the UNI-1 access user address range is 192.168.1.1-192.168.1.127, and the total number of 127 users is total; the UNI-3 access user address range is 192.168.1.128-192.168.1.253, and the total number of users is 126. After the invention is adopted, NNI-2 card ARP hardware tables occupy 2, UNI-1 card occupies 127, UNI-3 card occupies 126, and the conventional implementation scheme requires that the cards 1, 2 and 3 all need 253 ARP hardware tables.
Therefore, the invention realizes large-scale ARP user application, simultaneously utilizes hardware board card resources to the maximum extent, and is very suitable for practical use and popularization.
Preferably, in order to facilitate the ARP tables of the main control card and the service board card to perform associated configuration (addition, update, and deletion) at a later stage, it is necessary to generate a corresponding mapping relationship between the UNI ARP table and the NNI ARP table in the main control card.
On this basis, the specific flow of S3 includes: the master control card creates a master control ARP table with a two-stage tree structure, namely, each primary tree node of the master control ARP table comprises a plurality of secondary tree nodes.
The primary tree node of the master control ARP table comprises an IP address section, a mask length which is the same as a global IP address linked list (the table is an existing linked list, and the table comprises VLAN information and IP addresses and mask lengths corresponding to the VLAN information) of the master control card, and an NNI ARP table; the communication information of the NNI board card in the NNI ARP table comprises the card number and the port number of the NNI board card, and the board card information of the UNI board card comprises the card number and the user MAC address of the UNI board card.
Each secondary tree node of the master control ARP table comprises a UNI ARP table corresponding to a UNI board card, and communication information of the UNI board card in the UNI ARP table comprises an IP address, a card number, a port number and a user MAC address of the UNI board card; and the IP address of the UNI board card is in the range of the IP address field in the node of the primary tree.
An example of a master ARP table with a two-level tree structure is as follows:
referring to fig. 4, the first-level tree is that the IP address and the mask are key values, and the leaf node is related UNI card node information; each UNI card of the secondary tree forms a binary tree according to the specific IP terminal address arrangement of the user.
Therefore, the primary tree node of the master control ARP table can be mapped to the global IP address linked list of the master control card through the mask code length, and the secondary tree node of the master control ARP table can be mapped to the primary tree node through the IP address; and then the global IP address linked list, the NNI ARP table positioned in the first-level tree node and the UNI ARP table positioned in the second-level tree node are associated, so that the subsequent ARP configuration is facilitated.
Preferably, the following steps are also included after S4:
the NNI board card obtains an IP address, VLAN information, a user MAC address, a UNI card number and a UNI port number in an ARP message after receiving a legal ARP message sent by a user side (namely from a physical port); and judging whether a local ARP hardware table corresponding to the ARP message exists, if so, directly replying the ARP response message to the user side, otherwise, adding the ARP table, and sending ARP addition information corresponding to the ARP message to the main control card.
After receiving the legal ARP addition information (the information is from an ARP data message sent by a service board card or statically configured by a network manager), the main control card acquires the ARP addition information, wherein the ARP addition information comprises an IP address, VLAN information (VLANID), a user MAC address and a card number and a port number of a UNI board card.
And the master control card determines mask length corresponding to the IP address and the VLAN information in the ARP addition information in the global IP address linked list, determines a master control ARP table according to the mask length, and adds the user MAC address in the ARP addition information, the card number and the port number of the UNI board card and the card number and the port number of the NNI board card corresponding to the port number of the UNI board card to a primary tree of the master control ARP table. And determining a secondary tree node of the master control ARP table according to the IP address in the ARP addition information, and adding the user MAC address, the card number and the port number of the UNI board card in the ARP addition information to the secondary tree of the master control ARP table.
And issuing hardware addition ARP information to the NNI board card and the UNI board card corresponding to the addition information, wherein the hardware addition ARP information difference of the NNI board card and the UNI board card is as follows: the index of the NNI board card is IP address, mask and VLAN information, the port is the card number of the NNI board card and the port number of the NNI board card and the UNI board card for communication, the index of the UNI board card is IP address and VLAN information, and the port is the card number and the port number of the UNI. And the NNI board card and the UNI board card add the local ARP hardware table according to the ARP information added by the hardware (the specific adding operation is common knowledge in the field).
Therefore, the processing flow of adding the ARP information on the master control card and the service board is clearly explained in this embodiment.
Preferably, the following steps are also included after S4:
after receiving a legal ARP message sent by a user side (namely from a physical port), the NNI board card sends ARP update information corresponding to the ARP message to the main control card if a local ARP hardware table corresponding to the ARP message exists and needs to be updated.
And after the main control card receives legal ARP update information (the information is sent by the service board card), acquiring the ARP update information, wherein the ARP update information comprises an IP address, VLAN information, an original user MAC address, the card number and the port number of an original UNI board card, a new user MAC address, and the card number and the port number of a new UNI board card.
The master control card determines the mask length corresponding to the IP address and VLAN information in the ARP update information in the global IP address linked list, and determines the master control ARP table according to the mask length.
In the primary tree of the master control ARP table, the original user MAC address, the card number and the port number of the original UNI board card are updated to be the new user MAC address, the card number and the port number of the new UNI board card, and the card number and the port number of the NNI board card corresponding to the port number of the original UNI board card are updated to be the card number and the port number of the NNI board card corresponding to the port number of the new UNI board card.
And determining a secondary tree node of the master control ARP table according to the IP address in the ARP updating information, and updating the original user MAC address, the card number and the port number of the original UNI board card into a new user MAC address, a new UNI board card number and a new port number in the secondary tree of the master control ARP table.
And issuing hardware updating ARP information to the NNI board card and/or the UNI board card corresponding to the updating information, wherein if the ARP of the NNI board card is directly learned, the hardware updating ARP information needs to be issued to all the NNI board card and the UNI board card. And the NNI board card and/or the UNI board card update the local ARP hardware table according to the hardware update ARP information (the specific update operation is common knowledge in the field).
Therefore, the processing flow for updating the ARP information on the master control card and the service board is clearly described in this embodiment.
Preferably, the following steps are also included after S4:
when the NNI board card and the UNI board card monitor that a local ARP hardware table is not hit for use within a specified time (more than 30 seconds, in this embodiment, 120 seconds), ARP deletion information is sent to the main control card.
After receiving legal ARP deletion information (the information is sent by a service board card or statically configured by a network manager), the master control card acquires the ARP deletion information, wherein the ARP deletion information comprises an IP address to be deleted and VLAN information.
The main control card deletes the corresponding tree node information according to the IP address and the VLAN information to be deleted in the ARP deletion information, and sends hardware deletion ARP information to the NNI board card and/or the UNI board card corresponding to the deletion information; when deleting the whole master control ARP table, the ARP deletion information only comprises IP addresses and VLAN information; when deleting the primary tree in the master control ARP table, the ARP deletion information also comprises a mask length; when the secondary tree in the master control ARP table is deleted, the ARP deletion information also comprises an IP address. And the NNI board card and/or the UNI board card delete the local ARP hardware table according to the hardware deletion ARP information (the specific deletion operation is common knowledge in the field).
Therefore, the processing flow for deleting the ARP information on the master control card and the service board is clearly explained in this embodiment.
Referring to fig. 5, in the ARP table configuration system of the service boards in the embodiment of the present invention, all service boards (service boards 1 to 3) that need to be used in the system are interconnected through a FULL MESH fabric switch; the system comprises an ARP management initialization module, an ARP management configuration module and a master control ARP table management module which are arranged on a master control card, and an ARP table management module and an ARP timer module which are arranged on each service board card.
The ARP management initialization module is used for: initializing a global IP address linked list, and initializing a master control card and ARP data of all service cards required to be used according to the capacity of the hardware cards.
The ARP management configuration module is used for: and dividing all service board cards required to be used into NNI board cards or UNI board cards.
The master control ARP table management module is used for:
(1) configuring an NNI ARP table corresponding to each NNI board card and a UNI ARP table corresponding to each UNI board card; the NNI ARP table comprises communication information corresponding to the NNI board card and board card information of all UNI board cards communicated with the NNI board card; the UNI ARP table comprises communication information corresponding to the UNI board card; and issuing a corresponding NNI ARP table to each NNI board card, and issuing a corresponding UNI ARP table to each UNI board card.
The process that the master control ARP table management module configures the NNI ARP table corresponding to each NNI board card and the UNI ARP table corresponding to each UNI board card comprises the following steps: creating a master control ARP table with a two-stage tree structure;
the first-level tree node of the master control ARP table comprises an IP address section, a mask length which is the same as the global IP address linked list of the master control card and an NNI ARP table; the communication information of the NNI board card in the NNI ARP table comprises the card number and the port number of the NNI board card, and the board card information of the UNI board card comprises the card number and the user MAC address of the UNI board card;
each secondary tree node of the master control ARP table comprises a UNI ARP table corresponding to a UNI board card, and communication information of the UNI board card in the UNI ARP table comprises an IP address, a card number, a port number and a user MAC address of the UNI board card; and the IP address of the UNI board card is in the range of the IP address field in the first-level tree node.
(2) Acquiring ARP addition information, wherein the ARP addition information comprises an IP address, VLAN information, a user MAC address and a card number and a port number of a UNI board card; determining a mask length corresponding to an IP address and VLAN information in ARP addition information in a global IP address linked list, and determining a master control ARP table according to the mask length; adding a user MAC address, a card number and a port number of a UNI board card and a card number and a port number of an NNI board card corresponding to the port number of the UNI board card in ARP addition information to a primary tree of a master control ARP table; determining a secondary tree node of a master control ARP table according to the IP address in the ARP addition information, and adding the user MAC address, the card number and the port number of the UNI board card in the ARP addition information to a secondary tree of the master control ARP table; and sending hardware addition ARP information to the NNI board card and the UNI board card corresponding to the addition information.
(3) Acquiring ARP updating information, wherein the ARP updating information comprises an IP address, VLAN information, an original user MAC address, a card number and a port number of an original UNI board card, a new user MAC address, and a card number and a port number of a new UNI board card; determining mask lengths corresponding to the IP addresses and the VLAN information in the ARP update information in the global IP address linked list, and determining a master control ARP table according to the mask lengths; in a primary tree of a master control ARP table, updating an original user MAC address, a card number and a port number of an original UNI board card into a new user MAC address, a card number and a port number of a new UNI board card, and updating a card number and a port number of an NNI board card corresponding to the port number of the original UNI board card into a card number and a port number of the NNI board card corresponding to the port number of the new UNI board card; determining a secondary tree node of a master control ARP table according to the IP address in the ARP updating information, and updating the original user MAC address, the card number and the port number of the original UNI board card into a new user MAC address, the card number and the port number of the new UNI board card in the secondary tree of the master control ARP table; and issuing hardware updating ARP information to the NNI board card and/or the UNI board card corresponding to the updating information.
(4) Acquiring ARP deletion information, wherein the ARP deletion information comprises an IP address to be deleted and VLAN information; deleting the corresponding tree node information according to the IP address and the VLAN information to be deleted in the ARP deletion information; and issuing hardware deletion ARP information to the NNI board card and/or the UNI board card corresponding to the deletion information.
The ARP table management module is used for:
(1) a local ARP hardware table is created based on the received ARP table.
(2) After receiving the ARP message, acquiring an IP address, VLAN information, a user MAC address, a UNI card number and a UNI port number in the ARP message; and when the local ARP hardware table corresponding to the ARP message does not exist, sending ARP addition information corresponding to the ARP message to the master control card.
(3) After receiving the ARP message, if a local ARP hardware table corresponding to the ARP message exists and needs to be updated, sending ARP update information corresponding to the ARP message to a main control card;
(4) and after receiving a deleting signal sent by the ARP timer module, sending ARP deleting information to the master control card.
(5) Adding a local ARP hardware table according to the hardware addition ARP information; updating the local ARP hardware table according to the hardware updating ARP information; and deleting the local ARP hardware table according to the hardware deletion ARP information.
The ARP timer module is configured to: and when the local ARP hardware table is not hit for use within the specified time, sending a deleting signal to the ARP table management module.
It should be noted that: in the system provided in the embodiment of the present invention, when performing inter-module communication, only the division of each functional module is illustrated, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the system is divided into different functional modules to complete all or part of the above described functions.
Further, the present invention is not limited to the above-mentioned embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements are also considered to be within the scope of the present invention. Those not described in detail in this specification are within the skill of the art.

Claims (10)

1. A method for configuring ARP table of service board card is characterized in that the method includes the following steps: the main control card divides all service board cards needing to be used into NNI board cards or UNI board cards, and configures an NNI ARP table corresponding to each NNI board card and a UNI ARP table corresponding to each UNI board card; the NNI ARP table comprises communication information corresponding to the NNI board card and board card information of all UNI board cards communicated with the NNI board card; the UNI ARP table comprises communication information corresponding to the UNI board card; and the main control card issues a corresponding NNIARP table to each NNI board card, issues a corresponding UNI ARP table to each UNI board card, and both the NNI board card and the UNI board card establish a local ARP hardware table according to the received ARP tables.
2. The ARP table configuration method for a service board as claimed in claim 1, wherein: all the service board cards needing to be used are interconnected through a FULL MESH architecture switch; the process of configuring the NNI ARP table corresponding to each NNI board card and the UNI ARP table corresponding to each UNI board card comprises the following steps: the master control card creates a master control ARP table with a two-stage tree structure;
The first-level tree node of the master control ARP table comprises an IP address section, a mask length which is the same as the global IP address linked list of the master control card and an NNI ARP table; the communication information of the NNI board card in the NNI ARP table comprises the card number and the port number of the NNI board card, and the board card information of the UNI board card comprises the card number and the user MAC address of the UNI board card;
each secondary tree node of the master control ARP table comprises a UNI ARP table corresponding to a UNI board card, and communication information of the UNI board card in the UNI ARP table comprises an IP address, a card number, a port number and a user MAC address of the UNI board card; and the IP address of the UNI board card is in the range of the IP address field in the first-level tree node.
3. The method for configuring ARP tables of traffic boards according to claim 1 or 2, characterized in that the method further comprises the following steps: after receiving the ARP message, the NNI board card acquires an IP address, VLAN information, a user MAC address, a UNI card number and a UNI port number in the ARP message; when a local ARP hardware table corresponding to the ARP message does not exist, ARP addition information corresponding to the ARP message is sent to the main control card;
the main control card acquires ARP addition information, wherein the ARP addition information comprises an IP address, VLAN information, a user MAC address, and a card number and a port number of a UNI board card; the master control card is in the global IP address linked list, determines the mask length corresponding to the IP address and VLAN information in the ARP adding information, and determines the master control ARP table according to the mask length; adding a user MAC address, a card number and a port number of a UNI board card and a card number and a port number of an NNI board card corresponding to the port number of the UNI board card in ARP addition information to a primary tree of a master control ARP table; and determining a secondary tree node of the master control ARP table according to the IP address in the ARP addition information, and adding the user MAC address, the card number and the port number of the UNI board card in the ARP addition information to the secondary tree of the master control ARP table.
4. The method for configuring ARP tables of traffic boards according to claim 1 or 2, characterized in that the method further comprises the following steps: after the NNI board card receives the ARP message, if a local ARP hardware table corresponding to the ARP message exists and needs to be updated, ARP update information corresponding to the ARP message is sent to the main control card;
the main control card acquires ARP update information, wherein the ARP update information comprises an acquired IP address, VLAN information, an original user MAC address, a card number and a port number of an original UNI board card, a new user MAC address, a card number and a port number of a new UNI board card;
the master control card is in the global IP address linked list, determines the mask length corresponding to the IP address and VLAN information in the ARP update information, and determines the master control ARP table according to the mask length; in a primary tree of a master control ARP table, updating an original user MAC address, a card number and a port number of an original UNI board card into a new user MAC address, a card number and a port number of a new UNI board card, and updating a card number and a port number of an NNI board card corresponding to the port number of the original UNI board card into a card number and a port number of the NNI board card corresponding to the port number of the new UNI board card;
and the main control card determines a secondary tree node of a main control ARP table according to the IP address in the ARP updating information, and updates the original user MAC address, the card number and the port number of the original UNI board card into a new user MAC address, the card number and the port number of the new UNI board card in the secondary tree of the main control ARP table.
5. The method for configuring ARP tables of traffic boards according to claim 1 or 2, characterized in that the method further comprises the following steps: when the NNI board card and the UNI board card monitor that a local ARP hardware table is not hit for use in a specified time length, ARP deletion information is sent to the main control card;
the master control card acquires ARP deletion information, wherein the ARP deletion information comprises an IP address to be deleted and VLAN information; and deleting the corresponding tree node information according to the IP address and the VLAN information to be deleted in the ARP deletion information.
6. An ARP table configuration system of a business board card is characterized by comprising an ARP management configuration module and a master control ARP table management module which are arranged on a master control card, and an ARP table management module which is arranged on each business board card;
the ARP management configuration module is used for: dividing all service board cards required to be used into NNI board cards or UNI board cards;
the master control ARP table management module is used for: configuring an NNI ARP table corresponding to each NNI board card and a UNI ARP table corresponding to each UNI board card; the NNI ARP table comprises communication information corresponding to the NNI board card and board card information of all UNI board cards communicated with the NNI board card; the UNI ARP table comprises communication information corresponding to the UNI board card; issuing a corresponding NNI ARP table to each NNI board card, and issuing a corresponding UNIARP table to each UNI board card;
The ARP table management module is used for: a local ARP hardware table is created based on the received ARP table.
7. The ARP table configuration system of a service board of claim 6, wherein: all the service board cards needing to be used are interconnected through a FULL MESH architecture switch; the process that the master control ARP table management module configures the NNI ARP table corresponding to each NNI board card and the UNIARP table corresponding to each UNI board card comprises the following steps: creating a master control ARP table with a two-stage tree structure;
the first-level tree node of the master control ARP table comprises an IP address section, a mask length which is the same as the global IP address linked list of the master control card and an NNI ARP table; the communication information of the NNI board card in the NNI ARP table comprises the card number and the port number of the NNI board card, and the board card information of the UNI board card comprises the card number and the user MAC address of the UNI board card;
each secondary tree node of the master control ARP table comprises a UNIARP table corresponding to a UNI board card, and communication information of the UNI board card in the UNIARP table comprises an IP address, a card number, a port number and a user MAC address of the UNI board card; and the IP address of the UNI board card is in the range of the IP address field in the first-level tree node.
8. The ARP table configuration system for service boards of claim 6 or 7, wherein the master ARP table management module is further configured to:
Acquiring ARP addition information, wherein the ARP addition information comprises an IP address, VLAN information, a user MAC address and a card number and a port number of a UNI board card; determining a mask length corresponding to an IP address and VLAN information in ARP addition information in a global IP address linked list, and determining a master control ARP table according to the mask length; adding a user MAC address, a card number and a port number of a UNI board card and a card number and a port number of an NNI board card corresponding to the port number of the UNI board card in ARP addition information to a primary tree of a master control ARP table; determining a secondary tree node of a master control ARP table according to the IP address in the ARP addition information, and adding the user MAC address, the card number and the port number of the UNI board card in the ARP addition information to a secondary tree of the master control ARP table; sending hardware addition ARP information to an NNI board card and a UNI board card corresponding to the addition information;
acquiring ARP updating information, wherein the ARP updating information comprises an IP address, VLAN information, an original user MAC address, a card number and a port number of an original UNI board card, a new user MAC address, and a card number and a port number of a new UNI board card; determining mask lengths corresponding to the IP addresses and the VLAN information in the ARP update information in the global IP address linked list, and determining a master control ARP table according to the mask lengths; in a primary tree of a master control ARP table, updating an original user MAC address, a card number and a port number of an original UNI board card into a new user MAC address, a card number and a port number of a new UNI board card, and updating a card number and a port number of an NNI board card corresponding to the port number of the original UNI board card into a card number and a port number of the NNI board card corresponding to the port number of the new UNI board card; determining a secondary tree node of a master control ARP table according to the IP address in the ARP updating information, and updating the original user MAC address, the card number and the port number of the original UNI board card into a new user MAC address, the card number and the port number of the new UNI board card in the secondary tree of the master control ARP table; issuing hardware updating ARP information to NNI board cards and/or UNI board cards corresponding to the updating information;
Acquiring ARP deletion information, wherein the ARP deletion information comprises an IP address to be deleted and VLAN information; deleting the corresponding tree node information according to the IP address and the VLAN information to be deleted in the ARP deletion information; and issuing hardware deletion ARP information to the NNI board card and/or the UNI board card corresponding to the deletion information.
9. The ARP table configuration system of a traffic board of claim 8, wherein the ARP table management module is further configured to:
after receiving the ARP message, acquiring an IP address, VLAN information, a user MAC address, a UNI card number and a UNI port number in the ARP message; when a local ARP hardware table corresponding to the ARP message does not exist, ARP addition information corresponding to the ARP message is sent to the main control card;
after receiving the ARP message, if a local ARP hardware table corresponding to the ARP message exists and needs to be updated, sending ARP update information corresponding to the ARP message to a main control card;
and when the local ARP hardware table is not hit for use within the specified time, ARP deletion information is sent to the master control card.
10. The ARP table configuration system of a traffic board of claim 8, wherein the ARP table management module is further configured to: adding a local ARP hardware table according to the hardware addition ARP information; updating the local ARP hardware table according to the hardware updating ARP information; and deleting the local ARP hardware table according to the hardware deletion ARP information.
CN202010499730.6A 2020-06-04 2020-06-04 ARP table configuration method and system for service board card Active CN111865655B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010499730.6A CN111865655B (en) 2020-06-04 2020-06-04 ARP table configuration method and system for service board card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010499730.6A CN111865655B (en) 2020-06-04 2020-06-04 ARP table configuration method and system for service board card

Publications (2)

Publication Number Publication Date
CN111865655A true CN111865655A (en) 2020-10-30
CN111865655B CN111865655B (en) 2022-03-08

Family

ID=72985019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010499730.6A Active CN111865655B (en) 2020-06-04 2020-06-04 ARP table configuration method and system for service board card

Country Status (1)

Country Link
CN (1) CN111865655B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637033A (en) * 2020-12-10 2021-04-09 杭州迪普科技股份有限公司 VLAN (virtual local area network) distribution method, device and equipment based on hardware service board card
CN114338595A (en) * 2021-12-31 2022-04-12 山石网科通信技术股份有限公司 Distributed processing method and device for message, storage medium and processor

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080101381A1 (en) * 2006-10-25 2008-05-01 Mediatek Inc. Address resolution protocol (arp) cache management methods and devices
CN101588299A (en) * 2009-07-07 2009-11-25 杭州华三通信技术有限公司 The veneer of the message forwarding method of distributed apparatus and distributed apparatus and this equipment
US20140229631A1 (en) * 2013-02-11 2014-08-14 Avaya Inc. Optimized distributed routing for stretched data center models through updating route advertisements based on changes to address resolution protocol (arp) tables
CN104811400A (en) * 2014-01-26 2015-07-29 杭州迪普科技有限公司 Distributed network apparatus
CN106888282A (en) * 2017-04-28 2017-06-23 新华三技术有限公司 A kind of ARP table updating method, board and distributed apparatus
CN108777668A (en) * 2018-06-08 2018-11-09 烽火通信科技股份有限公司 A kind of the route resource control method and system of three-tier switch

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080101381A1 (en) * 2006-10-25 2008-05-01 Mediatek Inc. Address resolution protocol (arp) cache management methods and devices
CN101588299A (en) * 2009-07-07 2009-11-25 杭州华三通信技术有限公司 The veneer of the message forwarding method of distributed apparatus and distributed apparatus and this equipment
US20140229631A1 (en) * 2013-02-11 2014-08-14 Avaya Inc. Optimized distributed routing for stretched data center models through updating route advertisements based on changes to address resolution protocol (arp) tables
CN104811400A (en) * 2014-01-26 2015-07-29 杭州迪普科技有限公司 Distributed network apparatus
CN106888282A (en) * 2017-04-28 2017-06-23 新华三技术有限公司 A kind of ARP table updating method, board and distributed apparatus
CN108777668A (en) * 2018-06-08 2018-11-09 烽火通信科技股份有限公司 A kind of the route resource control method and system of three-tier switch

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637033A (en) * 2020-12-10 2021-04-09 杭州迪普科技股份有限公司 VLAN (virtual local area network) distribution method, device and equipment based on hardware service board card
CN112637033B (en) * 2020-12-10 2022-08-26 杭州迪普科技股份有限公司 VLAN (virtual local area network) distribution method, device and equipment based on hardware service board card
CN114338595A (en) * 2021-12-31 2022-04-12 山石网科通信技术股份有限公司 Distributed processing method and device for message, storage medium and processor
CN114338595B (en) * 2021-12-31 2024-02-02 山石网科通信技术股份有限公司 Distributed processing method and device for message, storage medium and processor

Also Published As

Publication number Publication date
CN111865655B (en) 2022-03-08

Similar Documents

Publication Publication Date Title
JP3288365B2 (en) Data communication system with distributed multicasting
CN107733670B (en) Forwarding strategy configuration method and device
US8040822B2 (en) Configuring communication services using policy groups
US7027411B1 (en) Method and system for identifying and processing changes to a network topology
CN111796905B (en) Method and system for realizing Kubernetes container cloud platform VLAN network
CN109474627B (en) Virtual tenant network isolation method and system based on SDN
CN103404084B (en) MAC Address forces retransmission unit and method
CN110830371B (en) Message redirection method and device, electronic equipment and readable storage medium
US11252126B1 (en) Domain name resolution in environment with interconnected virtual private clouds
CN108616402B (en) Management method and system of remote equipment
CN111865655B (en) ARP table configuration method and system for service board card
CN100407704C (en) Method of dynamically learning address on MAC layer
WO2019233061A1 (en) Routing resource control method and system for layer 3 switch
WO2020073908A1 (en) Method and device for sending routing information
CN111556110B (en) Automatic adaptation method for different physical service networks of private cloud system
CN112615778A (en) Message forwarding method, device, router, storage medium and system
CN104734930B (en) Method and device for realizing access of Virtual Local Area Network (VLAN) to Variable Frequency (VF) network and Fiber Channel Frequency (FCF)
CN110851238A (en) Implementation method of openstack fully-distributed dhcp service
US7733800B2 (en) Method and mechanism for identifying an unmanaged switch in a network
JPH06338884A (en) Node discovering method for network
JP3443283B2 (en) Distribution list creation method
JP3520665B2 (en) Virtual network method
KR100441892B1 (en) Apparatus and method for integrally managing subscriber for CO-LAN
WO2007061404A2 (en) Network topology mapper
CN108833179A (en) A kind of generation method and device of mainframe network topology

Legal Events

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