CN105991389B - A kind of retransmission method and device of virtual expansible local network packet - Google Patents

A kind of retransmission method and device of virtual expansible local network packet Download PDF

Info

Publication number
CN105991389B
CN105991389B CN201510070865.XA CN201510070865A CN105991389B CN 105991389 B CN105991389 B CN 105991389B CN 201510070865 A CN201510070865 A CN 201510070865A CN 105991389 B CN105991389 B CN 105991389B
Authority
CN
China
Prior art keywords
vxlan
ovs
message
port
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510070865.XA
Other languages
Chinese (zh)
Other versions
CN105991389A (en
Inventor
张寅飞
林涛
温涛
任维春
张广辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to 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

Embodiment of the present invention proposes the retransmission methods and device of a kind of virtual expansible local area network (VxLAN) message.This method is applied to the first virtualization open flow switch (OVS), it include: to receive flow entry from software defined network (SDN) controller, the flow entry carries port the first uplink (Uplink) on VxLAN message address information and the first OVS, the flow entry from down for will hang over what the source virtual machine on the first OVS received, the first port VxLAN that the original message on the 2nd OVS is sent on the first OVS is hung under purpose virtual machine, and the VxLAN heading comprising VxLAN message address information is added to form VxLAN message for the original message by the first port VxLAN, and for sending VxLAN message by the first port Uplink.

Description

A kind of retransmission method and device of virtual expansible local network packet
Technical field
Embodiment of the present invention belongs to network communication technology field, especially a kind of virtual expansible local area network (Virtual Extensible Local Area Network, VxLAN) message retransmission method and device.
Background technique
Software defined network (Software Defined Network, SDN) technology is by putting down the control of the network equipment Face is separated with data plane, to realize the flexible control of network flow.Correspondingly, SDN framework includes SDN controller and SDN Interchanger, in which: by being preferably that the SDN management of open flows (OpenFlow) agreement is led between SDN controller and SDN switch Road is communicated, and SDN controller generates flow table issuance to SDN switch according to the agreement of the configuration of user or dynamic operation, SDN switch carries out Message processing according to the flow table that SDN controller issues.
VxLAN be it is a kind of with three layer protocols encapsulation two layer message technology, can to double layer network in three-layer network into Row extension.It is applied to inside data center, makes virtual machine (Virtual Machine, VM) can be in three layers interconnected Migration in network range, to guarantee the continuity of business.VxLAN be realize overlapping (Overlay) network hot technology it One.By the way that VxLAN tunneling termination (VxLAN Tunnel End Point, VTEP) is arranged at the edge of physical network, Ke Yishi Existing virtual network is isolated with physical network.
Virtualization open flow switch (Open vSwitch, OVS) is the virtual switch of an open source.OVS can be propped up VxLAN agreement is held, to increase the support to Overlay network.Currently, the head that OVS can carry out VxLAN to message seals Dress, so that Overlay network be supported to dispose using VxLAN technology.However, source is virtual in the VxLAN forwarding of the prior art The message that machine issues need by repeatedly table look-up and IP enter protocol stack and IP go out the processing of protocol stack just can be virtual by purpose Machine receives, and implementation process is complicated, to reduce message forward efficiency.
Summary of the invention
Embodiment of the present invention proposes the retransmission methods and device of a kind of VxLAN message, to improve message forward efficiency.
The technical solution of embodiment of the present invention is as follows:
On the one hand embodiment of the present invention proposes a kind of retransmission method of VxLAN message, the method is applied to first OVS, this method comprises:
Flow entry is received from SDN controller, the flow entry carries VxLAN message address information and described first The first port uplink Uplink on OVS, the flow entry from down for will hang over the source virtual machine on the first OVS The first end VxLAN that the original message on the 2nd OVS is sent on the first OVS is hung under receive, purpose virtual machine Mouthful, and be the additional VxLAN message comprising the VxLAN message address information of the original message by the first port VxLAN Head sends the VxLAN message for passing through the first port Uplink to form VxLAN message.
Preferably, the VxLAN message address information hangs over the end of the first tunnel VxLAN on the first OVS under including The MAC Address at end, under hang over the MAC Address and the 2nd VxLAN of the 2nd VxLAN tunneling termination on the 2nd OVS The IP address of tunneling termination.
Preferably, the flow entry includes occurrence and movement, wherein the occurrence includes the MAC of source virtual machine Location, the MAC Address of purpose virtual machine, the IP address of source virtual machine and purpose virtual machine IP address, movement includes specified first The port VxLAN is the first sequence exit port, carry VxLAN message address information and to specify the first port Uplink be second Sequence exit port.
On the other hand embodiment of the present invention proposes a kind of retransmission method of VxLAN message, the method is applied to the Two OVS, this method comprises:
The first port the Uplink hair on the first OVS is received by the second port uplink Uplink on the 2nd OVS The VxLAN message sent, the VxLAN message are that the first port VxLAN on the first OVS is additional comprising VxLAN by original message The VxLAN heading of message address information is formed by, wherein the original message hangs over the void of the source on the first OVS by down Quasi- machine issues;
The VxLAN heading is removed on the 2nd port Uplink to restore the original message, by the original Beginning message is sent to the 2nd port VxLAN on the 2nd OVS;
In the 2nd port VxLAN, purpose virtual machine is sent by the original message.
Preferably, the VxLAN message address information hangs over the end of the first tunnel VxLAN on the first OVS under including The MAC Address at end, under hang over the MAC Address and the 2nd VxLAN of the 2nd VxLAN tunneling termination on the 2nd OVS The IP address of tunneling termination.
On the one hand embodiment of the present invention proposes a kind of retransmission unit of VxLAN message, described device is applied to first OVS, the device include:
Flow entry receiving module, for receiving flow entry from SDN controller, the flow entry is with carrying VxLAN message The first port Uplink on location information and the first OVS, the flow entry from down for that will hang over the first OVS Source virtual machine receive, the original message on the 2nd OVS is sent on the first OVS is hung under purpose virtual machine One port VxLAN, and be that the original message is additional comprising the VxLAN message address information by the first port VxLAN VxLAN heading sends the VxLAN message for passing through the first port Uplink to form VxLAN message.
Preferably, the VxLAN message address information hangs over the end of the first tunnel VxLAN on the first OVS under including The MAC Address at end, under hang over the MAC Address and the 2nd VxLAN of the 2nd VxLAN tunneling termination on the 2nd OVS The IP address of tunneling termination.
The flow entry includes occurrence and movement, and wherein occurrence includes the MAC Address of source virtual machine, purpose virtual machine MAC Address, the IP address of source virtual machine and the IP address of purpose virtual machine, movement includes that specified first port VxLAN is the One sequence exit port carries VxLAN message address information and specifies the first port Uplink for the second sequence exit port.
On the one hand embodiment of the present invention proposes a kind of retransmission unit of VxLAN message, described device is applied to second OVS, the device include:
VxLAN message receiving module, for receiving first by the second port uplink Uplink on the 2nd OVS The VxLAN message that the first port Uplink on OVS is sent, the VxLAN message is the first port VxLAN on the first OVS The additional VxLAN heading comprising VxLAN message address information of original message is formed by, wherein the original message is under The source virtual machine hung on the first OVS issues;
Heading strip module, for removing the VxLAN heading on the 2nd port Uplink to restore Original message is stated, sends the 2nd port VxLAN on the 2nd OVS for the original message;
Message sending module, for it is virtual to send the purpose for the original message in the 2nd port VxLAN Machine.
Preferably, the VxLAN message address information hangs over the end of the first tunnel VxLAN on the first OVS under including The MAC Address at end, under hang over the MAC Address and the 2nd VxLAN of the 2nd VxLAN tunneling termination on the 2nd OVS The IP address of tunneling termination.
It can be seen that SDN controller is issued to OVS to be carried VxLAN message address information and refers in embodiment of the present invention The flow entry of port is made, so that OVS can voluntarily be encapsulated in the port VxLAN comprising VxLAN message when executing VxLAN forwarding The VxLAN heading of address information, and VxLAN message is sent by specified exit port, it optimizes OVS and supports connecing for VxLAN message Receipts and transmission flow, improve the whole sending performance of VxLAN message, are beneficial to improve the user's body of entire Overlay network It tests.
Detailed description of the invention
Fig. 1 is the schematic diagram that OVS supports the forwarding of VxLAN message in the prior art;
Fig. 2 be according to embodiment of the present invention, source virtual machine under the VxLAN message forwarding method stream of the side OVS hung Cheng Tu;
Fig. 3 is VxLAN message encapsulation schematic diagram;
Fig. 4 be according to embodiment of the present invention, purpose virtual machine under the VxLAN message forwarding method of the side OVS hung Flow chart;
Fig. 5 is the exemplary schematic representation for supporting VxLAN message to send according to embodiment of the present invention OVS;
Fig. 6 is the flow chart that VxLAN message is sent in Fig. 5;
Fig. 7 is to support the received exemplary schematic representation of VxLAN message according to embodiment of the present invention OVS;
Fig. 8 is the received flow chart of VxLAN message in Fig. 7;
Fig. 9 is the schematic diagram that the forwarding of VxLAN message is supported according to embodiment of the present invention OVS;
Figure 10 be according to embodiment of the present invention, source virtual machine under the retransmission unit of the VxLAN message of the side OVS hung Structure chart;
Figure 11 is that the forwarding of the VxLAN message of the side OVS according to embodiment of the present invention, hung under purpose virtual machine institute fills Set structure chart.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, the present invention is made with reference to the accompanying drawing further Detailed description.
Fig. 1 is the schematic diagram that OVS supports the forwarding of VxLAN message in the prior art.
By hung under in Fig. 1 VM1 on the first OVS and under for the communication process that hangs between VM3 on the 2nd OVS, Illustrate the demonstration program that OVS supports VxLAN message to forward in the prior art.
In Fig. 1:
First OVS is deployed on host 1, and the port 3 of the first OVS is the local port VxLAN, can be described as the end VxLan1 Mouthful;The port 2 of first OVS is the local port Uplink;It holds the inside (Internal) that the port 1 of first OVS is local VTEP Mouthful, the MAC Address of the port Internal: 00-00-00-00-10-01, IP address: 100.1.1.1.
2nd OVS is deployed on host 2, and the port 3 of the 2nd OVS is the local port VxLAN, can be described as the end VxLan2 Mouthful;The port 2 of 2nd OVS is the local port Uplink;The port 1 of 2nd OVS is the port Internal of local VTEP.It should The MAC Address of the port Internal: 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.VM1 is on the first OVS Port-for-port 4.The MAC Address of VM3: 00-00-00-00-00-02;The IP address of VM3: 192.168.1.2;VM3 is Port-for-port 4 on two OVS.
In 1 side of host, as shown in the dotted line 11 of Fig. 1, the first OVS receives the original report that purpose virtual machine is VM3 from VM1 Text, the first OVS send the local port VxLan1 (i.e. first for original message based on the flow entry 1 that SDN controller is issued The port 3 of OVS).Then, as shown in the dotted line of Fig. 1 12, which is original message packaging V xLAN head, and will encapsulation Message afterwards is dealt into the local port Internal (MAC Address: 00-00-00-00-10-01;IP address: 100.1.1.1;Port For the port 1 of host 1).Then, as shown in the dotted line of Fig. 1 13, the local port Internal enables Linux native protocol stack (i.e. IP enters protocol stack) continue to add two layers of head for the message after encapsulation to form VxLAN message, and issued based on SDN controller Flow entry 2, send VxLAN message to the port Uplink of host 1.
In 2 side of host, as shown in the dotted line 14 of Fig. 1, the port Uplink of host 2 is received from the port Uplink of host 1 VxLAN message, and the flow entry 3 issued based on SDN controller send VxLAN message in the Internal mouth of host 2 (MAC Address: 00-00-00-00-10-02;IP address: 100.1.1.2;Port is the port 1 of host 2).Then, such as Fig. 1 Shown in dotted line 15, the Internal mouth of host 2 enables Linux native protocol stack (i.e. IP goes out protocol stack) and peels VxLAN message off Two layers of head, then the port VxLan2 is sent to by the message after two layers of head is removed.Then, as shown in the dotted line of Fig. 1 16, the end VxLan2 Lancet continues removing VxLAN to message after two layers of head of removing to obtain original message, and the stream issued based on SDN controller Original message is sent to VM3 by list item 4.
Table 1 is the structure table of flow entry 1, flow entry 2, flow entry 3 and flow entry 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 heading include two layers of head and VxLAN head.Two layers of head include external MAC destination address, external mac source address and optional 802.1Q field.VxLAN message Head includes external IP destination address, external IP source address and optional VxLAN ID.Specifically, at the end VxLan1 of the first OVS Mouth is to original message packaging V xLAN head;The local port Internal of the first OVS be encapsulation after message continue addition two layers Head is to form VxLAN message.When VxLAN message is sent to two OVS, the port Internal of the 2nd OVS is from VxLAN message Two layers of head of middle removing, and the port the VxLan2 message after two layers of head will be removed be sent to the 2nd OVS, the VxLan2 of the 2nd OVS Removing VxLAN is continued to restore original message in port, finally sends purpose virtual machine for original message.
From above-mentioned analysis as it can be seen that in the prior art, the message issued from VM1 need to table look-up by four OVS matching with And an IP enters protocol stack processing and an IP goes out protocol stack processing and can just be sent to VM3, implementation process is complicated, reduces report Literary forward efficiency.
In embodiments of the present invention, the OVS that source virtual machine is hung down is local it is not necessary that original message to be forwarded to The port Internal is directly voluntarily encapsulated in the local port VxLAN with entering protocol stack processing two layers of head of addition based on IP VxLAN heading comprising two layers of head, to be obviously improved the sending performance to VxLAN message.
Moreover, in embodiments of the present invention, the OVS for receiving VxLAN message is not necessarily to VxLAN message being forwarded to local The port Internal directly includes in the local port VxLAN removing to go out protocol stack processing two layers of head of removing based on IP The VxLAN heading of two layers of head, to be obviously improved the receptivity to VxLAN message.
In embodiments of the present invention, SDN controller is received by the ARP message of monitoring Overlay network, neighbor information Collection, SSH log on to managed host to obtain the various ways such as the default route information of VTEP IP, can clearly calculate VxLAN send when to VxLAN message address information required for different opposite end VTEP (including the MAC information in two layers of head with And opposite end VTEP address information).Therefore, SDN controller can be by way of issuing flow table to OVS, with issuing VxLAN message Location information and specified exit port, so that OVS can voluntarily be encapsulated in the port VxLAN comprising two layers when executing VxLAN forwarding The VxLAN heading of head, and VxLAN message is sent by specified exit port.
Fig. 2 be according to embodiment of the present invention, source virtual machine under the VxLAN message forwarding method stream of the side OVS hung Cheng Tu.
As shown in Fig. 2, this method comprises:
Step 201: the first OVS receives flow entry from SDN controller, which carries VxLAN message address information And the first the first port Uplink on OVS, the flow entry is for receiving the source virtual machine hung on the first OVS from down , the first port VxLAN that the original message on the 2nd OVS is sent on the first OVS is hung under purpose virtual machine, and by first The port VxLAN is the additional VxLAN heading comprising VxLAN message address information of the original message to form VxLAN message, and For sending VxLAN message by the first port Uplink.
In one embodiment, which includes occurrence and movement, and wherein occurrence includes the MAC of source virtual machine Address, the MAC Address of purpose virtual machine, the IP address of source virtual machine and purpose virtual machine IP address, movement includes specified the One port VxLAN is that the first sequence exit port, carrying VxLAN message address information and specified first port Uplink are second suitable Sequence exit port.
Specifically, when the first OVS receives original message from source virtual machine, the source carried in original message void is first determined whether The quasi- MAC Address of machine, the MAC Address of purpose virtual machine, the IP address of source virtual machine and purpose virtual machine IP address whether with The occurrence of flow entry matches, and when determining to match, original message is forwarded to as the first sequence exit port first First port VxLAN, and include the VxLAN heading of VxLAN message address information to be formed in the first VxLAN port encapsulation VxLAN message, then the first port Uplink as the second sequence exit port is sent by VxLAN message, and by first The port Uplink sends VxLAN message.
It herein, can VxLAN message be obtained from flow entry after the first OVS receives flow entry from SDN controller Location information.In one embodiment, VxLAN message address information is with hanging over the MAC of the first VTEP on the first OVS under including Location (corresponding to the external mac source address in Fig. 3), under hang over the MAC Address of the 2nd VTEP on the 2nd OVS and (correspond in Fig. 3 External mac source address) and the 2nd VTEP IP address (corresponding to the external IP destination address in Fig. 3).Therefore, first The MAC Address that OVS on the first port VxLAN, can hang over the first VTEP on the first OVS based under hangs over second under The MAC Address of the 2nd VTEP on OVS constructs two layers of head.Moreover, because hanging over first under having pre-saved in the first OVS The IP address (corresponding to the external IP source address in Fig. 3) of the first VTEP on OVS, the first OVS can be in the first port VxLAN On, the IP address based on the 2nd VTEP obtained from VxLAN message address information is (corresponding to the external IP destination in Fig. 3 Location), under hang over IP address, UDP information and optional VxLAN ID the building VxLAN head of the first VTEP on the first OVS.
Therefore, when hanging on the 2nd OVS different from the first OVS under the purpose virtual machine of original message, the first OVS can Think that original message is additional comprising two layers of head and VxLAN VxLAN headings, to ultimately form VxLAN message, and passes through First port Uplink sends VxLAN message.
Step 202: the 2nd port Uplink on the 2nd OVS receives VxLAN message and removes from VxLAN message VxLAN heading is sent to the 2nd port VxLAN on the 2nd OVS to restore original message, by original message, and by second Original message is sent purpose virtual machine by the port VxLAN.
Herein, it after the 2nd port Uplink on the 2nd OVS receives VxLAN message, is directly removed from VxLAN message VxLAN heading sends the 2nd port VxLAN on the 2nd OVS for original message to restore original message, thus by Original message is sent purpose virtual machine by two ports VxLAN.
In one embodiment, when hanging on the first OVS under the purpose virtual machine of original message, not needing will be original Message is sent to the port VxLAN on the first OVS, but the non-end VxLAN being directly forwarded to original message on the first OVS Mouthful.Specifically, comprising: the flow entry for forwarding non-VxLAN message, the flow table of the non-VxLAN message of the forwarding are received from SDN controller For will be hung over from down it is that the source virtual machine on the first OVS receives, original report on the first OVS is hung under purpose virtual machine Text is sent to the non-port VxLAN on the first OVS.
Based on above-mentioned analysis, the invention also provides it is a kind of purpose virtual machine under the VxLAN message of the side OVS hung turn Forwarding method.
Fig. 4 be according to embodiment of the present invention, purpose virtual machine under the VxLAN message forwarding method of the side OVS hung Flow chart.
As shown in figure 4, this method comprises:
Step 401: the 2nd port Uplink on the 2nd OVS receives what the first port Uplink on the first OVS was sent VxLAN message.The VxLAN message is that the first port VxLAN on the first OVS is additional comprising VxLAN message by original message The VxLAN heading of location information is formed by, and wherein original message hangs over the sending of the source virtual machine on the first OVS by down.
Step 402: removing VxLAN heading on the 2nd port Uplink to restore original message, original message is sent out It is sent to the 2nd port VxLAN on the 2nd OVS.
Step 403: sending original message to based on from the received flow entry of SDN controller in the 2nd port VxLAN Purpose virtual machine.Preferably, the occurrence of the flow entry includes the source address and destination address of original message, and movement includes specified Exit port be original message purpose virtual machine under hang over port on the 2nd OVS.
In one embodiment, VxLAN message address information hangs over the first tunnel VxLAN on the first OVS under including The MAC Address of terminal, under hang over the 2nd VxLAN tunneling termination on the 2nd OVS MAC Address and the 2nd tunnel VxLAN it is whole The IP address at end.
In one embodiment, this method further include:
2nd OVS receives the flow entry for forwarding non-VxLAN message from SDN controller.2nd port Uplink is from When one port Uplink receives non-VxLAN message, the 2nd OVS is based on this for forwarding the flow entry of non-VxLAN message to forward Non- VxLAN message.Preferably, for forward non-VxLAN message flow entry occurrence include non-VxLAN message source address And destination address, movement include the port hung on the 2nd OVS under the purpose virtual machine that specified exit port is non-VxLAN message.
Below with reference to example, the process that embodiment OVS supports VxLAN message to send according to the present invention is described in detail.
Fig. 5 is the exemplary schematic representation for supporting VxLAN message to send according to embodiment of the present invention OVS.
It is as shown in Figure 5:
First OVS is deployed on host 1, and the port 3 of the first OVS is the local port VxLAN, can be described as the end VxLan1 Mouthful;The port 2 of first OVS is the local port Uplink;The port 1 of first OVS is the port Internal of local VTEP, should The MAC Address of the port Internal: 00-00-00-00-10-01, IP address: 100.1.1.1.Access of the VM1 on the first OVS Port-for-port 4.
First OVS receives flow entry 1 from SDN controller, which carries VxLAN message address information and the The port Uplink of one OVS.Specifically, with reference to Fig. 5 and Fig. 7, VxLAN message address information is hung on the first OVS under including The MAC Address (i.e. the MAC Address of the port Internal: 00-00-00-00-10-01) of first VTEP, under hang on the 2nd OVS The 2nd VTEP MAC Address (i.e. the MAC Address of the port Internal: 00-00-00-00-10-02) and the 2nd VTEP IP address (i.e. IP address: 100.1.1.2).
In 1 side of host, as shown in the dotted line 11 of Fig. 5, when the first OVS receives original message, and the original message from VM1 Purpose virtual machine under when hanging on other OVS different from the first OVS, flow table that the first OVS is issued based on SDN controller Original message is sent the local port VxLan1 (i.e. the port 3 of the first OVS) by item 1.It then, should as shown in the dotted line of Fig. 5 12 The port VxLan1 is additional comprising VxLAN message for the original message based on VxLAN message address information entrained by flow entry 1 The VxLAN heading of address information is to form VxLAN message.Moreover, the port VxLan1 is also based on flow entry 1, VxLAN is reported Text is sent to the port Uplink of the first OVS, to send VxLAN message by the port Uplink of the first OVS.
As it can be seen that VxLAN message sending process, VxLAN message transmission process of the invention reduce one compared with prior art Secondary IP protocol stack transmission flow and an OVS table look-up repeating process.
Fig. 6 is the flow chart that VxLAN message is sent in Fig. 5.
As shown in fig. 6, this method comprises:
Step 601: the first OVS receives original message from VM1.
Step 602: the first OVS judges whether the exit port of the original message is VxLAN mouthfuls, if it is thening follow the steps 604 and its subsequent step, if not thening follow the steps 603.
Step 603: sending the original message, and terminate this process.
Step 604: being original message packaging V xLAN head at VxLAN mouthfuls.
Step 605: at VxLAN mouthfuls, continuing to encapsulate two layers of head for packaging V xLAN message, to form VxLAN report Text.
Step 606: sending VxLAN message in the port Uplink.
Below with reference to example, embodiment OVS according to the present invention is described in detail and supports the received process of VxLAN message.
Fig. 7 is to support the received exemplary schematic representation of VxLAN message according to embodiment of the present invention OVS.
It is as shown in Figure 7:
2nd OVS is deployed on host 2, and the port 3 of the 2nd OVS is the local port VxLAN, can be described as the end VxLan2 Mouthful;The port 2 of 2nd OVS is the local port Uplink;The port 1 of 2nd OVS is the port Internal of local VTEP.It should The MAC Address of the port Internal: 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 of the VM3 on the 2nd OVS is port 4.
In 2 side of host, as shown in the dotted line 13 of Fig. 7, the port Uplink of host 2 connects from the port Uplink of other OVS VxLAN message is received, VxLAN heading is removed from VxLAN message to restore original message, sends second for original message The port VxLAN on OVS.The flow entry 2 that the port VxLAN on 2nd OVS is issued based on SDN controller, original message is sent out It is sent to purpose virtual machine (such as VM3).As it can be seen that process, VxLAN message receive process of the invention reduce compared with prior art Forwarding process that IP protocol stack receives process and an OVS tables look-up.
Fig. 8 is the flow chart that VxLAN message is received in Fig. 7.
As shown in figure 8, this method comprises:
Step 801: the 2nd OVS receives message from other OVS by the port Uplink.
Step 802: the 2nd OVS judges whether the message received is VxLAN message, if it is thening follow the steps 804 And its subsequent step, if not thening follow the steps 803 and terminate this process.
Step 803: the message for forwarding this to receive, and terminate this process.
Step 804: in the port Uplink, removing VxLAN heading, and the original message for removing VxLAN heading is sent out It is sent to VxLAN mouthfuls.
Step 805: at VxLAN mouthfuls, forwarding the original message.
Table 2 is the demonstrative structure table of flow entry 1 and flow entry 2.
Table 2
Fig. 9 is the overall schematic that the forwarding of VxLAN message is supported according to embodiment of the present invention OVS, is integrally closed in Fig. 9 And Fig. 5 and Fig. 7.
In conjunction with Fig. 9 and from above-mentioned detailed analysis as it can be seen that in the present invention, the message issued from VM1 only need to be by twice OVS matching of tabling look-up can be sent to VM3, no longer need to execute that IP enters protocol stack processing and IP goes out protocol stack processing, therefore this hair It is bright to reduce implementation process complexity, improve message forward efficiency.It is found by Test Data Collecting, the property after present invention optimization Energy index can have 30% or more promotion than the performance indicator before optimization.
Based on above-mentioned detailed analysis, embodiment of the present invention also proposed source virtual machine under the VxLAN of the side OVS that hangs The retransmission unit of message.
Figure 10 be according to embodiment of the present invention, source virtual machine under the retransmission unit of the VxLAN message of the side OVS hung Structure chart.
As shown in Figure 10, which is applied to the first OVS (i.e. source virtual machine hang down OVS), the device 1000 Include:
Flow entry receiving module 1001, for receiving flow entry from SDN controller, which carries VxLAN message The first port uplink Uplink on address information and the first OVS;
The flow entry for will be hung over from down it is that the source virtual machine on the first OVS receives, the is hung under purpose virtual machine Original message on two OVS is sent to the first port VxLAN on the first OVS, and is the original message by the first port VxLAN The additional VxLAN heading comprising VxLAN message address information is used to pass through the first end Uplink to form VxLAN message Mouth sends VxLAN message.
In one embodiment, VxLAN message address information hangs over the first tunnel VxLAN on the first OVS under including The MAC Address of terminal, under hang over the 2nd VxLAN tunneling termination on the 2nd OVS MAC Address and the 2nd tunnel VxLAN it is whole The IP address at end.
In one embodiment, flow entry includes occurrence and movement, and wherein occurrence includes the MAC of source virtual machine Location, the MAC Address of purpose virtual machine, the IP address of source virtual machine and purpose virtual machine IP address, movement includes specified first The port VxLAN is that the first sequence exit port, carrying VxLAN message address information and specified first port Uplink are the second sequence Exit port.
In one embodiment:
Flow entry receiving module 1001 is also used to receive the flow entry for forwarding non-VxLAN message from SDN controller, This is used to forward the flow entry of non-VxLAN message for will hang over the source virtual machine on the first OVS receives, purpose void from down The non-port VxLAN that the original message on the first OVS is sent on the first OVS is hung under quasi- machine.
Based on above-mentioned detailed analysis, embodiment of the present invention also proposed purpose virtual machine under the OVS side that hangs The retransmission unit of VxLAN message.
Figure 11 is that the forwarding of the VxLAN message of the side OVS according to embodiment of the present invention, hung under purpose virtual machine institute fills Structure chart is set, which is applied to the 2nd OVS (i.e. purpose virtual machine hang down OVS).
As shown in figure 11, which includes:
VxLAN message receiving module 1101, for receiving the first OVS by the 2nd port Uplink on the 2nd OVS The VxLAN message that sends of the first port Uplink, VxLAN message is the first port VxLAN on the first OVS by original message The additional VxLAN heading comprising VxLAN message address information is formed by, and wherein original message is hung over by down on the first OVS Source virtual machine issue;
Heading strip module 1102, for removing VxLAN heading on the 2nd port Uplink to restore original report Original message is sent the 2nd port VxLAN on the 2nd OVS by text;
Message sending module 1103 will be former for being based on from the received flow entry of SDN controller in the 2nd port VxLAN Beginning message is sent to the purpose virtual machine.
In one embodiment, the occurrence of the flow entry includes the source address and destination address of original message, movement Including specifying the port hung on the 2nd OVS under the purpose virtual machine that exit port is original message.
In one embodiment, VxLAN message address information hangs over the first tunnel VxLAN on the first OVS under including The MAC Address of terminal, under hang over the 2nd VxLAN tunneling termination on the 2nd OVS MAC Address and the 2nd tunnel VxLAN it is whole The IP address at end.
In one embodiment, the device 1100 further include:
Non- VxLAN message receiving module 1104, for by the 2nd port Uplink, first from the first OVS The port Uplink receives non-VxLAN message;
Message sending module 1103 is also used to based on received for forwarding the flow table of non-VxLAN message from SDN controller Item forwards non-VxLAN message.
In one embodiment, the occurrence for forwarding the flow entry of non-VxLAN message includes non-VxLAN message Source address and destination address, movement include hanging on the 2nd OVS under the purpose virtual machine that specified exit port is non-VxLAN message Port.
In conclusion SDN controller is by way of issuing flow entry to OVS, Ke Yixiang in embodiment of the present invention OVS provides VxLAN message address information and specified exit port, OVS when executing VxLAN forwarding can the port VxLAN voluntarily Encapsulation includes the VxLAN heading of two layers of head, and sends VxLAN message by specified exit port, to optimize OVS support VxLAN message sends and receivees process, improves the whole sending performance of VxLAN message, is beneficial to improve entire Overlay The user experience of network.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.It is all Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on should be included in protection of the invention Within the scope of.

Claims (10)

1. a kind of retransmission method of virtual expansible local area network VxLAN message, which is characterized in that it is empty that the method is applied to first Quasi-ization open flow switch OVS, this method comprises:
Flow entry is received from software defined network SDN controller, the flow entry carries VxLAN message address information and institute State the first port uplink Uplink on the first OVS;
The flow entry for will be hung over from down it is that the source virtual machine on the first OVS receives, hang under purpose virtual machine Original message on 2nd OVS is sent to the first port VxLAN on the first OVS, and is by the first port VxLAN The additional VxLAN heading comprising the VxLAN message address information of the original message is used to lead to form VxLAN message It crosses the first port Uplink and sends the VxLAN message.
2. the retransmission method of VxLAN message according to claim 1, which is characterized in that the VxLAN message address information Hung over including under the first VxLAN tunneling termination on the first OVS MAC address, under hang over described The MAC Address of the 2nd VxLAN tunneling termination on two OVS and the IP address of the 2nd VxLAN tunneling termination.
3. the retransmission method of VxLAN message according to claim 1, which is characterized in that the flow entry includes occurrence And movement, wherein the occurrence includes the IP of the MAC Address of source virtual machine, the MAC Address of purpose virtual machine, source virtual machine The IP address of location and purpose virtual machine, movement include that specified first port VxLAN is the first sequence exit port, carries VxLAN report Literary address information and specify the first port Uplink be the second sequence exit port.
4. a kind of retransmission method of virtual expansible local area network VxLAN message, which is characterized in that it is empty that the method is applied to second Quasi-ization open flow switch OVS, this method comprises:
Receive what the first port Uplink on the first OVS was sent by the second port uplink Uplink on the 2nd OVS VxLAN message, the VxLAN message are that the first port VxLAN on the first OVS is additional comprising VxLAN message by original message The VxLAN heading of address information is formed by, wherein the original message hangs over the source virtual machine on the first OVS by down It issues;
The VxLAN heading is removed on the 2nd port Uplink to restore the original message, by the original report Text is sent to the 2nd port VxLAN on the 2nd OVS;
In the 2nd port VxLAN, purpose virtual machine is sent by the original message.
5. the retransmission method of VxLAN message as claimed in claim 4, which is characterized in that the VxLAN message address information includes Under hang over the first VxLAN tunneling termination on the first OVS MAC Address, under hang on the 2nd OVS second The IP address of the MAC Address of VxLAN tunneling termination and the 2nd VxLAN tunneling termination.
6. a kind of retransmission unit of virtual expansible local area network VxLAN message, which is characterized in that it is empty that described device is applied to first Quasi-ization open flow switch OVS, the device include:
Flow entry receiving module, for receiving flow entry from SDN controller, the flow entry carries VxLAN message address letter The first port uplink Uplink on breath and the first OVS, the flow entry from down for will hang over described first Original message that source virtual machine on OVS receives, hanging on the 2nd OVS under purpose virtual machine is sent to the first OVS On the first port VxLAN, and by the first port VxLAN be the original message it is additional include the VxLAN message address The VxLAN heading of information is reported with forming VxLAN message for sending the VxLAN by the first port Uplink Text.
7. the retransmission unit of VxLAN message according to claim 6, which is characterized in that the VxLAN message address information Hung over including under the first VxLAN tunneling termination on the first OVS MAC Address, under hang on the 2nd OVS second The IP address of the MAC Address of VxLAN tunneling termination and the 2nd VxLAN tunneling termination.
8. the retransmission unit of VxLAN message according to claim 6, which is characterized in that the flow entry includes occurrence And movement, wherein occurrence include the MAC Address of source virtual machine, the MAC Address of purpose virtual machine, source virtual machine IP address and The IP address of purpose virtual machine, movement include that specified first port VxLAN is the first sequence exit port, with carrying VxLAN message Location information and specify the first port Uplink be the second sequence exit port.
9. a kind of retransmission unit of virtual expansible local area network VxLAN message, which is characterized in that it is empty that described device is applied to second Quasi-ization open flow switch OVS, the device include:
VxLAN message receiving module, for receiving the first OVS by the second port uplink Uplink on the 2nd OVS The first port Uplink send VxLAN message, the VxLAN message is that the first port VxLAN on the first OVS will be original COM Continuation of Message includes that the VxLAN heading of VxLAN message address information is formed by, wherein the original message hangs over institute by down The source virtual machine stated on the first OVS issues;
Heading strip module, for removing the VxLAN heading on the 2nd port Uplink to restore the original The original message is sent the 2nd port VxLAN on the 2nd OVS by beginning message;
Message sending module, for sending purpose virtual machine for the original message in the 2nd port VxLAN.
10. the retransmission unit of VxLAN message as claimed in claim 9, which is characterized in that the VxLAN message address packet Include down hang over the first VxLAN tunneling termination on the first OVS MAC Address, under hang on the 2nd OVS second The IP address of the MAC Address of VxLAN tunneling termination and the 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 CN105991389A (en) 2016-10-05
CN105991389B true 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)

