CN103841028B - Method and device for forwarding messages - Google Patents

Method and device for forwarding messages Download PDF

Info

Publication number
CN103841028B
CN103841028B CN201410110107.1A CN201410110107A CN103841028B CN 103841028 B CN103841028 B CN 103841028B CN 201410110107 A CN201410110107 A CN 201410110107A CN 103841028 B CN103841028 B CN 103841028B
Authority
CN
China
Prior art keywords
vtep
message
mapping
eid
rloc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410110107.1A
Other languages
Chinese (zh)
Other versions
CN103841028A (en
Inventor
林长望
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201410110107.1A priority Critical patent/CN103841028B/en
Publication of CN103841028A publication Critical patent/CN103841028A/en
Application granted granted Critical
Publication of CN103841028B publication Critical patent/CN103841028B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention discloses a method and device for forwarding messages. An ARP request message sent by a first VM is received by a first VTEP, a mapping request message is sent to a second VTEP through a mapping system, and a mapping relationship between an EID and an RLOC of a second VM under the second VTEP is requested; a mapping response message returned by the second VTEP is received by the first VTEP and the mapping relationship between the EID and the RLOC of the second VM is learned, wherein the EID is an MAC address, an IP address and a VNI of the second VM; the RLOC is an IP address of the second VTEP; the messages sent to the second VM by the first VM are received by the first VTEP, according to the stored mapping relationship between the EID and the RLOC of the second VM, VXLAN packaging is conducted on the messages, and the packaged messages are sent to the second VTEP and forwarded to the second VM through the second VTEP. The function that a VXLAN is operated efficiently under the condition that multicast is avoided is achieved.

Description

A kind of message forwarding method and equipment
Technical field
The present invention relates to network communication technology field, particularly to a kind of message forwarding method and equipment.
Background technology
In the multi-tenant environment of cloud computing, each tenant is required for distributing one and can be carried out very with other logic network The logic network of good isolation.VLAN is typically passed through in the isolation of logic network(VLAN, Virtual Local Area Network)Technology is solving.In IEEE802.1Q standard, due to the mark maximum 12bit of VLAN, so in certain limit Maximum VLAN number only has 4K.Get more and more with the multi-tenant demand under cloud environment, 4K VLAN can not meet number Demand according to the deployment of center large scale network.In addition, in cloud computing environment, live load is frequently necessary in multiple data centers Migrated with multiple cloud platforms, and the region division being currently based on IP subnet is limited the application of two layer connectivitys.
VXLAN is a kind of MAC-in-UDP technology, and it passes through the one new network segmentation mould of 2.5 layers of setting in network Formula, adds the segment identifier of a 24bit, has greatly expanded the number of the logic network that can be supported by cloud computing environment Amount;And live load is departed from physical network, realizes logic network and cross over IP network.
VXLAN technology makes the multiple virtual machines in same VXLAN(VM, Virtual Machine)Can be across three-layer network Network is communicated, and in VXLAN technology, each tenant corresponds to a virtual overlay network, and each virtual overlay network is considered as one The individual VXLAN network segment, and by the virtual expansible local net network identifier of 24(VXLAN Network Identifier, VNI)Mark.Only have between the VM of identical VNI and just allow to be communicated.
Fig. 1 is the networking schematic diagram of prior art data center network.Tunnel terminal(VTEP)A and VTEP B adheres to separately In different data centers, in prior art, realize across data center interconnection, that is, the VM under VTEPA will with VTEP B under Server realizes communication, has two schemes:Scheme one, VXLAN is run by multicast, needs to dispose multicast during operation.Scheme two, VXLAN passes through Intermediate System-to-Intermediate System(IS-IS)Or border gateway routing protocol(BGP)Agreement is as control plane agreement Run.
Taking scheme one as a example prior art is illustrated across the message forwarding method of data center, the method needs to specify VNI is mapped to the multicast group of an IP network, and each VTEP of this VNI adds this multicast group, using flooding and study mechanism Complete address learning, specifically include following steps:
Step 1, hypothesis VM server belong to same VNI, that is, broadly fall into VXLAN5000, so VXLAN5000 is mapped To a multicast group, this multicast group IP is 239.1.1.1, and the VTEP B that the VTEP A that VM is connected, server are connected is Add this multicast group;
Step 2, VM send ARP request message to VTEP A, the MAC Address of request server;
Step 3, VTEP A receive after ARP request broadcast ARP request in multicast group 239.1.1.1;
Step 4 and VTEP A have same VNI(VXLAN5000)VTEP B receive ARP request after, learn to VM MAC Address and IP address 1.1.1.1 of VTEP A be stored in local mac list item, broadcast to each port of VXLAN5000 simultaneously ARP request;
Step 5, server send corresponding arp reply message after receiving ARP request;
Step 6, VTEP B receive arp reply message, and unicast is sent to VTEP A;
Step 7, VTEP A receive arp reply message, learn the IP address of MAC Address to server and VTEPB 1.1.1.2 it is stored in local mac list item, and forward arp reply message to VM;
Step 8, VM send initial data message to VTEP A;
Step 9, VTEP A, according to local mac list item, inquire purpose MAC pair according to VXLAN ID and target MAC (Media Access Control) address IP address 1.1.1.2 of the VTEP B answering, packaging V XLAN message, it is transmitted to VTEP B;
Step 10, VTEP B receive VXLAN message, peel off VXLAN outer envelope, according to VXLAN ID and purpose MAC Message is issued corresponding server by address.
It can be seen from the above description that prior art is across the message forwarding method of data center, if adopting scheme one, need Multicast to be disposed, the VTEP of Liang Ge data center is added same multicast group, otherwise, if when across data center interconnection, by In not opening multicast, lead to not run;Meanwhile, by flood and study mechanism learn MAC, inefficiency.
And, if realizing forwarding across the message of data center using scheme two, need to set up between VTEP substantial amounts of IS-IS or bgp neighbor, Dynamic Maintenance neighborhood, when VTEP quantity is more, it is limited to neighbours' rule of IS-IS or BGP itself Lattice.
Content of the invention
It is an object of the invention to provide a kind of message forwarding method and equipment, being capable of VXLAN is not having multicast feelings Effec-tive Function under condition.
For achieving the above object, the invention provides a kind of message forwarding method, the method includes:
First tunnel terminal VTEP receives the ARP request message that the first virtual machine VM sends, by mapped system Send mapping request message, the endpoint identifier EID of the 2nd VM under request the 2nd VTEP and route location mark to the 2nd VTEP Know the mapping relations of symbol RLOC;Wherein, a VM and the 2nd VM has identical VNI;
First VTEP receives the mapping response message that the 2nd VTEP returns, and the mapping of EID and RLOC of study the 2nd VM is closed System;Wherein, EID is MAC Address, IP address and the affiliated VNI of the 2nd VM;RLOC is the IP address of the 2nd VTEP;
First VTEP receives the message that a VM is sent to the 2nd VM, EID's and RLOC according to the 2nd VM preserving reflects Penetrate relation, VXLAN encapsulation is carried out to described message, and be sent to the 2nd VTEP, the 2nd VM is transmitted to by the 2nd VTEP.
For achieving the above object, present invention also offers a kind of message forwarding equipment, it is applied to the first tunnel Terminal VTEP, this equipment includes:
Mapping request unit, for receiving the ARP request message that the first virtual machine VM sends, by mapped system to the Two VTEP send mapping request message, the endpoint identifier EID of the 2nd VM under request the 2nd VTEP and route location identifier The mapping relations of RLOC;Wherein, a VM and the 2nd VM has identical VNI;
Mapping relations unit, for receive the 2nd VTEP return mapping response message, study the 2nd VM EID and The mapping relations of RLOC;Wherein, EID is MAC Address, IP address and the affiliated VNI of the 2nd VM;RLOC is the IP of the 2nd VTEP Address;
Encapsulation transmitting element, is sent to the message of the 2nd VM for receiving a VM, the EID according to the 2nd VM preserving and The mapping relations of RLOC, carry out VXLAN encapsulation to described message, and are sent to the 2nd VTEP, are transmitted to second by the 2nd VTEP VM.
In sum, the embodiment of the present invention the first tunnel terminal VTEP receives the ARP that the first virtual machine VM sends Request message, sends mapping request message, the end points of the 2nd VM under request the 2nd VTEP by mapped system to the 2nd VTEP Identifier EID and the mapping relations of route location identifier RLOC;Wherein, a VM and the 2nd VM has identical VNI;First VTEP receives the mapping response message that the 2nd VTEP returns, the mapping relations of EID and RLOC of study the 2nd VM;Wherein, EID is The MAC Address of the 2nd VM, IP address and affiliated VNI;RLOC is the IP address of the 2nd VTEP;First VTEP receives a VM and sends out Give the message of the 2nd VM, the mapping relations of EID and RLOC according to the 2nd VM preserving, VXLAN envelope is carried out to described message Dress, and it is sent to the 2nd VTEP, the 2nd VM is transmitted to by the 2nd VTEP.Compared with prior art, decrease ARP in core net Flood, it is to avoid flood and study mechanism, in the case of there are currently no multicast in fact, VXLAN being capable of Effec-tive Function.
Brief description
Fig. 1 is the networking schematic diagram of prior art data center network.
Fig. 2 is the schematic flow sheet of embodiment of the present invention message forwarding method.
Fig. 3 provides a networking schematic diagram of method application for the embodiment of the present invention.
Fig. 4 is the structural representation of the message forwarding equipment being applied to said method in the specific embodiment of the invention.
The composition schematic diagram of the message forwarding equipment that Fig. 5 provides for further embodiment of this invention.
Specific embodiment
For making the objects, technical solutions and advantages of the present invention become more apparent, develop simultaneously embodiment referring to the drawings, right Scheme of the present invention is described in further detail.
The core concept of the present invention is, runs VXLAN and position and identity separated protocol within the core network simultaneously (LISP, Locator/Identity Separation Protocol), LISP as the control plane agreement of VXLAN, but not As the message encapsulation of datum plane, datum plane is still sent and received with VXLAN encapsulation.So, mutual across data center Lian Shi, does not have under multicast scenarios, can run VXLAN yet, simultaneously by LISP protocol come aware host, the correspondence of MAC and VTEP Relation is it is not necessary to the study mechanism that floods of datum plane.By the method for the present invention, decrease ARP flooding in core net, keep away Exempt to flood and study mechanism, in the case of there are currently no multicast in fact, VXLAN being capable of Effec-tive Function.
Lower mask body introduces LISP involved in the present invention, and in prior art, LISP is a kind of position and mark point From networking thought, formed two independent address spaces:Endpoint identifier(EID, Endpoint Identifier)Address is empty Between and route location identifier(RLOC, Routing Locator)Address space.EID is the host address of communication end point, with now Realize identical, the effect in LISP is similar to domain name system(DNS), have independent space.In LISP network, EID Can be migrated independent of RLOC, RLOC be LISP router address, can in existing the Internet routing forwarding, can the overall situation Route, and be polymerized according to network topology situation.Between EID, the message of communication is encapsulated in the tunnel between RLOC and carries out turning Send out.LISP can be divided into control plane data plane by function.Control plane completes the mapping relations of EID and RLOC, by reflecting Penetrate the mapping relations that request message asks specific EID/RLOC, respond mapping request message by mapping response message.Data Plane completes mapping and encapsulation, decapsulation, is encapsulated as LISP encapsulation in LISP network.
Based on the above-mentioned description to existing LISP, the method for the present invention make use of LISP control plane to complete EID and RLOC Mapping relations, by the mapping relations of the specific EID/RLOC of mapping request message request, by mapping response message response Mapping request message.And, in the present invention, the EID of LISP is the group of VM main frame, the MAC Address of VM and VXLAN ID three Close, RLOC is the IP address of VTEP, the tunnel router of LISP(xTR)Safeguard the mapping relations of EID and RLOC, dynamically note to MS Volume.Here illustratively, because LISP of the present invention runs as the control plane agreement of VXLAN, the xTR of LISP safeguard EID and The mapping relations of RLOC, to MS dynamic registration, so when the present invention runs LISP within the core network, the VTEP equipment of VXLAN Have and xTR identical function, that is, on VTEP(On xTR), to the IP address of LISP dynamic registration VM main frame, MAC Address, VXLAN ID and the mapping relations of VTEP address.But, datum plane of the present invention is still sent and received with VXLAN encapsulation.
Embodiment of the present invention message forwarding method comprises the following steps, and its schematic flow sheet is as shown in Figure 2.Wherein, first VTEP and the 2nd VTEP belongs to different websites, and different websites can be in same data center it is also possible at different pieces of information center.
Step 201, a VTEP receive the ARP request message that the first virtual machine VM sends, by mapped system to the Two VTEP send mapping request message, the endpoint identifier EID of the 2nd VM under request the 2nd VTEP and route location identifier The mapping relations of RLOC;Wherein, a VM and the 2nd VM has identical VNI;
Specifically, a VTEP receive under this equipment that the first virtual machine VM sends under request the 2nd VTEP second After the ARP request message of the MAC Address of VM, mapping request report is sent to the 2nd VTEP by mapped system Literary composition, the mapping relations of EID and RLOC of request the 2nd VM.
Wherein, mapped system includes Mapping Resolution device MR and mapping server MS;
First VTEP is specifically included by the method that mapped system sends mapping request message to the 2nd VTEP:
Mapping request message is sent to MR according to ARP message by the first VTEP, is sent to mapping request message by MR Register with the MS of the mapping relations of EID and RLOC of the 2nd VM, mapping request message is sent to by the 2nd VTEP by MS.If Now on MS EID and RLOC of also unregistered 2nd VM mapping relations, then pass through MR to the first VTEP feedback abandon this mapping Request message, because the log-on message on MS is Dynamic Maintenance, thus also carry in the dropping packets being fed back it is allowed to First VTEP sends the time interval of mapping request message again to MR.
Wherein, the 2nd VTEP preserves the mapping relations of EID and RLOC of the 2nd VM, and this mapping is closed by the therefore the 2nd VTEP It is to MS registration, according to described log-on message, the mapping request message receiving from a VTEP is transmitted to for MS corresponding 2nd VTEP.
Step 202, a VTEP receive the mapping response message that the 2nd VTEP returns, EID and RLOC of study the 2nd VM Mapping relations;Wherein, EID is MAC Address, IP address and the affiliated VNI of the 2nd VM;RLOC is the IP ground of the 2nd VTEP Location;
Wherein, the MAC of the 2nd VM after a VTEP learns the mapping relations of EID and RLOC of the 2nd VM, is obtained according to EID Address and the corresponding relation of IP address, and preserve this mapping relations and the MAC Address of the 2nd VM and the corresponding relation of IP address.
Step 203, a VTEP receive a VM and are sent to the message of the 2nd VM, the EID according to the 2nd VM preserving and The mapping relations of RLOC, carry out VXLAN encapsulation to described message, and are sent to the 2nd VTEP, are transmitted to second by the 2nd VTEP VM.
It is implemented as, a VTEP carries the MAC Address of the 2nd VM in the EID of described mapping relations in arp reply It is sent to a VM in message;
The target MAC (Media Access Control) address that first VTEP receives a VM transmission is the initial data message of the 2nd VM, according to the 2nd VM MAC Address search the 2nd VM EID and RLOC mapping relations, obtain corresponding RLOC be the 2nd VTEP IP address;
The IP address of the 2nd VTEP is carried out VXLAN encapsulation as purpose IP to described initial data message by the first VTEP, VXLAN message after encapsulation is sent to the 2nd VTEP;
After 2nd VTEP receives the VXLAN message after encapsulation, the VXLAN message after described encapsulation is descapsulated into Initial data message, is the 2nd VM according to initial data message target MAC (Media Access Control) address and IP address, forwards this initial data message extremely 2nd VM.
For the clear explanation present invention, concrete scene is set forth below and is described in detail.The present invention is using LISP as VXLAN's Control plane agreement is run, and therefore also the xTR equipment as LISP runs the VTEP equipment of VXLAN, and the present invention is also adopted by Mapped system in LISP.MR and MS is employed, MR and MS can be same equipment or difference in mapped system Equipment.Following is a brief introduction of mapped system operation principle, identical with its operation principle in LISP.If MR and MS It is same equipment, mapping request message is directly issued MS by MR;If not same equipment, then MS is allowed to have multiple stage, example If any MS1 and MS2, there are two kinds of implementations:First, MS1 registers the map information of VTEP associated by some, and MS2 registers with The map information of VTEP associated by another part, MR sets up bgp neighbor respectively with MS1, MS2, the mapping letter on synchronous MS1, MS2 Breath, such MR just has the map information of all VTEP, MR is known which MS mapping request message issues;2nd, set Putting a MS1 is root device, and other MS are node device, and each node device registers with the mapping letter of each associated VTEP Breath, mapping request message is first issued MS1 by MR, then issues other corresponding MS by MS1.
Fig. 3 provides a networking schematic diagram of method application for the embodiment of the present invention.VTEP A and VTEP B belongs to not Website in same data center, VM1 and VM2 has identical VNI, MR and MS of mapped system is located on same equipment.This The VM1 that the purpose of invention is under VTEP A will realize communicating with the VM2 under VTEP B, and concrete grammar includes:
Step S1, first, VM2 moves to VTEP2(xTR2)Under, that is, after moving to affiliated Site2, then in Site2 VTEP2 notices MAC Address and the IP address of itself, and VTEP2 distributes VNI for VM2 simultaneously.At this moment, VTEP2 just can safeguard VM2 EID and RLOC mapping relations, wherein EID is the Mac address of VM2, IP address and VNIID, specially:Mac2、VNI1、 IP2;RLOC is the IP address of VTEP2, specially IP B;Then, VTEP2 registers the EID/RLOC of VM2 to MS, and MS is thus preserve There is the EID/RLOC of VM2.
Step S2, VTEP1(xTR1)Under VM1(Belong to Site1)Send ARP request to VTEP1, request address is:IP2 MAC.
After step S3, VTEP1 receives ARP request, ARP is not flooded within the core network, but controlled by LISP flat Face, sends mapping request message(Map-request)To VTEP2, ask the mapping relations of EID and RLOC of VM2, wherein, please EID is asked to be (VNI1, IP2, *);
Specifically, mapping request message is the MR/MS route system by LISP, is forwarded to VTEP2;
Wherein, MR receives the mapping request message of VTEP1 transmission, and according to the EID prefix route letter in mapping network Breath, message is sent to corresponding MS;
MS be stored with VTEP2 registration map information, according to log-on message, the mapping request receiving message is transmitted to Corresponding VTEP2.
Step S4, VTEP2 directly replys mapping response message(Map-response)To VTEP1, the EID of return is: (VNI1, IP2, MAC2), RLOC is:IP B.
Step S5, VTEP1 is saved in the EID/RLOC of VM2 in local cache, and subsequent execution ARP proxy function, to VM1 Reply arp reply, Mac2 is replied to VM1 by arp reply;
Specifically, VTEP1 can preserve two parts content, and a part is the mapping relations of EID and RLOC of VM2, one Divide the corresponding relation of IP and MAC being VM2:Mac2:IP2.
Step S6, VM1 sends datagram to VM2, and it is VM2 that data message carries purpose IP and purpose MAC, is first sent to VTEP1.
Step S7, VTEP1 is IP B according to the purpose MAC Mac2 of VM2, the corresponding RLOC of lookup, is encapsulated by VXLAN, Send datagram to VTEP2;
Wherein, VXLAN encapsulates the IP address IP B that purpose IP is VTEP2, and source IP is the IP address IP A of VTEP1.
After step S8, VTEP2 receives VXLAN message, decapsulated, then original two layer message is transmitted to VM2;
Wherein, solution VXLAN encapsulation is exactly to solve UDP encapsulation, and then purpose MAC according to initial data message and purpose IP will Data message forwarding is to VM2.
So far, complete the communication of the span data center of VM1 and VM2.
Based on same inventive concept, the present invention also proposes a kind of message forwarding equipment, and referring to Fig. 4, Fig. 4 has for the present invention It is applied to the structural representation of the message forwarding equipment of said method in body embodiment.This message forwarding equipment, is applied to first VTEP, including:
Mapping request unit 401, for receiving the ARP request message that the first virtual machine VM sends, by mapped system Send mapping request message, the endpoint identifier EID of the 2nd VM under request the 2nd VTEP and route location mark to the 2nd VTEP Know the mapping relations of symbol RLOC;Wherein, a VM and the 2nd VM has identical VNI;
Mapping relations unit 402, for receiving the mapping response message that the 2nd VTEP returns, study the 2nd VM's The mapping relations of EID and RLOC;Wherein, EID is MAC Address, IP address and the affiliated VNI of the 2nd VM;RLOC is second The IP address of VTEP;
Encapsulation transmitting element 403, is sent to the message of the 2nd VM for receiving a VM, according to the 2nd VM's preserving The mapping relations of EID and RLOC, carry out VXLAN encapsulation to described message, and are sent to the 2nd VTEP, are transmitted to by the 2nd VTEP 2nd VM.
Further, described mapping request unit 401 is specifically for being sent to mapping request message according to ARP message Mapping request message is sent to the MS of the mapping relations of EID and RLOC registering with the 2nd VM by MR by MR, will be reflected by MS Penetrate request message and be sent to the 2nd VTEP.
Described equipment also includes registering unit 404, for registering the mapping relations of EID and RLOC of a VM to MS, uses In MS, the mapping request message receiving from the 2nd VTEP is transmitted to by this equipment according to described log-on message.
Further, described encapsulation transmitting element 403, specifically for by the MAC of the 2nd VM in the EID of described mapping relations Address carries and is sent to a VM in arp reply message;
The target MAC (Media Access Control) address receiving a VM transmission is the message of the 2nd VM, and the MAC Address according to the 2nd VM searches second The mapping relations of EID and RLOC of VM, obtain the IP address that corresponding RLOC is the 2nd VTEP;
The IP address of the 2nd VTEP is carried out VXLAN encapsulation as purpose IP to described message, by the VXLAN report after encapsulation Literary composition is sent to the 2nd VTEP, is transmitted to the 2nd VM by the 2nd VTEP.
Described equipment also includes decapsulating transmitting element 405, for receiving the VXLAN message after encapsulation, to described encapsulation VXLAN message afterwards carries out being descapsulated into initial data message, is the according to initial data message target MAC (Media Access Control) address and IP address One VM, forwards this initial data message to a VM.
It should be noted that a VTEP and the 2nd VTEP function phase are same, when being intended only as the receiving end of message and making a start, angle Color is different.
The message forwarding method of the present invention, can bring following benefit:
First, run as the control plane agreement of VXLAN by LISP, realize VXLAN under there is no multicast scenarios, can Effec-tive Function;
2nd, by LISP realize EID be IP address, MAC Address, VXLAN ID three combine it is suppressed that ARP is in core net Flood and learning process;
3rd, by the control plane function of LISP, realize the deployment of a large amount of VTEP.
The composition schematic diagram of the message forwarding equipment that Fig. 5 provides for further embodiment of this invention, as shown in figure 5, it is main Including:CPU51 and internal memory 52, internal memory 52 includes:Mapping request unit 521, mapping relations unit 522, encapsulation sends single Unit 523, registering unit 524, decapsulate transmitting element 525, wherein:
CPU51:Computer program code for being communicated with internal memory 52, in execution internal memory 52.
Mapping request unit 521:Storage computer program code, completes step when this code is executed by CPU51:Receive The ARP request message sending to the first virtual machine VM, sends mapping request message, request the by mapped system to the 2nd VTEP The mapping relations of the endpoint identifier EID of the 2nd VM under two VTEP and route location identifier RLOC;Wherein, a VM and Two VM have identical VNI.
Mapping relations unit 522:Storage computer program code, completes step when this code is executed by CPU51: Receive the mapping response message that the 2nd VTEP returns, the mapping relations of EID and RLOC of study the 2nd VM;Wherein, EID is second The MAC Address of VM, IP address and affiliated VNI;RLOC is the IP address of the 2nd VTEP.
Encapsulation transmitting element 523:Storage computer program code, completes step when this code is executed by CPU51:Receive First VM is sent to the message of the 2nd VM, the mapping relations of EID and RLOC according to the 2nd VM preserving, and described message is carried out VXLAN encapsulates, and is sent to the 2nd VTEP, is transmitted to the 2nd VM by the 2nd VTEP.
Mapping request unit 521, specifically for storing computer program code, completes when this code is executed by CPU51 Step:Mapping request message is sent to by MR according to ARP message, by MR, mapping request message is sent to and registers with the 2nd VM The mapping relations of EID and RLOC MS, mapping request message is sent to by the 2nd VTEP by MS.
Internal memory 52 further includes:Registering unit 524, for storing computer program code, when this code is held by CPU51 Step is completed during row:Register the mapping relations of EID and RLOC of a VM to MS, will be from the according to described log-on message for MS The mapping request message that two VTEP receive is transmitted to this equipment.
Encapsulation transmitting element 523, specifically for storing computer program code, completes when this code is executed by CPU51 Step:The MAC Address of the 2nd VM in the EID of described mapping relations is carried and is sent to a VM in arp reply message;
The target MAC (Media Access Control) address receiving a VM transmission is the message of the 2nd VM, and the MAC Address according to the 2nd VM searches second The mapping relations of EID and RLOC of VM, obtain the IP address that corresponding RLOC is the 2nd VTEP;
The IP address of the 2nd VTEP is carried out VXLAN encapsulation as purpose IP to described message, by the VXLAN report after encapsulation Literary composition is sent to the 2nd VTEP, is transmitted to the 2nd VM by the 2nd VTEP.
Internal memory 52 further includes:Decapsulation transmitting element 525, for storing computer program code, when this code quilt Step is completed during CPU51 execution:Receive the VXLAN message after encapsulation, the VXLAN message after described encapsulation is descapsulated into Initial data message, is a VM according to initial data message target MAC (Media Access Control) address and IP address, forwards this initial data message extremely First VM.
The above, only presently preferred embodiments of the present invention, it is not intended to limit protection scope of the present invention.All Within the spirit and principles in the present invention, any modification, equivalent substitution and improvement made etc., should be included in the protection of the present invention Within the scope of.

Claims (10)

1. a kind of message forwarding method, the method includes:
First tunnel terminal VTEP receives the ARP request message that the first virtual machine VM sends, by mapped system to the Two VTEP send mapping request message, the endpoint identifier EID of the 2nd VM under request the 2nd VTEP and route location identifier The mapping relations of RLOC;Wherein, a VM and the 2nd VM has identical virtual expansible local net network identifier VNI;
First VTEP receives the mapping response message that the 2nd VTEP returns, the mapping relations of EID and RLOC of study the 2nd VM;Its In, EID is MAC Address, IP address and the affiliated VNI of the 2nd VM;RLOC is the IP address of the 2nd VTEP;
First VTEP receives the message that a VM is sent to the 2nd VM, and the mapping of EID and RLOC according to the 2nd VM preserving is closed System, carries out virtual expansible LAN VXLAN encapsulation, and is sent to the 2nd VTEP, be transmitted to by the 2nd VTEP to described message 2nd VM.
2. the method for claim 1 is it is characterised in that described mapped system includes Mapping Resolution device MR and mapping services Device MS;
A described VTEP is specifically included by the method that mapped system sends mapping request message to the 2nd VTEP:
Mapping request message is sent to MR according to ARP message by the first VTEP, by MR, mapping request message is sent to registration There is the MS of the mapping relations of EID and RLOC of the 2nd VM, mapping request message is sent to by the 2nd VTEP by MS.
3. the method for claim 1 is it is characterised in that a VTEP preserves the mapping of EID and RLOC of a VM Relation, a described VTEP is additionally operable to register the mapping relations of EID and RLOC of a VM to MS, for MS according to described registration The mapping request message receiving from the 2nd VTEP is transmitted to a corresponding VTEP by information.
4. the method for claim 1 is it is characterised in that a described VTEP receives the report that a VM is sent to the 2nd VM Literary composition, the mapping relations of EID and RLOC according to the 2nd VM preserving, VXLAN encapsulation is carried out to described message, and is sent to second VTEP, is specifically included by the method that the 2nd VTEP is transmitted to the 2nd VM:
The MAC Address of the 2nd VM in the EID of described mapping relations is carried and is sent to first in arp reply message by the first VTEP VM;
The target MAC (Media Access Control) address that first VTEP receives a VM transmission is the message of the 2nd VM, and the MAC Address according to the 2nd VM is searched The mapping relations of EID and RLOC of the 2nd VM, obtain the IP address that corresponding RLOC is the 2nd VTEP;
The IP address of the 2nd VTEP is carried out VXLAN encapsulation as purpose IP by the first VTEP to described message, after encapsulation VXLAN message is sent to the 2nd VTEP, is transmitted to the 2nd VM by the 2nd VTEP.
5. the method for claim 1 is it is characterised in that a VTEP is additionally operable to the VXLAN message after receiving encapsulation, and the One VTEP carries out being descapsulated into initial data message to the VXLAN message after described encapsulation, according to initial data message purpose MAC Address and IP address are a VM, forward this initial data message to a VM.
6. a kind of message forwarding equipment, is applied to the first tunnel terminal VTEP it is characterised in that this equipment includes:
Mapping request unit, for receiving the ARP request message that the first virtual machine VM sends, by mapped system to second VTEP sends mapping request message, the endpoint identifier EID of the 2nd VM under request the 2nd VTEP and route location identifier The mapping relations of RLOC;Wherein, a VM and the 2nd VM has identical virtual expansible local net network identifier VNI;
Mapping relations unit, for receiving the mapping response message that the 2nd VTEP returns, EID and RLOC of study the 2nd VM Mapping relations;Wherein, EID is MAC Address, IP address and the affiliated VNI of the 2nd VM;RLOC is the IP ground of the 2nd VTEP Location;
Encapsulation transmitting element, is sent to the message of the 2nd VM for receiving a VM, according to EID and RLOC of the 2nd VM preserving Mapping relations, described message is carried out with virtual expansible LAN VXLAN encapsulation, and is sent to the 2nd VTEP, by second VTEP is transmitted to the 2nd VM.
7. equipment as claimed in claim 6 is it is characterised in that described mapping request unit is specifically for inciting somebody to action according to ARP message Mapping request message is sent to MR, and mapping request message is sent to the mapping of EID and RLOC registering with the 2nd VM by MR Mapping request message is sent to the 2nd VTEP by MS by the MS of relation.
8. equipment as claimed in claim 6 is it is characterised in that described equipment also includes registering unit, for MS registration the The mapping relations of EID and RLOC of one VM, the mapping request that will be received from the 2nd VTEP according to described log-on message for MS Message is transmitted to this equipment.
9. equipment as claimed in claim 6 is it is characterised in that described encapsulation transmitting element, specifically for closing described mapping In the EID of system, the MAC Address of the 2nd VM carries and is sent to a VM in arp reply message;
The target MAC (Media Access Control) address receiving a VM transmission is the message of the 2nd VM, and the MAC Address according to the 2nd VM searches the 2nd VM's The mapping relations of EID and RLOC, obtain the IP address that corresponding RLOC is the 2nd VTEP;
The IP address of the 2nd VTEP is carried out VXLAN encapsulation as purpose IP to described message, the VXLAN message after encapsulation is sent out Give the 2nd VTEP, the 2nd VM is transmitted to by the 2nd VTEP.
10. equipment as claimed in claim 6 is it is characterised in that described equipment also includes decapsulating transmitting element, for receiving VXLAN message after encapsulation, carries out being descapsulated into initial data message to the VXLAN message after described encapsulation, according to original number It is a VM according to message target MAC (Media Access Control) address and IP address, forward this initial data message to a VM.
CN201410110107.1A 2014-03-24 2014-03-24 Method and device for forwarding messages Active CN103841028B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410110107.1A CN103841028B (en) 2014-03-24 2014-03-24 Method and device for forwarding messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410110107.1A CN103841028B (en) 2014-03-24 2014-03-24 Method and device for forwarding messages

Publications (2)

Publication Number Publication Date
CN103841028A CN103841028A (en) 2014-06-04
CN103841028B true CN103841028B (en) 2017-02-08

Family

ID=50804178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410110107.1A Active CN103841028B (en) 2014-03-24 2014-03-24 Method and device for forwarding messages

Country Status (1)

Country Link
CN (1) CN103841028B (en)

Families Citing this family (44)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168140B (en) * 2014-08-14 2017-11-14 新华三技术有限公司 VTEP abnormal conditions processing method and processing devices
CN104243268B (en) * 2014-09-19 2017-05-10 新华三技术有限公司 Association method and device between virtual extensible local area networks (VXLAN) and tunnel
CN104243269B (en) * 2014-09-24 2019-01-22 新华三技术有限公司 A kind of processing method and processing device of virtual extended local network packet
CN104243630B (en) * 2014-09-29 2017-10-03 新华三技术有限公司 MAC address learning method and device in VXLAN networks
CN104270298B (en) * 2014-09-30 2018-10-09 新华三技术有限公司 Message forwarding method and device in a kind of VXLAN networks
CN104283980B (en) * 2014-10-09 2018-02-09 新华三技术有限公司 A kind of address resolution protocol pickup method and device
CN105577548B (en) * 2014-10-10 2018-10-09 新华三技术有限公司 Message processing method and device in a kind of software defined network
CN105577500B (en) * 2014-10-16 2019-05-03 新华三技术有限公司 The correlating method and device of VXLAN and tunnel
CN105591998B (en) 2014-10-21 2019-01-08 新华三技术有限公司 Inhibit the method and apparatus of periodic registration communication end point mark EID
CN105634942B (en) * 2014-10-31 2020-01-03 华为技术有限公司 Method and switch for forwarding message
CN105634955B (en) * 2014-11-05 2020-01-14 中兴通讯股份有限公司 Flow table updating method and device
CN104468394B (en) * 2014-12-04 2018-02-09 新华三技术有限公司 Message forwarding method and device in a kind of VXLAN networks
WO2016115698A1 (en) * 2015-01-21 2016-07-28 华为技术有限公司 Data packet forwarding method, apparatus and device
CN105991440B (en) * 2015-02-12 2019-03-15 新华三技术有限公司 The method and apparatus of flow interrupt caused by preventing virtual machine VM from migrating
CN106161248B (en) * 2015-04-27 2019-03-29 新华三技术有限公司 Message forwarding method and device in a kind of VXLAN network
CN106302171B (en) * 2015-05-13 2019-09-17 新华三技术有限公司 A kind of virtual machine moves into detection method and device
CN105591907B (en) * 2015-07-28 2018-11-09 新华三技术有限公司 A kind of route obtaining method and device
WO2017020236A1 (en) * 2015-08-04 2017-02-09 Nokia Technologies Oy Interconnection of overlay networks
CN106850379A (en) * 2015-12-04 2017-06-13 中国电信股份有限公司 Method and system for realizing subnet intercommunication
CN105591874B (en) * 2015-12-22 2020-10-13 新华三技术有限公司 Data sending method and device
CN107404436A (en) * 2016-05-19 2017-11-28 华为技术有限公司 Communication means and device for virtual expansible LAN
CN106059946B (en) * 2016-05-23 2019-12-06 新华三技术有限公司 Message forwarding method and device
CN105939296B (en) * 2016-06-24 2019-11-12 杭州迪普科技股份有限公司 The processing method and processing device of message
CN107566262A (en) * 2016-06-30 2018-01-09 中兴通讯股份有限公司 Message forwarding method and device in virtual expansible LAN VXLAN
CN106209616B (en) * 2016-07-06 2020-11-06 新华三技术有限公司 Flooding inhibition method and device
CN106385354B (en) * 2016-08-30 2019-08-20 锐捷网络股份有限公司 Message forwarding method and device
CN107800628B (en) * 2016-09-07 2020-12-01 华为技术有限公司 Data forwarding device and data forwarding method for software defined network
CN106411752B (en) * 2016-09-30 2019-06-11 浙江宇视科技有限公司 Multicast message receiving/transmission method and system
CN106330719B (en) * 2016-10-26 2019-11-12 杭州迪普科技股份有限公司 A kind of VXLAN message forwarding method and device
CN106878136B (en) * 2016-12-28 2020-01-03 新华三技术有限公司 Message forwarding method and device
CN106911547B (en) * 2017-02-10 2020-09-25 新华三技术有限公司 Message forwarding method and device
CN106850434B (en) * 2017-03-31 2020-08-25 联想(北京)有限公司 VXLAN transmission control method, system and processing equipment
CN108934058B (en) * 2017-05-25 2020-11-27 华为技术有限公司 Communication method and device
CN107342941B (en) * 2017-06-01 2019-11-12 杭州迪普科技股份有限公司 A kind of optimization method and device of VXLAN control plane
CN107493222B (en) * 2017-08-15 2020-06-09 杭州迪普科技股份有限公司 VXLAN message forwarding method and device
CN107370841B (en) * 2017-08-20 2020-11-27 中国人民解放军理工大学 Method for high-efficiency address resolution on multi-hop wireless network
CN108199946B (en) * 2017-12-29 2020-08-14 新华三技术有限公司 Data forwarding method and communication system
CN109995639B (en) * 2018-01-02 2021-06-04 中国移动通信有限公司研究院 Data transmission method, device, switch and storage medium
CN110048925B (en) * 2018-01-15 2021-07-06 厦门靠谱云股份有限公司 IaaS OverLay control plane implementation method based on open source EVPN
CN108600074B (en) * 2018-04-20 2021-06-29 新华三技术有限公司 Method and device for forwarding multicast data message
CN109257265B (en) * 2018-08-10 2021-04-20 锐捷网络股份有限公司 Flooding suppression method, VXLAN bridge, gateway and system
CN109167731B (en) * 2018-08-30 2021-06-08 新华三技术有限公司 Message sending method and device
CN109347748A (en) * 2018-11-29 2019-02-15 新华三技术有限公司 A kind of method and apparatus of synchronization of routing information
CN109547350B (en) * 2018-11-29 2021-10-08 迈普通信技术股份有限公司 Route learning method and gateway equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238058A (en) * 2010-04-20 2011-11-09 中兴通讯股份有限公司 Data message processing method, ingress tunnel router and system
CN102307144A (en) * 2011-08-19 2012-01-04 杭州华三通信技术有限公司 Dynamic host configuration protocol (DHCP) message forwarding method for transparent interconnection of lots of links (TRILL) network and routing bridge
CN102355510A (en) * 2011-10-17 2012-02-15 中兴通讯股份有限公司 Medium/media access control (MAC) address allocation method, device and system
CN102932225A (en) * 2011-08-11 2013-02-13 中兴通讯股份有限公司 Method, system and device for realizing communication between sub virtual local area networks
WO2013026299A1 (en) * 2011-08-22 2013-02-28 中兴通讯股份有限公司 Address resolution method and device, and information transmission method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8767737B2 (en) * 2011-11-30 2014-07-01 Industrial Technology Research Institute Data center network system and packet forwarding method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238058A (en) * 2010-04-20 2011-11-09 中兴通讯股份有限公司 Data message processing method, ingress tunnel router and system
CN102932225A (en) * 2011-08-11 2013-02-13 中兴通讯股份有限公司 Method, system and device for realizing communication between sub virtual local area networks
CN102307144A (en) * 2011-08-19 2012-01-04 杭州华三通信技术有限公司 Dynamic host configuration protocol (DHCP) message forwarding method for transparent interconnection of lots of links (TRILL) network and routing bridge
WO2013026299A1 (en) * 2011-08-22 2013-02-28 中兴通讯股份有限公司 Address resolution method and device, and information transmission method
CN102355510A (en) * 2011-10-17 2012-02-15 中兴通讯股份有限公司 Medium/media access control (MAC) address allocation method, device and system

Also Published As

Publication number Publication date
CN103841028A (en) 2014-06-04

Similar Documents

Publication Publication Date Title
CN103841028B (en) Method and device for forwarding messages
US11411776B2 (en) Multi-cloud VPC routing and registration
US9281955B2 (en) Interoperability of data plane based overlays and control plane based overlays in a network environment
EP2982097B1 (en) Method and apparatus for exchanging ip packets among network layer 2 peers
EP2897347B1 (en) Method for transmitting addresses correspondence relationship in second-layer protocol using link status routing
US9596099B2 (en) Scalable network virtualization with aggregate endpoints
US9240944B2 (en) Overlay services in communication networks
US9253140B2 (en) System and method for optimizing within subnet communication in a network environment
CN103200069B (en) A kind of method and apparatus of Message processing
US8098656B2 (en) Method and apparatus for implementing L2 VPNs on an IP network
WO2018090872A1 (en) Data processing
CN104396192B (en) Dissymmetric network address encapsulates
US11743229B2 (en) Efficient ARP bindings distribution in VPN networks
CN104601472B (en) The method and message handling system of VXLAN gateways distribution route are realized in the chips
US9641417B2 (en) Proactive detection of host status in a communications network
WO2015123987A1 (en) Packet forwarding method and device
WO2016198022A1 (en) Method for implementing virtualization network overlay and network virtualization edge node
US10432578B2 (en) Client address based forwarding of dynamic host configuration protocol response packets
CN106209616B (en) Flooding inhibition method and device
CN106209689B (en) Multicast data packet forwarding method and apparatus from VXLAN to VLAN
CN105591907B (en) A kind of route obtaining method and device
CN110752989A (en) Method and device for forwarding east-west traffic
CN107547691B (en) Address resolution protocol message proxy method and device

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

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

Patentee after: Xinhua three Technology Co., Ltd.

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

Patentee before: Huasan Communication Technology Co., Ltd.