CN106888166A - A kind of message forwarding method and device - Google Patents

A kind of message forwarding method and device Download PDF

Info

Publication number
CN106888166A
CN106888166A CN201710272296.6A CN201710272296A CN106888166A CN 106888166 A CN106888166 A CN 106888166A CN 201710272296 A CN201710272296 A CN 201710272296A CN 106888166 A CN106888166 A CN 106888166A
Authority
CN
China
Prior art keywords
equipment
machine
request message
leaf
arp request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710272296.6A
Other languages
Chinese (zh)
Other versions
CN106888166B (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
New 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201710272296.6A priority Critical patent/CN106888166B/en
Publication of CN106888166A publication Critical patent/CN106888166A/en
Application granted granted Critical
Publication of CN106888166B publication Critical patent/CN106888166B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Abstract

The invention discloses a kind of message forwarding method and device.The message forwarding method is applied to the leaf equipment in EVPN, and the leaf equipment possesses ARP for function is answered, and the message forwarding method includes:The ARP request message that reception source void machine sends, the ARP request message request obtains the MAC Address of purpose void machine;Judge whether the receiving port that ARP request message is received in this leaf equipment is directed to local side with this leaf learning equipment to the exit port of the MAC address entries of purpose void machine;When receiving port and exit port are directed to local side, relation agent answers ARP request message according to receiving port and exit port or to purpose void machine forwarding ARP request message.Leaf equipment of the invention is not responded directly when ARP request is received, but judge whether receiving port is consistent with the exit port of the MAC address entries of purpose void machine, determined to carry out agent answers or to purpose void machine forwarding ARP request message according to judged result, it is to avoid the problem of empty machine address drift in EVPN networkings.

Description

A kind of message forwarding method and device
Technical field
The present invention relates to network communication technology field, more particularly to a kind of message forwarding method and device.
Background technology
EVPN (Ethernet Virtual Private Network, Ethernet VPN) is that a kind of use is divided The VXLAN (Virtual Extensible LAN, expansible Virtual Local Area Network) of cloth gateway, datum plane uses VXLAN Packaged type E-Packets, control plane using MP-BGP (MultiprotocolExtensions for BGP-4, BGP-4's Multi-protocols extend) notice EVPN routing iinformations, reach the purpose of access.
In EVPN networks, generally using the double layer network frame of Spine (trunk) as shown in Figure 1-Leaf (leaf) Structure, builds VXLAN networks between Leaf equipment and Spine equipment.In actual networking, equipment where empty machine is frequently not direct Hang in Leaf equipment, be probably a common double layer network under Leaf equipment, connected by interchanger.
As shown in figure 1, void machine VM1 and equipment where empty machine VM2 are connected under interchanger L2 simultaneously, if void machine VM1 first goes up Line, Leaf3 equipment can learn the arp cache list item of empty machine VM1, while interchanger L2 study arrives the MAC of empty machine VM1 (physically Location) list item exit port point to port 1.When empty machine VM2 needs to access void machine VM1, ARP request message is sent, Leaf3 sets For after receiving the ARP request message, study has the arp cache list item of empty machine VM1 in discovery Leaf3 equipment, will perform ARP generations Function is answered, ARP request message is responded instead of empty machine VM1, arp response message is sent on interchanger L2, now interchanger L2 The exit port learnt to the MAC address entries of empty machine VM1 covers port 1, points on port 3, causes the empty machine VM1 on interchanger L2 MAC drift about.
The content of the invention
Based on one object of the present invention, the invention provides a kind of message forwarding method and device, to solve EVPN nets There is the problem of the MAC drifts of empty machine in network on interchanger.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
On the one hand, the invention provides a kind of message forwarding method, it is applied in Ethernet VPN EVPN Leaf equipment, the leaf equipment possesses ARP for function is answered, and the method includes:
The ARP request message that reception source void machine sends, the ARP request message request obtains the MAC Address of purpose void machine;
Judge that this leaf equipment receives the receiving port of ARP request message, and the purpose void that this leaf learning equipment is arrived Whether the exit port of the MAC address entries of machine is directed to local side;
When receiving port and exit port are directed to local side, this leaf equipment is according to receiving port and the relation of exit port Agent answers ARP request message forwards ARP request message to purpose void machine.
On the other hand, the invention provides a kind of apparatus for forwarding message, it is applied in Ethernet VPN EVPN Leaf equipment, the leaf equipment possess ARP generation answer function, the apparatus for forwarding message includes:
Receiving unit, for receiving the ARP request message that source void machine sends, it is empty that the ARP request message request obtains purpose The MAC Address of machine;
Processing unit, for judging that this leaf equipment receives the receiving port of ARP request message, and this leaf equipment Whether the exit port of the MAC address entries of the purpose void machine practised is directed to local side, is directed to locally in receiving port and exit port During side, this leaf equipment is forwarded according to the relation agent answers ARP request message of receiving port and exit port or to purpose void machine ARP request message.
The beneficial effect of the embodiment of the present invention is:Leaf equipment is judging the receiving port and leaf of reception ARP access requests Sub- learning equipment to the exit port of MAC address entries of purpose void machine be directed to local side when, leaf equipment please not directly in response to the ARP Message is sought, but judges whether receiving port is consistent with exit port, determined to be acted on behalf of by this leaf equipment according to judged result Reply or forward the ARP request message to purpose void machine, replied by purpose void machine, so as to avoid empty machine in EVPN networkings MAC Address drift problem.
Brief description of the drawings
Fig. 1 is the networking schematic diagram of EVPN networks;
A kind of message forwarding method flow charts of the Fig. 2 shown in the embodiment of the present invention;
Fig. 3 is empty machine migration schematic diagram in EVPN networks;
A kind of structured flowchart of apparatus for forwarding message of the Fig. 4 shown in the embodiment of the present invention;
A kind of hardware architecture diagram of apparatus for forwarding message of the Fig. 5 shown in the embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in implementation method do not represent all implementation methods consistent with the application.Conversely, they be only with it is such as appended The example of the consistent apparatus and method of some aspects described in detail in claims, the application.
It is the purpose only merely for description specific embodiment in term used in this application, and is not intended to be limiting the application. " one kind ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majority Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps May be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used for being distinguished from each other open same type of information.For example, not departing from In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determining ".
In EVPN networks, in order to not allow ARP request message transmission in network, generally configuration leaf equipment possesses ARP In generation, answers function.The implementation process of function is answered with reference to the ARP generations of Fig. 2 explanation leaf equipment:
As shown in figure 1, after void machine VM3 reaches the standard grade, leaf equipment Leaf1 can acquire the ARP information of empty machine VM3, and in leaf The arp cache list item of empty machine VM3 is formed on equipment Leaf1;Additionally, leaf equipment Leaf1 notices the ARP information of empty machine VM3 Leaf equipment Leaf2 and Leaf3, the arp cache list item of each self-forming void machine VM3 of leaf equipment Leaf2 and Leaf3 are given, and is learned Practise the MAC address entries of empty machine VM3.Exemplarily, when the empty machine VM1 under leaf equipment Leaf3 or empty machine VM2 need to access empty During machine VM3, empty machine VM1 or void machine VM2 sends ARP request message, the MAC Address of the empty machine VM3 of request, in the ARP request message When reaching leaf equipment Leaf3, the arp cache list item of empty machine VM3 was previously preserved due to leaf equipment Leaf3, therefore This ARP request message can be responded instead of void machine VM3, so as to avoid in ARP request message transmission to network.
Certainly, in actual applications, can also be configured leaf equipment and do not possess ARP for function is answered, leaf equipment receives ARP During request message, ARP request message can be transmitted to the exit port of MAC address entries, by mesh according to the MAC address entries of purpose void machine Empty machine response ARP request message.
But for the leaf equipment Leaf3 shown in Fig. 1, because empty machine VM1 and void machine VM2 hangs over interchanger L2 simultaneously Under, it is connected on leaf equipment Leaf3 by interchanger L2.If void machine VM1 first reaches the standard grade, leaf equipment Leaf3 still can be formed The arp cache list item of the empty machine VM1 sent out from interchanger L2, and the MAC address entries learnt to empty machine VM1, now leaf equipment The exit port of the MAC address entries of the empty machine VM1 learnt on Leaf3 points to port port3, the empty machine learnt on interchanger L2 The exit port of the MAC address entries of VM1 points to port port1.When empty machine VM2 accesses void machine VM1, the ARP request that empty machine VM2 sends When message reaches leaf equipment Leaf3, if leaf equipment Leaf3 replaces empty according to the APR buffer list entries of its empty machine VM1 for preserving Machine VM1 responds the ARP request message, then MAC drifts can occur on interchanger L2, in order to not allow the upper void machine VM1 of interchanger L2 MAC float to port port3, now leaf equipment Leaf3 can not respond ARP request message, can not be by the ARP request report Text is forwarded to port port3.
Based on above-mentioned situation, leaf equipment of the invention is receiving the MAC ground of the access purpose void machine that source void machine sends During the ARP request message of location, the step shown in Fig. 2 can be performed.A kind of message forwarding methods of the Fig. 2 shown in the embodiment of the present invention Flow chart, the message forwarding method is applied to the leaf equipment in EVPN, and the leaf equipment possesses ARP generations and answers function.Such as Fig. 2 Shown, the method includes:
S200, receives the ARP request message that source void machine sends, and the ARP request message request obtains the MAC ground of purpose void machine Location.
S210, judges that this leaf equipment receives the receiving port of ARP request message, and the mesh that this leaf learning equipment is arrived The exit port of MAC address entries of empty machine whether be directed to local side.
Explanation judges that receiving port is by taking this leaf equipment of the leaf equipment Leaf3 shown in Fig. 1 as the present embodiment as an example It is no to point to local side:If leaf equipment Leaf3 receives ARP request message by port port3, judge that receiving port is pointed to Local side, if leaf equipment Leaf3 receives ARP request message by VXLAN tunnels, that is, judges that receiving port is not pointed to locally Side.
Explanation judges that exit port is as a example by this leaf equipment still with the leaf equipment Leaf3 shown in Fig. 1 as the present embodiment It is no to point to local side:After empty machine VM1 reaches the standard grade, leaf equipment Leaf3 can obtain the IP address of empty machine VM1 and empty machine VM1 places set Standby MAC Address, and the arp cache list item of empty machine VM1 is formed, show empty machine VM1's by the arp cache list item of empty machine VM1 The mapping relations of IP address and MAC Address, while leaf equipment Leaf3 can be according to the MAC address learning of equipment where empty machine VM1 To the MAC address entries of empty machine VM1, the forwarding port of the ARP request message of the MAC Address of acquisition request void machine VM1 is indicated, i.e., now The exit port of the MAC address entries of the empty machine VM1 that leaf equipment Leaf3 learns is port port3.If source void machine is empty machine VM2, mesh Empty machine be empty machine VM1, then leaf equipment Leaf3 can judge the empty machine of purpose according to the MAC address entries of the empty machine VM1 for learn Exit port is port port3, because port port3 points to local side, therefore can determine whether purpose void machine on leaf equipment Leaf3 The exit port of the MAC address entries of VM1 points to local side.
In actual applications, this leaf equipment needs the arp cache list item for judging whether to form purpose void machine, if forming mesh The arp cache list item of empty machine then perform step S210, otherwise, the ARP request message is carried out exclusion source by this leaf equipment The broadcast treatment of mouth.
S220, when above-mentioned receiving port and above-mentioned exit port are directed to local side, this leaf equipment is according to receiving port With the relation agent answers ARP request message of exit port or to purpose void machine forwarding ARP request message.
Specifically, judging whether above-mentioned receiving port is identical with above-mentioned exit port, if identical, this leaf proxy for equipment is answered Multiple ARP request message, if differing, ARP request message is sent to above-mentioned exit port.
With reference to shown in Fig. 1, in the actual networking of EVPN, equipment where empty machine can be directly hung under leaf equipment, such as Empty machine VM3, the void machine VM4 and empty machine VM5 shown in Fig. 1, equipment where empty machine can also be by intermediate equipment, such as by exchanging Machine is hung under leaf equipment, void machine VM1 as shown in Figure 1 and empty machine VM2.The present embodiment illustrates leaf for above-mentioned two situations Forward process of the sub- equipment to ARP request message.
Situation one:Equipment where empty machine is directly connected to this leaf equipment, i.e., equipment and purpose void machine institute where source void machine The local side of this leaf equipment is respectively positioned in equipment, and this leaf equipment is not connected by intermediate equipment, but be directly connected to In this leaf equipment.
Then " this leaf equipment ARP according to the relation agent answers of receiving port and exit port in above-mentioned steps S220 Request message forwards the ARP request message to purpose void machine " it is specially:ARP request message is transmitted to purpose void machine, by Purpose void machine sends arp response message to source void machine, and arp response message carries the MAC Address of purpose void machine.
The situation of this leaf equipment is directly connected to for the equipment where empty machine, exemplary, the leaf in reference picture 1 sets Standby Leaf2, now this leaf equipment be leaf equipment Leaf2, it is assumed that empty machine VM5 is source void machine, empty for the purpose of empty machine VM4 Machine, then the receiving port that leaf equipment Leaf2 receives ARP request message is port port2 ', and leaf equipment Leaf2 learns The exit port of the MAC address entries of purpose void machine VM4 is port port1 ', that is, the receiving port for receiving ARP request message is arrived with study Purpose void machine MAC address entries exit port it is inconsistent, then that the ARP request message is transmitted into purpose is empty for leaf equipment Leaf2 Machine VM4, arp response message is sent from purpose void machine VM4 to source void machine VM5.
Situation two:Equipment where empty machine connects this leaf equipment, i.e. source void machine place by intermediate equipments such as interchangers Equipment and equipment where purpose void machine are respectively positioned on the local side of this leaf equipment, and connect this leaf by intermediate equipment and set It is standby.
Then " this leaf equipment ARP according to the relation agent answers of receiving port and exit port in above-mentioned steps S220 Request message forwards the ARP request message to purpose void machine " it is specially:This leaf equipment is not responding to ARP request message, and Receiving port does not forward the ARP request message, and ARP request message is transmitted into purpose void machine by intermediate equipment, empty by purpose Machine sends arp response message to source void machine, and the arp response message carries the MAC Address of purpose void machine.
The situation of this leaf equipment is connected by intermediate equipment for the equipment where empty machine, it is exemplary, in reference picture 1 Leaf equipment Leaf3, now this leaf equipment be leaf equipment Leaf3, it is assumed that empty machine VM2 is source void machine, and empty machine VM1 is Purpose void machine, then the receiving port of the reception ARP request message of leaf equipment Leaf3 is port port3, leaf equipment Leaf3 Learn the exit port to the MAC address entries of purpose void machine for port3, that is, receive the receiving port and purpose void machine of ARP request message MAC address entries exit port it is consistent, then leaf equipment Leaf3 is not responding to the ARP request message, by interchanger L2 by ARP request Message is transmitted to purpose void machine VM1, and arp response message is sent from purpose void machine VM1 to source void machine VM2.
In the method for the above embodiment of the present invention, receiving the ARP access requests of local side, and learn to purpose During the arp cache list item of empty machine, not directly in response to the ARP request message, but judge to receive the receiving port of ARP request message Whether the exit port with the MAC address entries of the purpose void machine for learning is consistent, is determined to be carried out by this leaf equipment according to judged result ARP proxy replies or ARP request message is forwarded into purpose void machine, is replied by purpose void machine, so as to avoid EVPN groups The problem of empty machine MAC Address drift in net.
Fig. 3 is empty machine migration schematic diagram in EVPN networks, as shown in figure 3, in EVPN networkings, before migration void machine VM_A with Empty machine VM_B is while access switch L2 ', interchanger L2 ' study point to port to the exit port of the MAC address entries of empty machine VM_A port 1.After empty machine VM_A ' is changed under empty machine VM_A moves to leaf equipment Leaf_A, empty machine on leaf equipment Leaf_C The exit port of the MAC address entries of VM_A ' points to port leaf equipment Leaf_A, but the MAC address entries of empty machine VM_A on interchanger L2 ' Exit port still points to port port1, so, empty machine VM_B access empty machine VM_A when, access message and be sent to interchanger L2 ' When upper, interchanger L2 ' can will access message and be forwarded to port port1 according to the MAC address entries for accessing the empty machine VM_A of message inquiry, But actually void machine VM_A has been not present under interchanger L2 ', cause to access obstructed.
Cause to access obstructed situation, the present embodiment for MAC address entries on interchanger cannot be updated after above-mentioned empty machine migration When this leaf learning equipment is updated to point to distal end leaf equipment to the exit port of the MAC address entries of empty machine by pointing to local side, Reverse address resolution protocol RARP messages are sent to intermediate equipment;The equipment where empty machine connects this leaf and sets by intermediate equipment Standby, the RARP messages indicate intermediate equipment to update the exit port of the MAC address entries of empty machine for intermediate equipment connects this leaf equipment Port, the RARP messages carry source MAC and target MAC (Media Access Control) address, and source MAC is the MAC Address of the empty machine.
With reference to Fig. 3, in the embodiment of the application one, moving to leaf equipment Leaf_A in empty machine VM_A turns into empty machine VM_A ' Afterwards, being sent to leaf equipment Leaf_C for empty machine VM_A ' carries migration extended community message (MAC Mobility Extended Community ARP request), when leaf equipment Leaf_C receives the ARP request, by going out for the MAC address entries of empty machine VM_A ' Port replaces with distally directed leaf equipment by pointing to local side, will the exit port of MAC address entries of empty machine VM_A ' point to leaf The corresponding VETP tunnel ports of equipment Leaf_A, meanwhile, leaf equipment Leaf_C sends RARP messages, the source of the RARP messages MAC is the MAC that void machine VM_A ' is equipment where VM_A, the MAC address entries of the empty machine VM_A that instruction interchanger L2 ' is learnt Exit port be updated to port port3, be achieved in the seamless migration of EVPN networking internal weakness machines.
Embodiment with foregoing message forwarding method is corresponding, present invention also offers the embodiment of apparatus for forwarding message. The apparatus for forwarding message can apply in the leaf equipment in EVPN networks, the leaf equipment possess ARP generation answer function.
The structured flowchart of a kind of apparatus for forwarding message of the Fig. 4 shown in the embodiment of the present invention, as shown in figure 4, the message turns Transmitting apparatus 40 include:Receiving unit 41 and processing unit 42;
Receiving unit 41, for receiving the ARP request message that source void machine sends, the ARP request message request obtains purpose The MAC Address of empty machine;
Processing unit 42, for judging that this leaf equipment receives the receiving port of ARP request message, and this leaf equipment Whether the exit port of the MAC address entries of the purpose void machine for learning is directed to local side, and this is directed in receiving port and exit port During ground side, this leaf equipment turns according to the relation agent answers ARP request message of receiving port and exit port or to purpose void machine Hair ARP request message.
Specifically, processing unit 42, for judging whether receiving port is identical with exit port, if identical, this leaf sets It is standby to be not responding to ARP request message, and receiving port does not forward the ARP request message, if differing, is sent to exit port ARP request message.
Wherein, when equipment where the void machine of source and equipment where purpose void machine are all connected with this leaf equipment, processing unit 42, Specifically for ARP request message is transmitted into purpose void machine, arp response message, arp response are sent from purpose void machine to source void machine Message carries the MAC Address of purpose void machine.
When equipment where the void machine of source and equipment where purpose void machine connect this leaf equipment by intermediate equipment, treatment Unit 42, specifically for being not responding to ARP request message, is transmitted to purpose void machine, by purpose by intermediate equipment by ARP request message Empty machine sends arp response message to source void machine, and arp response message carries the MAC Address of purpose void machine.
Preferably, processing unit 42, the exit port of the MAC address entries of the empty machine being additionally operable in this leaf equipment is by pointing to this When ground side is updated to point to distal end leaf equipment, reverse address resolution protocol RARP messages are sent to intermediate equipment;The empty machine institute This leaf equipment is connected by intermediate equipment in equipment, RARP messages indicate intermediate equipment to update the MAC address entries of the empty machine Exit port is the port that the intermediate equipment connects this leaf equipment.
Wherein, RARP messages carry source MAC and target MAC (Media Access Control) address, and the source MAC is equipment where empty machine MAC Address.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is referring to method reality Apply the part explanation of example.Device embodiment described above is only schematical, wherein described as separating component The unit of explanation can be or may not be physically separate, and the part shown as unit can be or can also It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality Selection some or all of module therein is needed to realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not In the case of paying creative work, you can to understand and implement.
The apparatus for forwarding message that the present invention is provided can be realized by software, it is also possible to by hardware or software and hardware combining Mode realize.As a example by implemented in software, shown in reference picture 5, can by processor 10 by nonvolatile memory 50 with report The corresponding machine-executable instruction of literary retransmission unit control logic 40 runs in reading internal memory 60.From for hardware view, such as It is a kind of hardware structure diagram of apparatus of the present invention shown in Fig. 5, except the processor 10 shown in Fig. 5, internal bus 20, network connect Outside mouth 30, internal memory 60 and nonvolatile memory 50, according to the actual functional capability of the network equipment, other can also be included Hardware, repeats no more to this.
In various embodiments, the nonvolatile memory 50 can be:Memory driver (such as hard disk drive), Solid state hard disc, any kind of storage dish (such as CD, DVD), or similar storage medium, or combinations thereof.Institute Stating internal memory 60 can be:RAM (Radom AccessMemory, random access memory), volatile memory, flash memory.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating In any this actual relation or order.Term " including ", "comprising" or its any other variant be intended to non-row His property is included, so that process, method, article or equipment including a series of key elements not only include those key elements, and And also include other key elements being not expressly set out, or also include for this process, method, article or equipment institute are intrinsic Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including institute Also there is other identical element in process, method, article or the equipment of stating key element.
In sum, technology according to the present invention scheme, leaf equipment is judging the receiving port of reception ARP access requests With leaf learning equipment to the exit port of MAC address entries of purpose void machine be directed to local side when, leaf equipment not directly in response to The ARP request message, but judge whether receiving port is consistent with exit port, determined by this leaf equipment generation according to judged result Reason replies ARP request message or forwards the ARP request message to purpose void machine, is replied by purpose void machine, to avoid The problem of empty machine address drift in EVPN networkings;And migrated the empty machine in leaf equipment is connected by intermediate equipment When, RARP messages are sent to intermediate equipment, indicate intermediate equipment to update the MAC address entries of empty machine before the migration, realize EVPN networkings The seamless migration of internal weakness machine.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the scope of the present invention.It is all Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention It is interior.

Claims (12)

1. a kind of message forwarding method, it is characterised in that be applied to the leaf equipment in Ethernet VPN EVPN, institute State leaf equipment and possess ARP for function is answered, methods described includes:
The ARP request message that reception source void machine sends, the ARP request message request obtains the MAC Address of purpose void machine;
Judge that this leaf equipment receives the receiving port of the ARP request message, and the purpose void that this leaf learning equipment is arrived Whether the exit port of the MAC address entries of machine is directed to local side;
When the receiving port and the exit port are directed to local side, this leaf equipment is according to receiving port and exit port ARP request message described in relation agent answers forwards the ARP request message to purpose void machine.
2. message forwarding method according to claim 1, it is characterised in that this leaf equipment is according to receiving port and goes out end ARP request message described in the relation agent answers of mouth forwards the ARP request message to purpose void machine, including:
Judge whether the receiving port is identical with the exit port, if identical, this leaf equipment is not responding to the ARP request Message, and the receiving port does not forward the ARP request message;If differing, sending the ARP to the exit port please Seek message.
3. message forwarding method according to claim 1, it is characterised in that equipment where the source void machine and purpose void machine Place equipment is directly connected to this leaf equipment, and accordingly, this leaf equipment is acted on behalf of according to the relation of receiving port and exit port Reply the ARP request message or forward the ARP request message to purpose void machine, specially:
The ARP request message is transmitted to the purpose void machine, arp response is sent from purpose void machine to source void machine Message, the arp response message carries the MAC Address of purpose void machine.
4. message forwarding method according to claim 1, it is characterised in that equipment where the source void machine and purpose void machine Place equipment connects this leaf equipment by intermediate equipment, and accordingly, this leaf equipment is according to receiving port and exit port ARP request message described in relation agent answers forwards the ARP request message to purpose void machine, specially:
The ARP request message is not responding to, the ARP request message is transmitted to described empty machine by the intermediate equipment, by The purpose void machine sends arp response message to source void machine, and the arp response message carries the MAC Address of purpose void machine.
5. message forwarding method according to claim 1, it is characterised in that methods described also includes:
In the exit port of this leaf learning equipment to the MAC address entries of empty machine distal end leaf equipment is updated to point to by pointing to local side When, send reverse address resolution protocol RARP messages to intermediate equipment;Equipment where the empty machine is connected by the intermediate equipment This leaf equipment is connect, it is described that the RARP messages indicate the exit port that the intermediate equipment updates the MAC address entries of the empty machine Intermediate equipment connects the port of this leaf equipment.
6. message forwarding method according to claim 5, it is characterised in that the RARP messages carry source MAC and Target MAC (Media Access Control) address, the source MAC is the MAC Address of equipment where the empty machine.
7. a kind of apparatus for forwarding message, it is characterised in that be applied to the leaf equipment in Ethernet VPN EVPN, institute State leaf equipment and possess ARP for function is answered, the apparatus for forwarding message includes:
Receiving unit, for receiving the ARP request message that source void machine sends, the ARP request message request obtains purpose void machine MAC Address;
Processing unit, for judging that this leaf equipment receives the receiving port of the ARP request message, and this leaf equipment Whether the exit port of the MAC address entries of the purpose void machine practised is directed to local side, equal in the receiving port and the exit port When pointing to local side, this leaf equipment according to the relation agent answers of receiving port and exit port ARP request message or to Purpose void machine forwards the ARP request message.
8. apparatus for forwarding message according to claim 7, it is characterised in that the processing unit, specifically for judging State receiving port whether identical with the exit port, if identical, this leaf equipment is not responding to the ARP request message, and institute State receiving port and do not forward the ARP request message;If differing, the ARP request message is sent to the exit port.
9. apparatus for forwarding message according to claim 7, it is characterised in that equipment where the source void machine and purpose void machine Place equipment is directly connected to this leaf equipment, accordingly, the processing unit, specifically for the ARP request message is turned The purpose void machine is issued, arp response message is sent from purpose void machine to source void machine, the arp response message is taken MAC Address with purpose void machine.
10. apparatus for forwarding message according to claim 7, it is characterised in that equipment and purpose are empty where the source void machine Equipment where machine connects this leaf equipment by intermediate equipment, and accordingly, the processing unit is described specifically for being not responding to ARP request message, the purpose void machine is transmitted to by the intermediate equipment by the ARP request message, by purpose void machine Arp response message is sent to source void machine, the arp response message carries the MAC Address of purpose void machine.
11. apparatus for forwarding message according to claim 7, it is characterised in that the processing unit, are additionally operable in this leaf Learning equipment to the exit port of the MAC address entries of empty machine be updated to point to distal end leaf equipment by pointing to local side when, set to centre Preparation send reverse address resolution protocol RARP messages;Equipment where the empty machine connects this leaf and sets by the intermediate equipment Standby, the RARP messages indicate the intermediate equipment to update the exit port of the MAC address entries of the empty machine for the intermediate equipment connects Connect the port of this leaf equipment.
12. apparatus for forwarding message according to claim 11, it is characterised in that the RARP messages carry source MAC And target MAC (Media Access Control) address, the source MAC is the MAC Address of equipment where the empty machine.
CN201710272296.6A 2017-04-24 2017-04-24 Message forwarding method and device Active CN106888166B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710272296.6A CN106888166B (en) 2017-04-24 2017-04-24 Message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710272296.6A CN106888166B (en) 2017-04-24 2017-04-24 Message forwarding method and device

Publications (2)

Publication Number Publication Date
CN106888166A true CN106888166A (en) 2017-06-23
CN106888166B CN106888166B (en) 2020-04-24

Family

ID=59183606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710272296.6A Active CN106888166B (en) 2017-04-24 2017-04-24 Message forwarding method and device

Country Status (1)

Country Link
CN (1) CN106888166B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600099A (en) * 2018-04-19 2018-09-28 新华三技术有限公司 A kind of message forwarding method, device and Leaf equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155130A (en) * 2006-09-30 2008-04-02 华为技术有限公司 Method for learning MAC address and system and equipment for conveying VPLS client data
US20100054117A1 (en) * 2008-08-26 2010-03-04 Fulcrum Microsystems Global ports in multi-switch systems
CN101729274A (en) * 2009-06-18 2010-06-09 中兴通讯股份有限公司 Method for realizing multicast in PBB_VPLS network
CN104660508A (en) * 2013-11-25 2015-05-27 华为技术有限公司 Message forwarding method and device
CN105227452A (en) * 2015-09-14 2016-01-06 中国联合网络通信集团有限公司 Data frame forwarding method and device
CN106027352A (en) * 2016-07-14 2016-10-12 瑞斯康达科技发展股份有限公司 Service message forwarding method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155130A (en) * 2006-09-30 2008-04-02 华为技术有限公司 Method for learning MAC address and system and equipment for conveying VPLS client data
US20100054117A1 (en) * 2008-08-26 2010-03-04 Fulcrum Microsystems Global ports in multi-switch systems
CN101729274A (en) * 2009-06-18 2010-06-09 中兴通讯股份有限公司 Method for realizing multicast in PBB_VPLS network
CN104660508A (en) * 2013-11-25 2015-05-27 华为技术有限公司 Message forwarding method and device
CN105227452A (en) * 2015-09-14 2016-01-06 中国联合网络通信集团有限公司 Data frame forwarding method and device
CN106027352A (en) * 2016-07-14 2016-10-12 瑞斯康达科技发展股份有限公司 Service message forwarding method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600099A (en) * 2018-04-19 2018-09-28 新华三技术有限公司 A kind of message forwarding method, device and Leaf equipment

Also Published As

Publication number Publication date
CN106888166B (en) 2020-04-24

Similar Documents

Publication Publication Date Title
JP6557415B2 (en) Packet forwarding used for VXLAN
JP6581277B2 (en) Data packet transfer
CN105684363B (en) Logic router
CN104935516B (en) Communication system and method based on software defined network
EP3595271B1 (en) Packet transmission method, apparatus and network
CN104737507B (en) Ensure arbitrarily to arrive the method and device of any accessibility with the 3rd layer of forwarding of chance in large-scale data center environment
US9154993B1 (en) Mobile-IPv6 encapsulation for wireless networks
US7970929B1 (en) Apparatus, system, and method for routing data to and from a host that is moved from one location on a communication system to another location on the communication system
CN106998286A (en) A kind of VXLAN message forwarding methods and device
CN106878047A (en) Fault handling method and device
CN106209643A (en) Message forwarding method and device
CN106209638A (en) From VLAN to the message forwarding method of virtual expansible LAN and equipment
CN105591907B (en) A kind of route obtaining method and device
US20190213349A1 (en) Filter-based control information query in software-defined networking (sdn) environments
CN106209689A (en) From the multicast data packet forwarding method and apparatus of VXLAN to VLAN
US11936612B2 (en) Address resolution handling at logical distributed routers
CN106330719A (en) VXLAN message forwarding method and device
JP6887523B2 (en) MAC address synchronization
CN106209637A (en) From message forwarding method and the equipment of virtual expansible LAN to VLAN
CN106888166A (en) A kind of message forwarding method and device
CN107666428A (en) Silencing devices detection method and device
CN106209554A (en) Message forwarding method and equipment across virtual expansible LAN
US7693075B2 (en) Updating address tables
CN103560968B (en) Switch hardware host routing table updating method and device and switch
CN106921577A (en) MAC address learning method and device

Legal Events

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