CN106998286A - A kind of VXLAN message forwarding methods and device - Google Patents

A kind of VXLAN message forwarding methods and device Download PDF

Info

Publication number
CN106998286A
CN106998286A CN201710311213.XA CN201710311213A CN106998286A CN 106998286 A CN106998286 A CN 106998286A CN 201710311213 A CN201710311213 A CN 201710311213A CN 106998286 A CN106998286 A CN 106998286A
Authority
CN
China
Prior art keywords
vxlan
address
vtep equipment
opposite end
gateway devices
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710311213.XA
Other languages
Chinese (zh)
Other versions
CN106998286B (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech 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 DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201710311213.XA priority Critical patent/CN106998286B/en
Publication of CN106998286A publication Critical patent/CN106998286A/en
Application granted granted Critical
Publication of CN106998286B publication Critical patent/CN106998286B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2592Translation of Internet protocol [IP] addresses using tunnelling or encapsulation

Landscapes

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

Abstract

The application provides a kind of VXLAN message forwarding methods and device, and applied to local terminal VTEP equipment, methods described includes:Receive IP address of the opposite end VTEP equipment by the 2nd VM of VXLAN gateway device transparent transmissions, and opposite end VTEP equipment IP address;The mapping relations between the 2nd VM IP address and the IP address of opposite end VTEP equipment are created, and VXLAN tunnels are set up between local terminal VTEP equipment and opposite end VTEP equipment based on the mapping relations;After receiving the first VM and sending to the 2nd VM unicast message, the unicast message is sent to opposite end VTEP equipment based on the VXLAN tunnels, so that the unicast message is forwarded into the 2nd VM by opposite end VTEP equipment.Present application addresses in three layers of across tunnel repeating process of VXLAN messages, the workload of VXLAN gateway devices is larger, causes the problem of forward efficiency is low.

Description

A kind of VXLAN message forwarding methods and device
Technical field
The application is related to communication technical field, more particularly to a kind of VXLAN message forwarding methods and device.
Background technology
With the fast development of cloud computing, the virtualization degree more and more higher of data center, the requirement to physical network Increasingly harsher, such as TOR (Top of Rack, rack top) interchanger needs to support big specification mac address table;4094 VLAN (Virtual Local Area Network, VLAN) can not divide magnanimity virtual machine;Need to support multi-tenant Network Isolation etc..Exactly these demands cause stacking network technology VXLAN (Virtual Extensible Local Area Network, virtual expansible LAN) arise at the historic moment.
In actual applications, when local terminal VM (Virtual Machine, virtual machine) and opposite end VM are in different VXLAN During network, the message that local terminal VM is sent to opposite end VM, VTEP (the VXLAN Tunneling End that first can be accessed by local terminal VM Point, VXLAN tunneling termination) equipment sends to VXLAN gateway devices, then message carried out by VXLAN gateway devices to connect envelope Dress, looks into route, seals up the VTEP equipment for sending and being accessed to opposite end VM after dress.In this process, message can pass through two VXLAN Tunnel, the workload of VXLAN gateway devices is larger, can cause the problem of forward efficiency is low.
The content of the invention
In view of this, the application provides a kind of VXLAN message forwarding methods and device, to solve in the prior art, In three layers of across tunnel repeating process of VXLAN messages, the workload of VXLAN gateway devices is larger, causes forward efficiency asking lowly Topic.
Specifically, the application is achieved by the following technical solution:
A kind of VXLAN message forwarding methods, applied to local terminal VTEP equipment, wherein, the local terminal VTEP equipment is accessed First VM, opposite end VTEP equipment has accessed the 2nd VM, and the first VM is different from being under the jurisdiction of by VXLAN gateway devices The 2nd VM interconnections of VXLAN networks, including:
The IP address for the 2nd VM that the opposite end VTEP equipment passes through the VXLAN gateway devices transparent transmission is received, with And the IP address of the opposite end VTEP equipment;Wherein, the IP address of the opposite end VTEP equipment is carried and set in the VXLAN gateways In the VXLAN headings for the VXLAN messages that preparation is sent;
The mapping relations between the IP address of the 2nd VM and the IP address of the opposite end VTEP equipment are created, and are based on The mapping relations set up VXLAN tunnels between the local terminal VTEP equipment and the opposite end VTEP equipment;
After receiving the first VM and sending to the unicast message of the 2nd VM, based on the VXLAN tunnels by institute Unicast message is stated to send to the opposite end VTEP equipment, it is described to be forwarded to the unicast message by the opposite end VTEP equipment 2nd VM.
In the VXLAN message forwarding methods, set up between the local terminal VTEP equipment and the VXLAN gateway devices First VXLAN tunnels, between the VXLAN gateway devices and the opposite end VTEP equipment establish the 2nd VXLAN tunnels;
The IP for receiving the 2nd VM that the opposite end VTEP equipment passes through the VXLAN gateway devices transparent transmission Location, and the opposite end VTEP equipment IP address, including:
Receive the VXLAN messages that the VXLAN gateway devices are sent by the first VXLAN tunnels;Wherein, it is described VXLAN messages are that the 2nd VM of packaging V XLAN headings is sent to the unicast message of the first VM;
The VXLAN headings of the VXLAN messages are decapsulated, and obtain the opposite end that the VXLAN headings are carried The source IP of the IP address of VTEP equipment and the unicast message;Wherein, the source IP of the unicast message is the 2nd VM's IP address.
In the VXLAN message forwarding methods, the IP address for creating the 2nd VM is set with the opposite end VTEP Before mapping relations between standby IP address, in addition to:
Receive the VXLAN messages that the VXLAN gateway devices are sent;Wherein, the VXLAN messages are packaging V XLAN The 2nd VM of heading is sent to the ARP request message of the VXLAN gateway devices, and the VXLAN headings carry institute State the 2nd VM VNI;
Obtain the source IP and source MAC of the ARP request message, and the 2nd VM VNI, and based on the source IP, should ARP of source MAC and the 2nd VM VNI generations corresponding to the 2nd VM;Wherein, the source IP is the 2nd VM IP address, the MAC is the MAC Address of the 2nd VM.
In the VXLAN message forwarding methods, the IP address for creating the 2nd VM is set with the opposite end VTEP Before mapping relations between standby IP address, in addition to:
Receive the notice message that the VXLAN gateway devices are sent;Wherein, the notice message carries the VXLAN The ARP corresponding to the 2nd VM that gateway device is created;The ARP is based on encapsulation by the VXLAN gateway devices The 2nd VM of VXLAN headings sends the source IP of the ARP request message to the VXLAN gateway devices, source MAC and described 2nd VM VNI is created;
The ARP corresponding to the 2nd VM carried in the notice message is obtained, corresponds to institute in local preserve State the 2nd VM ARP.
In the VXLAN message forwarding methods, the IP address for creating the 2nd VM is set with the opposite end VTEP Mapping relations between standby IP address, including:
IP address based on the 2nd VM and the corresponding relation between the IP address of the opposite end VTEP equipment, Yi Jiben The ARP corresponding to the 2nd VM that ground is preserved, generates IP address, the IP of the opposite end VTEP equipment of the 2nd VM Mapping relations between address and the 2nd VM VNI.
A kind of VXLAN apparatus for forwarding message, applied to local terminal VTEP equipment, wherein, the local terminal VTEP equipment is accessed First VM, opposite end VTEP equipment has accessed the 2nd VM, and the first VM is different from being under the jurisdiction of by VXLAN gateway devices The 2nd VM interconnections of VXLAN networks, including:
Receiving unit, for receiving the opposite end VTEP equipment by described the second of the VXLAN gateway devices transparent transmission VM IP address, and the opposite end VTEP equipment IP address;Wherein, the IP address of the opposite end VTEP equipment is carried in institute In the VXLAN headings for the VXLAN messages for stating the transmission of VXLAN gateway devices;
Creating unit, for creating reflecting between the IP address of the 2nd VM and the IP address of the opposite end VTEP equipment Relation is penetrated, and VXLAN tunnels are set up between the local terminal VTEP equipment and the opposite end VTEP equipment based on the mapping relations Road;
Transmitting element, for after receiving the first VM and sending to the unicast message of the 2nd VM, based on described VXLAN tunnels send the unicast message to the opposite end VTEP equipment, with by the opposite end VTEP equipment by the unicast Message is forwarded to the 2nd VM.
In the VXLAN apparatus for forwarding message, set up between the local terminal VTEP equipment and the VXLAN gateway devices First VXLAN tunnels, between the VXLAN gateway devices and the opposite end VTEP equipment establish the 2nd VXLAN tunnels;
The receiving unit, is further used for:
Receive the VXLAN messages that the VXLAN gateway devices are sent by the first VXLAN tunnels;Wherein, it is described VXLAN messages are that the 2nd VM of packaging V XLAN headings is sent to the unicast message of the first VM;
The VXLAN headings of the VXLAN messages are decapsulated, and obtain the opposite end that the VXLAN headings are carried The source IP of the IP address of VTEP equipment and the unicast message;Wherein, the source IP of the unicast message is the 2nd VM's IP address.
In the VXLAN apparatus for forwarding message, the receiving unit is further used for:
Receive the VXLAN messages that the VXLAN gateway devices are sent;Wherein, the VXLAN messages are packaging V XLAN The 2nd VM of heading is sent to the ARP request message of the VXLAN gateway devices, and the VXLAN headings carry institute State the 2nd VM VNI;
Obtain the source IP and source MAC of the ARP request message, and the 2nd VM VNI, and based on the source IP, should ARP of source MAC and the 2nd VM VNI generations corresponding to the 2nd VM;Wherein, the source IP is the 2nd VM IP address, the MAC is the MAC Address of the 2nd VM.
In the VXLAN apparatus for forwarding message, the receiving unit is further used for:
Receive the notice message that the VXLAN gateway devices are sent;Wherein, the notice message carries the VXLAN The ARP corresponding to the 2nd VM that gateway device is created;The ARP is based on encapsulation by the VXLAN gateway devices The 2nd VM of VXLAN headings sends the source IP of the ARP request message to the VXLAN gateway devices, source MAC and described 2nd VM VNI is created;
The ARP corresponding to the 2nd VM carried in the notice message is obtained, corresponds to institute in local preserve State the 2nd VM ARP.
In the VXLAN apparatus for forwarding message, it is characterised in that the creating unit, it is further used for:
IP address based on the 2nd VM and the corresponding relation between the IP address of the opposite end VTEP equipment, Yi Jiben The ARP corresponding to the 2nd VM that ground is preserved, generates IP address, the IP of the opposite end VTEP equipment of the 2nd VM Mapping relations between address and the 2nd VM VNI.
In the embodiment of the present application, local terminal VTEP equipment receives opposite end VTEP equipment and passes through the VXLAN gateway devices 2nd VM of transparent transmission IP address, and the opposite end VTEP equipment IP address;Wherein, the IP of the opposite end VTEP equipment Location is carried in the VXLAN headings for the VXLAN messages that the VXLAN gateway devices are sent;Then described second can be created Mapping relations between the IP address of VM IP address and the opposite end VTEP equipment, and based on the mapping relations in the local terminal VXLAN tunnels are set up between VTEP equipment and the opposite end VTEP equipment;The local terminal VTEP equipment is receiving described first VM is sent to the unicast message of the 2nd VM, can be sent the unicast message to described based on the VXLAN tunnels Opposite end VTEP equipment, so that the unicast message is forwarded into the 2nd VM by the opposite end VTEP equipment;
Due in the embodiment of the present application, IP address and described of the local terminal VTEP equipment based on the opposite end VTEP equipment The mapping relations of two VM IP address, VXLAN tunnels are established between the local terminal VTEP equipment and the opposite end VTEP equipment Road, it is possible to directly send the unicast message that the first VM is sent to the 2nd VM to the opposite end by the VXLAN tunnels VTEP equipment;VXLAN gateway devices are received after the unicast message of packaging V XLAN headings, can be reported packaging V XLAN The unicast message of literary head carries out three layers of common forwarding, without decapsulating VXLAN headings along with new VXLAN messages Head, reduces workload, is effectively improved forward efficiency.
Brief description of the drawings
Fig. 1 is a kind of network architecture diagram of VXLAN messages forwarding of prior art;
Fig. 2 is a kind of network architecture diagram of VXLAN messages forwarding shown in the application;
Fig. 3 is a kind of flow chart of VXALN message forwarding methods shown in the application;
Fig. 4 is a kind of schematic diagram of VXLAN headings of prior art;
Fig. 5 is a kind of schematic diagram of VXLAN headings shown in the application;
Fig. 6 is a kind of logic diagram of VXALN apparatus for forwarding message shown in the application;
Fig. 7 is a kind of hardware structure diagram of VXLAN apparatus for forwarding message shown in the application.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the embodiment of the present invention, and make of the invention real Applying the above-mentioned purpose of example, feature and advantage can be more obvious understandable, below in conjunction with the accompanying drawings to prior art and the present invention Technical scheme in embodiment is described in further detail.
It is a kind of network architecture diagram of VXLAN messages forwarding of prior art referring to Fig. 1.As shown in figure 1, where VM 1 The VNI (VXLAN Network Identifier, virtual expansible local net network identity) of VXLAN networks be 1000, VM 1 VLAN ID (Virtual Local Area Network Identifier, VLAN ID) are 101, VM 1 IP address is 10.1.1.100/24, and MAC Address is MAC1, and VM 1 accesses VTEP 1 by Port 1;
The VLAN ID that the VNI of VXLAN networks where VM 2 is 2000, VM 2 are that 102, VM 2 IP address is 20.1.1.200/24, MAC Address is MAC 2, and VM 2 accesses VTEP 2 by Port 4.
VXLAN gateway interfaces 1 are configured on VXLAN gateway devices, VXLAN gateway interfaces 1 are designated as VXLAN's 1000 Three-layer network is closed, and is VM 1 default gateway, and IP address is 10.1.1.1/24, and MAC Address is MAC GW 1;VXLAN gateways are set Standby above to also configure VXLAN gateway interfaces 2, the three-layer network that VXLAN gateway interfaces 2 are designated as VXLAN 2000 is closed, and is VM 2 Default gateway, IP address is 20.1.1.1/24, and MAC Address is MAC GW 2.
The Tunnel 1 set up between VTEP 1 and VXLAN gateway devices in the first VXLAN tunnels, i.e. figure;VTEP 2 with The Tunnel 2 set up between VXLAN gateway devices in the 2nd VXLAN tunnels, i.e. figure.
Above-mentioned VM, is referred to utilizing virtualization technology, and multiple main frames are fictionalized on a physical server.It is each virtual Main frame is independent mutually, has respective operating system and the equipment such as the internal memory, CPU, the network interface card that are logically independent of each other, from application program From the perspective of, there is no difference in the case of the overwhelming majority and using physical server.
Above-mentioned VTEP equipment, the equipment for referring to termination point of a tunnel in VXLAN networks, for sending, connecing in VXLAN networks Receive VXLAN messages;Wherein, VXLAN messages are the message for encapsulating VXLAN headings.One VTEP equipment can access many Platform is in the VM of similar and different VXLAN networks, wherein, each VM double layer network address and three-layer network address are different 's.
Above-mentioned VXLAN gateway devices, refer to the gateway device in VXLAN networks, pre-configured to correspond to multiple VXLAN The gateway interface of network, for forwarding the VXLAN messages across VXLAN networks;In addition, VXLAN gateway devices can also complete general Three layers of forwarding of logical IP messages.
The method of the VXLAN messages forwarding of prior art is described from VTEP 1 angle now, it is mentioned below First VM refers to VM 1, and local terminal VTEP equipment refers to VTEP 1, and opposite end VTEP equipment refers to VTEP 2, and the 2nd VM refers to VM 2.
In the prior art, the communication process between the first VM and the 2nd VM can be divided into two stages:
In the first stage, the first VM learns the MAC Address of default gateway;
In second stage, local terminal VTEP equipment is sent the first VM to the 2nd VM unicast report by the first VXLAN tunnels Text is forwarded to VXLAN gateway devices, and above-mentioned unicast message is forwarded to pair by VXLAN gateway devices by the 2nd VXLAN tunnels again VTEP equipment is held, opposite end VTEP equipment is received after the unicast message, is forwarded to the 2nd VM.
The first stage is illustrated below:
First VM first sends ARP (Address Resolution Protocol, address resolution protocol) requests to obtain Default gateway 10.1.1.1/24 MAC Address, purpose MAC is broadcast MAC address, and source MAC is the first VM MAC Address MAC 1;First VM sends ARP request to local terminal VTEP equipment.
Local terminal VTEP equipment is received after the ARP request message of the first VM transmissions, by ARP request message packaging V XLAN Heading, and the ARP request message after encapsulation is broadcasted in VNI is 1000 VXLAN network, and study pair simultaneously The first VM MAC address entries are answered, the MAC address entries include the first VM VNI, the first VM MAC Address, first interface index and first VM VLAN ID mapping relations;Wherein, first interface index accesses the interface index Port of local terminal VTEP equipment for the first VM 1;The list item learnt is used for follow-up unicast forwarding, and the MAC address entries storage learnt is in the mac table, as shown in table 1 below:
Table 1
VXLAN gateway devices are received from the first VXLAN tunnels after the above-mentioned ARP request message of packaging V XLAN headings, Above-mentioned ARP request message is decapsulated, the request address for determining above-mentioned ARP request message is the IP of local VXLAN gateway interfaces 1 Address, then send the arp reply message of packaging V XLAN headings by the first VXLAN tunnels to local terminal VTEP equipment, will The MAC Address of VXLAN gateway interfaces 1 returns to local terminal VTEP equipment;Wherein, the source MAC of the arp reply message is MAC GW 1, purpose MAC are MAC 1.VXLAN gateway devices can also learn the first VM of correspondence MAC address entries, and the list item learnt is used for Follow-up unicast forwarding, the MAC address entries storage learnt is in the mac table, as shown in table 2 below:
Table 2
Local terminal VTEP equipment is received after the above-mentioned arp reply message of packaging V XLAN headings, decapsulates VXLAN messages Head, then reads the heading of above-mentioned arp reply message, and purpose MAC is MAC1, searches MAC table, obtains correspondence MAC 1 MAC List item.Local terminal VTEP equipment sends above-mentioned arp reply message to first by port Port 1 and VLAN ID 101 VM, and learn the MAC address entries of the VXLAN gateway interfaces 1 on correspondence VXLAN gateway devices, the MAC address entries learnt are stored in It is as shown in table 3 below in MAC table:
Table 3
First VM is received after above-mentioned arp reply message, the IP of VXLAN gateway interfaces 1 is recorded in local ARP table Location and the corresponding relation of MAC Address.
Now, the first VM successfully learns the MAC Address to default gateway, subsequently can send unicast report by default gateway Text.
Second stage is illustrated below:
First VM sends unicast message to the 2nd VM, and the source MAC of the unicast message is MAC 1, and purpose MAC is VXLAN nets The MAC Address MAC GW 1 of interface 1 are closed, source IP is the first VM IP address 10.1.1.100/24, and purpose IP is the 2nd VM IP Address 20.1.1.200/24.First VM sends the unicast message to local terminal VTEP equipment.
Local terminal VTEP equipment is received after above-mentioned unicast message, and Port is indexed according to the first interface for receiving the unicast message 1 determines to send the first VM of unicast message VNI, is then searched according to the first VM VNI and the purpose MAC of the unicast message MAC table, obtains the MAC address entries corresponding to VXLAN gateway interfaces 1, then by after above-mentioned unicast message packaging V XLAN headings, The above-mentioned unicast message of packaging V XLAN headings is sent to where VXLAN gateway interfaces 1 by the first VXLAN tunnels VXLAN gateway devices.
VXLAN gateway devices are received after the above-mentioned unicast message of packaging V XLAN headings, decapsulate VXLAN headings, Whether the purpose MAC for then judging above-mentioned unicast message is local MAC Address.Because the purpose MAC of above-mentioned unicast message is MAC GW 1, therefore VXLAN gateway devices can determine that the purpose MAC of above-mentioned unicast message is local VXLAN gateway interfaces 1 MAC Address, and then determine that the unicast message need to walk three layers of forwarding.
In this case, VXLAN gateway devices can search routing table according to the purpose IP of above-mentioned unicast message, it is determined that Corresponding route table items;Wherein, the route table items include the outgoing interface corresponding to the 2nd VM.It is corresponding to the 2nd VM outgoing interface For VXLAN gateway interfaces 2, VXLAN gateway interfaces 2 are the default gateways for the VXLAN networks that VNI is 2000.
VXLAN gateway devices it is determined that above-mentioned unicast message need to be sent to VNI for 2000 VXLAN networks after, can be with The purpose MAC of above-mentioned unicast message is changed to the 2nd VM MAC Address MAC 2, source MAC is changed to VXLAN gateway interfaces 2 MAC Address MAC GW 2, be then the unicast message packaging V XLAN headings, by the 2nd VXLAN tunnels will encapsulate The unicast message of VXLAN headings is sent to opposite end VTEP equipment;Wherein, the VNI carried in VXLAN headings is 2000.
Now acquiescence VXLAN gateway devices have learnt the MAC Address to the 2nd VM, learn the process of MAC Address with before State the study of VXLAN gateway devices similar to the process of the first VM MAC Address, will not be repeated here;
Or, if VXLAN gateway devices not yet learn the MAC Address to the 2nd VM, it can be sent out to opposite end VTEP equipment ARP request message is sent, to learn the 2nd VM MAC Address.Before study to the 2nd VM MAC Address, VXLAN gateway devices Above-mentioned unicast message can be first cached, after the completion of waiting study, then is transmitted.
Opposite end VTEP equipment is received by the 2nd VXLAN tunnels after the above-mentioned unicast message of packaging V XLAN headings, solution Packaging V XLAN headings, then according to the purpose MAC of above-mentioned unicast message, search local MAC table, obtain and correspond to second VM MAC address entries, and port Port 4 and VLAN ID 102 in the MAC address entries send out above-mentioned unicast message Deliver to the 2nd VM.
So far, complete to communicate between the first VM and the 2nd VM.2nd VM sends the process and the of unicast message to the first VM The process that one VM sends unicast message to the 2nd VM is similar, will not be repeated here.
During unicast message being sent from the first VM to the 2nd VM, it is found that VXLAN gateway devices need will be from the The unicast message for the packaging V XLAN headings that one VXLAN tunnels are received, after decapsulation, Reseals VXLAN headings, Then the unicast message of packaging V XLAN headings is sent to opposite end VTEP equipment from the 2nd VXLAN tunnels;Opposite end VTEP equipment It will be sent again after the unicast message decapsulation of the packaging V XLAN headings received to the 2nd VM.In whole process, VXLAN nets Closing equipment need to decapsulate after VXLAN headings to unicast message, then encapsulate new VXLAN headings, and action is cumbersome, to property The pressure of energy is larger, and forward efficiency is not high.
To solve the above problems, in the embodiment of the present application, local terminal VTEP equipment in advance the 2nd VM of study IP address and The mapping relations of the IP address of opposite end VTEP equipment, and based on the mapping relations local VTEP equipment and opposite end VTEP equipment it Between set up VXLAN tunnels, subsequently received first VM is sent to the 2nd VM unicast message, can directly pass through the VXLAN Tunnel sends the unicast message to opposite end VTEP equipment, so that the unicast message is forwarded into the 2nd VM by opposite end VTEP equipment. In whole repeating process, VXLAN gateway devices need to only carry out common three layers of IP forwarding, without decapsulating VXLAN headings again The new VXLAN headings of encapsulation, reduce workload, effectively increase forward efficiency.
It is a kind of network architecture diagram of VXLAN messages forwarding shown in the application, as shown in Fig. 2 the network referring to Fig. 2 Organization Chart is approximate with Fig. 1, and the VNI of the VXLAN networks where VM 1 is that 1000, VM1 VLAN ID are 101, VM 1 IP address For 10.1.1.100/24, MAC Address is MAC 1, and VM 1 accesses VTEP 1 by Port 1;
The VLAN ID that the VNI of VXLAN networks where VM 2 is 2000, VM 2 are that 102, VM2 IP address is 20.1.1.200/24, MAC Address is MAC 2, and VM 2 accesses VTEP2 by Port 4.
VXLAN gateway interfaces 1 are configured on VXLAN gateway devices, VXLAN gateway interfaces 1 are designated as VXLAN's 1000 Three-layer network is closed, and is VM 1 default gateway, and IP address is 10.1.1.1/24, and MAC Address is MAC GW 1;
VXLAN gateway interfaces 2 are also configured on VXLAN gateway devices, VXLAN gateway interfaces 2 are designated as VXLAN 2000 Three-layer network close, and be VM 2 default gateway, IP address is 20.1.1.1/24, and MAC Address is MAC GW 2.
The Tunnel 1 set up between VTEP 1 and VXLAN gateway devices in the first VXLAN tunnels, i.e. figure;VTEP 2 with The Tunnel 2 set up between VXLAN gateway devices in the 2nd VXLAN tunnels, i.e. figure.
Fig. 2 and Fig. 1 difference is, is established between VTEP 1 and VTEP 2 in the 3rd VXLAN tunnels, i.e. figure Tunnel 3, the process of setting up in the 3rd VXLAN tunnels is described below.
The application VXLAN message forwarding methods are described from VTEP 1 angle now, the first VM mentioned below Refer to VM 1, local terminal VTEP equipment refers to VTEP 1, and opposite end VTEP equipment refers to VTEP 2, and the 2nd VM refers to VM 2.First interface index refers to Port 1, the 4th interface index refers to Port 4.
Continuing with referring to Fig. 3, being a kind of flow chart of VXLAN message forwarding methods shown in the application, this method is held Row main body is local terminal VTEP equipment, be the described method comprises the following steps:
Step 301:Receive the IP for the 2nd VM that the opposite end VTEP equipment passes through the VXLAN gateway devices transparent transmission Address, and the opposite end VTEP equipment IP address;Wherein, the IP address of the opposite end VTEP equipment is carried described In the VXLAN headings for the VXLAN messages that VXLAN gateway devices are sent.
Step 302:The mapping created between the IP address of the 2nd VM and the IP address of the opposite end VTEP equipment is closed System, and set up VXLAN tunnels between the local terminal VTEP equipment and the opposite end VTEP equipment based on the mapping relations.
Step 303:After receiving the first VM and sending to the unicast message of the 2nd VM, based on the VXLAN Tunnel sends the unicast message to the opposite end VTEP equipment, to be turned the unicast message by the opposite end VTEP equipment It is sent to the 2nd VM.
Wherein, the IP address of above-mentioned VTEP equipment, can be the IP address of physical interface;Or it is or local The IP address of loopback interfaces.If local terminal VTEP equipment and opposite end VTEP equipment are being set up VXLAN tunnels and E-Packeted When, using the IP address of local loopback interfaces, then it can improve the reliability of VXLAN message repeating process.
In the embodiment of the present application, first VXLAN headings can be extended.VXLAN gateway devices are in local terminal VTEP When equipment sets up the 3rd VXLAN tunnels with opposite end VTEP equipment, local terminal VTEP equipment is carried using the VXLAN headings after extension Or the IP address of opposite end VTEP equipment.
It is a kind of schematic diagram of VXLAN headings of prior art referring to Fig. 4;It is one shown in the application referring to Fig. 5 Plant the schematic diagram of VXLAN headings.As illustrated, the VXLAN headings shown in the application are than the VXLAN in prior art Heading has more IP high order fields and IP low level fields, and IP high order fields can be used for first 24 of record IP address, IP low words Section can be used for latter 8 of record IP address.
In the embodiment of the present application, the first VM and the 2nd VM communication can be divided into three phases:
In the first stage, the first VM learns the MAC Address of default gateway;
In second stage, cross-network segment VXLAN tunnels the (the i.e. the 3rd are set up between local terminal VTEP equipment and opposite end VTEP equipment VXLAN tunnels);
In the phase III, local terminal VTEP equipment is sent the first VM to the 2nd VM unicast report by the 3rd VXLAN tunnels Text is sent to opposite end VTEP equipment, and opposite end VTEP equipment is received after the unicast message, is forwarded to the 2nd VM.
The first stage is illustrated below:
First VM first sends ARP request to obtain default gateway 10.1.1.1/24 MAC Address, and purpose MAC is broadcast MAC Address, source MAC is the first VM MAC Address MAC 1;First VM sends ARP request to local terminal VTEP equipment.
In the embodiment of the present application, local terminal VTEP equipment is received after the ARP request message of the first VM transmissions, by the ARP Request message packaging V XLAN headings, and the ARP request message after encapsulation is carried out in VNI is 1000 VXLAN network Broadcast, and study simultaneously, corresponding to the first VM MAC address entries, the list item learnt is used for follow-up unicast forwarding, the MAC learnt List item is stored in the mac table, as shown in table 4 below:
Table 4
In the embodiment of the present application, VXLAN gateway devices receive packaging V XLAN headings from the first VXLAN tunnels After above-mentioned ARP request message, above-mentioned ARP request message is decapsulated, determines that the request address of above-mentioned ARP request message is local The IP address of VXLAN gateway interfaces 1, then send packaging V XLAN headings by the first VXLAN tunnels to local terminal VTEP equipment Arp reply message, local terminal VTEP equipment is returned to by the MAC Address of VXLAN gateway interfaces 1;
Wherein, the source MAC of the arp reply message is MAC GW 1, and purpose MAC is MAC 1.VXLAN gateway devices may be used also To learn the first VM of correspondence MAC address entries, the list item learnt is used for follow-up unicast forwarding, and the MAC address entries learnt are stored in It is as shown in table 5 below in MAC table:
Table 5
In the embodiment of the present application, local terminal VTEP equipment receives the above-mentioned arp reply message of packaging V XLAN headings Afterwards, VXLAN headings are decapsulated, the heading of above-mentioned arp reply message are then read, purpose MAC is MAC 1, MAC is searched Table, obtains correspondence MAC 1 MAC address entries.
Local terminal VTEP equipment by above-mentioned arp reply message by port Port 1 and VLAN ID 101 send to First VM, and learn the MAC address entries of the VXLAN gateway interfaces 1 on correspondence VXLAN gateway devices, the MAC address entries storage learnt In the mac table, it is as shown in table 6 below:
Table 6
In the embodiment of the present application, the first VM is received after above-mentioned arp reply message, is recorded in local ARP table The IP address of VXLAN gateway interfaces 1 and the corresponding relation of MAC Address.
Now, the first VM successfully learns the MAC Address to default gateway, subsequently can send unicast report by default gateway Text.
In addition, VXLAN gateway devices can also be learned after the above-mentioned ARP request message of packaging V XLAN headings is received Practise the ARP corresponding to the first VM.In the embodiment of the present application, VTEP equipment and VXLAN gateway devices can be extended in advance On ARP table, VNI can be recorded in the ARP table after extension.VXLAN gateway devices can obtain first from VXLAN headings VM VNI, and the source IP and source MAC of above-mentioned ARP request message are read, with obtaining the first VM IP address and the first VM MAC Location.
VXLAN gateway devices can be by the ARP table of ARP storage after expansion corresponding to the first VM;The ARP table Item includes the first VM IP address, the first VM MAC Address and the first VM VNI mapping relations.It is as shown in table 7 below:
Table 7
VXLAN gateway devices can lead to the ARP learnt after the ARP corresponding to the first VM is arrived in study Accuse to opposite end VTEP equipment.
In a kind of embodiment shown, VXLAN gateway devices can ask the above-mentioned ARP of packaging V XLAN headings The purpose IP in the VXLAN headings of message is asked to be changed to the IP address of opposite end VTEP equipment, and, purpose MAC is changed to The MAC Address of opposite end VTEP equipment;
After the completion of change, VXLAN gateway devices send the above-mentioned ARP request message of packaging V XLAN headings to right Hold VTEP equipment;Wherein, the first VM VNI is carried in VXLAN headings.
Opposite end VTEP equipment is received after the above-mentioned ARP request message of packaging V XLAN headings, can decapsulate VXLAN Heading, reads the VNI, i.e. the first VM of the VXLAN headings carrying VNI;
In addition, opposite end VTEP equipment can also read the source IP and source MAC of above-mentioned ARP request message, obtain the first VM's The MAC Address of IP address and the first VM.Now, VTEP learning equipments in opposite end have arrived the ARP corresponding to the first VM, Ke Yi The ARP is stored in local ARP table.It is as shown in table 8 below:
Table 8
In the another embodiment shown, VXLAN gateway devices can arrive the ARP table corresponding to the first VM in study Xiang Hou, the notice message for carrying the ARP is sent to opposite end VTEP equipment.
Opposite end VTEP equipment is received after above-mentioned notice message, and can directly obtain notice message carrying corresponds to the One VM ARP, and locally preserving the ARP.Wherein, above-mentioned notice message can be based on BGP (Border Gateway Protocol, Border Gateway Protocol) notice message.
The process of the MAC Address of 2nd VM study default gateways is similar with said process, will not be repeated here.In addition, working as When 2nd VM learns the MAC Address of default gateway, local terminal VTEP equipment can also learn to the ARP corresponding to the 2nd VM, learn Habit process is similar with the process for the ARP that opposite end VTEP learning equipments correspond to the first VM, also repeats no more herein.
Second stage is illustrated below:
In the embodiment of the present application, the 3rd VXLAN tunnels are set up between local terminal VTEP equipment and opposite end VTEP equipment can be with It is to learn in the first VM to after the MAC Address of default gateway, the first VM is completed when sending unicast message to the 2nd VM first.
Specifically, the first VM sends unicast message to the 2nd VM, the source MAC of the unicast message is MAC 1, and purpose MAC is The MAC Address MAC GW 1 of VXLAN gateway interfaces 1, source IP is the first VM IP address 10.1.1.100/24, and purpose IP is the Two VM IP address 20.1.1.200/24.First VM sends the unicast message to local terminal VTEP equipment.
In the embodiment of the present application, local terminal VTEP equipment is received after above-mentioned unicast message, according to the reception unicast message First interface index determine send the unicast message the first VM VNI, then according to the first VM VNI and the unicast message Purpose MAC search MAC table, obtain corresponding to VXLAN gateway interfaces 1 MAC address entries, then the unicast message is encapsulated After VXLAN headings, the above-mentioned unicast message of packaging V XLAN headings is sent to VXLAN gateways by the first VXLAN tunnels VXLAN gateway devices where interface 1.
In the embodiment of the present application, VXLAN gateway devices are received after the above-mentioned unicast message of packaging V XLAN headings, VXLAN headings are decapsulated, and record the IP address of the source IP in VXLAN headings, i.e. local terminal VTEP equipment.VXLAN gateways Equipment may determine that whether the purpose MAC of above-mentioned unicast message is local MAC Address.
Because the purpose MAC of above-mentioned unicast message is MAC GW 1, therefore VXLAN gateway devices can determine above-mentioned unicast The purpose MAC of message is the MAC Address of local VXLAN gateway interfaces 1, and then determines that the unicast message need to walk three layers of forwarding.
In this case, VXLAN gateway devices can search routing table according to the purpose IP of above-mentioned unicast message, it is determined that Corresponding route table items;Wherein, the route table items include the outgoing interface corresponding to the 2nd VM.Corresponding to going out for the 2nd VM Interface is VXLAN gateway interfaces 2, and VXLAN gateway interfaces 2 are the default gateways for the VXLAN networks that VNI is 2000.
VXLAN gateway devices it is determined that above-mentioned unicast message need to be sent to VNI for 2000 VXLAN networks after, can be with The purpose MAC of above-mentioned unicast message is changed to the 2nd VM MAC Address MAC 2, source MAC is changed to VXLAN gateway interfaces 2 MAC Address MAC GW 2, be then the unicast message packaging V XLAN headings, wherein, the VNI carried in VXLAN headings For 2000;
In addition, VXLAN gateway devices can (i.e. local terminal VTEP be set by the source IP recorded when decapsulating VXLAN headings Standby IP address), fill out in VXLAN headings, first 24 of source IP are filled out in IP high order fields, latter 8 of source IP are filled out IP low level fields.For example:When IP address 1.1.1.1 is filled into VXLAN headings by VXLAN gateway devices, 1.1.1 is filled into IP high order fields, IP low level fields are filled into by 1.
After above-mentioned steps are completed, VXLAN gateway devices can will Reseal VXLAN by the 2nd VXLAN tunnels The above-mentioned unicast message of heading is sent to opposite end VTEP equipment.
In the embodiment of the present application, VTEP equipment in opposite end is after the above-mentioned unicast message of packaging V XLAN headings is received, VXLAN headings can be decapsulated, then the MAC address entries for the VXLAN gateway interfaces 2 that study corresponds on VXLAN gateway devices, The MAC address entries storage learnt is in the mac table, as shown in table 9 below:
Table 9
Opposite end VTEP equipment searches MAC table according to the purpose MAC of above-mentioned unicast message, obtains correspondence MAC 2 MAC table , then above-mentioned unicast message is sent to the 2nd VM by port Port 4 and VLAN ID 104.
In addition, opposite end VTEP equipment can also obtain the IP address of the local terminal VTEP equipment of VXLAN headings carrying.
Specifically, opposite end VTEP equipment can read the field value of the IP high order fields of the VXLAN headings, this is obtained Hold the IP address of VTEP equipment first 24;And, the field value of the IP low level fields of the VXLAN headings is read, is obtained Latter 8 of the IP address of local terminal VTEP equipment.
Opposite end VTEP equipment is after first 24 of IP address of local terminal VTEP equipment and latter 8 are obtained, and assembly is arranged as this Hold the complete IP address of VTEP equipment.
In addition, opposite end VTEP equipment can read the source IP of above-mentioned unicast message, the first VM IP address is obtained.Obtaining After the IP address of local terminal VTEP equipment and the first VM IP address, opposite end VTEP equipment is with can recording the IP of local terminal VTEP equipment The mapping relations of location and the first VM IP address, the mapping relations are used to subsequently set up the 3rd VXLAN tunnels;Opposite end VTEP is set It is standby that local ARP table can be searched according to the first VM IP address, the ARP corresponding to the first VM is obtained, the is then generated The VNI of one VM IP address, the IP address of local terminal VTEP equipment and the first VM mapping relations.The mapping relations are stored in pre- If IP address mapping table in, it is as shown in table 10 below:
Table 10
The 3rd VXLAN tunnels that opposite end VTEP equipment can be set up between local terminal VTEP equipment according to the mapping relations. Now, VTEP equipment in opposite end can be sent the 2nd VM to this to the first VM unicast messages sent by the 3rd VXLAN tunnels Hold VTEP equipment.
Local terminal VTEP equipment can obtain the IP address of opposite end VTEP equipment according to the mode being equal with opposite end VTEP equipment With the mapping relations of the 2nd VM IP address, and the ARP combined corresponding to the 2nd VM generates the 2nd VM IP address, opposite end The IP address of VTEP equipment and the 2nd VM VNI mapping relations, then according to the mapping relations set up local terminal VTEP equipment with The 3rd VXLAN tunnels between the VTEP equipment of opposite end.It will not be repeated here.
After the 3rd VXLAN tunnels are set up between local terminal VTEP equipment and opposite end VTEP equipment, local terminal VTEP equipment can be with Communicated by the 3rd VXLAN tunnels with opposite end VTEP equipment.
The phase III is illustrated below:
First VM sends unicast message to the 2nd VM, and the source MAC of the unicast message is MAC 1, and purpose MAC is VXLAN nets The MAC Address MAC GW 1 of interface 1 are closed, source IP is the first VM IP address 10.1.1.100/24, and purpose IP is the 2nd VM IP Address 20.1.1.200/24.First VM sends the unicast message to local terminal VTEP equipment.
In the embodiment of the present application, local terminal VTEP equipment is received after unicast message, it can be determined that the source of the unicast message Whether IP and purpose IP belong to the same network segment.
On the one hand, if the source IP and purpose IP of unicast message belong to the same network segment, the unicast message is walked common Bis- layers of forwardings of VXLAN;Local terminal VTEP equipment can be according to the interface index (example for receiving the unicast message:Port numbers) determine to send First VM of unicast message VNI, then searches according to the first VM VNI and the purpose MAC of the unicast message searches MAC Table, obtains the MAC address entries corresponding to purpose MAC, and then after packaging V XLAN headings, the unicast is forwarded according to the MAC address entries Message;
On the other hand, if the source IP and purpose IP of unicast message are not belonging to the same network segment, the unicast message walks VXLAN Three layers of across tunnel forwarding;Local terminal VTEP equipment determines source IP and purpose IP of the first VM to the 2nd VM above-mentioned unicast messages sent It is not belonging to after the same network segment, local IP address mapping table is searched according to purpose IP, obtains the 2nd VM IP address, opposite end The IP address of VTEP equipment and the 2nd VM VNI mapping relations, in addition, local terminal VTEP equipment can be looked into according to purpose IP Local ARP table is looked for, the ARP corresponding to the 2nd VM is obtained;Wherein, the ARP includes the 2nd VM IP address, second VM MAC Address and the 2nd VM VNI mapping relations;
After the ARP corresponding to the 2nd VM is obtained, local terminal VTEP equipment can be by the purpose MAC of above-mentioned unicast message The 2nd VM MAC Address is changed to, is then above-mentioned unicast message packaging V XLAN headings, wherein, in the VXLAN headings Purpose MAC be VXLAN gateway devices MAC Address, purpose IP be opposite end VTEP equipment IP address, the VXLAN headings Carry the 2nd VM VNI;The above-mentioned unicast message of packaging V XLAN headings is sent to VXLAN gateways and set by local terminal VTEP equipment It is standby.
In the embodiment of the present application, VXLAN gateway devices are received after the above-mentioned unicast message of packaging V XLAN headings, The above-mentioned unicast message of packaging V XLAN headings can be forwarded to opposite end VTEP and set in the way of common tri- layers of forwardings of IP It is standby.
In the embodiment of the present application, VTEP equipment in opposite end is received after the above-mentioned unicast message of packaging V XLAN headings, solution Packaging V XLAN headings, then search local MAC according to the purpose MAC (i.e. the 2nd VM MAC Address) of above-mentioned unicast message Table, obtains the MAC address entries corresponding to the 2nd VM, and MAC Address of the MAC address entries including the 2nd VM, the 2nd VM VNI, the 4th connect Stomochord draws the mapping relations with the 2nd VM VLAN ID.
Opposite end VTEP equipment is after the MAC address entries corresponding to the 2nd VM are obtained, according to the 4th interface index and the 2nd VM VLAN ID send above-mentioned unicast message to the 2nd VM.
So far, the first VM is completed to the process that unicast message is sent between the 2nd VM.
In summary, in technical scheme, local terminal VTEP equipment receives opposite end VTEP equipment and passes through VXLAN gateways 2nd VM of equipment transparent transmission IP address, and above-mentioned opposite end VTEP equipment IP address;Wherein, above-mentioned opposite end VTEP equipment IP address is carried in the VXLAN headings for the VXLAN messages that above-mentioned VXLAN gateway devices are sent;Local terminal VTEP equipment can be with The mapping relations between above-mentioned 2nd VM IP address and the IP address of above-mentioned opposite end VTEP equipment are created, and are closed based on the mapping Tie up between local VTEP equipment and opposite end VTEP equipment and set up VXLAN tunnels;Local VTEP equipment receives the first VM transmissions To above-mentioned 2nd VM unicast message, above-mentioned unicast message is sent to above-mentioned opposite end VTEP based on above-mentioned VXLAN tunnels and set It is standby, so that above-mentioned unicast message is forwarded into above-mentioned 2nd VM by above-mentioned opposite end VTEP equipment;
, can be with behind VXLAN tunnels of the local terminal VTEP equipment between foundation and opposite end VTEP equipment due in this application The first VM unicast messages sent to the 2nd VM are directly sent to opposite end VTEP equipment by above-mentioned VXLAN tunnels, with by right VTEP equipment is held to forward above-mentioned unicast message to above-mentioned 2nd VM;In whole repeating process, VXLAN gateway devices are being received After the above-mentioned unicast message of packaging V XLAN headings, the above-mentioned unicast message of packaging V XLAN headings can be carried out commonly Three layers of forwarding, without decapsulating VXLAN headings, and the new VXLAN headings of encapsulation, reduce workload, so as to reduce The performance pressures of VXLAN gateway devices, are effectively improved forward efficiency.
Embodiment with foregoing VXLAN message forwarding methods is corresponding, and present invention also provides VXLAN apparatus for forwarding message Embodiment.
It is a kind of logic diagram of VXALN apparatus for forwarding message shown in the application referring to Fig. 6:
As shown in fig. 6, the VXLAN apparatus for forwarding message 60 includes:
Receiving unit 610, for receiving the opposite end VTEP equipment described by the VXLAN gateway devices transparent transmission Two VM IP address, and the opposite end VTEP equipment IP address;Wherein, the IP address of the opposite end VTEP equipment is carried In the VXLAN headings for the VXLAN messages that the VXLAN gateway devices are sent.
Creating unit 620, for creating between the IP address of the 2nd VM and the IP address of the opposite end VTEP equipment Mapping relations, and set up based on the mapping relations between the local terminal VTEP equipment and the opposite end VTEP equipment VXLAN tunnels.
Transmitting element 630, for after receiving the first VM and sending to the unicast message of the 2nd VM, based on institute VXLAN tunnels are stated to send the unicast message to the opposite end VTEP equipment, with by the opposite end VTEP equipment by the list Report text and be forwarded to the 2nd VM.
In this example, the first VXLAN tunnels are established between the local terminal VTEP equipment and the VXLAN gateway devices, The 2nd VXLAN tunnels are established between the VXLAN gateway devices and the opposite end VTEP equipment;
The receiving unit 610, is further used for:
Receive the VXLAN messages that the VXLAN gateway devices are sent by the first VXLAN tunnels;Wherein, it is described VXLAN messages are that the 2nd VM of packaging V XLAN headings is sent to the unicast message of the first VM;
The VXLAN headings of the VXLAN messages are decapsulated, and obtain the opposite end that the VXLAN headings are carried The source IP of the IP address of VTEP equipment and the unicast message;Wherein, the source IP of the unicast message is the 2nd VM's IP address.
In this example, the receiving unit 610, is further used for:
Receive the VXLAN messages that the VXLAN gateway devices are sent;Wherein, the VXLAN messages are packaging V XLAN The 2nd VM of heading is sent to the ARP request message of the VXLAN gateway devices, and the VXLAN headings carry institute State the 2nd VM VNI;
Obtain the source IP and source MAC of the ARP request message, and the 2nd VM VNI, and based on the source IP, should ARP of source MAC and the 2nd VM VNI generations corresponding to the 2nd VM;Wherein, the source IP is the 2nd VM IP address, the MAC is the MAC Address of the 2nd VM.
In this example, the receiving unit 610, is further used for:
Receive the notice message that the VXLAN gateway devices are sent;Wherein, the notice message carries the VXLAN The ARP corresponding to the 2nd VM that gateway device is created;The ARP is based on encapsulation by the VXLAN gateway devices The 2nd VM of VXLAN headings sends the source IP of the ARP request message to the VXLAN gateway devices, source MAC and described 2nd VM VNI is created;
The ARP corresponding to the 2nd VM carried in the notice message is obtained, corresponds to institute in local preserve State the 2nd VM ARP.
In this example, the creating unit 620, is further used for:
IP address based on the 2nd VM and the corresponding relation between the IP address of the opposite end VTEP equipment, Yi Jiben The ARP corresponding to the 2nd VM that ground is preserved, generates IP address, the IP of the opposite end VTEP equipment of the 2nd VM Mapping relations between address and the 2nd VM VNI.
The embodiment of the application VXLAN apparatus for forwarding message can be applied in local terminal VTEP equipment.Device embodiment can To be realized by software, it can also be realized by way of hardware or software and hardware combining.Exemplified by implemented in software, one is used as Device on logical meaning, is to be calculated by the processor of local terminal VTEP equipment where it by corresponding in nonvolatile memory Machine programmed instruction reads what operation in internal memory was formed.For hardware view, as shown in fig. 7, turning for the application VXLAN messages A kind of hardware structure diagram of local terminal VTEP equipment where transmitting apparatus, except the processor shown in Fig. 7, internal memory, network interface and Outside nonvolatile memory, the local terminal VTEP equipment in embodiment where device is generally according to the VXLAN apparatus for forwarding message Actual functional capability, can also include other hardware, this is repeated no more.
The function of unit and the implementation process of effect specifically refer to correspondence step in the above method in said apparatus Implementation process, will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component The unit of explanation can be or may not be physically separate, and the part shown as unit can be or can also It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality Selection some or all of module therein is needed to realize the purpose of application scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
The preferred embodiment of the application is the foregoing is only, not to limit the application, all essences in the application God is with principle, and any modification, equivalent substitution and improvements done etc. should be included within the scope of the application protection.

Claims (10)

1. a kind of VXLAN message forwarding methods, applied to local terminal VTEP equipment, wherein, the local terminal VTEP equipment has accessed One VM, opposite end VTEP equipment has accessed the 2nd VM, and the first VM passes through the VXLAN gateway devices VXLAN different from being under the jurisdiction of The 2nd VM interconnections of network, it is characterised in that including:
Receive the IP address for the 2nd VM that the opposite end VTEP equipment passes through the VXLAN gateway devices transparent transmission, Yi Jisuo State the IP address of opposite end VTEP equipment;Wherein, the IP address of the opposite end VTEP equipment is carried in VXLAN gateway devices hair In the VXLAN headings of the VXLAN messages sent;
The mapping relations between the IP address of the 2nd VM and the IP address of the opposite end VTEP equipment are created, and based on described Mapping relations set up VXLAN tunnels between the local terminal VTEP equipment and the opposite end VTEP equipment;
After receiving the first VM and sending to the unicast message of the 2nd VM, based on the VXLAN tunnels by the list Report text to send to the opposite end VTEP equipment, so that the unicast message is forwarded into described second by the opposite end VTEP equipment VM。
2. according to the method described in claim 1, it is characterised in that the local terminal VTEP equipment and the VXLAN gateway devices Between establish the first VXLAN tunnels, establish second between the VXLAN gateway devices and the opposite end VTEP equipment VXLAN tunnels;
The IP address for receiving the 2nd VM that the opposite end VTEP equipment passes through the VXLAN gateway devices transparent transmission, with And the IP address of the opposite end VTEP equipment, including:
Receive the VXLAN messages that the VXLAN gateway devices are sent by the first VXLAN tunnels;Wherein, it is described VXLAN messages are that the 2nd VM of packaging V XLAN headings is sent to the unicast message of the first VM;
The VXLAN headings of the VXLAN messages are decapsulated, and obtain the opposite end VTEP that the VXLAN headings are carried The source IP of the IP address of equipment and the unicast message;Wherein, the source IP of the unicast message for the 2nd VM IP Location.
3. according to the method described in claim 1, it is characterised in that the IP address for creating the 2nd VM and the opposite end Before mapping relations between the IP address of VTEP equipment, in addition to:
Receive the VXLAN messages that the VXLAN gateway devices are sent;Wherein, the VXLAN messages are packaging V XLAN messages The 2nd VM of head is sent to the ARP request message of the VXLAN gateway devices, and the VXLAN headings carry described the Two VM VNI;
Obtain the source IP and source MAC of the ARP request message, and the 2nd VM VNI, and based on the source IP, source MAC VNI generations with the 2nd VM correspond to the ARP of the 2nd VM;Wherein, the source IP is the IP of the 2nd VM Address, the MAC is the MAC Address of the 2nd VM.
4. according to the method described in claim 1, it is characterised in that the IP address for creating the 2nd VM and the opposite end Before mapping relations between the IP address of VTEP equipment, in addition to:
Receive the notice message that the VXLAN gateway devices are sent;Wherein, the notice message carries the VXLAN gateways The ARP corresponding to the 2nd VM that equipment is created;The ARP is based on packaging V XLAN by the VXLAN gateway devices The 2nd VM of heading sends the source IP of the ARP request message to the VXLAN gateway devices, source MAC and described second VM VNI is created;
The ARP corresponding to the 2nd VM carried in the notice message is obtained, corresponds to described the in local preserve Two VM ARP.
5. the method according to claim 3 or 4, it is characterised in that the IP address of establishment the 2nd VM with it is described Mapping relations between the IP address of opposite end VTEP equipment, including:
IP address based on the 2nd VM and the corresponding relation between the IP address of the opposite end VTEP equipment, and local guarantor The ARP corresponding to the 2nd VM deposited, with generating IP address, the IP of the opposite end VTEP equipment of the 2nd VM Mapping relations between location and the 2nd VM VNI.
6. a kind of VXLAN apparatus for forwarding message, applied to local terminal VTEP equipment, wherein, the local terminal VTEP equipment has accessed One VM, opposite end VTEP equipment has accessed the 2nd VM, and the first VM passes through the VXLAN gateway devices VXLAN different from being under the jurisdiction of The 2nd VM interconnections of network, it is characterised in that including:
Receiving unit, for receiving the 2nd VM's that the opposite end VTEP equipment passes through the VXLAN gateway devices transparent transmission IP address, and the opposite end VTEP equipment IP address;Wherein, the IP address of the opposite end VTEP equipment is carried described In the VXLAN headings for the VXLAN messages that VXLAN gateway devices are sent;
Creating unit, is closed for creating the mapping between the IP address of the 2nd VM and the IP address of the opposite end VTEP equipment System, and set up VXLAN tunnels between the local terminal VTEP equipment and the opposite end VTEP equipment based on the mapping relations;
Transmitting element, for after receiving the first VM and sending to the unicast message of the 2nd VM, based on the VXLAN Tunnel sends the unicast message to the opposite end VTEP equipment, to be turned the unicast message by the opposite end VTEP equipment It is sent to the 2nd VM.
7. device according to claim 6, it is characterised in that the local terminal VTEP equipment and the VXLAN gateway devices Between establish the first VXLAN tunnels, establish second between the VXLAN gateway devices and the opposite end VTEP equipment VXLAN tunnels;
The receiving unit, is further used for:
Receive the VXLAN messages that the VXLAN gateway devices are sent by the first VXLAN tunnels;Wherein, it is described VXLAN messages are that the 2nd VM of packaging V XLAN headings is sent to the unicast message of the first VM;
The VXLAN headings of the VXLAN messages are decapsulated, and obtain the opposite end VTEP that the VXLAN headings are carried The source IP of the IP address of equipment and the unicast message;Wherein, the source IP of the unicast message for the 2nd VM IP Location.
8. device according to claim 6, it is characterised in that the receiving unit, is further used for:
Receive the VXLAN messages that the VXLAN gateway devices are sent;Wherein, the VXLAN messages are packaging V XLAN messages The 2nd VM of head is sent to the ARP request message of the VXLAN gateway devices, and the VXLAN headings carry described the Two VM VNI;
Obtain the source IP and source MAC of the ARP request message, and the 2nd VM VNI, and based on the source IP, source MAC VNI generations with the 2nd VM correspond to the ARP of the 2nd VM;Wherein, the source IP is the IP of the 2nd VM Address, the MAC is the MAC Address of the 2nd VM.
9. device according to claim 6, it is characterised in that the receiving unit, is further used for:
Receive the notice message that the VXLAN gateway devices are sent;Wherein, the notice message carries the VXLAN gateways The ARP corresponding to the 2nd VM that equipment is created;The ARP is based on packaging V XLAN by the VXLAN gateway devices The 2nd VM of heading sends the source IP of the ARP request message to the VXLAN gateway devices, source MAC and described second VM VNI is created;
The ARP corresponding to the 2nd VM carried in the notice message is obtained, corresponds to described the in local preserve Two VM ARP.
10. device according to claim 8 or claim 9, it is characterised in that the creating unit, is further used for:
IP address based on the 2nd VM and the corresponding relation between the IP address of the opposite end VTEP equipment, and local guarantor The ARP corresponding to the 2nd VM deposited, with generating IP address, the IP of the opposite end VTEP equipment of the 2nd VM Mapping relations between location and the 2nd VM VNI.
CN201710311213.XA 2017-05-05 2017-05-05 VX L AN message forwarding method and device Active CN106998286B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710311213.XA CN106998286B (en) 2017-05-05 2017-05-05 VX L AN message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710311213.XA CN106998286B (en) 2017-05-05 2017-05-05 VX L AN message forwarding method and device

Publications (2)

Publication Number Publication Date
CN106998286A true CN106998286A (en) 2017-08-01
CN106998286B CN106998286B (en) 2020-08-04

Family

ID=59435314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710311213.XA Active CN106998286B (en) 2017-05-05 2017-05-05 VX L AN message forwarding method and device

Country Status (1)

Country Link
CN (1) CN106998286B (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107493222A (en) * 2017-08-15 2017-12-19 杭州迪普科技股份有限公司 A kind of method and device of VXLAN messages forwarding
CN107659484A (en) * 2017-10-13 2018-02-02 锐捷网络股份有限公司 From the method, apparatus and system of vlan network access VXLAN networks
CN107896188A (en) * 2017-12-22 2018-04-10 迈普通信技术股份有限公司 Data forwarding method and device
CN107911495A (en) * 2017-11-16 2018-04-13 新华三技术有限公司 A kind of MAC Address synchronous method and VTEP
CN108199963A (en) * 2017-12-27 2018-06-22 新华三技术有限公司 Message forwarding method and device
CN108600069A (en) * 2018-03-29 2018-09-28 新华三技术有限公司 Link switch-over method and device
CN108833250A (en) * 2018-06-22 2018-11-16 山东超越数控电子股份有限公司 A kind of retransmission method between VxLAN and VLAN
CN109995639A (en) * 2018-01-02 2019-07-09 ***通信有限公司研究院 A kind of data transmission method, device, interchanger and storage medium
WO2019137355A1 (en) * 2018-01-11 2019-07-18 华为技术有限公司 Method and device for transmitting data, and network system
CN111130978A (en) * 2019-12-03 2020-05-08 杭州迪普科技股份有限公司 Network traffic forwarding method and device, electronic equipment and machine-readable storage medium
CN111371667A (en) * 2019-10-23 2020-07-03 上海科技网络通信有限公司 LTE VPDN networking method based on VxLAN technology under cloud computing environment
CN113347101A (en) * 2021-06-01 2021-09-03 中国联合网络通信集团有限公司 Routing information sending control method, VTEP and computer readable storage medium
CN113590268A (en) * 2021-08-06 2021-11-02 中国联合网络通信集团有限公司 Virtual machine migration method, ARP proxy gateway and VTEP
CN113660164A (en) * 2020-05-12 2021-11-16 华为技术有限公司 Message forwarding method and network equipment
WO2022001669A1 (en) * 2020-06-30 2022-01-06 华为技术有限公司 Method for establishing vxlan tunnel, and related device
CN113923075A (en) * 2020-07-09 2022-01-11 华为技术有限公司 Data transmission method and device
CN115190100A (en) * 2022-07-04 2022-10-14 中国联合网络通信集团有限公司 Data forwarding method, VTEP gateway, electronic device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647853A (en) * 2013-12-04 2014-03-19 华为技术有限公司 Method for sending ARP message in VxLAN, VTEP and VxLAN controller
CN105099922A (en) * 2015-06-18 2015-11-25 杭州华三通信技术有限公司 Cross-VXLAN (Virtual eXtensible Local Area Network) data message forwarding method and device
US20150381386A1 (en) * 2014-06-30 2015-12-31 Arista Networks, Inc. Method and system for vxlan encapsulation offload
CN106209643A (en) * 2016-07-14 2016-12-07 杭州华三通信技术有限公司 Message forwarding method and device
CN106330719A (en) * 2016-10-26 2017-01-11 杭州迪普科技有限公司 VXLAN message forwarding method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647853A (en) * 2013-12-04 2014-03-19 华为技术有限公司 Method for sending ARP message in VxLAN, VTEP and VxLAN controller
US20150381386A1 (en) * 2014-06-30 2015-12-31 Arista Networks, Inc. Method and system for vxlan encapsulation offload
CN105099922A (en) * 2015-06-18 2015-11-25 杭州华三通信技术有限公司 Cross-VXLAN (Virtual eXtensible Local Area Network) data message forwarding method and device
CN106209643A (en) * 2016-07-14 2016-12-07 杭州华三通信技术有限公司 Message forwarding method and device
CN106330719A (en) * 2016-10-26 2017-01-11 杭州迪普科技有限公司 VXLAN message forwarding method and device

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107493222A (en) * 2017-08-15 2017-12-19 杭州迪普科技股份有限公司 A kind of method and device of VXLAN messages forwarding
CN107493222B (en) * 2017-08-15 2020-06-09 杭州迪普科技股份有限公司 VXLAN message forwarding method and device
CN107659484A (en) * 2017-10-13 2018-02-02 锐捷网络股份有限公司 From the method, apparatus and system of vlan network access VXLAN networks
CN107659484B (en) * 2017-10-13 2020-08-21 锐捷网络股份有限公司 Method, device and system for accessing VXLAN network from VLAN network
CN107911495A (en) * 2017-11-16 2018-04-13 新华三技术有限公司 A kind of MAC Address synchronous method and VTEP
CN107911495B (en) * 2017-11-16 2020-12-04 新华三技术有限公司 MAC address synchronization method and VTEP
CN107896188A (en) * 2017-12-22 2018-04-10 迈普通信技术股份有限公司 Data forwarding method and device
CN107896188B (en) * 2017-12-22 2020-08-28 迈普通信技术股份有限公司 Data forwarding method and device
CN108199963B (en) * 2017-12-27 2020-01-07 新华三技术有限公司 Message forwarding method and device
CN108199963A (en) * 2017-12-27 2018-06-22 新华三技术有限公司 Message forwarding method and device
CN109995639A (en) * 2018-01-02 2019-07-09 ***通信有限公司研究院 A kind of data transmission method, device, interchanger and storage medium
CN109995639B (en) * 2018-01-02 2021-06-04 ***通信有限公司研究院 Data transmission method, device, switch and storage medium
CN110034993A (en) * 2018-01-11 2019-07-19 华为技术有限公司 Transmit method, equipment and the network system of data
US12034568B2 (en) 2018-01-11 2024-07-09 Huawei Technologies Co., Ltd. Data transmission method, device, and network system
WO2019137355A1 (en) * 2018-01-11 2019-07-18 华为技术有限公司 Method and device for transmitting data, and network system
US11539551B2 (en) 2018-01-11 2022-12-27 Huawei Technologies Co., Ltd. Data transmission method, device, and network system
CN110034993B (en) * 2018-01-11 2020-12-25 华为技术有限公司 Method, equipment and network system for transmitting data
CN108600069A (en) * 2018-03-29 2018-09-28 新华三技术有限公司 Link switch-over method and device
CN108600069B (en) * 2018-03-29 2020-12-25 新华三技术有限公司 Link switching method and device
CN108833250A (en) * 2018-06-22 2018-11-16 山东超越数控电子股份有限公司 A kind of retransmission method between VxLAN and VLAN
CN111371667A (en) * 2019-10-23 2020-07-03 上海科技网络通信有限公司 LTE VPDN networking method based on VxLAN technology under cloud computing environment
CN111130978A (en) * 2019-12-03 2020-05-08 杭州迪普科技股份有限公司 Network traffic forwarding method and device, electronic equipment and machine-readable storage medium
CN111130978B (en) * 2019-12-03 2021-11-23 杭州迪普科技股份有限公司 Network traffic forwarding method and device, electronic equipment and machine-readable storage medium
CN113660164A (en) * 2020-05-12 2021-11-16 华为技术有限公司 Message forwarding method and network equipment
WO2022001669A1 (en) * 2020-06-30 2022-01-06 华为技术有限公司 Method for establishing vxlan tunnel, and related device
CN113923075A (en) * 2020-07-09 2022-01-11 华为技术有限公司 Data transmission method and device
CN113347101A (en) * 2021-06-01 2021-09-03 中国联合网络通信集团有限公司 Routing information sending control method, VTEP and computer readable storage medium
CN113347101B (en) * 2021-06-01 2022-11-15 中国联合网络通信集团有限公司 Routing information sending control method, VTEP and computer readable storage medium
CN113590268A (en) * 2021-08-06 2021-11-02 中国联合网络通信集团有限公司 Virtual machine migration method, ARP proxy gateway and VTEP
CN113590268B (en) * 2021-08-06 2023-11-24 中国联合网络通信集团有限公司 Virtual machine migration method, ARP proxy gateway and VTEP
CN115190100A (en) * 2022-07-04 2022-10-14 中国联合网络通信集团有限公司 Data forwarding method, VTEP gateway, electronic device and readable storage medium

Also Published As

Publication number Publication date
CN106998286B (en) 2020-08-04

Similar Documents

Publication Publication Date Title
CN106998286A (en) A kind of VXLAN message forwarding methods and device
US11765000B2 (en) Method and system for virtual and physical network integration
US11411776B2 (en) Multi-cloud VPC routing and registration
CN107342941B (en) A kind of optimization method and device of VXLAN control plane
CN106254256B (en) Data message forwarding method and equipment based on three layers of VXLAN gateway
CN105591982B (en) A kind of method and apparatus of message transmissions
US20150271067A1 (en) Packet forwarding method and apparatus, and data center network
CN107645431B (en) Message forwarding method and device
US20150110111A1 (en) Forward Packet with Edge Device
CN106209557B (en) Message forwarding method and device
WO2015113410A1 (en) Data packet processing method and apparatus
CN106330719B (en) A kind of VXLAN message forwarding method and device
CN106656722A (en) VXLAN multicasting method and device
CN112671628A (en) Business service providing method and system
CN110034993A (en) Transmit method, equipment and the network system of data
CN107659484B (en) Method, device and system for accessing VXLAN network from VLAN network
CN107493222A (en) A kind of method and device of VXLAN messages forwarding
CN116418632A (en) Message processing method, device, equipment and machine-readable storage medium
CN112671938A (en) Business service providing method and system and remote acceleration gateway
CN112511432A (en) Method and system for configuring and transmitting virtualization SFC (Small form factor) route of Overlay network
CN110752989A (en) Method and device for forwarding east-west traffic
CN108512737B (en) Data center IP layer interconnection method and SDN controller
CN111130978B (en) Network traffic forwarding method and device, electronic equipment and machine-readable storage medium
WO2019134637A1 (en) Method, device, and system for multi-type network virtualization overlay interconnection
CN108156066B (en) Message forwarding method and device

Legal Events

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