CN106161248B - Message forwarding method and device in a kind of VXLAN network - Google Patents

Message forwarding method and device in a kind of VXLAN network Download PDF

Info

Publication number
CN106161248B
CN106161248B CN201510205824.7A CN201510205824A CN106161248B CN 106161248 B CN106161248 B CN 106161248B CN 201510205824 A CN201510205824 A CN 201510205824A CN 106161248 B CN106161248 B CN 106161248B
Authority
CN
China
Prior art keywords
vxlan
vtep
tunnel
master
equipment
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
CN201510205824.7A
Other languages
Chinese (zh)
Other versions
CN106161248A (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 CN201510205824.7A priority Critical patent/CN106161248B/en
Publication of CN106161248A publication Critical patent/CN106161248A/en
Application granted granted Critical
Publication of CN106161248B publication Critical patent/CN106161248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses message forwarding method and devices in a kind of VXLAN network, this method comprises: when VTEP is as main equipment in aggregate set, after the MAC Address for learning local subscriber apparatus, by protocol massages, into VXLAN example, the tunnel VXLAN opposite end VTEP notices the MAC Address and the corresponding GROUP ID of main equipment of the user equipment, so that opposite end VTEP saves the MAC Address of the user equipment and the corresponding relationship of GROUP ID, it wherein, is equative route between the tunnel established with the VETP in same GROUP ID;When the data message for being forwarded to notebook data center from the tunnel VXLAN opposite end VTEP reaches the slave equipment in aggregate set, then main equipment receives the data message from device forwards, is searched according to target MAC (Media Access Control) address, is sent to local subscriber apparatus.Multipath to realize opposite end VTEP to local data center is shared.

Description

Message forwarding method and device in a kind of VXLAN network
Technical field
The present invention relates to network communication technology field, in particular to message forwarding method and device in a kind of VXLAN network.
Background technique
VXLAN is a kind of MAC-in-UDP technology, it passes through 2.5 layers of setting, one new network segmentation mould in network Formula, joined the segment identifier of a 24bit, greatly expand the number for the logical network that can be supported in cloud computing environment Amount;And workload and physical network are detached from, realize that logical network crosses over IP network.
VXLAN networking schematic diagram is as shown in Figure 1 at present.(encapsulation decapsulation VXLAN is set virtual channel terminal (VTEP) equipment It is standby), it can be the virtual switch (vSwitch) of physical server, be also possible to physical switches.VTEP10 and VTEP11 exist Access VXLAN network in data center 1, VTEP2 accesses VXLAN network in data center 2, same in current VXLAN network There are when two VTEP equipment in a data center 1, the mode that two VTEP equipment cannot be backed up mutually simultaneously accesses VXLAN net Network can not form backup in whole network.Network is accessed simultaneously, and accesses VXLAN network in a manner of independent, far End VTEP2 equipment when accessing two VTEP is accessed with individual equipment, cannot be using this two VTEP as an equative route Access.
Summary of the invention
The object of the present invention is to provide message forwarding method and devices in a kind of VXLAN network, realize access VTEP Backup, reached the load balancing based on VXLAN example, at the same realize distal end VTEP to local data center multipath It shares, improves the utilization rate of public network network.
The embodiment of the invention provides message forwarding method in a kind of VXLAN network, same data center it is multiple virtual Channel end VTEP has identical and unique polymerization set identifier GROUP ID, this method comprises: when VTEP is as in aggregate set Main Master equipment when, after learning the MAC Address of local subscriber apparatus, by protocol massages into VXLAN example VXLAN Tunnel opposite end VTEP notices the MAC Address and the corresponding GROUP ID of Master of the user equipment, so that opposite end VTEP is saved The MAC Address of the user equipment and the corresponding relationship of GROUP ID, wherein the tunnel established with the VETP in same GROUP ID Between be equative route;When the data message for being forwarded to notebook data center from the tunnel VXLAN opposite end VTEP reaches in aggregate set From equipment, then Master receives the data message from device forwards, is searched according to target MAC (Media Access Control) address, is sent to local use Family equipment.
The embodiment of the invention also provides message forwarding methods in a kind of VXLAN network, are applied to the tunnel VXLAN opposite end VTEP, this method comprises: opposite end VTEP is with receiving the carrying local subscriber apparatus MAC that the main equipment Master in aggregate set is sent The protocol massages of location and the corresponding GROUP ID of Master;Opposite end VTEP saves the MAC Address and GROUP of the user equipment The corresponding relationship of ID, wherein be equative route between the tunnel established with the VETP in same GROUP ID;When opposite end VTEP sheet When ground receives the data message that target MAC (Media Access Control) address is the user equipment, according to the corresponding relationship, select one it is of equal value The tunnel VXLAN outgoing interface is forwarded to the VTEP in the data center.
The embodiment of the invention also provides apparatus for forwarding message in a kind of VXLAN network, multiple void of same data center Quasi- channel end VTEP has identical and unique polymerization set identifier GROUP ID, when VTEP is as the main Master in aggregate set When equipment, which includes: notification unit, after the MAC Address for learning local subscriber apparatus, by protocol massages to The tunnel VXLAN opposite end VTEP notices the MAC Address and the corresponding GROUP ID of Master of the user equipment in VXLAN example, So that opposite end VTEP saves the MAC Address of the user equipment and the corresponding relationship of GROUP ID, wherein in same GROUP ID VETP establish tunnel between be equative route;Retransmission unit is forwarded to notebook data for working as from the tunnel VXLAN opposite end VTEP The data message at center reaches the slave equipment in aggregate set, then the data message from device forwards is received, according to purpose MAC Address search is sent to local subscriber apparatus.
The embodiment of the invention also provides apparatus for forwarding message in a kind of VXLAN network, are applied to the tunnel VXLAN opposite end VTEP, the device include: receiving unit, for receiving the carrying local subscriber apparatus of the transmission of the main equipment Master in aggregate set The protocol massages of MAC Address and the corresponding GROUP ID of Master;Storage unit, for saving the MAC of the user equipment The corresponding relationship of location and GROUP ID, wherein be equative route between the tunnel established with the VETP in same GROUP ID;Place Unit is managed, for being closed according to the correspondence when local reception to target MAC (Media Access Control) address is the data message of the user equipment System selects the tunnel a VXLAN outgoing interface of equal value to be forwarded to the VTEP in the data center.
The beneficial effects of the present invention are, same aggregate set is added in the VTEP equipment in same data center, mutually it Between constitute alternate device access VXLAN network.Main equipment is elected in aggregate set and from equipment, backup is acted on from equipment.Far End VTEP can be selected to the path of aggregate set by bi-conditional operation, to realize the multipath point of aggregate set Load.
Detailed description of the invention
Fig. 1 is VXLAN networking schematic diagram;
Fig. 2 is the flow diagram of message forwarding method in a kind of VXLAN network provided by the invention;
Fig. 3 is application of embodiment of the present invention networking scene schematic diagram;
Fig. 4 is the structural schematic diagram of apparatus for forwarding message in a kind of VXLAN network provided in an embodiment of the present invention;
Fig. 5 is apparatus for forwarding message in a kind of VXLAN network provided in an embodiment of the present invention, when VTEP is as VXLAN tunnel The structural schematic diagram of road opposite end VTEP.
Specific embodiment
Referring to the drawings, the embodiment of the present invention is described in further detail.
As shown in Fig. 2, the present invention provides message forwarding method in a kind of VXLAN network, same data center it is multiple Virtual channel terminal VTEP has identical and unique GROUP ID, this method comprises:
Step 21, when VTEP is as master (Master) equipment in aggregate set, learn the MAC Address of local subscriber apparatus Later, by protocol massages into VXLAN example the tunnel VXLAN opposite end VTEP notice the user equipment MAC Address and The corresponding GROUP ID of Master, so that opposite end VTEP saves the MAC Address of the user equipment and the corresponding relationship of GROUP ID, It wherein, is equative route between the tunnel established with the VETP in same GROUP ID;
Step 22, when be forwarded to from the tunnel VXLAN opposite end VTEP notebook data center data message reach aggregate set in From equipment, then Master receives the data message from device forwards, is searched according to target MAC (Media Access Control) address, is sent to local use Family equipment.
Master in the data message arrival aggregate set for being forwarded to notebook data center from the tunnel VXLAN opposite end VTEP, Then Master is searched according to target MAC (Media Access Control) address, is sent to local subscriber apparatus.
Before message forwarding, the tunnel VXLAN in the election of Master and VXLAN example is needed to carry out in aggregate set Creation, then implement are as follows:
Each VTEP in VXLAN example carries own IP address and said polymeric set identifier, sends registration to ENDS and asks Message is sought, so that the VTEP in same polymeric collection is carried out Master election by ENDS, selects one of VTEP equipment as this Master equipment in aggregate set.
Each VTEP in VXLAN example receives each VTEP IP address of carrying, the said polymeric set identifier that ENDS is sent And the registration reply message of locating role;The creation in the tunnel VXLAN is triggered according to registration information.VTEP in VXLAN example It include: in VTEP and this aggregate set in VXLAN example according to the method that registration information triggers the creation in the tunnel VXLAN Master establishes the tunnel VXLAN;The tunnel VXLAN is established with each VTEP in other aggregate sets, the VTEP in VXLAN example The tunnel the VXLAN of equal value outgoing interface between each VTEP in upper formation and other aggregate sets.
Message forwarding side in VXLAN network of the present invention is further illustrated below by the embodiment of the present invention one and embodiment two Method.Fig. 3 is that the embodiment of the present invention one and embodiment two apply networking scene schematic diagram.
Embodiment one
Firstly, ENDS (EVI neighbours have found server) receives ENDC's (EVI neighbours have found client) in VXLAN example ENDC in same polymeric collection is carried out Master election, selects one of them by registration information according to the registration information of each ENDC VTEP equipment is all out of (Backup) equipment, aggregate set as master (Master) equipment in aggregate set, other equipment Master equipment is responsible for other being advertised to the user's MAC address at notebook data center with ESADI protocol massages in VXLAN example VTEP remote equipment.
Wherein, when configuring VXLAN example, it is also in the VXLAN example that ENDS, ENDS can be specified in VXLAN example A VTEP equipment, other VTEP equipment be ENDC.ENDC passes through ENDP (EVI Neighbor Discovery Protocol, EVI Neighbor Discovery Protocol) registration request message actively registered to ENDS, all ENDC are registered letter by ENDS Breath is advertised to ENDC by the registration reply message timing of ENDP.
When, there are when multiple VTEP access devices, these VTEP equipment can be by way of backup in same data center VXLAN network is accessed, the VTEP equipment mutually backed up can will be constituted in these same data centers, the same polymerization is added It concentrates, each aggregate set is identified using a GROUP ID, the static specified affiliated aggregate set in each VTEP equipment GROUP ID, identical aggregate set must specify identical GROUP ID number, and the GROUP ID in the same VXLAN example is necessary Uniquely, multiple aggregate sets are allowed in a VXLAN example, but a VTEP equipment can only in a VXLAN example Uniquely belong to an aggregate set, does not allow to exist simultaneously in multiple aggregate sets.The multiple VXLAN of one VTEP device configuration are real When example, it can reside in the aggregate set of each example.
EDNP registration request message and ENDP registration reply message, are referred to as ENDP logon message, carry the IP of ENDC Address, affiliated GROUP ID, locating role (Master or Backup).Specifically, ENDC is affiliated by own IP address GROUP ID, which is carried, to be registered in EDNP registration request message to ENDS, and ENDS receives the EDNP registration that each ENDC is sent and asks After seeking message, the registration information of each ENDC is saved, and elects Master equipment, it is logical by ENDP registration reply message timing It accuses to all ENDC, the IP address of each ENDC, affiliated GROUP ID and locating role is carried in registration reply message.
Next, after the VTEP equipment in VXLAN network introduces the concept of GROUP by ENDP agreement, each VTEP Which can grasp in network in member device and each aggregate set there are ENDC aggregate set, in each aggregate set Master equipment.VTEP equipment triggers the creation in the tunnel VXLAN after learning to ENDC equipment.
Wherein, the member device in a VTEP equipment and each ENDC aggregate set establishes the tunnel VXLAN, these tunnels Outgoing interface is tunnel outgoing interface of equal value.It can pass through from the message of VTEP device forwards one member device into aggregate set Any one tunnel outgoing interface forwarding of equal value, after message reaches the VTEP equipment in aggregate set, the VTEP equipment can bullet fall tunnel The tunnel message packaging V XLAN is sent to the Master equipment at notebook data center again behind road, by Master equipment by message most It is transmitted to the user side access device of data center eventually.
Each member device in ENDC aggregate set requires to establish the tunnel VXLAN, Backup member with Master equipment Between do not need to establish the tunnel VXLAN, Backup member directly abandons when receiving message from user side equipment, flanks from public network Bullet falls the tunnel VXLAN head and the again tunnel packaging V XLAN when receiving VXLAN tunnel packet, forwards the message to Master equipment, Master equipment bullet falls to forward the message to behind the tunnel VXLAN the customer access equipment of local data center.
Master equipment is the main entrance that notebook data central user effluent amount enters public network, and all user side flows all pass through Master is forwarded to public network side.Public network effluent amount also enters user side eventually by Master equipment simultaneously.
When the Master equipment in aggregate set breaks down, registration information is not sent to ENDS at the appointed time, Then ENDS can select a Master equipment again for the aggregate set, updated ENDP registration reply message is sent to all VTEP equipment.VTEP equipment in aggregate set creates the tunnel VXLAN according to newly assigned Master.Distal end VTEP equipment is providing It is not received by the keep alive Packet of failure Master in time, then deletes and is connect with the tunnel VXLAN of failure Master, Xiang Ju Remaining VTEP device forwards message in intersection.
When the Master equipment and user's sidelinks exception in aggregate set, Master equipment is actively originally set to ENDS notice Standby user sidelinks failure specifically carries the IP address of this equipment, affiliated GROUP ID, Yi Jitong in ENDP notification packet It accuses reason (User Error).At this time ENDS also can retriggered Master selection operation, in time to all ENDC notice The registration information of ENDC.When Master equipment not failure power down itself, only when user side interface failure, distal end VTEP is set It is standby not perceive this event, message is sent still through the tunnel VXLAN outgoing interface of equal value, local VTEP receives VXLAN tunnel Message Master new in aggregate set can be transmitted to again after road message to be forwarded.
According to foregoing description, the embodiment of the present invention just like in VXLAN network shown in Fig. 3, VTEP10, VTEP11 and VTEP12 accesses VXLAN network in data center 1, and VTEP2 accesses VXLAN network in data center 2, and VTEP3 is in data VXLAN network is accessed in center 3.Identical VXLAN example 1 is created on VTEP10, VTEP11, VTEP12, VTEP2 and VTEP3, User equipment PC10, PC11, PC12, PC13, PC20 and PC30 belong to same VXLAN example 1.VTEP10, VTEP11 and VTEP12, which passes through, hangs user equipment PC10, PC11, PC12 and PC13 under Layer 2 switch;User equipment PC20 is hung under VTEP2; User equipment PC30 is hung under VTEP3.The VTEP10 of aggregate set is used as Mater equipment by electing in data center 1, in aggregate set Other equipment VTEP11, VTEP12 be used as Backup equipment.The tunnel VXLAN is established between VTEP10 and VTEP11, The tunnel VXLAN is established between VTEP10 and VTEP12, VTEP2 establishes the tunnel VXLAN with VTEP10,11,12 respectively, and VTEP3 divides The tunnel VXLAN is not established with VTEP10,11,12.
It is illustrated by taking the communication between PC10 and PC30 as an example below.
1) user equipment PC10 issues the MAC Address of ARP request message request PC30.
2) VTEP10 receives the ARP request message of PC10 transmission as Master, executes source MAC study and purpose MAC is searched.
The MAC Address MAC10 of VTEP10 study user equipment PC10.
VTEP10 broadcasts ARP request message in VXLAN example, and by the tunnel VXLAN, ARP request message is carried out VXLAN tunnel encapsulation is sent to VTEP2 and VTEP3.The technology of VXLAN tunnel encapsulation with it is existing identical, details are not described herein.
When VTEP10 notices MAC10 to VTEP2 by protocol massages, 1 and of MAC10, VXLAN is carried in notice message The affiliated GROUP ID of VTEP10.
When VTEP10 notices MAC10 to VTEP3 by protocol massages, 1 and of MAC10, VXLAN is carried in notice message The affiliated GROUP ID of VTEP10.
The step Notable, VTEP10 will not again the VTEP11 by ARP request message into same aggregate set and VTEP12 broadcast.VTEP11 and VTEP12 abandons the ARP request message after receiving the ARP request message that PC10 is sent.
3) when VTEP2 receives the VXLAN tunnel packet for encapsulating ARP request message, solution VXLAN tunnel encapsulation is carried out, By the ARP request message after decapsulation, broadcasted in local VXLAN example, ARP request message is broadcast to PC20 equipment.
It is determining that there is identical GROUP ID also with VTEP10 after VTEP2 receives the notice message of VTEP10 transmission VTEP11 and VTEP12, therefore MAC10 is stored in the corresponding mac address table of VXLAN example, outgoing interface is of equal value The tunnel VXLAN outgoing interface is VTEP2 and VTEP10, VTEP2 and VTEP11, the VXLAN tunnel between VTEP2 and VTEP12 respectively Road outgoing interface.
When VTEP3 receives the VXLAN message for encapsulating ARP request message, solution VXLAN tunnel encapsulation is carried out, will be unsealed ARP request message after dress is broadcasted in local VXLAN example, and ARP request message is broadcast to PC30 equipment.
It is determining that there is identical GROUP ID also with VTEP10 after VTEP3 receives the notice message of VTEP10 transmission VTEP11 and VTEP12, therefore MAC10 is stored in the corresponding mac address table of VXLAN example, outgoing interface is of equal value The tunnel VXLAN outgoing interface is VTEP3 and VTEP10, VTEP3 and VTEP11, the VXLAN tunnel between VTEP3 and VTEP12 respectively Road outgoing interface.
4) PC30 receives ARP request message, learns the ARP of user equipment PC10, generates arp reply message, wherein ARP The target MAC (Media Access Control) address of response message is the MAC Address MAC10 of user equipment PC10;
5) VTEP3 receives arp reply message, executes source MAC study and purpose MAC is searched.
The MAC Address MAC30 of VTEP3 study PC30.
VTEP3 executes purpose MAC and searches, and acquisition MAC10 outgoing interface is the equivalence tunnel VXLAN outgoing interface, is transported by equivalence It is forwarded after calculation from the outgoing interface of VTEP3 and VTEP11.Therefore, arp reply message is carried out VXLAN tunnel encapsulation by VTEP3, is passed through The VXLAN message for encapsulating arp reply message is sent VTEP11 by the tunnel VXLAN.
Carried when VTEP3 notices MAC30 to VTEP10,11,12 by protocol massages, in notice message MAC30, VXLAN1。
6) VTEP11 receives the VXLAN tunnel packet for encapsulating arp reply message, carries out solution VXLAN tunnel encapsulation, and The tunnel VXLAN in encapsulation between VTEP11 and VTEP10, forwards the message to VTEP10;
VTEP10 decapsulates the tunnel VXLAN after receiving, and forwards the packet to Customer Premises Network.
After VTEP10 receives the notice message of VTEP3 transmission, MAC30 is stored in the corresponding MAC Address of VXLAN example In table, outgoing interface is the tunnel VXLAN.
After VTEP11 receives the notice message of VTEP3 transmission, MAC30 is stored in the corresponding MAC Address of VXLAN example In table, outgoing interface is the tunnel VXLAN.
After VTEP12 receives the notice message of VTEP3 transmission, MAC30 is stored in the corresponding MAC Address of VXLAN example In table, outgoing interface is the tunnel VXLAN.
7) user equipment PC10 receives arp reply message, learns the MAC Address of PC30.
8) after user equipment PC10 and PC30 obtains the MAC Address of other side respectively, IP unicast message will be sent between the two It is communicated.
9) after as the VTEP10 local reception to data message of master, purpose MAC lookup is carried out, determines the datagram The target MAC (Media Access Control) address of text is MAC30, obtains VXLAN tunnel of the MAC30 outgoing interface between VTEP3 and VTEP10.
Data message is carried out VXLAN tunnel encapsulation by VTEP10, is sent to VTEP3 by the tunnel VXLAN.
VTEP3 decapsulates the tunnel VXLAN after receiving, and by the PC30 of data message forwarding to Customer Premises Network.
10) after VTEP3 local reception to data message, purpose MAC lookup is carried out, determines the purpose MAC of the data message Address is MAC10, and obtaining MAC10 outgoing interface is the tunnel VXLAN outgoing interface of equal value, by after bi-conditional operation from VTEP3 and The outgoing interface of VTEP11 forwards.Therefore, data message is carried out VXLAN tunnel encapsulation by VTEP3, is sent to by the tunnel VXLAN VTEP11。
VTEP11 receives VXLAN tunnel packet, carries out solution VXLAN tunnel encapsulation, and encapsulates upper VTEP11 and VTEP10 Between the tunnel VXLAN, by data message forwarding to VTEP10.
VTEP10 decapsulates the tunnel VXLAN after receiving, and by the PC10 of data message forwarding to Customer Premises Network.
So far, the communication between PC10 and PC30 is completed.
It can thus be seen that same aggregate set is added in the VTEP equipment in data center 1, backup is constituted between each other and is set Standby access VXLAN network.Main equipment is elected in aggregate set and from equipment, backup is acted on from equipment, when master-failure, Main equipment is re-elected in a slave device.Master equipment is the main entrance that notebook data central user effluent amount enters public network, institute There is user's effluent amount all to pass through Master and is forwarded to public network side.Public network effluent amount also enters use eventually by Master equipment simultaneously Family side.In this way, ensure that the symmetry of flow, and avoids and become due to entering public network or entering the VTEP equipment of user side Layer 2 switch needs the problem of constantly carrying out MAC Address migration caused by change.Distal end VTEP3 is to the path of data center 1 It can be selected by bi-conditional operation, so that the multipath for realizing data center 1 is shared.
In addition, different VTEP equipment should be selected as Master for different VXLAN examples, it is ensured that network In customer flow according to VXLAN example realize load balancing.It is illustrated below by embodiment two.
Embodiment two
In the VXLAN network as shown in Figure 3 of the embodiment of the present invention two, VTEP10, VTEP11 and VTEP12 are in data center 1 Interior access VXLAN network, VTEP2 access VXLAN network in data center 2, and VTEP3 accesses VXLAN net in data center 3 Network.VTEP10, VTEP11 and VTEP12, which pass through, hangs user equipment PC10, PC11, PC12 and PC13 under Layer 2 switch;VTEP2 Lower extension user equipment PC20;User equipment PC30 is hung under VTEP3.It is created on VTEP10, VTEP11, VTEP12, VTEP2 and VTEP3 Identical VXLAN example 1 is built.Meanwhile identical VXLAN is further created on VTEP10, VTEP11, VTEP12, VTEP2 and VTEP3 Example 2.
User equipment PC10, PC11 are connected on VTEP10 by user side interface, belong to VXLAN example 1.
User equipment PC10, PC11 are connected on VTEP11 by user side interface, belong to VXLAN example 1.
User equipment PC10, PC11 are connected on VTEP12 by user side interface, belong to VXLAN example 1.
User equipment PC12, PC13 are connected on VTEP10 by user side interface, belong to VXLAN example 2.
User equipment PC12, PC13 are connected on VTEP11 by user side interface, belong to VXLAN example 2.
User equipment PC12, PC13 are connected on VTEP12 by user side interface, belong to VXLAN example 2.
PC20 is connected on VTEP2 by user side interface, belongs to VXLAN example 2.
PC30 is connected on VTEP3 by user side interface, belongs to VXLAN example 1.
User equipment PC10, PC11, PC30 are in VXLAN example 1, in VXLAN example 1, aggregate set in data center 1 VTEP10 by election be used as Mater equipment.User equipment PC12, PC13, PC20 are in VXLAN example 2, in VXLAN reality In example 2, the VTEP11 of aggregate set is used as Mater equipment by election in data center 1.PC in identical VXLAN example can be with It is communicated.PC10 and PC30 is communicated in VXLAN example 1, and PC12 and PC20 are communicated in VXLAN example 2.
When PC10 and PC30 is communicated in VXLAN example 1, as Mater equipment VTEP10 become user side flow into Enter the main entrance of public network, all user side flows all pass through Master and are forwarded to public network side.Public network effluent amount is also finally led to simultaneously It crosses Master equipment VTEP10 and enters user side.
When PC12 and PC20 is communicated in VXLAN example 2, as Mater equipment VTEP11 become user side flow into Enter the main entrance of public network, all user side flows all pass through Master and are forwarded to public network side.Public network effluent amount is also finally led to simultaneously It crosses Master equipment VTEP11 and enters user side.
In this way, the VTEP in same aggregate set is implemented based on different VXLAN, load balancing is realized.
Based on same inventive concept, the embodiment of the present invention also proposes apparatus for forwarding message in a kind of VXLAN network, such as schemes Shown in 4, multiple virtual channel terminal VTEP of same data center have identical and unique polymerization set identifier GROUP ID, when When VTEP is as main Master equipment in aggregate set, which includes:
Notification unit 401, after the MAC Address for learning local subscriber apparatus, by protocol massages to VXLAN example The interior tunnel VXLAN opposite end VTEP notices the MAC Address and the corresponding GROUP ID of Master of the user equipment, so that opposite end VTEP saves the MAC Address of the user equipment and the corresponding relationship of GROUP ID, wherein builds with the VETP in same GROUP ID It is equative route between vertical tunnel;
Retransmission unit 402, for gathering when the data message for being forwarded to notebook data center from the tunnel VXLAN opposite end VTEP reaches Slave equipment in intersection then receives the data message from device forwards, is searched according to target MAC (Media Access Control) address, be sent to local User equipment.
Further, when VTEP is as main Master equipment in aggregate set, the retransmission unit 402 is also used to work as The data message that opposite end VTEP is forwarded to notebook data center from the tunnel VXLAN reaches the Master in aggregate set, then according to purpose MAC Address is searched, and local subscriber apparatus is sent to.
For each VTEP in VXLAN example, which further comprises: registering unit 403, for forwarding in message Before, own IP address and said polymeric set identifier are carried, interconnection neighbours is virtualized to Ethernet and finds that server ENDS is sent Registration request message, so that Ethernet virtualization interconnection neighbours have found that client ENDS carries out the VTEP in same polymeric collection Master election, selects one of VTEP equipment as the Master equipment in the aggregate set.
For each VTEP in VXLAN example, the registering unit 403 is also used to: it is each to receive the carrying that ENDS is sent A VTEP IP address, said polymeric set identifier and the registration reply message of locating role;VXLAN is triggered according to registration information The creation in tunnel.
The registering unit 403 is specifically used for when triggering the creation in the tunnel VXLAN according to registration information:
The tunnel VXLAN is established with the Master in this aggregate set;VXLAN tunnel is established with each VTEP in other aggregate sets Road, the tunnel VXLAN of equal value between each VTEP on the VTEP in VXLAN example in formation and other aggregate sets go out to connect Mouthful.
The embodiment of the invention also provides apparatus for forwarding message in a kind of VXLAN network, when VTEP is as the tunnel pair VXLAN VTEP is held, as shown in figure 5, the device includes:
Receiving unit 501, for receiving the carrying local subscriber apparatus MAC of the transmission of the main equipment Master in aggregate set The protocol massages of location and the corresponding GROUP ID of Master;
Storage unit 502, for saving the MAC Address of the user equipment and the corresponding relationship of GROUP ID, wherein with it is same It is equative route between the tunnel that VETP in one GROUP ID is established;
Processing unit 503, for when local reception to target MAC (Media Access Control) address be the user equipment data message when, root According to the corresponding relationship, the tunnel a VXLAN outgoing interface of equal value is selected to be forwarded to the VTEP in the data center.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.It is all Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on should be included in protection of the invention Within the scope of.

