CN102217253B - Message forwarding method, equipment and network device - Google Patents

Message forwarding method, equipment and network device Download PDF

Info

Publication number
CN102217253B
CN102217253B CN201180000590.2A CN201180000590A CN102217253B CN 102217253 B CN102217253 B CN 102217253B CN 201180000590 A CN201180000590 A CN 201180000590A CN 102217253 B CN102217253 B CN 102217253B
Authority
CN
China
Prior art keywords
message
identification information
hop
mac address
address
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.)
Expired - Fee Related
Application number
CN201180000590.2A
Other languages
Chinese (zh)
Other versions
CN102217253A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN102217253A publication Critical patent/CN102217253A/en
Application granted granted Critical
Publication of CN102217253B publication Critical patent/CN102217253B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/66Layer 2 routing, e.g. in Ethernet based MAN's

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Embodiments of the present invention provide a message forwarding method, equipment and network device, wherein the message forwarding method includes the following steps: a layer 3 routing table is queried, according to the destination internet protocol (IP) address of a received message, to acquire the next-hop identification information; an address resolution protocol (ARP) table is queried, according to the next-hop identification information, to acquire the next-hop media access control (MAC) address corresponding to the next-hop identification information, wherein the ARP table is composed of the next-hop identification information and the next-hop MAC address corresponding to the next-hop identification information; a layer 2 forwarding table is queried, according to the next-hop MAC address, to acquire the exit port information corresponding to the next-hop MAC address; the message is forwarded out via the exit port corresponding to the exit port information. By applying the technical solution of the present invention to forward the message, the instantaneous busy problem of the device and the problem of the traffic interruption can be solved, wherein the problems are caused by that a large number of ARP Miss messages and ARP request messages are generated when the port switch in a virtual local area network (VLAN) occurs in the prior art. Therefore, the forwarding efficiency of the message is improved.

Description