Families Citing this family (3)

* 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
CN115001900A (en) * 2022-06-06 2022-09-02 中移(杭州)信息技术有限公司 Message forwarding method, device, equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8743888B2 (en) * 2010-07-06 2014-06-03 Nicira, Inc. Network control apparatus and method
US9736211B2 (en) * 2012-08-27 2017-08-15 Vmware, Inc. Method and system for enabling multi-core processing of VXLAN traffic
CN104283756B (en) * 2013-07-02 2017-12-15 新华三技术有限公司 A kind of method and apparatus for realizing distributed multi-tenant virtual network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
WO2016127909A1 (en) 2016-08-18
CN105991389A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
US10205657B2 (en) Packet forwarding in data center network
CN104954218B (en) Distributed virtual switch and retransmission method
CN108475244B (en) Accelerating network packet processing
CN104243318B (en) MAC address learning method and device in VXLAN networks
CN104601432B (en) A kind of message transmitting method and equipment
CN103888386B (en) The transmission method and device, system of expansible virtual local area network packet
JP5991424B2 (en) Packet rewriting device, control device, communication system, packet transmission method and program
US20160156550A1 (en) Calculating spanning tree
CN104168223B (en) For determining the method and system of packet-priority
CN104780088B (en) A kind of transmission method and equipment of service message
EP3313025A2 (en) Data packet forwarding
US9774532B2 (en) Information processing system, information processing apparatus and control method of information processing system
CN105634901B (en) Mac address information synchronous method and device based on CAS VXLAN
WO2015078233A1 (en) Method for processing downlink signalling of sdn virtualization platform based on openflow
EP3014828A1 (en) Distributed virtual switch system
CN104283891B (en) By the method and apparatus of business function node access service chain network
CN105162674A (en) Method and network card for physical machine to access to virtual network
CN105991389B (en) A kind of retransmission method and device of virtual expansible local network packet
CN109861899A (en) Virtual home gateway and implementation method, home network center and data processing method
WO2014094420A1 (en) Message processing method and device
CN106059923A (en) Message forwarding method and device
EP3425860B1 (en) Tunnel type selection methods and apparatuses
CN108833250A (en) A kind of retransmission method between VxLAN and VLAN
CN109756419B (en) Routing information distribution method and device and RR
US9755854B2 (en) Tag conversion apparatus

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