Claims (13)

1. message forwarding method in a kind of VXLAN network, which is characterized in that multiple virtual channel terminals of same data center VTEP has identical and unique polymerization set identifier GROUPID, this method comprises:
When VTEP is as main Master equipment in aggregate set, after learning the MAC Address of local subscriber apparatus, pass through agreement The message tunnel VXLAN opposite end VTEP into VXLAN example notice the user equipment MAC Address and Master it is corresponding GROUPID, so that opposite end VTEP saves the MAC Address of the user equipment and the corresponding relationship of GROUPID, wherein with it is same It is equative route between the tunnel that VETP in GROUP ID is established;
Slave equipment in the data message arrival aggregate set for being forwarded to notebook data center from the tunnel VXLAN opposite end VTEP, then Master receives the data message from device forwards, is searched according to target MAC (Media Access Control) address, is sent to local subscriber apparatus.
2. the method as described in claim 1, which is characterized in that when being forwarded to notebook data center from the tunnel VXLAN opposite end VTEP Data message reach aggregate set in Master, then Master is searched according to target MAC (Media Access Control) address, is sent to local user and is set It is standby.
3. the method as described in claim 1, which is characterized in that before message forwarding, this method further comprises:
Each VTEP in VXLAN example carries own IP address and said polymeric set identifier, and it is adjacent to virtualize interconnection to Ethernet It occupies discovery server ENDS and sends registration request message, so that Ethernet virtualization interconnection neighbours have found that server ENDS will be identical VTEP in aggregate set carries out Master election, selects one of VTEP equipment as the Master equipment in the aggregate set.
4. method as claimed in claim 3, which is characterized in that different VXLAN examples are different as the VTEP equipment of Master, A Master equipment is only existed in same VXLAN example.
5. method as claimed in claim 3, which is characterized in that this method further comprises:
Each VTEP in VXLAN example receive each VTEP IP address of carrying that ENDS sends, said polymeric set identifier and The registration reply message of locating role;The creation in the tunnel VXLAN is triggered according to registration information.
6. method as claimed in claim 5, which is characterized in that the VTEP in VXLAN example triggers VXLAN according to registration information The method of the creation in tunnel includes:
The Master in VTEP and this aggregate set in VXLAN example establishes the tunnel VXLAN;Each of with other aggregate sets VTEP establishes the tunnel VXLAN, the equivalence between each VTEP on the VTEP in VXLAN example in formation and other aggregate sets The tunnel VXLAN outgoing interface.
7. message forwarding method in a kind of VXLAN network is applied to the tunnel VXLAN opposite end virtual channel terminal VTEP, same number There is identical and unique polymerization set identifier GROUPID according to multiple VTEP at center, this method comprises:
Opposite end VTEP receives the carrying local subscriber apparatus MAC Address and Master that the main equipment Master in aggregate set is sent The protocol massages of corresponding GROUPID;
Opposite end VTEP saves the MAC Address of the user equipment and the corresponding relationship of GROUPID, wherein in same GROUPID It is equative route between the tunnel that VETP is established;
When opposite end VTEP local reception to target MAC (Media Access Control) address is the data message of the user equipment, according to the corresponding pass System selects the tunnel a VXLAN outgoing interface of equal value to be forwarded to the VTEP in data center.
8. apparatus for forwarding message in a kind of VXLAN network, which is characterized in that multiple virtual channel terminals of same data center VTEP has identical and unique polymerization set identifier GROUPID,
When VTEP is as main Master equipment in aggregate set, which includes:
Notification unit, after the MAC Address for learning local subscriber apparatus, by protocol massages into VXLAN example VXLAN Tunnel opposite end VTEP notices the MAC Address and the corresponding GROUPID of Master of the user equipment, is somebody's turn to do so that opposite end VTEP is saved The MAC Address of user equipment and the corresponding relationship of GROUPID, wherein in same GROUP ID VETP establish tunnel it Between be equative route;
Retransmission unit, for being reached in aggregate set when the data message for being forwarded to notebook data center from the tunnel VXLAN opposite end VTEP Slave equipment, then receive the data message from device forwards, searched according to target MAC (Media Access Control) address, be sent to local user and set It is standby.
9. device as claimed in claim 8, which is characterized in that when VTEP is as main Master equipment in aggregate set, institute Retransmission unit is stated, is also used to reach in aggregate set when the data message for being forwarded to notebook data center from the tunnel VXLAN opposite end VTEP Master, then searched according to target MAC (Media Access Control) address, be sent to local subscriber apparatus.
10. device as claimed in claim 8, which is characterized in that
For each VTEP in VXLAN example, which further comprises: registering unit, for taking before message forwarding Band own IP address and said polymeric set identifier virtualize interconnection neighbours to Ethernet and find that server ENDS sends registration request Message, so that Ethernet virtualization interconnection neighbours have found that the VTEP in same polymeric collection is carried out Master choosing by server ENDS It lifts, selects one of VTEP equipment as the Master equipment in the aggregate set.
11. device as claimed in claim 10, which is characterized in that
For each VTEP in VXLAN example, the registering unit is also used to: receiving each VTEP of carrying that ENDS is sent The registration reply message of IP address, said polymeric set identifier and locating role;The wound in the tunnel VXLAN is triggered according to registration information It builds.
12. device as claimed in claim 11, which is characterized in that the registering unit triggers VXLAN tunnel according to registration information It is specifically used for when the creation in road:
The tunnel VXLAN is established with the Master in this aggregate set;The tunnel VXLAN is established with each VTEP in other aggregate sets, The tunnel the VXLAN of equal value outgoing interface between each VTEP on the VTEP in VXLAN example in formation and other aggregate sets.
13. apparatus for forwarding message in a kind of VXLAN network is applied to the tunnel VXLAN opposite end virtual channel terminal VTEP, same number There is identical and unique polymerization set identifier GROUPID according to multiple VTEP at center, which includes:
Receiving unit, for receive the main equipment Master in aggregate set transmission carrying local subscriber apparatus MAC Address and The protocol massages of the corresponding GROUPID of Master;
Storage unit, for saving the MAC Address of the user equipment and the corresponding relationship of GROUPID, wherein with it is same It is equative route between the tunnel that VETP in GROUPID is established;
Processing unit, for when local reception to target MAC (Media Access Control) address be the user equipment data message when, according to described right It should be related to, the tunnel a VXLAN outgoing interface of equal value is selected to be forwarded to the VTEP in data center.
CN201510205824.7A 2015-04-27 2015-04-27 Message forwarding method and device in a kind of VXLAN network Active CN106161248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510205824.7A CN106161248B (en) 2015-04-27 2015-04-27 Message forwarding method and device in a kind of VXLAN network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510205824.7A CN106161248B (en) 2015-04-27 2015-04-27 Message forwarding method and device in a kind of VXLAN network

