CN100452772C - Three-layer forwarding method, device and ARP information table updating method - Google Patents

Three-layer forwarding method, device and ARP information table updating method Download PDF

Info

Publication number
CN100452772C
CN100452772C CNB200610083303XA CN200610083303A CN100452772C CN 100452772 C CN100452772 C CN 100452772C CN B200610083303X A CNB200610083303X A CN B200610083303XA CN 200610083303 A CN200610083303 A CN 200610083303A CN 100452772 C CN100452772 C CN 100452772C
Authority
CN
China
Prior art keywords
mac address
information
port
address
arp 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.)
Active
Application number
CNB200610083303XA
Other languages
Chinese (zh)
Other versions
CN1878139A (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CNB200610083303XA priority Critical patent/CN100452772C/en
Publication of CN1878139A publication Critical patent/CN1878139A/en
Application granted granted Critical
Publication of CN100452772C publication Critical patent/CN100452772C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present invention discloses a three-layer forwarding method which comprises the steps that an IP address corresponding to an MAC address is added in an MAC address table; when MAC address information is changed, corresponding ARP information is searched out according to the IP address, and the MAC address information in the ARP information is updated. The present invention simultaneously discloses a three-layer forwarding device which comprises an updating detection module of the MAC address information, a storage updating module of the MAC address information, a storage updating module of the ARP information, and a forwarding control module. The present invention also discloses an updating method of an ARP information table. The present invention avoids the occurrence of three-layer forwarding flow rate interruption caused by no search or error search of a three-layer forwarding port because the ARP information is not updated in time when the MAC address information is changed, and the impact to the occupancy rate of a CPU is avoided. For a unidirectional flow, when the MAC address information is changed, a timer is started. After the timer is overtimed, the ARP information is triggered in time for relearning, and the occurrence of the phenomenon of network interruption of the unidirectional flow is avoided.

Description

Three-layer forwarding method, device and ARP information table updating method
Technical field
The present invention relates to three layers of retransmission technique field, be specifically related to three layers of retransmission unit that a kind of exchange chip that adopts two tables to store three layers of forwarding information carries out the method for three layers of forwarding and adopts three layers of forwarding information of two table storages, and the methods of exchange chip scheduler analysis protocol (ARP) information table of three layers of forwarding information of two table storages of a kind of employing.
Background technology
At present in the data communication field, switch device is widely used in two layers, the Access Layer of three layer data switching networks, convergence-level.
The basic principle of two layers of exchange is: switch at first carries out two layers of study to Ethernet message forwarding process, write down the inbound port of Ethernet message, the corresponding relation of going into Virtual Local Area Network, address, source medium access control (MAC) etc., and this corresponding relation is kept in the mac address table; After this, when switch is received the Ethernet message, in the mac address table that self preserves, search the source MAC corresponding with the target MAC (Media Access Control) address of this message, if find, then according to the inbound port of this source MAC correspondence, go into information such as VLAN this message directly forwarded; If do not find, then in the VLAN of message place, broadcast.
The basic principle of three layers of exchange is: switch at first carries out three layers of study to Ethernet message forwarding process, and preserve the purpose IP address correspondence of Ethernet message network segment address prefix (Prefix), next jumps the corresponding relation of host address (NextHop), ARP(Address Resolution Protocol) information; After this, when switch is received the Ethernet message, at first self finding the network segment address prefix of mating the most with the purpose IP address of message according to longest match principle, find next by this network segment address prefix again and jump host address, next is jumped host address and finds corresponding ARP information by this again, replace the target MAC (Media Access Control) address of message then with the MAC Address in the ARP information, replace the source MAC of message with the outgoing interface MAC Address of switch, then this message is sent from target MAC (Media Access Control) address corresponding port, VLAN with this message.
Switch adopts three layers of forwarding information of dual mode storage usually:
First kind is to adopt three tables to store three layers of forwarding information, and these three tables are respectively: network segment address prefix table, ARP information table, mac address table.In this manner, when the target MAC (Media Access Control) address of switch with the replacement of the MAC Address in ARP information table message, replace the source MAC of message with the outgoing interface MAC Address of self after, switch is searched target MAC (Media Access Control) address corresponding port, the VLAN after the replacement in mac address table, then message is forwarded from described port, VLAN, that is: what this moment, message carried out is three layers of encapsulation, and what follow is two layers of forwarding process.
Second kind is to adopt two tables to store three layers of forwarding information, and these two tables are respectively: network segment address prefix table and ARP information table, and the ARP information table is preserved MAC Address, port and vlan information.In this manner, when the target MAC (Media Access Control) address of switch with the replacement of the MAC Address in ARP information message, and replace with the outgoing interface MAC Address of self after the source MAC of message, switch directly forwards message according to target MAC (Media Access Control) address corresponding port, the vlan information with after replacing stored in the ARP information table.As can be seen: what this moment, message carried out also is three layers of encapsulation, but does not follow two layers of forwarding process.
Because the phenomenon that migration also often takes place for deleted phenomenon, MAC Address corresponding port often takes place in MAC Address, mac address table can in time obtain upgrading when above-mentioned phenomenon takes place, therefore two layers of forwarding can not interrupted, thereby, for the exchange chip that adopts three layers of forwarding information of three table storages, because this moment, exchange chip was followed two layers of forwarding process, therefore can not cause three-tier message to be transmitted yet and interrupt; But, for the exchange chip that adopts three layers of forwarding information of two table storages, when migration takes place in the deleted or corresponding port of MAC Address, because MAC Address or port in the ARP information table may not upgrade in time, therefore can cause message because of can't finding port, VLAN or find wrong port, VLAN, and make three layers of converting flows interruption in the network.
At the switch that adopts three layers of forwarding information of two table storages, adopt two kinds of methods to make that when migration took place the deleted and corresponding port of MAC Address, the corresponding informance in the ARP information table can in time obtain upgrading usually:
Method one: deletion ARP information.When migration takes place in deleted or port when MAC Address, the corresponding A RP information that the deletion switch has been learnt, and the routing property of network segment address prefix and next hop address is arranged to go to CPU (toCPU), relearn to trigger ARP information by software.
The defective of this method is: deletion ARP information, and the routing property of network segment address prefix and next hop address is arranged to toCPU, can cause a large amount of messages all to be sent to CPU, cause the occupancy of CPU too high, can cause the upper-layer protocol task in time to be dispatched when serious, thereby make ARP information in time to be relearned, cause the three-tier message converting flow to interrupt.
Method two: send the ARP request.After deleted or port moves when MAC Address, directly do not delete the main frame routing iinformation in the ARP information table, but, relearn to impel ARP information by the ARP request of broadcasting at this MAC Address.The shortcoming of this method is: because often deleted, the corresponding port of MAC Address of switch also often moves, therefore have a large amount of ARP request and response message and send to CPU, to cause the CPU usage height equally, a large amount of ARP messages will block the CPU transmit queue of switch simultaneously, cause losing of ARP request and response message, thereby make ARP information to upgrade in time, finally cause the three-tier message flow interrupt.
Summary of the invention
In view of this, the invention provides a kind of three-layer forwarding method and device,, avoid three layers of converting flow to interrupt with when adopting three layers of forwarding information of two table storages;
In addition, the invention provides a kind of ARP information table update method,, thereby avoid three layers of converting flow to interrupt with the ARP information table that when mac address information changes, upgrades in time.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of three-layer forwarding method, this method adopt the exchange chip of network segment address prefix table and three layers of forwarding information of ARP information table storage to increase the IP address information corresponding with MAC Address in the mac address table of self preserving, and comprising:
A, exchange chip detect mac address information change have taken place, and arrive corresponding ARP information according to the IP address search of this MAC Address correspondence, and according to the mac address information that changes, upgrade corresponding ARP information;
B, exchange chip are received the Ethernet message, carry out three layers of forwarding according to the ARP information after upgrading.
The described exchange chip of steps A detects mac address information and taken place to change into: it is deleted that exchange chip detects MAC Address,
The described exchange chip of steps A upgrades corresponding ARP information and comprises: exchange chip is updated to the port attribute in the ARP information: broadcasting in the VLAN.
Described step B comprises: exchange chip is received the Ethernet message, according to the network segment address prefix of longest match principle in the purpose IP address correspondence that self finds this message, find the ARP information of this network segment address prefix correspondence then, and the port attribute that detects in this ARP information is: broadcasting in the VLAN, then this message of broadcasting in the VLAN of exchange chip appointment in ARP information.
Exchange chip detects MAC Address and further comprises deleted the time:
Exchange chip starts a timer, behind timer expiry, if also not detecting this MAC Address is heavily learnt, then arrives corresponding ARP information according to the IP address search of this MAC Address correspondence, and triggers this ARP information and heavily learn.
Further comprise after the described steps A: exchange chip detects this MAC Address and is heavily learnt, then according to the IP address of this MAC Address correspondence, find corresponding ARP information, the port in the ARP information is updated to the port of learning, and port attribute is updated to clean culture.
The described exchange chip of steps A detects mac address information and taken place to change into: exchange chip detects the corresponding port of MAC Address migration has taken place,
The described exchange chip of steps A upgrades corresponding ARP information and comprises: exchange chip to corresponding ARP information, is updated to port migration after with the port in this ARP information according to the IP address search of this MAC Address correspondence.
A kind of three layers of retransmission unit, this device comprises:
Mac address information upgrades detection module, detects mac address information and changes, and the renewal indication of carrying MAC Address is sent;
Mac address information storage update module is upgraded the renewal indication of carrying MAC Address that detection module is sent according to mac address information, in the IP address of self searching this MAC Address correspondence, the renewal indication of carrying this IP address is sent;
ARP information stores update module is upgraded self the ARP information corresponding with this IP address according to the renewal indication of carrying the IP address that mac address information storage update module is sent; The ARP information request of IP address is carried in reception, and the ARP information that self is corresponding with this IP address is returned;
Transmit control module, receive the Ethernet message, the purpose IP address of this message is carried at sends to ARP information stores update module in the ARP information request, transmit this message according to the ARP information that ARP information stores update module is returned.
Described mac address information upgrades detection module and comprises:
MAC Address deletion detection module detecting MAC Address when deleted, sends the deletion indication of carrying MAC Address to mac address information storage update module;
Port migration detection module when detecting MAC Address corresponding port generation migration, sends the port migration indication of carrying MAC Address and port information to mac address information storage update module.
Described mac address information storage update module comprises:
MAC Address deletion indication receiver module, receive the deletion indication of carrying MAC Address that MAC Address deletion detection module is sent, should delete indication and forward, and, the port attribute that carries this IP address be upgraded indication send according to the IP address of the described MAC Address correspondence that gets access to;
Port migration indication receiver module, the port migration indication of carrying MAC Address and port information that receiving port migration detection module is sent, this port migration indication is forwarded, and, the port that carries this IP address and described port information is upgraded indication send according to the IP address of the described MAC Address correspondence that gets access to;
The mac address information update module receives the deletion indication of carrying MAC Address that MAC Address deletion indication receiver module is sent, and on this MAC Address of self preserving deleted mark is set; The port migration indication of carrying MAC Address and port information that receiving port migration indication receiver module is sent, what self was preserved is updated to the port that this port migration indication is carried with this MAC Address corresponding port, and, then remove this mark if detecting this MAC Address is provided with deleted mark; According to MAC Address deletion indication receiver module and port migration indication receiver module send carry MAC Address obtain the IP Address requests, the IP address of correspondence is returned to MAC Address deletion indication receiver module and port migration indication receiver module.
Described ARP information stores update module comprises:
Port attribute upgrades the indication receiver module, and the port attribute renewal indication of carrying the IP address that the MAC Address deletion indication receiver module that receives is sent forwards;
Port upgrades the indication receiver module, and the port renewal indication of carrying IP address and port information that the port migration indication receiver module that receives is sent forwards;
The ARP information updating module is upgraded the port attribute renewal indication of carrying the IP address that the indication receiver module is sent according to port attribute, and the port attribute in the ARP information that self is corresponding with this IP address is updated to broadcasting; Upgrade the port renewal indication of carrying IP address and port information that the indication receiver module is sent according to port, the port in the ARP information that self is corresponding with this IP address is updated to described port; Receive and transmit the ARP information request of carrying purpose IP address that control module is sent, the ARP information that self is corresponding with this purpose IP address sends to the forwarding control module.
A kind of ARP information table update method, this method adopt the exchange chip of network segment address prefix table and three layers of forwarding information of ARP information table storage to increase the IP address information corresponding with MAC Address in the mac address table of self preserving, and comprising:
Exchange chip detects mac address information change has taken place, and arrives corresponding ARP information according to the IP address search of this MAC Address correspondence, and according to the mac address information that changes, upgrades corresponding ARP information.
Described exchange chip detects mac address information and taken place to change into: it is deleted that exchange chip detects MAC Address,
Described exchange chip upgrades corresponding ARP information and comprises: exchange chip is updated to the port attribute in the ARP information: broadcasting.
Exchange chip detects MAC Address and further comprises deleted the time:
Exchange chip starts a timer, behind timer expiry, if also not detecting this MAC Address is heavily learnt, then arrives corresponding ARP information according to the IP address search of this MAC Address correspondence, and triggers this ARP information and heavily learn.
Described method further comprises: the MAC Address that exchange chip detects in the ARP information is heavily learnt, then according to the IP address of this MAC Address correspondence, find corresponding ARP information, the port in the ARP information is updated to the port of learning, and port attribute is updated to clean culture.
Described exchange chip detects mac address information and taken place to change into: exchange chip detects the corresponding port of MAC Address migration has taken place,
Described exchange chip upgrades corresponding ARP information and comprises: exchange chip to corresponding ARP information, is updated to port migration after with the port in this ARP information according to the IP address search of this MAC Address correspondence.
Compared with prior art, the present invention is by increasing the IP address corresponding with MAC Address in mac address table, when change has taken place in mac address information, according to the ARP information of described IP address search to correspondence, and the mac address information in the ARP information that upgrades in time, avoided when mac address information changes, transmitted port for three layers that cause owing to the ARP information updating is untimely and can't find or search mistake, thus the generation that three layers of converting flow that cause interrupt.Particularly, when MAC Address was deleted, the corresponding port attribute in can ARP information was set to broadcasting; When migration takes place in the corresponding port of MAC Address, port in the ARP information can be upgraded in time and be the port after the migration, after making that mac address information changes, need not message to be sent to CPU heavily learns, need not to send the ARP message to CPU to trigger MAC Address again, when avoiding three layers of converting flow to interrupt, avoided impact to the occupancy of CPU; Further,, can start a timer when deleted detecting mac address information for way flow, and in overtime back regularly timely deletion ARP, relearn to trigger ARP, avoid the generation of the network disruption of way flow.
Description of drawings
When two tables of employing that Fig. 1 provides for the embodiment of the invention are stored three layers of forwarding information, three layers of forwarding process figure when MAC Address is deleted;
When two tables of employing that Fig. 2 provides for the embodiment of the invention are stored three layers of forwarding information, three layers of forwarding process figure when migration takes place the corresponding port of MAC Address;
Three layers of retransmission unit block diagram one that Fig. 3 provides for the embodiment of the invention;
Three layers of retransmission unit block diagram two that Fig. 4 provides for the embodiment of the invention.
Embodiment
Core concept of the present invention is: for the exchange chip that adopts three layers of forwarding information of two table storages, in mac address table, increase the IP address corresponding with MAC Address, when MAC Address is deleted, deleted mark is set in mac address table, and, the port attribute in the ARP information is arranged to broadcast in the VLAN according to the ARP information of IP address search to correspondence; When migration takes place in the corresponding port of MAC Address, port in the mac address table is updated to port after the migration, and according to the ARP information of IP address search to correspondence, port in the ARP information also is updated to port after the migration, thereby realized upgrading in time of ARP information table, avoided the interruption of three layers of converting flow.
The present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
When Fig. 1 is three layers of forwarding information of two table storages of employing provided by the invention, the flow chart of three layers of forwarding when MAC Address is deleted, as shown in Figure 1, its concrete steps are as follows:
Step 101: exchange chip increases the IP address of each MAC Address correspondence in mac address table.
Step 102: it is deleted that exchange chip detects certain MAC Address, in mac address table for this MAC Address is provided with deleted mark, and in mac address table the record this MAC Address the deleted moment.
Step 103: exchange chip finds the IP address of this MAC Address correspondence in mac address table, in the network segment address prefix table, find the network segment address prefix of mating most according to longest match principle then with this IP address, and then finding the ARP information corresponding with this network segment address prefix, the port attribute in this ARP information is set to: broadcasting in the VLAN.
For unidirectional Ethernet message,, therefore can't trigger the study again of MAC Address owing to there is not corresponding Ethernet message to return.Three-tier message converting flow for fear of this MAC Address correspondence interrupts, in the present invention, exchange chip detects certain MAC Address deleted the time, further comprise: start a timer, when exchange chip detects this timer expiry, and this MAC Address do not relearned as: deleted mark is not eliminated, then in mac address table, find the IP address of this MAC Address correspondence, find the network segment address prefix of this IP address correspondence then, and then find the ARP information of this network segment address prefix correspondence, with this ARP information deletion, relearn to trigger ARP information.
Step 104: exchange chip receives the Ethernet message.
Step 105: exchange chip is according to the purpose IP address of this message, according to longest match principle, self finding the network segment address prefix of mating most with this purpose IP address, find corresponding ARP information according to this network segment address prefix then, with the target MAC (Media Access Control) address of the replacement of the MAC Address in ARP information message, replace the source MAC of message with the outgoing interface MAC Address of self.
Step 106: the port attribute that exchange chip detects in the ARP information is: broadcasting in the VLAN, will broadcast in the VLAN of this message in ARP information.
Further, after exchange chip detects deleted MAC Address and is relearned, remove the deleted mark that is arranged in the mac address table on this MAC Address, and the IP address search by this MAC Address correspondence of preserving in the mac address table is to corresponding ARP information, port in the ARP information is updated to the new port of learning, port attribute is updated to clean culture by broadcasting.
As can be seen: when MAC Address is deleted, because by ARP information table step of updating promptly: the corresponding port attribute in step 101~103 ARP information tables is set to broadcasting, makes message to forward, and has avoided the interruption of three layers of converting flow.
When Fig. 2 is three layers of forwarding information of two table storages of employing provided by the invention, the flow chart of three layers of forwarding during the originating port migration, as shown in Figure 2, its concrete steps are as follows:
Step 201: exchange chip increases the IP address of each MAC Address correspondence in mac address table.
Step 202: the port that exchange chip detects certain MAC Address moves, and this MAC Address corresponding port of preserving in the mac address table is updated to port after the migration.
Step 203: exchange chip is according to the IP address of this MAC Address correspondence of preserving in the mac address table, according to longest match principle, self finding the network segment address prefix of mating most with this IP address, find corresponding ARP information according to this network segment address prefix then, the port in the ARP information is updated to port after the migration.
Step 204: exchange chip receives the Ethernet message.
Step 205: exchange chip is according to the purpose IP address of this message, according to longest match principle, self finding the network segment address prefix of mating most with this purpose IP address, find corresponding ARP information according to this network segment address prefix then, with the target MAC (Media Access Control) address of the replacement of the MAC Address in ARP information message, replace the source MAC of message with the outgoing interface MAC Address of self.
Step 206: exchange chip sends port, the VLAN of message from ARP information.
As can be seen: when migration takes place the corresponding port of MAC Address, because by ARP information table step of updating promptly: step 201~203 upgrade the corresponding port in the ARP information table in time and are the port after the migration, make message to forward, avoided the interruption of three layers of converting flow by correct port.
Fig. 3 is the device block diagram one of three layers of forwarding provided by the invention, and as shown in Figure 3, this device comprises: mac address information upgrades detection module 31, mac address information storage update module 32, ARP information stores update module 33 and transmits control module 34, wherein:
Mac address information upgrades detection module 31: be used for sending the renewal indication of carrying MAC Address to mac address information storage update module 32 after detecting mac address information and changing.
Mac address information storage update module 32: be used to preserve mac address information promptly: the corresponding relation of preserving MAC Address, port, VLAN, IP address, upgrade the renewal indication that detection module 31 is sent according to mac address information, the corresponding mac address information of self preserving that upgrades, and upgrade the IP address of the MAC Address correspondence that detection module 31 sends self searching mac address information, send the renewal indication of carrying this IP address to ARP information stores update module 33 then.
ARP information stores update module 33: the corresponding relation of preserving network segment address prefix and ARP information promptly: the corresponding relation of preserving network segment address prefix, MAC Address, port, vlan information etc., after receiving the renewal indication of carrying the IP address that mac address information storage update module 32 is sent, according to longest match principle, self finding the network segment address prefix of mating most with this IP address, thereby find the ARP information corresponding, according to the corresponding ARP information of upgrading of described renewal indication with this network segment address prefix; After receiving the ARP information request of carrying purpose IP address that forwarding control module 34 is sent, according to longest match principle, self finding the network segment address prefix of mating most with this purpose IP address, thereby find the ARP information corresponding, the MAC Address in the ARP information, port and vlan information are returned to transmit control module 34 with this network segment address prefix.
Transmit control module 34: after receiving the Ethernet message, the purpose IP address of this Ethernet message is carried at sends to ARP information stores update module 33 in the ARP information request, and replace the target MAC (Media Access Control) address of this message with the MAC Address that ARP information stores update module 33 is returned, the outgoing interface MAC Address of preserving with self is replaced the source MAC of this message, and transmits this message according to port and vlan information that ARP information stores update module 33 is returned.
Fig. 4 is three layers of retransmission unit block diagram two provided by the invention, and as shown in Figure 4, this figure compares with Fig. 3:
Mac address information upgrades detection module 31 and mainly comprises: MAC Address deletion detection module 311 and port migration detection module 312, wherein:
MAC Address deletion detection module 311: be used for sending the deletion indication of carrying MAC Address to mac address information storage update module 32 detecting MAC Address when deleted;
Port migration detection module 312: be used for when detecting MAC Address corresponding port generation migration, the port that sends the port information after carrying MAC Address and migration to mac address information storage update module 32 moves indication.
Mac address information storage update module 32 mainly comprises: MAC Address deletion indication receiver module 321, port migration indication receiver module 322 and mac address information update module 323, wherein:
MAC Address deletion indication receiver module 321: be used to receive the deletion indication of carrying MAC Address that MAC Address deletion detection module 311 is sent, and should delete indication and be transmitted to mac address information update module 323, to the IP address that mac address information update module 323 is obtained this MAC Address correspondence, send the port attribute that carries this IP address to ARP information stores update module 33 then and upgrade indication simultaneously;
Port migration indication receiver module 322: be used for the port migration indication of carrying MAC Address and port information that receiving port migration detection module 312 is sent, this port migration indication is transmitted to mac address information update module 323, and, send the port that carries the port information in this IP address and the described port migration indication to ARP information stores update module 33 then and upgrade indication to the IP address that mac address information update module 323 is obtained the MAC Address correspondence that port migration detection module 312 sends;
Mac address information update module 323: preserve mac address information promptly: the corresponding relation of preserving MAC Address, port, VLAN, IP address, after receiving the deletion indication of carrying MAC Address that MAC Address deletion indication receiver module 321 is sent, on this MAC Address of self preserving, deleted mark is set, and writes down the deletion moment of this MAC Address; After receiving the port migration indication of carrying MAC Address and port information that port migration indication receiver module 322 is sent, what self was preserved is updated to the port that this port migration indication is carried with this MAC Address corresponding port, and, then remove this mark if detecting this MAC Address is provided with deleted mark; According to MAC Address deletion indication receiver module 321 and port migration indication receiver module 322 send carry MAC Address obtain the IP Address requests, IP address that will be corresponding with described MAC Address returns to MAC Address deletion indication receiver module 321 and port migration indication receiver module 322.
ARP information stores update module 33 mainly comprises: port attribute upgrades indication receiver module 331, port upgrades indication receiver module 332 and ARP information updating module 333, wherein:
Port attribute upgrades indication receiver module 331: be used to receive the port attribute renewal indication of carrying the IP address that MAC Address deletion indication receiver module 321 is sent, this port attribute upgraded indication be transmitted to ARP information updating module 333;
Port upgrades indication receiver module 332: be used for the port renewal indication of carrying IP address and port information that receiving port migration indication receiver module 322 is sent, this port upgraded indication be transmitted to ARP information updating module 333;
ARP information updating module 333: the corresponding relation that is used to preserve network segment address prefix and ARP information, after receiving that the port attribute that carries the IP address upgrades indication, according to longest match principle, self searching the network segment address prefix of mating most, then the port attribute in the ARP information of this network segment address prefix correspondence is updated to broadcasting with this IP address; After receiving that the port that carries IP address and port information upgrades indication, according to longest match principle, self searching the network segment address prefix of mating most, then the port in the ARP information of this network segment address prefix correspondence is being updated to described port and upgrades the port that indication is carried with this IP address; After receiving the ARP information request of carrying purpose IP address that forwarding control module 34 is sent, according to longest match principle, self searching the network segment address prefix of mating most, MAC Address, port and vlan information in the ARP information of this network segment address prefix correspondence are being sent to transmit control module 34 then with this purpose IP address.
The above only is process of the present invention and method embodiment, in order to restriction the present invention, all any modifications of being made within the spirit and principles in the present invention, is not equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (15)

1, a kind of three-layer forwarding method, it is characterized in that, adopt the exchange chip of three layers of forwarding information of network segment address prefix table and ARP information table storage to increase the IP address information corresponding with MAC Address in the media access control MAC address table of self preserving, this method comprises:
A, exchange chip detect mac address information change have taken place, and arrive corresponding ARP information according to the IP address search of this MAC Address correspondence, and according to the mac address information that changes, upgrade corresponding ARP information;
B, exchange chip are received the Ethernet message, carry out three layers of forwarding according to the ARP information after upgrading.
2, the method for claim 1 is characterized in that, the described exchange chip of steps A detects mac address information and taken place to change into: it is deleted that exchange chip detects MAC Address,
The described exchange chip of steps A upgrades corresponding ARP information and comprises: exchange chip is updated to the port attribute in the ARP information: broadcasting in the virtual LAN VLAN.
3, method as claimed in claim 2, it is characterized in that, described step B comprises: exchange chip is received the Ethernet message, according to the network segment address prefix of longest match principle in the purpose IP address correspondence that self finds this message, find the ARP information of this network segment address prefix correspondence then, and the port attribute that detects in this ARP information is: broadcasting in the VLAN, then this message of broadcasting in the VLAN of exchange chip appointment in ARP information.
4, method as claimed in claim 2 is characterized in that, exchange chip detects MAC Address and further comprises deleted the time:
Exchange chip starts a timer, behind timer expiry, if also not detecting this MAC Address is heavily learnt, then arrives corresponding ARP information according to the IP address search of this MAC Address correspondence, and triggers this ARP information and heavily learn.
5, method as claimed in claim 2, it is characterized in that, further comprise after the described steps A: exchange chip detects this MAC Address and is heavily learnt, then according to the IP address of this MAC Address correspondence, find corresponding ARP information, port in the ARP information is updated to the port of learning, and port attribute is updated to clean culture.
6, the method for claim 1 is characterized in that, the described exchange chip of steps A detects mac address information and taken place to change into: exchange chip detects the corresponding port of MAC Address migration has taken place,
The described exchange chip of steps A upgrades corresponding ARP information and comprises: exchange chip to corresponding ARP information, is updated to port migration after with the port in this ARP information according to the IP address search of this MAC Address correspondence.
7, a kind of three layers of retransmission unit is characterized in that this device comprises:
Mac address information upgrades detection module, detects mac address information and changes, and the renewal indication of carrying MAC Address is sent;
Mac address information storage update module is upgraded the renewal indication of carrying MAC Address that detection module is sent according to mac address information, in the IP address of self searching this MAC Address correspondence, the renewal indication of carrying this IP address is sent;
ARP information stores update module is upgraded self the ARP information corresponding with this IP address according to the renewal indication of carrying the IP address that mac address information storage update module is sent; The ARP information request of IP address is carried in reception, and the ARP information that self is corresponding with this IP address is returned;
Transmit control module, receive the Ethernet message, the purpose IP address of this message is carried at sends to ARP information stores update module in the ARP information request, transmit this message according to the ARP information that ARP information stores update module is returned.
8, device as claimed in claim 7 is characterized in that, described mac address information upgrades detection module and comprises:
MAC Address deletion detection module detecting MAC Address when deleted, sends the deletion indication of carrying MAC Address to mac address information storage update module;
Port migration detection module when detecting MAC Address corresponding port generation migration, sends the port migration indication of carrying MAC Address and port information to mac address information storage update module.
9, device as claimed in claim 8 is characterized in that, described mac address information storage update module comprises:
MAC Address deletion indication receiver module, receive the deletion indication of carrying MAC Address that MAC Address deletion detection module is sent, should delete indication and forward, and, the port attribute that carries this IP address be upgraded indication send according to the IP address of the described MAC Address correspondence that gets access to;
Port migration indication receiver module, the port migration indication of carrying MAC Address and port information that receiving port migration detection module is sent, this port migration indication is forwarded, and, the port that carries this IP address and described port information is upgraded indication send according to the IP address of the described MAC Address correspondence that gets access to;
The mac address information update module receives the deletion indication of carrying MAC Address that MAC Address deletion indication receiver module is sent, and on this MAC Address of self preserving deleted mark is set; The port migration indication of carrying MAC Address and port information that receiving port migration indication receiver module is sent, what self was preserved is updated to the port that this port migration indication is carried with this MAC Address corresponding port, and, then remove this mark if detecting this MAC Address is provided with deleted mark; According to MAC Address deletion indication receiver module and port migration indication receiver module send carry MAC Address obtain the IP Address requests, the IP address of correspondence is returned to MAC Address deletion indication receiver module and port migration indication receiver module.
10, device as claimed in claim 9 is characterized in that, described ARP information stores update module comprises:
Port attribute upgrades the indication receiver module, and the port attribute renewal indication of carrying the IP address that the MAC Address deletion indication receiver module that receives is sent forwards;
Port upgrades the indication receiver module, and the port renewal indication of carrying IP address and port information that the port migration indication receiver module that receives is sent forwards;
The ARP information updating module is upgraded the port attribute renewal indication of carrying the IP address that the indication receiver module is sent according to port attribute, and the port attribute in the ARP information that self is corresponding with this IP address is updated to broadcasting; Upgrade the port renewal indication of carrying IP address and port information that the indication receiver module is sent according to port, the port in the ARP information that self is corresponding with this IP address is updated to described port; Receive and transmit the ARP information request of carrying purpose IP address that control module is sent, the ARP information that self is corresponding with this purpose IP address sends to the forwarding control module.
11, a kind of ARP information table update method is characterized in that, adopts the exchange chip of three layers of forwarding information of network segment address prefix table and ARP information table storage to increase the IP address information corresponding with MAC Address in the mac address table of self preserving, and this method comprises:
Exchange chip detects mac address information change has taken place, and arrives corresponding ARP information according to the IP address search of this MAC Address correspondence, and according to the mac address information that changes, upgrades corresponding ARP information.
12, method as claimed in claim 11 is characterized in that, described exchange chip detects mac address information and taken place to change into: it is deleted that exchange chip detects MAC Address,
Described exchange chip upgrades corresponding ARP information and comprises: exchange chip is updated to the port attribute in the ARP information: broadcasting.
13, method as claimed in claim 12 is characterized in that, exchange chip detects MAC Address and further comprises deleted the time:
Exchange chip starts a timer, behind timer expiry, if also not detecting this MAC Address is heavily learnt, then arrives corresponding ARP information according to the IP address search of this MAC Address correspondence, and triggers this ARP information and heavily learn.
14, method as claimed in claim 12, it is characterized in that, described method further comprises: the MAC Address that exchange chip detects in the ARP information is heavily learnt, then according to the IP address of this MAC Address correspondence, find corresponding ARP information, port in the ARP information is updated to the port of learning, and port attribute is updated to clean culture.
15, method as claimed in claim 11 is characterized in that, described exchange chip detects mac address information and taken place to change into: exchange chip detects the corresponding port of MAC Address migration has taken place,
Described exchange chip upgrades corresponding ARP information and comprises: exchange chip to corresponding ARP information, is updated to port migration after with the port in this ARP information according to the IP address search of this MAC Address correspondence.
CNB200610083303XA 2006-05-31 2006-05-31 Three-layer forwarding method, device and ARP information table updating method Active CN100452772C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200610083303XA CN100452772C (en) 2006-05-31 2006-05-31 Three-layer forwarding method, device and ARP information table updating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200610083303XA CN100452772C (en) 2006-05-31 2006-05-31 Three-layer forwarding method, device and ARP information table updating method

Publications (2)

Publication Number Publication Date
CN1878139A CN1878139A (en) 2006-12-13
CN100452772C true CN100452772C (en) 2009-01-14

Family

ID=37510436

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200610083303XA Active CN100452772C (en) 2006-05-31 2006-05-31 Three-layer forwarding method, device and ARP information table updating method

Country Status (1)

Country Link
CN (1) CN100452772C (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136807B (en) * 2007-07-04 2010-09-01 中兴通讯股份有限公司 Port VLAN based switching chip port detecting method
CN101094187B (en) * 2007-07-30 2010-06-09 杭州华三通信技术有限公司 Method, device, and operation board capable of learning address of medium access control
CN101110769B (en) * 2007-08-02 2010-08-25 杭州华三通信技术有限公司 Package transmitting method and system based on safety service
CN101197787B (en) * 2008-01-03 2010-08-25 杭州华三通信技术有限公司 Packet information learning method and apparatus
CN101540731B (en) * 2009-04-30 2011-06-08 杭州华三通信技术有限公司 Three-tier message retransmission method and device
US10033585B2 (en) * 2010-12-15 2018-07-24 Juniper Networks, Inc. Methods and apparatus related to a switch fabric system having a multi-hop distributed control plane and a single-hop data plane
CN103379045B (en) * 2012-04-17 2017-05-31 中国移动通信集团广东有限公司 Method and converge layer switch that a kind of access device is migrated between the ports
CN103023800A (en) * 2012-11-29 2013-04-03 北京航空航天大学 Method for scheduling traffic under multi-core network processor by traffic chart mapping scheduling strategy
CN103117934A (en) * 2013-01-25 2013-05-22 上海斐讯数据通信技术有限公司 Method for updating port address after port migration
CN103546595B (en) * 2013-10-31 2017-01-25 烽火通信科技股份有限公司 Mainframe route maintaining method based on xPON
CN105991794B (en) * 2015-06-01 2019-05-07 杭州迪普科技股份有限公司 A kind of address learning method and device
CN105072208A (en) * 2015-07-09 2015-11-18 北京宇航系统工程研究所 MAC address learning method of SDH device
CN107528929B (en) * 2016-06-21 2021-05-14 中兴通讯股份有限公司 ARP (Address resolution protocol) entry processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0845889A2 (en) * 1996-11-29 1998-06-03 Anritsu Corporation Router for high-speed packet communication between terminal apparatuses in different LANs
EP1119139A2 (en) * 1999-12-30 2001-07-25 Nortel Networks Limited Method and apparatus for providing dynamic host configuration protocol (DHCP) tagging
CN1682516A (en) * 2002-09-16 2005-10-12 思科技术公司 Method and apparatus for preventing spoofing of network addresses
CN1764193A (en) * 2005-11-23 2006-04-26 杭州华为三康技术有限公司 Method for renewing address analysis protocol rapidly

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0845889A2 (en) * 1996-11-29 1998-06-03 Anritsu Corporation Router for high-speed packet communication between terminal apparatuses in different LANs
EP1119139A2 (en) * 1999-12-30 2001-07-25 Nortel Networks Limited Method and apparatus for providing dynamic host configuration protocol (DHCP) tagging
CN1682516A (en) * 2002-09-16 2005-10-12 思科技术公司 Method and apparatus for preventing spoofing of network addresses
CN1764193A (en) * 2005-11-23 2006-04-26 杭州华为三康技术有限公司 Method for renewing address analysis protocol rapidly

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
ARP协议与IP地址与MAC地址的绑定. 马伟强.中国科技信息,第2期. 2005
ARP协议与IP地址与MAC地址的绑定. 马伟强.中国科技信息,第2期. 2005 *
The ARP Virtual Reality System in Addressing SecurityThreats and Disaster Scenarios. Yang-Wai Chow,Ronald Pose,Matthew Regan.TENCON 2005 IEEE Region 10. 2005
The ARP Virtual Reality System in Addressing SecurityThreats and Disaster Scenarios. Yang-Wai Chow,Ronald Pose,Matthew Regan.TENCON 2005 IEEE Region 10. 2005 *

Also Published As

Publication number Publication date
CN1878139A (en) 2006-12-13

Similar Documents

Publication Publication Date Title
CN100452772C (en) Three-layer forwarding method, device and ARP information table updating method
CN102413046B (en) Method for forwarding flow by means of virtual router redundancy protocol backup set and equipment
US8718061B2 (en) Data center network system and packet forwarding method thereof
CN100490418C (en) Virtual local network-based data exchanging method and equipment
CN101877671B (en) Sending method of mirror image message, switch chip and Ethernet router
US7869439B1 (en) Varying packet switch behavior based on a quantity of virtual interfaces associated with a virtual switch
CN102316041B (en) Router switching method and device
CN105704045B (en) The method of virtual machine location information synchronizing, gateway and system between data center's gateway
JPWO2004112327A1 (en) Router device and network connection method
CN103329469A (en) Method of shrinking a data loss window in a packet network device
US7007100B1 (en) Method for synchronization of multicast routing table changes with a plurality of multicast routing protocols
WO2014114196A1 (en) Keeping a terminal access location record alive
CN102546389A (en) Method and device for flow trusteeship of cross-data center
CN103516612A (en) Method for generating routing table items in a distributed router, and distributed router
CN101588299A (en) The veneer of the message forwarding method of distributed apparatus and distributed apparatus and this equipment
CN101414972B (en) Method and apparatus for updating information
US7099323B1 (en) Method, apparatus and system for management of multicast routes for a plurality of routing protocols in a network device
CN101340377B (en) Method, apparatus and system for data transmission in double layer network
CN101800694B (en) Resource warning processing method and routing switching equipment
US7729291B2 (en) System and method for reducing traffic in a wide area Ethernet network
CN102045234B (en) Buffering and overtime processing methods of route address mapping information as well as tunnel router
US7546496B2 (en) Packet transmission device and packet transmission method
CN102891902A (en) Media access control address updating method and network equipment
CN102938704A (en) Access management method, device and system
CN102045262A (en) Updating method, device and network equipment of media access control address table

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address