Message forwarding method, device and the network equipment
Technical field
The embodiment of the invention relates to the network communications technology, relates in particular to a kind of message forwarding method, device and the network equipment.
Background technology
Existing three-tier switch passes through same VLAN (Virtual Local Area Network; Abbreviate as: VLAN) Nei physical port is bound virtual port (VLANIF), and is virtual port configuration of the Internet protocol (Internet Protocol; Abbreviate as: IP) address, media interviews control (Media Access Control; Abbreviate as: MAC) three layers of forwarding are waited to realize in the address.
Three layers of repeating process based on VLANIF are: forwarding module is when receiving message, at first according to three layers of routing table of purpose IP address search of message, obtain outgoing interface information and the next-hop ip address of purpose IP address correspondence, search address resolution protocol (Address Resolution Protocol according to outgoing interface information and next-hop ip address again; Abbreviate as: ARP) table, obtain corresponding MAC Address and outbound port information, message is transmitted to the network equipment of MAC Address correspondence from this outbound port information corresponding physical port.When if forwarding module is searched the ARP table according to outgoing interface information and next-hop ip address, do not match corresponding MAC Address and outbound port information, will report ARP to lose (MISS) message and give the ARP module, learn so that the ARP module is carried out ARP to all physical ports transmission ARP request messages under this VLANIF.
Wherein, under the scene of VLAN inner port backup (Port Backup), when the master port fault, the user can switch on the standby port, and three-tier switch can be with the ARP list deletion under the master port.In this case, when receiving message, forwarding module can report ARP to lose (Miss) message to the ARP module because searching less than the ARP table, ARP module all physical port broadcast arp request messages under the corresponding VLAN IF are being the ARP table that standby port is set up information such as storage user's IP address, MAC Address and corresponding outbound port by carrying out ARP study again.
In realizing process of the present invention, the inventor finds that prior art has the following disadvantages at least: the user on master port more for a long time, can cause a large amount of ARP Miss message and a large amount of ARP request message, this will cause equipment moment extremely busy, and in the ARP learning process, also can cause the interruption of flow, reduce message forwarding efficiency.
Summary of the invention
The embodiment of the invention provides a kind of message forwarding method, device and the network equipment, causes when master port and standby port switch in the prior art in order to solve that equipment is extremely busy, the problem of flow interrupt, improves message forwarding efficiency.
The embodiment of the invention provides a kind of message forwarding method, comprising:
According to the three layers of routing table of purpose Internet protocol IP address lookup that receive message, obtain next and jump identification information;
According to described next jumping identification information inquire address analysis protocol ARP table, obtain next corresponding with described next jumping identification information and jump media interviews control MAC Address, described ARP table is made up of the next-hop mac address of described next jumping identification information and described next jumping identification information correspondence;
According to described next-hop mac address inquiry two-layer retransmitting table, obtain described next-hop mac address corresponding output port information;
Described message is forwarded from described outbound port information corresponding output port.
The embodiment of the invention provides a kind of apparatus for forwarding message, comprising:
First acquisition module is used for according to the three layers of routing table of purpose Internet protocol IP address lookup that receive message, obtains next and jumps identification information;
Second acquisition module, be used for according to described next jumping identification information inquire address analysis protocol ARP table, obtain next corresponding with described next jumping identification information and jump media interviews control MAC Address, described ARP table is made up of the next-hop mac address of described next jumping identification information and described next jumping identification information correspondence;
The 3rd acquisition module is used for obtaining described next-hop mac address corresponding output port information according to described next-hop mac address inquiry two-layer retransmitting table;
Forwarding module is used for described message is forwarded from described outbound port information corresponding output port.
The embodiment of the invention provides a kind of network equipment, comprises the apparatus for forwarding message that the embodiment of the invention provides.
The message forwarding method of the embodiment of the invention, device and the network equipment, adopt the three layers of routing table of purpose IP address lookup according to the message that receives, obtain next and jump identification information, jump the ARP table that the identification information inquiry is made up of the next-hop mac address of next jumping identification information and next jumping identification information correspondence according to next then, obtain corresponding MAC Address, again according to the MAC Address inquiry two-layer retransmitting table that obtains, from described two-layer retransmitting table, obtain and described MAC Address corresponding output port information, thereby the technical scheme that message is forwarded from the outbound port that obtains, because ARP table only comprises that next jumps identification information and the MAC Address of correspondence with it, no longer comprise and MAC Address corresponding output port information, when port switches, do not need to carry out ARP study, and the study that utilizes two-layer retransmitting table realizes the renewal of MAC Address and outbound port information corresponding relation, solved when port switches because producing the problem that a large amount of ARP Miss messages and ARP request message cause extremely busy and flow interrupt of equipment moment, improved message forwarding efficient.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply, apparently, accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
The flow chart of the message forwarding method that Fig. 1 provides for one embodiment of the invention;
The structural representation of the apparatus for forwarding message that Fig. 2 provides for one embodiment of the invention;
The structural representation of the apparatus for forwarding message that Fig. 3 provides for further embodiment of this invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The flow chart of the message forwarding method that Fig. 1 provides for one embodiment of the invention.As shown in Figure 1, the method for present embodiment comprises:
Step 11, basis receive three layers of routing table of purpose IP address lookup of message, obtain next and jump identification information;
When other equipment in the network send message to three-tier switch, can in the message that sends, carry IP address information (source IP address and purpose IP address), carry out three layers of forwarding for three-tier switch.Three-tier switch carries out three layers and transmits base three layers of routing table of storage thereon, stores purpose IP address and next jumping identification information corresponding with purpose IP address in these three layers of routing tables.Next of present embodiment jumped identification information and mainly referred to the information of the route outgoing interface corresponding with purpose IP address and the next-hop ip address of this route outgoing interface, and the information of route outgoing interface comprises outgoing interface type and outgoing interface index.When the route outgoing interface was physical port under the VLANIF, the type of this outgoing interface was VLANIF, and the outgoing interface index is the VLAN value that VLANIF is designated this VLANIF correspondence.For example: if create the VLANIF of VLAN 100 correspondences, then the outgoing interface index of VLANIF correspondence is VLAN 100.
Three-tier switch analytic message and the purpose IP address that obtains message are three layers of routing table of input inquiry with the purpose IP address of message; If in three layers of routing table, inquire the IP address identical with purpose IP address, then obtain corresponding next the jumping identification information in the IP address identical with purpose IP address.
Wherein, for the message that receives, if local three-tier switch is its final jump, namely the purpose IP address of message is the IP address of certain physical port of three-tier switch, next that then obtain jumped in the identification information will not comprise next-hop ip address, and only comprise route outgoing interface information.If local three-tier switch is not its final jump, next that then obtain jumped identification information and comprised route outgoing interface information and next-hop ip address simultaneously.
In the present embodiment, be that physical port under the VLANIF is example with the route outgoing interface, then the outgoing interface information spinner will refer to the VLANIF sign, that is the VLAN value of VLANIF correspondence.
Step 12, jump identification information inquiry ARP table according to next, obtain with next and jump the corresponding next-hop mac address of identification information, described ARP table is jumped identification information and next by next and is jumped next-hop mac address of identification information correspondence and form;
Wherein, next-hop mac address refers to the MAC Address of next-hop ip address corresponding physical equipment.In the present embodiment, ARP table by next jump identification information and with it the next-hop mac address of correspondence form.Namely when next jumping identification information comprises next-hop ip address, only comprise the corresponding relation of route outgoing interface information, next-hop ip address and next-hop mac address in the ARP table; When next jumps identification information when not comprising next-hop ip address, the ARP table only comprise certain physical port on route outgoing interface information, the three-tier switch IP address (being the purpose IP address of message) and with the MAC Address of the direct-connected equipment of this physical port.
Concrete, when next jumping identification information comprises route outgoing interface sign (for example VLANIF sign) and next-hop ip address, three-tier switch specifically with route outgoing interface sign (with next-hop ip address be input inquiry ARP table, and obtain the MAC Address (being next-hop mac address) in the list item that all mates with route outgoing interface sign and next-hop ip address in the ARP table.Wherein, but this next-hop mac address unique identification receives next physical equipment of this message.
When next jumps that identification information only comprises route outgoing interface sign and when not comprising next-hop ip address, three-tier switch is input inquiry ARP table with the purpose IP address in route outgoing interface sign and the message, and obtain in the ARP table identify with the route outgoing interface and message in the list item that all mates of purpose IP address in MAC Address (being next-hop mac address).At this moment, this next-hop mac address corresponding physical equipment directly links to each other with three-tier switch by route outgoing interface sign corresponding physical port, and is the final recipient of this message.
Step 13, according to next-hop mac address inquiry two-layer retransmitting table, obtain the next-hop mac address corresponding output port;
Because in the present embodiment, do not store the port information that the network equipment of next-hop mac address correspondence is connected with three-tier switch in the ARP table, therefore, three-tier switch is after inquiry ARP table gets access to next-hop mac address, further according to the next-hop mac address inquiry two-layer retransmitting table that obtains, to obtain next-hop mac address corresponding port information (being outbound port information).
Wherein, on three-tier switch, also store two-layer retransmitting table, store the MAC Address of port information and the network equipment that each physical port connects of three-tier switch in this two-layer retransmitting table, carry out two layers of forwarding for three-tier switch.Concrete, three-tier switch as the input inquiry two-layer retransmitting table, and obtains MAC Address corresponding port information identical with this next-hop mac address in the two-layer retransmitting table with the next-hop mac address obtained.
Step 14, message is forwarded from described outbound port information corresponding output port.
After obtaining the next-hop mac address corresponding output port, three-tier switch forwards message from this outbound port, namely is transmitted to the network equipment of next-hop mac address correspondence.
The message forwarding method of present embodiment, three-tier switch is at first according to three layers of routing table of purpose IP address search of message, obtain next and jump identification information, jump identification information inquiry ARP table according to next then and obtain next-hop mac address, search two-layer retransmitting table according to the next-hop mac address of obtaining again, obtain outbound port, by outbound port message is forwarded, make the ARP table can only comprise next jumping identification information and corresponding MAC Address, and no longer comprise and MAC Address corresponding port information, therefore, when the switching of VLAN inner port takes place, do not need to carry out ARP study, can utilize the study of two-layer retransmitting table to realize the renewal of MAC Address and port information corresponding relation, solved when the VLAN inner port taking place switch because producing the problem that a large amount of ARP Miss messages and ARP request message cause extremely busy and flow interrupt of three-tier switch moment, improved message forwarding efficient.
Based on above-described embodiment, support at VLAN under the situation of port backup, master port and backup port switch, the network equipment that is connected with master port is described, again be connected with three-tier switch by another physical port (backup port), illustrate that switching has taken place the outbound port between three-tier switch and this network equipment.Wherein, because the outbound port before and after switching belongs to same VLAN, therefore, the VLANIF sign does not change with the corresponding relation of MAC Address; Again because only comprise the corresponding relation of VLANIF sign, next-hop ip address and next-hop mac address in the ARP of the present embodiment table, and do not comprise port information, therefore, when outbound port switches, information in the ARP table can not change, do not need to trigger ARP study, just can not produce a large amount of ARP Miss message and a large amount of ARP request message yet, alleviated the burden of three-tier switch when port switches, simultaneously owing to do not carry out ARP study and just not can produce because the flow interrupt that ARP study causes has improved the efficient and the quality that E-Packet yet.
Further, for three-tier switch, when receiving message, three-tier switch can be by obtaining employed physical port when receiving message and resolving the message that receives to obtain source MAC wherein, set up the corresponding relation of the MAC Address of the network equipment that physical port is connected with physical port, to form two-layer retransmitting table.In addition, three-tier switch also can dynamically update two-layer retransmitting table according to the actual operating position of its each physical port, and its renewal process is identical with the process of above-mentioned formation two-layer retransmitting table.Therefore, when the port in VLAN takes place switches, three-tier switch can be learnt physical port according to the message that receives switching has taken place, and according to the physical port renewal two-layer retransmitting table after switching, the MAC Address corresponding port information updating that is about to former outbound port correspondence is the outbound port after switching; The corresponding relation of the MAC Address that the information of the outbound port after will bank switching in the two-layer retransmitting table after renewal is corresponding with former outbound port.Because the two-layer retransmitting table on the three-tier switch is safeguarded by special hardware module that usually therefore, its renewal speed compares comparatively fast.
Based on above-mentioned, under the situation that port switches, the MAC Address of obtaining according to inquiry ARP table when three-tier switch, remove to inquire about two-layer retransmitting table to carry out two layers when transmitting, can obtain correct outbound port, namely can get access to the outbound port after the switching, thereby guarantee that message transmits by correct outbound port, can guarantee that namely message is successfully transmitted.
In the various embodiments described above, before jumping identification information inquiry ARP table according to next, obtaining next next-hop mac address of jumping the identification information correspondence, also comprise: according to the arp response message that receives, generate the process of ARP table.Concrete, three-tier switch generates the ARP request message according to the purpose IP address of first message, and broadcasts these ARP request messages according to VLAN value all physical ports under corresponding VLAN IF that message carries when receiving first message; After other network equipments that belong to same VLAN that are connected with three-tier switch in the network received the ARP request message, whether the IP address of judgement itself was identical with the IP address used of request MAC Address in the ARP request message; If inequality, then do not do response; If identical, then send the arp response message to three-tier switch, carry IP address and the MAC Address of this network equipment in this arp response message.After three-tier switch receives the arp response message, store to form ARP and show receiving the IP address of the network equipment in the information (being the VLAN value of VLANIF correspondence and VLANIF type etc.) of the route outgoing interface of arp response message and the arp response message and MAC Address.Wherein, identification information is jumped as next in the IP address of the information of route outgoing interface and the network equipment, and the MAC Address of the network equipment is as next-hop mac address.
As seen from the above analysis, in the present embodiment, three-tier switch is in the ARP learning process, only with the information learning of outbound port to the VLANIF aspect, rather than study is to concrete physical port, realized separating of ARP table and physical port, make and taking place not need to carry out ARP study when the VLAN inner port is switched, and obtain next-hop mac address by inquiry ARP, and search two-layer retransmitting table according to the next-hop mac address of obtaining then to find outbound port, finish message forwarding.
The message forwarding method of present embodiment, at first search three layers of routing table and obtain next jumping identification information, obtaining next-hop mac address according to next jumping identification information inquiry ARP table, search two-layer retransmitting table according to next-hop mac address then, make message be forwarded to two layers of forwarding module by three layers of forwarding module, and then the outbound port that is obtained by two layers of forwarding modules basis forwards message, three layers of forwarding and two layers of forwarding are combined, when successfully E-Packeting, make the ARP table be separated with physical port information, taking place not need to carry out ARP study when the VLAN inner port is switched, solved in the prior art because the VLAN inner port takes place and switched the problem of extremely busy and flow interrupt of the three-tier switch moment that produces that a large amount of ARP Miss message and a large amount of ARP request message cause, improved success ratio of message forwarding.
The structural representation of the apparatus for forwarding message that Fig. 2 provides for one embodiment of the invention.As shown in Figure 2, the device of present embodiment comprises: first acquisition module 21, second acquisition module 22, the 3rd acquisition module 23 and forwarding module 24.
Wherein, first acquisition module 21 is used for the three layers of routing table of purpose IP address lookup according to the message that receives, and obtains next and jumps identification information; Store purpose IP address and next jumping identification information corresponding with purpose IP address in three layers of routing table of present embodiment; Next is jumped identification information and refers to the information of the route outgoing interface corresponding with purpose IP address and the next-hop ip address of this route outgoing interface, and the information of route outgoing interface comprises outgoing interface type and outgoing interface index.Second acquisition module 22 is connected with first acquisition module 21, and next that is used for obtaining according to first acquisition module 21 jumped identification information inquiry ARP table, obtains with next and jumps the corresponding next-hop mac address of identification information; The ARP table of present embodiment is made up of next next-hop mac address of jumping identification information and next jumping identification information correspondence.The 3rd acquisition module 23 is connected with second acquisition module 22, and the next-hop mac address that is used for obtaining according to second acquisition module 22 is inquired about two-layer retransmitting table, obtains next-hop mac address corresponding output port information.Forwarding module 24 is connected with the 3rd acquisition module 23, is used for message is forwarded from the corresponding outbound port of outbound port information that the 3rd acquisition module 23 obtains.
The above-mentioned functions module of present embodiment apparatus for forwarding message can be used for carrying out the flow process of the message forwarding method that above-described embodiment provides, and its operation principle repeats no more, and sees the description of method embodiment for details.
The apparatus for forwarding message of present embodiment, obtain next by three layers of routing table of first acquisition module inquiry and jump identification information, obtain next-hop mac address by second acquisition module inquiry ARP table, obtain outbound port by the 3rd acquisition module inquiry two-layer retransmitting table again, by forwarding module message is forwarded from outbound port, make the ARP table can only comprise next jumping identification information and corresponding MAC Address, and no longer comprise and MAC Address corresponding port information, therefore, when the switching of VLAN inner port takes place, when the apparatus for forwarding message by present embodiment E-Packets, do not need to carry out ARP study, can utilize the study of two-layer retransmitting table to realize the renewal of MAC Address and port information corresponding relation, solved when the VLAN inner port taking place switch because producing the problem that a large amount of ARP Miss messages and ARP request message cause extremely busy and flow interrupt of three-tier switch moment, improved message forwarding efficient.
The structural representation of the apparatus for forwarding message that Fig. 3 provides for further embodiment of this invention.Present embodiment realizes that based on embodiment shown in Figure 2 as shown in Figure 3, the device of present embodiment also comprises: generation module 31.
Generation module 31 is used for the arp response message that basis receives before second acquisition module, 22 inquiry ARP tables, generates the ARP table.Concrete, apparatus for forwarding message can generate the ARP request message according to first message that receives, and all physical ports under the VLAN at this message place are broadcasted the ARP request message that generates; Whether the network equipment of receiving the ARP request message is identical with the IP address of itself according to the IP address of judging request MAC Address in the ARP request message, judged result is that identical network equipment generation comprises the arp response message of its IP address and MAC Address and sends to apparatus for forwarding message, specifically is the generation module 31 that sends in the apparatus for forwarding message.This generation module 31 according to the information of the routing interface that receives the arp response message (for example: if the route outgoing interface is VLANIF, then route outgoing interface information spinner will refer to the VLAN value (be VLANIF sign) of VALNIF correspondence and VLANIF type etc.) and IP address and the MAC Address of the network equipment store, form ARP and show.
Further, the apparatus for forwarding message of present embodiment also comprises: update module 32.This update module 32 is used for when outbound port switches, and next-hop mac address corresponding port information is the outbound port after switching in the renewal two-layer retransmitting table.Concrete, update module 32 can be when receiving message, by obtaining the source MAC that receives in the message that the employed physical port of message and parsing receive, obtain the corresponding relation of the MAC Address of the network equipment that physical port is connected with physical port, generate or upgrade two-layer retransmitting table according to the corresponding relation that obtains.If that has stored in the MAC Address corresponding physical port that obtains and the two-layer retransmitting table is different, then this MAC Address corresponding port information in the two-layer retransmitting table is changed into the information of the physical port that newly obtains.
Wherein, for the message that receives, the apparatus for forwarding message of present embodiment may be its final jump, also may not be its final jump.If the apparatus for forwarding message of present embodiment is the final jump of message, then will not comprise next-hop ip address in next jumping identification information that first acquisition module 21 obtains, and only comprise route outgoing interface information (mainly referring to route outgoing interface sign, for example the VLANIF sign); If the apparatus for forwarding message of present embodiment is not the final jump of message, then first acquisition module 21 obtain next jump identification information and comprise route outgoing interface information (mainly referring to route outgoing interface sign) and next-hop ip address simultaneously.
Based on above-mentioned, present embodiment provides a kind of implementation structure of second acquisition module 22.Second acquisition module 22 comprises: first acquiring unit 221 and second acquisition unit 222.Be that VLANIF is example with the route outgoing interface, then the operation principle of second acquisition module 22 is: next that obtain when first acquisition module 21 jumped identification information when comprising VLANIF sign and next-hop ip address, be input parameter by first acquiring unit 221 with VLANIF sign and next-hop ip address, inquiry ARP table obtains next-hop mac address; Next that obtain when first acquisition module 21 jumped identification information when not comprising next-hop ip address, is input parameter by second acquisition unit 222 with the purpose IP address in VLANIF sign and the message, and inquiry ARP shows, and obtains next-hop mac address.
Above-mentioned each functional module of present embodiment apparatus for forwarding message or unit can be used for carrying out the corresponding flow process in the message forwarding method that above-described embodiment provides, and its operation principle repeats no more.
The apparatus for forwarding message of present embodiment can be the network equipment that three-tier switch etc. has the message forwarding capability.First acquisition module 21 in the present embodiment apparatus for forwarding message, second acquisition module 22 and generation module 31 are mainly handled based on three layers of routing table, it can be divided into three layers functional module; And the 3rd acquisition module 23, forwarding module 24 and update module 32 are mainly handled based on two-layer retransmitting table, it can be divided into two layers functional module.
In sum, the apparatus for forwarding message of present embodiment is by above-mentioned functions module or unit, at first search three layers of routing table and obtain next jumping identification information, obtaining next-hop mac address according to next jumping identification information inquiry ARP table, search two-layer retransmitting table according to next-hop mac address then, make message by three layer function module forwards to two layer function modules, and then the outbound port that is obtained by two layer function modules basis forwards message, three layers of forwarding and two layers of forwarding are combined, when successfully E-Packeting, make the ARP table be separated with physical port information, taking place not need to carry out ARP study when the VLAN inner port is switched, solved in the prior art because the VLAN inner port takes place and switched the problem of extremely busy and flow interrupt of the three-tier switch moment that produces that a large amount of ARP Miss message and a large amount of ARP request message cause, improved success ratio of message forwarding.
One embodiment of the invention provides a kind of network equipment, and this network equipment comprises apparatus for forwarding message.Wherein, the workflow of apparatus for forwarding message can be referring to description embodiment illustrated in fig. 1, and its structure can not repeat them here referring to Fig. 2 and description embodiment illustrated in fig. 3.
The network equipment of present embodiment can be three-tier switch etc., can adopt the flow process of the message forwarding method that said method embodiment provides to E-Packet, solved in the prior art because the VLAN inner port takes place and switched the problem of extremely busy and flow interrupt of the three-tier switch moment that produces that a large amount of ARP Miss message and a large amount of ARP request message cause, improved success ratio of message forwarding.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (7)

1. a message forwarding method is characterized in that, comprising:
According to the three layers of routing table of purpose Internet protocol IP address lookup that receive message, obtain next and jump identification information;
According to described next jumping identification information inquire address analysis protocol ARP table, obtain next corresponding with described next jumping identification information and jump media interviews control MAC Address, described ARP table is made up of the next-hop mac address of described next jumping identification information and described next jumping identification information correspondence; Wherein, described according to described next jumping identification information inquiry ARP table, obtaining the next-hop mac address corresponding with described next jumping identification information comprises: when described next jumping identification information comprises route outgoing interface sign and next-hop ip address, inquire about described ARP table according to described route outgoing interface sign and described next-hop ip address, obtain described next-hop mac address; When described next jumping identification information does not comprise described next-hop ip address, according to described route outgoing interface sign and the described ARP table of described purpose IP address lookup, obtain described next-hop mac address;
According to described next-hop mac address inquiry two-layer retransmitting table, obtain described next-hop mac address corresponding output port information;
Described message is forwarded from described outbound port information corresponding output port.
2. message forwarding method according to claim 1 is characterized in that, comprises before showing according to described next jumping identification information inquiry ARP, obtaining the next-hop mac address corresponding with described next jumping identification information:
According to the arp response message that receives, generate described ARP table.
3. message forwarding method according to claim 1 and 2 is characterized in that, also comprises:
When described outbound port switches, upgrade the information of next-hop mac address corresponding port described in the described two-layer retransmitting table and be the outbound port information after switching.
4. an apparatus for forwarding message is characterized in that, comprising:
First acquisition module is used for according to the three layers of routing table of purpose Internet protocol IP address lookup that receive message, obtains next and jumps identification information;
Second acquisition module, be used for according to described next jumping identification information inquire address analysis protocol ARP table, obtain next corresponding with described next jumping identification information and jump media interviews control MAC Address, described ARP table is made up of the next-hop mac address of described next jumping identification information and described next jumping identification information correspondence; Wherein, described second acquisition module comprises: first acquiring unit is used for when described next jumping identification information comprises route outgoing interface sign and next-hop ip address, according to described route outgoing interface sign and described next-hop ip address, inquire about described ARP table, obtain described next-hop mac address; Second acquisition unit is used for when described next jumping identification information does not comprise described next-hop ip address, according to described route outgoing interface sign and the described ARP table of described purpose IP address lookup, obtains described next-hop mac address;
The 3rd acquisition module is used for obtaining described next-hop mac address corresponding output port information according to described next-hop mac address inquiry two-layer retransmitting table;
Forwarding module is used for described message is forwarded from described outbound port information corresponding output port.
5. apparatus for forwarding message according to claim 4 is characterized in that, also comprises:
Generation module is used for according to the arp response message that receives, and generates described ARP table.
6. according to claim 4 or 5 described apparatus for forwarding message, it is characterized in that, also comprise:
Update module is used for when described outbound port switches, and upgrades the information of next-hop mac address corresponding port described in the described two-layer retransmitting table and is the outbound port information after switching.
7. a network equipment is characterized in that, comprises each described apparatus for forwarding message of claim 4-6.
CN201180000590.2A 2011-05-05 2011-05-05 Message forwarding method, equipment and network device Expired - Fee Related CN102217253B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/073689 WO2011120459A2 (en) 2011-05-05 2011-05-05 Message forwarding method, equipment and network device

Publications (2)

Publication Number Publication Date
CN102217253A CN102217253A (en) 2011-10-12
CN102217253B true CN102217253B (en) 2013-10-09

Family

ID=44712671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201180000590.2A Expired - Fee Related CN102217253B (en) 2011-05-05 2011-05-05 Message forwarding method, equipment and network device

Country Status (2)

Country Link
CN (1) CN102217253B (en)
WO (1) WO2011120459A2 (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139071B (en) 2011-11-29 2016-07-13 华为技术有限公司 Message forwarding method, device and system
CN103988186A (en) * 2012-10-12 2014-08-13 华为技术有限公司 Memory system, memory module, memory module access method and computer system
CN103795635B (en) * 2012-11-01 2017-04-12 华为技术有限公司 Processing method, device and system for controlling message broadcast
CN102938794B (en) * 2012-11-14 2016-01-13 华为技术有限公司 ARP message forwarding method, switch and controller
CN103929357A (en) * 2013-01-11 2014-07-16 浙江大华技术股份有限公司 Data transmission method and network equipment
CN103179228B (en) * 2013-04-02 2015-08-19 杭州华三通信技术有限公司 Internet Protocol address analytic method and fringe node
US9467372B2 (en) 2013-11-26 2016-10-11 Pismo Labs Technology Limited Methods and systems for processing internet protocol packets
CN104717138B (en) * 2013-12-11 2019-07-12 中兴通讯股份有限公司 A kind of method and interchanger for realizing message forwarding
CN105337855B (en) * 2014-08-14 2019-02-05 华为技术有限公司 A kind of modified message method and apparatus of processing
CN105812263B (en) * 2016-03-10 2019-03-29 盛科网络(苏州)有限公司 A method of realizing that routing ARP information is separated with editor's information in asic chip
CN105939274A (en) * 2016-05-17 2016-09-14 杭州迪普科技有限公司 Message forwarding method and apparatus
CN106209642A (en) * 2016-06-30 2016-12-07 杭州迪普科技有限公司 A kind of method and device turning transmitting IP packet
CN108600106B (en) * 2018-04-28 2019-06-14 北京邮电大学 A kind of DEU data exchange unit and method of low time delay
CN111327535B (en) * 2018-12-13 2023-03-24 深圳市中兴微电子技术有限公司 Message forwarding method and device and forwarding equipment
CN111385209B (en) * 2018-12-28 2021-06-22 华为技术有限公司 Message processing method, message forwarding method, device and equipment
CN110224936B (en) * 2019-06-12 2021-11-09 四川灵通电讯有限公司 Routing method based on MAC address and network interface
CN112311680B (en) * 2020-10-30 2022-07-12 新华三技术有限公司合肥分公司 Message forwarding method and device
CN114938348A (en) * 2021-02-04 2022-08-23 北京金山云网络技术有限公司 Data stream forwarding method and device, electronic equipment and storage medium
CN115766334A (en) * 2022-12-20 2023-03-07 瑞斯康达科技发展股份有限公司 Three-layer switch, network system and data transmission method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040162781A1 (en) * 2003-02-14 2004-08-19 Kennsco, Inc. Monitoring and alert systems and methods
CN101127681B (en) * 2007-09-05 2011-01-19 杭州华三通信技术有限公司 Method and device for binding server MAC address with uplink port
CN101257447A (en) * 2008-03-14 2008-09-03 华为技术有限公司 Method, system and routing apparatus of load sharing
CN101771732B (en) * 2010-01-06 2014-08-27 福建星网锐捷网络有限公司 Message processing method, device and network equipment
CN101815107B (en) * 2010-05-13 2013-10-09 华为技术有限公司 Method, system and equipment for managing address in Ethernet ring

Also Published As

Publication number Publication date
WO2011120459A2 (en) 2011-10-06
CN102217253A (en) 2011-10-12
WO2011120459A3 (en) 2012-03-22

Similar Documents

Publication Publication Date Title
CN102217253B (en) Message forwarding method, equipment and network device
CN101517998B (en) Method for announcing border connecting information of autonomous system and boundary nodes
CN102938794B (en) ARP message forwarding method, switch and controller
CN102413046B (en) Method for forwarding flow by means of virtual router redundancy protocol backup set and equipment
CN102123091B (en) Method, device and network equipment for generating multilink transparent transmission interconnection forwarding table
CN102137024B (en) Message processing method, exit routing device and border routing device
CN100490424C (en) Distributed ARP realizing method
CN101729425B (en) Method and equipment for flow sending in VRRP networking
CN102833721B (en) Wireless roaming data forwarding method and wireless access point
CN102594689A (en) Distributed network control method and device
CN102244614B (en) Message forwarding method, system and routing switch
CN110430076B (en) Route management method and device
CN103634423B (en) Three-layered interface based MPLS-TP (multi-protocol label switching-transport profile) configuration method and device
CN101800742B (en) Method for updating and processing upstream information of routing device, routing devices and network system
CN102316028A (en) Method and apparatus for sending internet protocol packet
CN101908998A (en) Path calculation method, path calculation unit and path calculation system
CN103067295A (en) Method and device and system for service transmission
US8953461B2 (en) Method, device, and system for processing border gateway protocol route
CN103167464A (en) Method for triggering and updating mobile node mapping information, mapping server (MS) and mobile node (MN)
CN107615710A (en) Direct reply action in SDN switch
CN101471841A (en) Method and apparatus for maintaining routing table
CN101562574A (en) Method for updating routing list and device thereof
CN102572012A (en) Message processing method, switchboard and system
CN103379033A (en) Message forwarding method and grouped optical transmission network device
CN103001872B (en) A kind of label distribution method and polymerization unit

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20131009

Termination date: 20190505