Publications (2)

Publication Number Publication Date
CN106161248A CN106161248A (en) 2016-11-23
CN106161248B true CN106161248B (en) 2019-03-29

Family

ID=57346621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510205824.7A Active CN106161248B (en) 2015-04-27 2015-04-27 Message forwarding method and device in a kind of VXLAN network

Country Status (1)

Country Link
CN (1) CN106161248B (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234269B (en) * 2016-12-15 2021-09-21 新华三技术有限公司 Multicast message forwarding method and device
CN106992918B (en) * 2017-03-30 2019-12-06 杭州迪普科技股份有限公司 Message forwarding method and device
CN108259348B (en) * 2017-05-24 2020-05-12 新华三技术有限公司 Message transmission method and device
CN108259299B (en) * 2017-06-23 2020-04-03 新华三技术有限公司 Forwarding table item generating method and device and machine-readable storage medium
CN107547342B (en) * 2017-06-27 2020-09-08 新华三技术有限公司 Message broadcasting method and device based on VXLAN tunnel
CN108259300B (en) * 2017-06-30 2020-11-06 新华三技术有限公司 Method and device for forwarding broadcast message
CN107612808B (en) * 2017-09-13 2020-09-08 新华三技术有限公司 Tunnel establishment method and device
CN110999230B (en) * 2017-10-18 2021-06-01 华为技术有限公司 Method, network equipment and system for transmitting multicast message
CN109728990A (en) * 2017-10-31 2019-05-07 中兴通讯股份有限公司 A kind of method for building up in tunnel, device and software defined network controller
CN108494686B (en) * 2018-02-28 2021-05-28 新华三技术有限公司 Route processing method and device
CN108718269B (en) * 2018-05-18 2021-04-27 新华三技术有限公司 Message processing method and device
CN108900414B (en) * 2018-06-08 2021-09-10 新华三技术有限公司 Forwarding table generation method and device
CN110650075B (en) * 2018-06-26 2022-02-18 华为技术有限公司 Group policy implementation method, network device and group policy implementation system based on VXLAN
CN109889420B (en) * 2019-01-29 2021-07-30 视联动力信息技术股份有限公司 Service processing method and device
CN111786882B (en) * 2020-06-30 2022-04-22 中国联合网络通信集团有限公司 Route processing method and device
CN111740899B (en) * 2020-07-13 2022-07-12 中国联合网络通信集团有限公司 ARP request message forwarding method, cross-device link aggregation group and network device
CN112187609B (en) * 2020-09-21 2022-01-25 新华三信息安全技术有限公司 Table entry generation method and device
CN112737915B (en) * 2020-12-29 2022-10-25 优刻得科技股份有限公司 Intranet tunnel cross-domain gateway forwarding method, system, equipment and medium based on intelligent network card
CN114785733B (en) * 2022-06-20 2022-08-26 中电云数智科技有限公司 Method for realizing session tracing in cross-VPC network flow forwarding

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103814554A (en) * 2013-12-11 2014-05-21 华为技术有限公司 Communication method, device and system of virtual extensible local area network
CN103841028A (en) * 2014-03-24 2014-06-04 杭州华三通信技术有限公司 Method and device for forwarding messages
CN104158718A (en) * 2014-08-25 2014-11-19 杭州华三通信技术有限公司 A message processing method and device
CN104283980A (en) * 2014-10-09 2015-01-14 杭州华三通信技术有限公司 Address resolution protocol (ARP) reply on-behalf method and device
CN104506408A (en) * 2014-12-31 2015-04-08 杭州华三通信技术有限公司 Data transmission method and device based on SDN

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8923149B2 (en) * 2012-04-09 2014-12-30 Futurewei Technologies, Inc. L3 gateway for VXLAN

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103814554A (en) * 2013-12-11 2014-05-21 华为技术有限公司 Communication method, device and system of virtual extensible local area network
CN103841028A (en) * 2014-03-24 2014-06-04 杭州华三通信技术有限公司 Method and device for forwarding messages
CN104158718A (en) * 2014-08-25 2014-11-19 杭州华三通信技术有限公司 A message processing method and device
CN104283980A (en) * 2014-10-09 2015-01-14 杭州华三通信技术有限公司 Address resolution protocol (ARP) reply on-behalf method and device
CN104506408A (en) * 2014-12-31 2015-04-08 杭州华三通信技术有限公司 Data transmission method and device based on SDN

Also Published As

Publication number Publication date
CN106161248A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
CN106161248B (en) Message forwarding method and device in a kind of VXLAN network
US11398921B2 (en) SDN facilitated multicast in data center
Kreeger et al. Network Virtualization Overlay Control Protocol Requirements
US9864619B2 (en) Systems and methods for a data center architecture facilitating layer 2 over layer 3 communication
CN103685022B (en) Message forwarding method and service provider network edge equipment
US9513970B2 (en) Optimizing handling of virtual machine mobility in data center environments
US9448821B2 (en) Method and system for realizing virtual machine mobility
EP2843906B1 (en) Method, apparatus, and system for data transmission
CN103795636B (en) Multicast processing method, device and system
CN109561033B (en) Method and device for multicast replication in Overlay network
CN107317768B (en) Traffic scheduling method and device
US9504016B2 (en) Optimized multicast routing in a Clos-like network
CN105264493A (en) Dynamic virtual machines migration over information centric networks
CN103227843A (en) Physical link address management method and device
US9590824B1 (en) Signaling host move in dynamic fabric automation using multiprotocol BGP
CN104009926A (en) Multicast method in EVI network and edge device ED
CN104954218A (en) Distributed virtual switching device and forwarding method
CN107547349A (en) A kind of method and device of virtual machine (vm) migration
TWI759571B (en) Data transfer method based on flow table
JP6928076B2 (en) Packet monitoring
JP2019521619A (en) Packet forwarding
CN105187311A (en) Message forwarding method and message forwarding device
CN104917682A (en) Overlay network configuration method and device
CN108696370B (en) Method, device and system for binding and unbinding server and service
CN104009919A (en) Message forwarding 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
CB02 Change of applicant information

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

Applicant after: Xinhua three Technology Co., Ltd.

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

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant