CN105991389A - Forwarding method of virtual extensible local area network message and apparatus thereof - Google Patents

Forwarding method of virtual extensible local area network message and apparatus thereof Download PDF

Info

Publication number
CN105991389A
CN105991389A CN201510070865.XA CN201510070865A CN105991389A CN 105991389 A CN105991389 A CN 105991389A CN 201510070865 A CN201510070865 A CN 201510070865A CN 105991389 A CN105991389 A CN 105991389A
Authority
CN
China
Prior art keywords
vxlan
ovs
message
port
virtual machine
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
CN201510070865.XA
Other languages
Chinese (zh)
Other versions
CN105991389B (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 H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201510070865.XA priority Critical patent/CN105991389B/en
Priority to PCT/CN2016/073477 priority patent/WO2016127909A1/en
Publication of CN105991389A publication Critical patent/CN105991389A/en
Application granted granted Critical
Publication of CN105991389B publication Critical patent/CN105991389B/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/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • 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/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • H04L2012/4629LAN interconnection over a backbone network, e.g. Internet, Frame Relay using multilayer switching, e.g. layer 3 switching

Landscapes

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

Abstract

An embodiment of the invention provides a forwarding method of virtual extensible local area network (VxLAN) message and an apparatus thereof. The method is applied in a first virtualization open flow switch (OVS) and comprises the following step of receiving a flow entry from a software definition network (SDN) controller, wherein the flow entry carries VxLAN message address information and a first uplink (Uplink) port on the first OVS; the flow entry is used for sending an original message that a purpose virtual machine is hung on a second OVS and which is received from a source virtual machine that is hung on the first OVS to a first VxLAN port on the first OVS, and the first VxLAN port adds a VxLAN message head containing the VxLAN message address information to the original message so as to form a VxLAN message, and through the first Uplink port, the VxLAN message is sent.

Description

The retransmission method of a kind of virtual expansible LAN message and device
Technical field
Embodiment of the present invention belongs to network communication technology field, particularly a kind of virtual expansible LAN The retransmission method of (Virtual Extensible Local Area Network, VxLAN) message and device.
Background technology
Software defined network (Software Defined Network, SDN) technology is by by the network equipment Control plane separates with datum plane, thus realizes the flexible control of network traffics.Correspondingly, SDN framework Including SDN controller and SDN switch, wherein: pass through between SDN controller and SDN switch Be preferably open flows (OpenFlow) agreement SDN management passage communicate, SDN controller according to The protocol generation stream table of the configuration of user or dynamic operation is issued to SDN switch, and SDN switch depends on Carry out Message processing according to the stream table that SDN controller issues.
VxLAN is a kind of technology with three layer protocol encapsulation two layer messages, can be to double layer network at three layers It is extended in network.It is applied to inside data center, makes virtual machine (Virtual Machine, VM) Can migrate in the range of the three-layer network interconnecting, thus ensure the continuity of business.VxLAN is real One of hot technology of existing overlapping (Overlay) network.By the edge at physical network, VxLAN is set Tunneling termination (VxLAN Tunnel End Point, VTEP), it is possible to achieve virtual network and physical network Isolation.
Virtualization open flows switch (Open vSwitch, OVS) is a virtual switch increased income. OVS can support VxLAN agreement, to increase the support to Overlay network.At present, OVS is The head encapsulation of VxLAN can be carried out to message, so that supporting Overlay network by VxLAN technology Dispose.But, in the VxLAN of prior art forwards, the message that source virtual machine sends needs through too much Secondary table look-up and IP enters protocol stack and IP goes out the process of protocol stack and just can be received by purpose virtual machine, it is achieved Flow process is complicated, thus reduces message forward efficiency.
Content of the invention
Embodiment of the present invention proposes retransmission method and the device of a kind of VxLAN message, thus improves message Forward efficiency.
The technical scheme of embodiment of the present invention is as follows:
On the one hand embodiment of the present invention proposes the retransmission method of a kind of VxLAN message, and described method should For an OVS, the method includes:
From SDN controller receive stream list item, described stream list item carry VxLAN message address information and The first up-link Uplink port on a described OVS, described stream list item for hanging over institute from down State original report that the source virtual machine on an OVS receives, that hang on the 2nd OVS under purpose virtual machine Literary composition is sent to the VxLAN port on a described OVS, and by a described VxLAN port is This original message adds the VxLAN heading comprising described VxLAN message address information to be formed VxLAN message, and for sending described VxLAN message by a described Uplink port.
Preferably, described VxLAN message address information hangs over first on a described OVS under including The MAC Address of VxLAN tunneling termination, under hang over the 2nd VxLAN tunnel on described 2nd OVS eventually The MAC Address of end and the IP address of described 2nd VxLAN tunneling termination.
Preferably, described stream list item includes occurrence and action, and wherein said occurrence includes source virtual machine The IP of MAC Address, the MAC Address of purpose virtual machine, the IP address of source virtual machine and purpose virtual machine Address, action includes specifying a VxLAN port to be that the first order goes out port, carries VxLAN message ground Location information and the described Uplink port of appointment are that the second order goes out port.
On the other hand embodiment of the present invention proposes the retransmission method of a kind of VxLAN message, described method Being applied to the 2nd OVS, the method includes:
Receive first on an OVS by the second up-link Uplink port on the 2nd OVS The VxLAN message that Uplink port sends, described VxLAN message is first on an OVS Original message is added the VxLAN heading institute shape comprising VxLAN message address information by VxLAN port Becoming, the source virtual machine that wherein said original message is hung over by down on a described OVS sends;
Peel off described VxLAN heading to recover described original message on described 2nd Uplink port, The 2nd VxLAN port being sent to described original message on the 2nd OVS;
At described 2nd VxLAN port, described original message is sent to purpose virtual machine.
Preferably, described VxLAN message address information hangs over first on a described OVS under including The MAC Address of VxLAN tunneling termination, under hang over the 2nd VxLAN tunnel on described 2nd OVS eventually The MAC Address of end and the IP address of described 2nd VxLAN tunneling termination.
On the one hand embodiment of the present invention proposes the retransmission unit of a kind of VxLAN message, and described device should For an OVS, this device includes:
Stream list item receiver module, for receiving stream list item from SDN controller, described stream list item carries A Uplink port in VxLAN message address information and a described OVS, described stream list item is used In that the source virtual machine hanging over from down on a described OVS is received, hang over second under purpose virtual machine Original message on OVS is sent to the VxLAN port on a described OVS, and by described first VxLAN port is that this original message adds the VxLAN message comprising described VxLAN message address information Head is forming VxLAN message, and for sending described VxLAN report by a described Uplink port Literary composition.
Preferably, described VxLAN message address information hangs over first on a described OVS under including The MAC Address of VxLAN tunneling termination, under hang over the 2nd VxLAN tunnel on described 2nd OVS eventually The MAC Address of end and the IP address of described 2nd VxLAN tunneling termination.
Described stream list item includes occurrence and action, wherein occurrence include source virtual machine MAC Address, The IP address of the MAC Address of purpose virtual machine, the IP address of source virtual machine and purpose virtual machine, action bag Including appointment the first VxLAN port is that the first order goes out port, carries VxLAN message address information and appointment A described Uplink port is that the second order goes out port.
On the one hand embodiment of the present invention proposes the retransmission unit of a kind of VxLAN message, and described device should For the 2nd OVS, this device includes:
VxLAN message receiver module, for by the second up-link Uplink port on the 2nd OVS Receiving the VxLAN message that the Uplink port on an OVS sends, described VxLAN message is Original message is added and comprises VxLAN message address information by the VxLAN port on the first OVS VxLAN heading is formed, and it is empty that wherein said original message is hung over the source on a described OVS by down Plan machine sends;
Heading strip module, for peeling off described VxLAN heading on described 2nd Uplink port To recover described original message, the 2nd VxLAN port being sent to described original message on the 2nd OVS;
Described original message, at described 2nd VxLAN port, is sent to institute by message sending module State purpose virtual machine.
Preferably, described VxLAN message address information hangs over first on a described OVS under including The MAC Address of VxLAN tunneling termination, under hang over the 2nd VxLAN tunnel on described 2nd OVS eventually The MAC Address of end and the IP address of described 2nd VxLAN tunneling termination.
As can be seen here, in embodiment of the present invention, SDN controller issues to OVS and carries VxLAN report Literary composition address information and specify out the stream list item of port, thus OVS is perform when VxLAN forwards can be The VxLAN heading of VxLAN port wrapper message address containing VxLAN information voluntarily, and by referring to Make port and send VxLAN message, optimize OVS and support reception and the transmission flow of VxLAN message, Improve the overall sending performance of VxLAN message, be of value to the Consumer's Experience improving whole Overlay network.
Brief description
Fig. 1 is the schematic diagram that in prior art, OVS supports that VxLAN message forwards;
Fig. 2 for according to embodiment of the present invention, the VxLAN of the OVS side of extension under source virtual machine institute Message forwarding method flow chart;
Fig. 3 is VxLAN message encapsulation schematic diagram;
Fig. 4 for according to embodiment of the present invention, the VxLAN of the OVS side of extension under purpose virtual machine institute Message forwarding method flow chart;
Fig. 5 for supporting the exemplary signal of VxLAN message transmission according to embodiment of the present invention OVS Figure;
Fig. 6 is the flow chart that in Fig. 5, VxLAN message sends;
Fig. 7 for supporting the exemplary signal of VxLAN message reception according to embodiment of the present invention OVS Figure;
Fig. 8 is the flow chart that in Fig. 7, VxLAN message receives;
Fig. 9 for supporting the schematic diagram of VxLAN message forwarding according to embodiment of the present invention OVS;
Figure 10 for according to embodiment of the present invention, the VxLAN of the OVS side of extension under source virtual machine institute The retransmission unit structure chart of message;
Figure 11 for according to embodiment of the present invention, the VxLAN of the OVS side of extension under purpose virtual machine institute The retransmission unit structure chart of message.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with the accompanying drawings to the present invention It is described in further detail.
Fig. 1 is the schematic diagram that in prior art, OVS supports that VxLAN message forwards.
With hang under in Fig. 1 the VM1 on an OVS and under hang between the VM3 on the 2nd OVS Communication process as a example by, illustrate that OVS in prior art supports the demonstration program that VxLAN message forwards.
In FIG:
First OVS is deployed on main frame 1, and the port 3 of an OVS is local VxLAN end Mouthful, can be described as VxLan1 port;The port 2 of the first OVS is local Uplink port;First OVS Port 1 be local VTEP inside (Internal) port, the MAC ground of this Internal port Location: 00-00-00-00-10-01, IP address: 100.1.1.1.
2nd OVS is deployed on main frame 2, and the port 3 of the 2nd OVS is local VxLAN end Mouthful, can be described as VxLan2 port;The port 2 of the 2nd OVS is local Uplink port;2nd OVS Port 1 be local VTEP Internal port.The MAC Address of this Internal port: 00-00-00-00-10-02, IP address: 100.1.1.2.
The MAC Address of VM1: 00-00-00-00-00-01;The IP address of VM1: 192.168.1.1. Port-for-port 4 on an OVS for the VM1.The MAC Address of VM3: 00-00-00-00-00-02; The IP address of VM3: 192.168.1.2;Port-for-port 4 on the 2nd OVS for the VM3.
In main frame 1 side, as shown in the dotted line 11 of Fig. 1, it is empty that an OVS receives purpose from VM1 Plan machine is the original message of VM3, and an OVS will based on the stream list item 1 that SDN controller is issued Original message is sent to local VxLan1 port (port 3 of the i.e. the first OVS).Then, such as Fig. 1 Dotted line 12 shown in, this VxLan1 port is original message packaging V xLAN head, and will encapsulation after Message is dealt into local Internal port (MAC Address: 00-00-00-00-10-01;IP address: 100.1.1.1; Port is the port 1 of main frame 1).Then, as shown in the dotted line 13 of Fig. 1, local Internal port Enable Linux native protocol stack (i.e. IP enters protocol stack) to continue to add two layers of head for the message after encapsulation Forming VxLAN message, and the stream list item 2 being issued based on SDN controller, VxLAN is reported Literary composition is sent to the Uplink port of main frame 1.
In main frame 2 side, as shown in the dotted line 14 of Fig. 1, the Uplink port of main frame 2 is from main frame 1 Uplink port receives VxLAN message, and the stream list item 3 being issued based on SDN controller, will VxLAN message is sent to Internal mouth (MAC Address: the 00-00-00-00-10-02 of main frame 2;IP Address: 100.1.1.2;Port is the port 1 of main frame 2).Then, as shown in the dotted line 15 of Fig. 1, The Internal mouth of main frame 2 enables Linux native protocol stack (i.e. IP goes out protocol stack) and peels VxLAN off Two layers of head of message, then the message after peeling off two layers of head is sent to VxLan2 port.Then, such as figure Shown in the dotted line 16 of 1, message after two layers of head of stripping is continued to peel off VxLAN head by VxLan2 port needles Obtaining original message, and the stream list item 4 being issued based on SDN controller, original message is sent To VM3.
The 1st, table 1 flow list item for stream list item and the 2nd, flows list item 3 and the structural table that flows list item 4.
Table 1
Fig. 3 is VxLAN message encapsulation schematic diagram.
As seen from Figure 3, VxLAN message includes original message and VxLAN heading, VxLAN message Head includes two layers of head and VxLAN head.Two layers of head include outside MAC destination address, outside mac source ground Location and optional 802.1Q field.VxLAN heading includes external IP destination address, external IP source Address and optional VxLAN ID.Specifically, at the VxLan1 port of an OVS to original message Packaging V xLAN head;Local Internal port at an OVS continues to add for the message after encapsulation Two layers of head are to form VxLAN message.When VxLAN message is sent to two OVS, the 2nd OVS Internal port from VxLAN message, peel off two layers of head, and the message after peeling off two layers of head is sent out Delivering to the VxLan2 port of the 2nd OVS, the VxLan2 port of the 2nd OVS continues to peel off VxLAN Original message, to recover original message, is finally sent to purpose virtual machine by head.
From above-mentioned analysis, in the prior art, need through four OVS from the message that VM1 sends Coupling of tabling look-up and IP enter protocol stack and process and IP goes out protocol stack and processes and just can be sent to VM3, it is achieved flow process is complicated, reduces message forward efficiency.
In embodiments of the present invention, the OVS that source virtual machine is hung down is without being forwarded to original message Local Internal port processes add two layers of head to enter protocol stack based on IP, but directly local The VxLAN heading containing two layers of head for the VxLAN port wrapper voluntarily, thus be obviously improved to VxLAN The sending performance of message.
And, in embodiments of the present invention, receive the OVS of VxLAN message without by VxLAN Message is forwarded to local Internal port and processes peel off two layers of head to go out protocol stack based on IP, but directly Peel off, at local VxLAN port, the VxLAN heading comprising two layers of head, thus be obviously improved right The receptivity of VxLAN message.
In embodiments of the present invention, SDN controller by monitor Overlay network ARP message, Neighbor information is collected, SSH signs in managed main frame to obtain the default route information of VTEP IP Deng various ways, can clearly calculate when VxLAN sends to required for different opposite end VTEP VxLAN message address information (includes the MAC information in two layers of head and opposite end VTEP address information). Therefore, SDN controller can issue VxLAN message ground by way of issuing stream table to OVS Location information and specify out port, thus OVS is perform just can be at VxLAN end when VxLAN forwards The VxLAN heading containing two layers of head for the mouth wrapper voluntarily, and appointment is gone out port transmission VxLAN report Literary composition.
Fig. 2 for according to embodiment of the present invention, the VxLAN of the OVS side of extension under source virtual machine institute Message forwarding method flow chart.
As in figure 2 it is shown, the method includes:
Step 201 a: OVS receives stream list item from SDN controller, and this stream list item carries VxLAN A Uplink port in message address information and an OVS, this stream list item will be for hanging over from down Source virtual machine on first OVS receives, the original message hanging under purpose virtual machine on the 2nd OVS It is sent to the VxLAN port on an OVS, and be this original message by a VxLAN port The additional VxLAN heading comprising VxLAN message address information is forming VxLAN message, and is used for Send VxLAN message by a Uplink port.
In one embodiment, this stream list item includes occurrence and action, and wherein occurrence includes that source is virtual The MAC Address of machine, the MAC Address of purpose virtual machine, the IP address of source virtual machine and purpose virtual machine IP address, it is that the first order goes out port, carries VxLAN that action includes specifying a VxLAN port Message address information and appointment the first Uplink port are that the second order goes out port.
Specifically, an OVS is when source virtual machine receives original message, first determines whether to take in original message The MAC Address of source virtual machine of band, the MAC Address of purpose virtual machine, source virtual machine IP address and Whether the IP address of purpose virtual machine matches with the occurrence flowing list item, when judging to match, first will Original message is forwarded to go out a VxLAN port of port as the first order, and at a VxLAN end Mouthful encapsulation includes that the VxLAN heading of VxLAN message address information, then will forming VxLAN message VxLAN message is sent to go out a Uplink port of port as the second order, and by a Uplink Port sends VxLAN message.
Here, an OVS is after SDN controller receives stream list item, can obtain from stream list item VxLAN message address information.In one embodiment, VxLAN message address information hangs under including The MAC Address of the VTEP on the first OVS (the outside mac source address corresponding in Fig. 3), Under hang over the MAC Address of the 2nd VTEP on the 2nd OVS (corresponding to the outside mac source in Fig. 3 Address) and the IP address (the external IP destination address corresponding in Fig. 3) of the 2nd VTEP.Therefore, First OVS can on a VxLAN port, based under hang over the VTEP on an OVS MAC Address and under hang over the MAC Address of the 2nd VTEP on the 2nd OVS and build two layers of head.And And, owing to hanging over the IP ground of the VTEP on an OVS under pre-saving in an OVS Location (the external IP source address corresponding in Fig. 3), an OVS can on a VxLAN port, (correspond in Fig. 3 based on the IP address of the 2nd VTEP obtaining from VxLAN message address information External IP destination address), under hang over the IP address of a VTEP on an OVS, UDP information and Optional VxLAN ID builds VxLAN head.
Therefore, when hang under the purpose virtual machine of original message be different from the 2nd OVS of an OVS when, First OVS can add the VxLAN heading comprising two layers of head and VxLAN head for original message, Thus ultimately form VxLAN message, and send VxLAN message by a Uplink port.
Step 202: the 2nd Uplink port on the 2nd OVS receives VxLAN message and from VxLAN In message, stripping VxLAN heading is to recover original message, is sent to original message on the 2nd OVS 2nd VxLAN port, and original message is sent to purpose virtual machine by the 2nd VxLAN port.
Here, the 2nd Uplink port on the 2nd OVS receives after VxLAN message, directly from VxLAN message peels off VxLAN heading recovering original message, and original message is sent to second The 2nd VxLAN port on OVS, thus original message is sent to purpose by the 2nd VxLAN port Virtual machine.
In one embodiment, it when hanging on an OVS under the purpose virtual machine of original message, is not required to VxLAN port original message to be sent on an OVS, but directly original message is forwarded to Non-VxLAN port on first OVS.Specifically, comprising: receive from SDN controller and forward non-VxLAN The stream list item of message, the stream list item of this forwarding non-VxLAN message is for hanging over from down on an OVS The original message hanging on an OVS under that source virtual machine receives, purpose virtual machine is sent to an OVS On non-VxLAN port.
Based on above-mentioned analysis, the invention allows for a kind of purpose virtual machine under the OVS side that hangs VxLAN message forwarding method.
Fig. 4 is for according to embodiment of the present invention, and the VxLAN of the OVS side hanging under purpose virtual machine institute reports Literary composition retransmission method flow chart.
As shown in Figure 4, the method includes:
Step 401: the 2nd Uplink port on the 2nd OVS receives the Uplink on an OVS The VxLAN message that port sends.This VxLAN message is the VxLAN port on an OVS Original message is added what the VxLAN heading comprising VxLAN message address information was formed, its Central Plains The source virtual machine that beginning message is hung over by down on an OVS sends.
Step 402: stripping VxLAN heading is to recover original message on the 2nd Uplink port, will Original message is sent to the 2nd VxLAN port on the 2nd OVS.
Step 403: at the 2nd VxLAN port, based on the stream list item receiving from SDN controller, by former Beginning message is sent to purpose virtual machine.Preferably, the occurrence of this stream list item includes the source address of original message And destination address, action includes hanging on the 2nd OVS under the purpose virtual machine specifying out port to be original message Port.
In one embodiment, VxLAN message address information hangs over first on an OVS under including The MAC Address of VxLAN tunneling termination, under hang over the 2nd VxLAN tunneling termination on the 2nd OVS MAC Address and the IP address of the 2nd VxLAN tunneling termination.
In one embodiment, the method also includes:
2nd OVS receives the stream list item for forwarding non-VxLAN message from SDN controller.Second Uplink port is when a Uplink port receives non-VxLAN message, and the 2nd OVS is used for based on this The stream list item forwarding non-VxLAN message forwards non-VxLAN message.Preferably, it is used for forwarding non-VxLAN The occurrence of the stream list item of message includes source address and the destination address of non-VxLAN message, and action includes referring to Make and hang over the port on the 2nd OVS under the purpose virtual machine that port is non-VxLAN message.
Below in conjunction with example, describe in detail and support that VxLAN message sends according to embodiment of the present invention OVS Process.
Fig. 5 for supporting the exemplary schematic representation of VxLAN message transmission according to embodiment of the present invention OVS.
As shown in Figure 5:
First OVS is deployed on main frame 1, and the port 3 of an OVS is local VxLAN end Mouthful, can be described as VxLan1 port;The port 2 of the first OVS is local Uplink port;First OVS Port 1 be local VTEP Internal port, the MAC Address of this Internal port: 00-00-00-00-10-01, IP address: 100.1.1.1.Access interface on an OVS for the VM1 is Port 4.
First OVS receives stream list item 1 from SDN controller, and this stream list item 1 carries VxLAN message Address information and the Uplink port of an OVS.Specifically, with reference to Fig. 5 and Fig. 7, VxLAN reports Literary composition address information hangs over MAC Address (the i.e. Internal end of the VTEP on an OVS under including Mouthful MAC Address: 00-00-00-00-10-01), under hang over the 2nd VTEP's on the 2nd OVS MAC Address (i.e. the MAC Address of Internal port: 00-00-00-00-10-02) and the 2nd VTEP IP address (i.e. IP address: 100.1.1.2).
In main frame 1 side, as shown in the dotted line 11 of Fig. 5, when an OVS receives original report from VM1 Literary composition, and hang over when being different from other OVS of an OVS under the purpose virtual machine of this original message, Original message is sent to local VxLan1 by the stream list item 1 that the first OVS is issued based on SDN controller Port (port 3 of the i.e. the first OVS).Then, as shown in the dotted line 12 of Fig. 5, this VxLan1 Port, based on the VxLAN message address information entrained by stream list item 1, comprises for this original message is additional The VxLAN heading of VxLAN message address information is to form VxLAN message.And, this VxLan1 VxLAN message also based on stream list item 1, is sent to the Uplink port of an OVS by port, thus The Uplink port of the first OVS is sent VxLAN message.
Visible, VxLAN message transmission flow compared to existing technology, the VxLAN message of the present invention sends Process decreases an IP protocol stack transmission flow and an OVS tables look-up repeating process.
Fig. 6 is the flow chart sending VxLAN message in Fig. 5.
As shown in Figure 6, the method includes:
Step 601 a: OVS receives original message from VM1.
Step 602: what an OVS judged this original message goes out whether port is VxLAN mouth, if Then step 604 and subsequent step thereof, if not then step 603.
Step 603: send this original message, and process ends.
Step 604: at VxLAN mouth, is original message packaging V xLAN head.
Step 605: at VxLAN mouth, is that the message of packaging V xLAN head continues two layers of head of encapsulation, thus Form VxLAN message.
Step 606: send VxLAN message at Uplink port.
Below in conjunction with example, describe in detail and support that VxLAN message receives according to embodiment of the present invention OVS Process.
Fig. 7 for supporting the exemplary schematic representation of VxLAN message reception according to embodiment of the present invention OVS.
As shown in Figure 7:
2nd OVS is deployed on main frame 2, and the port 3 of the 2nd OVS is local VxLAN end Mouthful, can be described as VxLan2 port;The port 2 of the 2nd OVS is local Uplink port;2nd OVS Port 1 be local VTEP Internal port.The MAC Address of this Internal port: 00-00-00-00-10-02, IP address: 100.1.1.2.The MAC Address of VM3: 00-00-00-00-00-02; The IP address of VM3: 192.168.1.2;Access interface on the 2nd OVS for the VM3 is port 4.
In main frame 2 side, as shown in the dotted line 13 of Fig. 7, the Uplink port of main frame 2 is from other OVS Uplink port receive VxLAN message, from VxLAN message, peel off VxLAN heading with extensive Original message is sent to the VxLAN port on the 2nd OVS by multiple original message.On 2nd OVS Original message is sent to purpose virtual machine by the stream list item 2 that VxLAN port issues based on SDN controller (such as VM3).Visible, flow process compared to existing technology, the VxLAN message of the present invention receives process Decrease IP protocol stack and receive flow process and an OVS tables look-up forwarding process.
Fig. 8 is the flow chart receiving VxLAN message in Fig. 7.
As shown in Figure 8, the method includes:
Step 801: the 2nd OVS passes through Uplink port, receives message from other OVS.
Step 802: the 2nd OVS judges whether this message receiving is VxLAN message, if it is Step 804 and subsequent step thereof, if not then step 803 process ends.
Step 803: forward the message that this receives, and process ends.
Step 804: at Uplink port, peels off VxLAN heading, and will peel off VxLAN heading Original message be sent to VxLAN mouth.
Step 805: at VxLAN mouth, forwards this original message.
Table 2 is the demonstrative structure table of stream list item 1 and stream list item 2.
Table 2
Fig. 9 is the overall schematic forwarding according to embodiment of the present invention OVS support VxLAN message, In Fig. 9, entirety incorporates Fig. 5 and Fig. 7.
In conjunction with Fig. 9 and from above-mentioned labor, in the present invention, the message sending from VM1 Only need to table look-up to mate through OVS twice and i.e. can be sent to VM3, it is not necessary to perform IP again and enter protocol stack Process and IP goes out protocol stack process, therefore present invention reduces and realize that flow process is complicated, improve message and turn Send out efficiency.Through Test Data Collecting discovery, the performance indications after optimization of the present invention refer to than the performance before optimization Mark can have the lifting of more than 30%.
Based on above-mentioned labor, embodiment of the present invention also proposed source virtual machine under hang OVS The retransmission unit of the VxLAN message of side.
Figure 10 for according to embodiment of the present invention, the VxLAN of the OVS side of extension under source virtual machine institute The retransmission unit structure chart of message.
As shown in Figure 10, this device 1000 is applied to an OVS (OVS that i.e. source virtual machine is hung down), This device 1000 includes:
Stream list item receiver module 1001, for receiving stream list item from SDN controller, this stream list item carries The first up-link Uplink port in VxLAN message address information and an OVS;
This stream list item for the source virtual machine hanging over from down on an OVS is received, under purpose virtual machine Hang over the original message on the 2nd OVS and be sent to the VxLAN port on an OVS, and by One VxLAN port is that this original message adds the VxLAN heading comprising VxLAN message address information Forming VxLAN message, and for sending VxLAN message by a Uplink port.
In one embodiment, VxLAN message address information hangs over first on an OVS under including The MAC Address of VxLAN tunneling termination, under hang over the 2nd VxLAN tunneling termination on the 2nd OVS MAC Address and the IP address of the 2nd VxLAN tunneling termination.
In one embodiment, flowing list item and including occurrence and action, wherein occurrence includes source virtual machine MAC Address, the MAC Address of purpose virtual machine, the IP address of source virtual machine and purpose virtual machine IP address, action includes specifying a VxLAN port to be that the first order goes out port, carries VxLAN report Literary composition address information and appointment the first Uplink port are that the second order goes out port.
In one embodiment:
Stream list item receiver module 1001, is additionally operable to receive for forwarding non-VxLAN from SDN controller The stream list item of message, this is used for forwarding the stream list item of non-VxLAN message for will hang over first from down The original message hanging on an OVS under that source virtual machine on OVS receives, purpose virtual machine is sent out Deliver to the non-VxLAN port on an OVS.
Based on above-mentioned labor, embodiment of the present invention also proposed purpose virtual machine under hang The retransmission unit of the VxLAN message of OVS side.
Figure 11 for according to embodiment of the present invention, the VxLAN of the OVS side of extension under purpose virtual machine institute The retransmission unit structure chart of message, this device is applied to the 2nd OVS, and (i.e. purpose virtual machine is hung down OVS)。
As shown in figure 11, this device 1100 includes:
VxLAN message receiver module 1101, for being received by the 2nd Uplink port on the 2nd OVS The VxLAN message that a Uplink port on first OVS sends, VxLAN message is an OVS On a VxLAN port original message is added comprise VxLAN message address information VxLAN report Literary composition head is formed, and the source virtual machine that wherein original message is hung over by down on an OVS sends;
Heading strip module 1102, for peeling off VxLAN heading with extensive on the 2nd Uplink port Original message is sent to the 2nd VxLAN port on the 2nd OVS by multiple original message;
Message sending module 1103, at the 2nd VxLAN port, based on receive from SDN controller Original message is sent to described purpose virtual machine by stream list item.
In one embodiment, the occurrence of this stream list item includes source address and the destination address of original message, Action includes hanging over the port on the 2nd OVS under the purpose virtual machine specifying out port to be original message.
In one embodiment, VxLAN message address information hangs over first on an OVS under including The MAC Address of VxLAN tunneling termination, under hang over the 2nd VxLAN tunneling termination on the 2nd OVS MAC Address and the IP address of the 2nd VxLAN tunneling termination.
In one embodiment, this device 1100 also includes:
Non-VxLAN message receiver module 1104, for by the 2nd Uplink port, from an OVS On a Uplink port receive non-VxLAN message;
Message sending module 1103, be additionally operable to based on receive from SDN controller for forwarding non-VxLAN The stream list item of message forwards non-VxLAN message.
In one embodiment, for forwarding the occurrence of the stream list item of non-VxLAN message to include non- The source address of VxLAN message and destination address, action includes the mesh specifying out port to be non-VxLAN message Virtual machine under hang over the port on the 2nd OVS.
In sum, in embodiment of the present invention, SDN controller is by issuing stream list item to OVS Mode, can provide VxLAN message address information to OVS and specify out port, and OVS is performing The VxLAN heading of two layers of head can be contained at VxLAN port wrapper voluntarily when VxLAN forwards, And appointment is gone out port transmission VxLAN message, thus optimize OVS and support connecing of VxLAN message Receive and transmission flow, improve the overall sending performance of VxLAN message, be of value to the whole Overlay of raising The Consumer's Experience of network.
The above, only presently preferred embodiments of the present invention, it is not intended to limit the protection model of the present invention Enclose.All within the spirit and principles in the present invention, any modification, equivalent substitution and improvement etc. made, all Should be included within protection scope of the present invention.

Claims (10)

1. the retransmission method of a virtual expansible LAN VxLAN message, it is characterised in that described method is applied to the first virtualization open flows switch OVS, and the method includes:
Receiving stream list item from software defined network SDN controller, described stream list item carries the first up-link Uplink port on VxLAN message address information and a described OVS;
Described stream list item for by the source virtual machine hanging over from down on a described OVS receives, a VxLAN port that the original message hanging under purpose virtual machine on the 2nd OVS is sent on a described OVS, and be that this original message adds the VxLAN heading comprising described VxLAN message address information forming VxLAN message by a described VxLAN port, and for sending described VxLAN message by a described Uplink port.
2. the retransmission method of VxLAN message according to claim 1, it is characterized in that, described VxLAN message address information hang under including the VxLAN tunneling termination on a described OVS MAC address, under hang over the MAC Address of the 2nd VxLAN tunneling termination on described 2nd OVS and the IP address of described 2nd VxLAN tunneling termination.
3. the retransmission method of VxLAN message according to claim 1, it is characterized in that, described stream list item includes occurrence and action, wherein said occurrence includes the IP address of the MAC Address of source virtual machine, the MAC Address of purpose virtual machine, the IP address of source virtual machine and purpose virtual machine, and action includes specifying a VxLAN port to be that the first order goes out port, carries VxLAN message address information and specify a described Uplink port to be that the second order goes out port.
4. the retransmission method of a virtual expansible LAN VxLAN message, it is characterised in that described method is applied to the second virtualization open flows switch OVS, and the method includes:
The VxLAN message that the Uplink port being received on an OVS by the second up-link Uplink port on the 2nd OVS is sent, described VxLAN message is that original message is added the VxLAN heading comprising VxLAN message address information and formed by the VxLAN port on an OVS, and the source virtual machine that wherein said original message is hung over by down on a described OVS sends;
Peel off described VxLAN heading to recover described original message on described 2nd Uplink port, the 2nd VxLAN port being sent to described original message on the 2nd OVS;
At described 2nd VxLAN port, described original message is sent to purpose virtual machine.
5. the retransmission method of the VxLAN message described in claim 1, it is characterized in that, described VxLAN message address information hang under including the VxLAN tunneling termination on a described OVS MAC Address, under hang over the MAC Address of the 2nd VxLAN tunneling termination on described 2nd OVS and the IP address of described 2nd VxLAN tunneling termination.
6. the retransmission unit of a virtual expansible LAN VxLAN message, it is characterised in that described device is applied to the first virtualization open flows switch OVS, and this device includes:
Stream list item receiver module, for receiving stream list item from SDN controller, described stream list item carries the first up-link Uplink port on VxLAN message address information and a described OVS, described stream list item is for receiving the source virtual machine hanging on a described OVS from down, the VxLAN port that the original message on the 2nd OVS is sent on a described OVS is hung under purpose virtual machine, and be that this original message adds the VxLAN heading comprising described VxLAN message address information to form VxLAN message by a described VxLAN port, and for sending described VxLAN message by a described Uplink port.
7. the retransmission unit of VxLAN message according to claim 6, it is characterized in that, described VxLAN message address information hang under including the VxLAN tunneling termination on a described OVS MAC Address, under hang over the MAC Address of the 2nd VxLAN tunneling termination on described 2nd OVS and the IP address of described 2nd VxLAN tunneling termination.
8. the retransmission unit of VxLAN message according to claim 6, it is characterized in that, described stream list item includes occurrence and action, wherein occurrence includes the IP address of the MAC Address of source virtual machine, the MAC Address of purpose virtual machine, the IP address of source virtual machine and purpose virtual machine, and action includes specifying a VxLAN port to be that the first order goes out port, carries VxLAN message address information and specify a described Uplink port to be that the second order goes out port.
9. the retransmission unit of a virtual expansible LAN VxLAN message, it is characterised in that described device is applied to the second virtualization open flows switch OVS, and this device includes:
VxLAN message receiver module, the VxLAN message sending for the Uplink port being received on an OVS by the second up-link Uplink port on the 2nd OVS, described VxLAN message is that original message is added the VxLAN heading comprising VxLAN message address information and formed by the VxLAN port on an OVS, and the source virtual machine that wherein said original message is hung over by down on a described OVS sends;
Heading strip module, for peeling off described VxLAN heading on described 2nd Uplink port to recover described original message, the 2nd VxLAN port being sent to described original message on the 2nd OVS;
Described original message, at described 2nd VxLAN port, is sent to purpose virtual machine by message sending module.
10. the retransmission unit of the VxLAN message described in claim 9, it is characterized in that, described VxLAN message address information hang under including the VxLAN tunneling termination on a described OVS MAC Address, under hang over the MAC Address of the 2nd VxLAN tunneling termination on described 2nd OVS and the IP address of described 2nd VxLAN tunneling termination.
CN201510070865.XA 2015-02-11 2015-02-11 A kind of retransmission method and device of virtual expansible local network packet Active CN105991389B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510070865.XA CN105991389B (en) 2015-02-11 2015-02-11 A kind of retransmission method and device of virtual expansible local network packet
PCT/CN2016/073477 WO2016127909A1 (en) 2015-02-11 2016-02-04 Packets forwarding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510070865.XA CN105991389B (en) 2015-02-11 2015-02-11 A kind of retransmission method and device of virtual expansible local network packet

Publications (2)

Publication Number Publication Date
CN105991389A true CN105991389A (en) 2016-10-05
CN105991389B CN105991389B (en) 2019-04-12

Family

ID=56614161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510070865.XA Active CN105991389B (en) 2015-02-11 2015-02-11 A kind of retransmission method and device of virtual expansible local network packet

Country Status (2)

Country Link
CN (1) CN105991389B (en)
WO (1) WO2016127909A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115001900A (en) * 2022-06-06 2022-09-02 中移(杭州)信息技术有限公司 Message forwarding method, device, equipment and computer readable storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770064A (en) * 2016-08-19 2018-03-06 华为技术有限公司 A kind of method of internetwork communication, equipment
CN114257473B (en) * 2021-12-10 2022-10-21 北京天融信网络安全技术有限公司 Method, device, equipment and medium for realizing multiple transparent bridges in resource pool

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140059111A1 (en) * 2012-08-27 2014-02-27 Vmware, Inc. Method and system for enabling multi-core processing of vxlan traffic
CN103888386A (en) * 2012-12-24 2014-06-25 华为技术有限公司 Extensible virtual local area network message transmission method, device and system
CN104022953A (en) * 2013-02-28 2014-09-03 杭州华三通信技术有限公司 Message forwarding method and device based on Open Flow
CN104158718A (en) * 2014-08-25 2014-11-19 杭州华三通信技术有限公司 A message processing method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8837493B2 (en) * 2010-07-06 2014-09-16 Nicira, Inc. Distributed network control apparatus and method
CN104283756B (en) * 2013-07-02 2017-12-15 新华三技术有限公司 A kind of method and apparatus for realizing distributed multi-tenant virtual network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140059111A1 (en) * 2012-08-27 2014-02-27 Vmware, Inc. Method and system for enabling multi-core processing of vxlan traffic
CN103888386A (en) * 2012-12-24 2014-06-25 华为技术有限公司 Extensible virtual local area network message transmission method, device and system
CN104022953A (en) * 2013-02-28 2014-09-03 杭州华三通信技术有限公司 Message forwarding method and device based on Open Flow
CN104158718A (en) * 2014-08-25 2014-11-19 杭州华三通信技术有限公司 A message processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115001900A (en) * 2022-06-06 2022-09-02 中移(杭州)信息技术有限公司 Message forwarding method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
WO2016127909A1 (en) 2016-08-18
CN105991389B (en) 2019-04-12

Similar Documents

Publication Publication Date Title
CN106034077B (en) A kind of dynamic route collocating method, apparatus and system
CN104243318B (en) MAC address learning method and device in VXLAN networks
CN104320342B (en) Message forwarding method and device in a kind of transparent interconnection of lots of links internet
CN103825954B (en) A kind of OpenFlow control methods and corresponding plug-in unit, platform and network
EP3313025B1 (en) Data packet forwarding
CN103888386B (en) The transmission method and device, system of expansible virtual local area network packet
CN102801820B (en) MAC address publishing method and device in EVI network
US20160261496A1 (en) Packet forwarding in data center network
US20160156550A1 (en) Calculating spanning tree
CN104158718A (en) A message processing method and device
CN110427334A (en) A kind of method and apparatus for realizing virtual machine communication
CN105634901B (en) Mac address information synchronous method and device based on CAS VXLAN
CN110519075B (en) SDN-based communication system and method for physical host and virtual cloud host
CN104283980A (en) Address resolution protocol (ARP) reply on-behalf method and device
CN104702438B (en) PE device management methods and device
CN103095546A (en) Method, device and data center network for processing messages
CN105162674A (en) Method and network card for physical machine to access to virtual network
CN108259304B (en) Forwarding table item synchronization method and device
US20160149795A1 (en) Overlay network-based original packet flow mapping apparatus and method therefor
US20170041195A1 (en) Tunnel Type Selection Method and Apparatus
CN107317768A (en) Traffic scheduling method and device
CN106470155A (en) A kind of retransmission method of virtual-machine data, SDN controller and SDN system
CN106878136A (en) A kind of message forwarding method and device
CN104917682A (en) Overlay network configuration method and device
CN105991389A (en) Forwarding method of virtual extensible local area network message and apparatus thereof

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