Nothing Special   »   [go: up one dir, main page]

CN108989176A - A kind of virtual machine exchange visit methods, devices and systems - Google Patents

A kind of virtual machine exchange visit methods, devices and systems Download PDF

Info

Publication number
CN108989176A
CN108989176A CN201810913012.1A CN201810913012A CN108989176A CN 108989176 A CN108989176 A CN 108989176A CN 201810913012 A CN201810913012 A CN 201810913012A CN 108989176 A CN108989176 A CN 108989176A
Authority
CN
China
Prior art keywords
virtual
virtual machine
message
network
label
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.)
Pending
Application number
CN201810913012.1A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810913012.1A priority Critical patent/CN108989176A/en
Publication of CN108989176A publication Critical patent/CN108989176A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Landscapes

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

Abstract

The invention discloses a kind of virtual machine exchange visit methods, devices and systems.It is related to virtual machine field, solves the problems, such as that operation cost caused by existing three-layer equipment message transfer and network complexity are high.This method comprises: virtual switch receives the message that second virtual machine of first virtual machine into the second virtual network in the first virtual network is sent;The virtual switch determines the transmission path of the message according to preset data packet flow table, and the message is sent to second virtual machine.Technical solution provided by the invention is suitable for the virtual machine exchange visit of travelling across VLAN, realizes the virtual machine exchange visit of high-efficient low-complexity.

Description

A kind of virtual machine exchange visit methods, devices and systems
Technical field
The present invention relates to virtual machine technique, espespecially a kind of virtual machine exchange visit methods, devices and systems.
Background technique
Under virtualized environment, if virtual machine is in different virtual LAN (VLAN) networks, between virtual machine mutually It is logical that additional three-layer equipment (such as router) is needed to do message transfer, increase operation cost and network complexity.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of virtual machine exchange visit methods, devices and systems, pass through void Quasi- interchanger completes the data exchange between different virtual LAN, solves fortune caused by existing three-layer equipment message transfer Seek cost and the high problem of network complexity.
In order to reach the object of the invention, the present invention provides a kind of virtual machine exchange visit methods, comprising:
Virtual switch receives second virtual machine of first virtual machine into the second virtual network in the first virtual network The message of transmission;
The virtual switch determines the transmission path of the message according to preset data packet flow table, by the message It is sent to second virtual machine.
Preferably, the virtual switch determines the transmission path of the message according to preset data packet flow table, by institute Stating the step of message is sent to second virtual machine includes:
According to the data packet flow table, add the first virtual network where first virtual machine for the message the One label;
For the virtual switch according to preset mapping table, network where determining second virtual machine is described second empty Quasi- network;
The virtual switch removes first label of the message according to the data packet flow table, described in addition Second label of the second network;
Message added with second label is forwarded to second virtual machine by the virtual switch.
Preferably, virtual switch receives second of the first virtual machine in the first virtual network into the second virtual network Before the step of message that virtual machine is sent, further includes:
Configuration includes the data packet flow table of forward rule.
The present invention also provides a kind of virtual machine exchange visit devices, comprising:
Data reception module, for receiving the first virtual machine in the first virtual network second into the second virtual network The message that virtual machine is sent;
Data forwarding module, for determining the transmission path of the message according to preset data packet flow table, by the report Text is sent to second virtual machine.
Preferably, the data forwarding module includes:
Label adding unit, for adding the first virtual machine place for the message according to the data packet flow table The first virtual network the first label;
Lookup unit, for according to preset mapping table, network where determining second virtual machine to be described second empty Quasi- network;
Label replaces unit, for removing first label of the message according to the data packet flow table, adds institute State the second label of the second network;
Data forwarding unit, for the message for being added with second label to be forwarded to second virtual machine.
Preferably, the device further include:
Configuration module, for configuring the data packet flow table comprising forward rule.
The present invention also provides a kind of virtual machine exchange visit systems, the first virtual machine and position comprising being located at the first virtual network It is placed in the second virtual machine of the second virtual network, which further includes virtual switch, and first virtual machine passes through described the One virtual network is connect with the virtual switch, and second virtual machine passes through second virtual network and the virtual friendship It changes planes connection;
The virtual switch, for receiving the first virtual machine in the first virtual network into the second virtual network The message that two virtual machines are sent determines the transmission path of the message according to preset data packet flow table, and the message is sent To second virtual machine.
Preferably, the virtual switch, is specifically used for according to the data packet flow table, for message addition described the First label of the first virtual network where one virtual machine determines the second virtual machine place according to preset mapping table Network is second virtual network, according to the data packet flow table, removes first label of the message, described in addition Message added with second label is forwarded to second virtual machine by the second label of the second network.
Preferably, the virtual switch is also used to configure the data packet flow table comprising forward rule.
The present invention provides a kind of virtual machine exchange visit methods, devices and systems, virtual switch receives the first virtual network In the message that sends of second virtual machine of first virtual machine into the second virtual network, according to preset data packet flow table, really The transmission path of the fixed message, is sent to second virtual machine for the message.Virtual machine exchange visit between multi-VLAN is realized, Solve the problems, such as that operation cost caused by existing three-layer equipment message transfer and network complexity are high.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is a kind of flow diagram for virtual machine exchange visit method that one embodiment of the invention provides;
Fig. 2 is the idiographic flow schematic diagram of step 103 in Fig. 1;
Fig. 3 is the realization principle schematic diagram for another virtual machine exchange visit method that one embodiment of the invention provides;
Fig. 4 is a kind of structural schematic diagram for virtual machine exchange visit device that one embodiment of the invention provides;
Fig. 5 is the structural schematic diagram of data forwarding module 402 in Fig. 4.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable Sequence executes shown or described step.
Under virtualized environment, if virtual machine is in different vlan networks, intercommunication needs additionally between virtual machine Three-layer equipment (such as router) does message transfer, increases operation cost and network complexity.
To solve the above-mentioned problems, the embodiment of the present invention proposes one kind and realizes void between multi-VLAN under virtualized environment The virtual machine exchange visit methods, devices and systems that quasi- machine is exchanged visits cut operating costs and network without increasing additional three-layer equipment Complexity.
One embodiment of the invention provides a kind of virtual machine exchange visit method, and the stream of virtual machine exchange visit is completed using this method Journey is as shown in Figure 1, comprising:
Step 101, configuration include the data packet flow table of forward rule.
Step 102, virtual switch receive the of the first virtual machine in the first virtual network into the second virtual network The message that two virtual machines are sent.
Step 103, the virtual switch determine the transmission path of the message according to preset data packet flow table, will The message is sent to second virtual machine.
This step is specifically as shown in Figure 2, comprising:
Step 1031, according to the data packet flow table, first where first virtual machine is added for the message is empty First label of quasi- network.
Step 1032, the virtual switch determine that network where second virtual machine is according to preset mapping table Second virtual network;The mapping table is specially VLAN mapping table.
Step 1033, the virtual switch remove first label of the message according to the data packet flow table, Add the second label of second network.
Message added with second label is forwarded to described second virtually by step 1034, the virtual switch Machine.
One embodiment of the invention additionally provides a kind of virtual machine exchange visit method, needs to pass through on OVS virtual switch The data packets flow tables such as specific openflow flow table are added, it is real to realize that the functions such as addition, change, the deletion of message VLAN tag are come The exchanging visit of virtual machine between existing multi-VLAN.
As shown in figure 3, two virtual machines belong to different VLAN, virtual machine 1 belongs to the realization principle of the embodiment of the present invention VLAN100, virtual machine 2 belong to VLAN200, and two virtual machines can be realized by the openflow flow table of ovs virtual switch Access mutually.
Specific implementation process is as follows:
(1) virtual machine 1 accesses virtual machine 2, and the message that virtual machine 1 issues enters ovs virtual switch, virtually handed over by ovs It changes planes and stamps VLAN100 label.
(2) inside ovs virtual switch, by adding openflow flow table, so that the message that virtual machine 1 issues removes The label of VLAN100 is that the message that virtual machine 1 issues is stamped again by openflow flow table according to preset mapping table The message of the label of VLAN200, the sending of such virtual machine 1 can normally reach virtual machine 2.
It is specific by addition on OVS virtual switch according to preset VLAN mapping table under virtualized environment Openflow flow table stamps VLAN label to the flow of virtual machine, according to preset VLAN mapping table, in OVS virtual switch Upper pass through adds specific openflow flow table, realizes that the functions such as addition, change, the deletion of message VLAN tag are more to realize The exchanging visit of virtual machine between VLAN.
One embodiment of the invention additionally provides a kind of virtual machine exchange visit device, and structure is as shown in Figure 4, comprising:
Data reception module 401, for receiving the first virtual machine in the first virtual network into the second virtual network The message that second virtual machine is sent;
Data forwarding module 402, for determining the transmission path of the message according to preset data packet flow table, by institute It states message and is sent to second virtual machine.
Preferably, the structure of the data forwarding module 402 is as shown in Figure 5, comprising:
Label adding unit 4021, for adding first virtual machine for the message according to the data packet flow table First label of first virtual network at place;
Lookup unit 4022 is described for network where according to preset mapping table, determining second virtual machine Two virtual networks;
Label replaces unit 4023, for removing first label of the message, adding according to the data packet flow table Add the second label of second network;
Data forwarding unit 4024, for the message for being added with second label to be forwarded to second virtual machine.
Preferably, the device further include:
Configuration module 403, for configuring the data packet flow table comprising forward rule.
One embodiment of the invention additionally provides a kind of virtual machine exchange visit system, and first comprising being located at the first virtual network In the second virtual machine of the second virtual network, which further includes virtual switch for virtual machine and position, first virtual machine Connect by first virtual network with the virtual switch, second virtual machine by second virtual network with The virtual switch connection;
The virtual switch, for receiving the first virtual machine in the first virtual network into the second virtual network The message that two virtual machines are sent determines the transmission path of the message according to preset data packet flow table, and the message is sent To second virtual machine.
Preferably, the virtual switch, is specifically used for according to the data packet flow table, for message addition described the First label of the first virtual network where one virtual machine determines the second virtual machine place according to preset mapping table Network is second virtual network, according to the data packet flow table, removes first label of the message, described in addition Message added with second label is forwarded to second virtual machine by the second label of the second network.
Preferably, the virtual switch is also used to configure the data packet flow table comprising forward rule.
The embodiment provides a kind of virtual machine exchange visit methods, devices and systems, virtual switch receives first The message that second virtual machine of first virtual machine into the second virtual network in virtual network is sent, according to preset data packet Flow table determines the transmission path of the message, and the message is sent to second virtual machine.It realizes virtual between multi-VLAN Machine is exchanged visits, and solves the problems, such as that operation cost caused by existing three-layer equipment message transfer and network complexity are high.
By adding specific openflow flow table on OVS virtual switch, the addition, more of message VLAN tag is realized The functions such as change, delete to realize that the exchanging visit of virtual machine between multi-VLAN cuts operating costs without increasing additional hardware router And network complexity.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment, Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain groups Part or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or by It is embodied as hardware, or is implemented as integrated circuit, such as specific integrated circuit.Such software can be distributed in computer-readable On medium, computer-readable medium may include computer storage medium (or non-transitory medium) and communication media (or temporarily Property medium).As known to a person of ordinary skill in the art, term computer storage medium is included in for storing information (such as Computer readable instructions, data structure, program module or other data) any method or technique in the volatibility implemented and non- Volatibility, removable and nonremovable medium.Computer storage medium include but is not limited to RAM, ROM, EEPROM, flash memory or its His memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage or other Magnetic memory apparatus or any other medium that can be used for storing desired information and can be accessed by a computer.This Outside, known to a person of ordinary skill in the art to be, communication media generally comprises computer readable instructions, data structure, program mould Other data in the modulated data signal of block or such as carrier wave or other transmission mechanisms etc, and may include any information Delivery media.

Claims (9)

1. a kind of virtual machine exchange visit method characterized by comprising
Virtual switch receives second virtual machine of first virtual machine into the second virtual network in the first virtual network and sends Message;
The virtual switch determines the transmission path of the message according to preset data packet flow table, and the message is sent To second virtual machine.
2. virtual machine exchange visit method according to claim 1, which is characterized in that the virtual switch is according to preset number According to packet stream table, the step of determining the transmission path of the message, the message is sent to second virtual machine, includes:
According to the data packet flow table, the first mark of the first virtual network where first virtual machine is added for the message Label;
For the virtual switch according to preset mapping table, network where determining second virtual machine is second virtual net Network;
The virtual switch removes first label of the message, addition described second according to the data packet flow table Second label of network;
Message added with second label is forwarded to second virtual machine by the virtual switch.
3. virtual machine exchange visit method according to claim 1, which is characterized in that virtual switch receives the first virtual network In second virtual machine of first virtual machine into the second virtual network send message the step of before, further includes:
Configuration includes the data packet flow table of forward rule.
4. a kind of virtual machine exchange visit device characterized by comprising
Data reception module, it is second virtual into the second virtual network for receiving the first virtual machine in the first virtual network The message that machine is sent;
Data forwarding module sends out the message for determining the transmission path of the message according to preset data packet flow table It send to second virtual machine.
5. virtual machine exchange visit device according to claim 4, which is characterized in that the data forwarding module includes:
Label adding unit adds the where first virtual machine for the message for according to the data packet flow table First label of one virtual network;
Lookup unit, for according to preset mapping table, network where determining second virtual machine to be second virtual net Network;
Label replaces unit, for according to the data packet flow table, removing first label of the message, adds described the Second label of two networks;
Data forwarding unit, for the message for being added with second label to be forwarded to second virtual machine.
6. virtual machine exchange visit device according to claim 4, which is characterized in that the device further include:
Configuration module, for configuring the data packet flow table comprising forward rule.
7. a kind of virtual machine exchange visit system, comprising the first virtual machine for being located at the first virtual network and position in the second virtual network The second virtual machine, which is characterized in that the system further includes virtual switch, and first virtual machine is virtual by described first Network is connect with the virtual switch, and second virtual machine is connected by second virtual network and the virtual switch It connects;
The virtual switch, for receiving second void of the first virtual machine in the first virtual network into the second virtual network The message that quasi- machine is sent determines the transmission path of the message according to preset data packet flow table, and the message is sent to institute State the second virtual machine.
8. virtual machine exchange visit system according to claim 7, which is characterized in that
The virtual switch, is specifically used for according to the data packet flow table, adds the first virtual machine institute for the message The first label of the first virtual network determine that network where second virtual machine is described according to preset mapping table Second virtual network removes first label of the message according to the data packet flow table, adds second network Message added with second label is forwarded to second virtual machine by the second label.
9. virtual machine exchange visit system according to claim 7, which is characterized in that
The virtual switch is also used to configure the data packet flow table comprising forward rule.
CN201810913012.1A 2018-08-13 2018-08-13 A kind of virtual machine exchange visit methods, devices and systems Pending CN108989176A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810913012.1A CN108989176A (en) 2018-08-13 2018-08-13 A kind of virtual machine exchange visit methods, devices and systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810913012.1A CN108989176A (en) 2018-08-13 2018-08-13 A kind of virtual machine exchange visit methods, devices and systems

Publications (1)

Publication Number Publication Date
CN108989176A true CN108989176A (en) 2018-12-11

Family

ID=64552657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810913012.1A Pending CN108989176A (en) 2018-08-13 2018-08-13 A kind of virtual machine exchange visit methods, devices and systems

Country Status (1)

Country Link
CN (1) CN108989176A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824609A (en) * 2021-08-16 2021-12-21 紫光云(南京)数字技术有限公司 SDN controller radar detection method
CN113904986A (en) * 2021-09-29 2022-01-07 烽火通信科技股份有限公司 Two-layer intercommunication method and equipment for vxlan virtual network and vlan network

Citations (7)

* 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
CN104869058A (en) * 2015-06-04 2015-08-26 北京京东尚科信息技术有限公司 Method and device for transmitting data message
CN106130900A (en) * 2016-08-05 2016-11-16 浪潮(北京)电子信息产业有限公司 A kind of virtualization network distribution type route implementation method and system
CN106209557A (en) * 2016-06-30 2016-12-07 杭州迪普科技有限公司 Message forwarding method and device
US20160357591A1 (en) * 2013-03-18 2016-12-08 International Business Machines Corporation Scalable policy management in an edge virtual bridging (evb) environment
CN106789667A (en) * 2016-11-21 2017-05-31 华为技术有限公司 A kind of data forwarding method, relevant device and system
CN108471383A (en) * 2018-02-08 2018-08-31 华为技术有限公司 Message forwarding method, device and system

Patent Citations (7)

* 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
US20160357591A1 (en) * 2013-03-18 2016-12-08 International Business Machines Corporation Scalable policy management in an edge virtual bridging (evb) environment
CN104869058A (en) * 2015-06-04 2015-08-26 北京京东尚科信息技术有限公司 Method and device for transmitting data message
CN106209557A (en) * 2016-06-30 2016-12-07 杭州迪普科技有限公司 Message forwarding method and device
CN106130900A (en) * 2016-08-05 2016-11-16 浪潮(北京)电子信息产业有限公司 A kind of virtualization network distribution type route implementation method and system
CN106789667A (en) * 2016-11-21 2017-05-31 华为技术有限公司 A kind of data forwarding method, relevant device and system
CN108471383A (en) * 2018-02-08 2018-08-31 华为技术有限公司 Message forwarding method, device and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824609A (en) * 2021-08-16 2021-12-21 紫光云(南京)数字技术有限公司 SDN controller radar detection method
CN113904986A (en) * 2021-09-29 2022-01-07 烽火通信科技股份有限公司 Two-layer intercommunication method and equipment for vxlan virtual network and vlan network
CN113904986B (en) * 2021-09-29 2022-11-18 烽火通信科技股份有限公司 Two-layer intercommunication method and equipment for vxlan virtual network and vlan network

Similar Documents

Publication Publication Date Title
CN110535766B (en) Method and equipment for generating route
CN103026660B (en) Network policy configuration method, management equipment and network management centre device
CN108243106B (en) Method for controlling network slicing, forwarding device, control device and communication system
US11374899B2 (en) Managing network connectivity between cloud computing service endpoints and virtual machines
EP3175590B1 (en) Bridging clouds
CN105323136A (en) Information processing method and device
EP3451592B1 (en) Packet transmission between vxlan domains
CN103997414A (en) Configuration information generation method and network control unit
US20140204805A1 (en) Multi-Node Virtual Switching System
US10050906B2 (en) Virtual node having separate control and data planes
US20150281072A1 (en) Link aggregation group (lag) support on a software-defined network (sdn)
CN108965094A (en) A kind of virtual machine network connection method and device
CN105282003B (en) Establish the method and system and tunnel control device and virtual switch in tunnel
CN112532445B (en) Network slicing method for network equipment without virtualization capability, system and storage medium thereof
CN112422679A (en) Communication method and device
CN108173763B (en) Message processing method, device and system
CN109218161A (en) A kind of method and device of virtual switch forwarding data
CN108989176A (en) A kind of virtual machine exchange visit methods, devices and systems
CN112583655B (en) Data transmission method and device, electronic equipment and readable storage medium
CN109151094A (en) Retransmission method, device and the computer equipment of message between a kind of different sub-network
CN104734930B (en) Method and device for realizing access of Virtual Local Area Network (VLAN) to Variable Frequency (VF) network and Fiber Channel Frequency (FCF)
CN112887117B (en) Method, equipment and medium for accessing and configuring network slice
CN115209250A (en) Method and device for OLT to manage edge ONT through multiple channels
CN103986660B (en) The device of loading micro code and the method for loading micro code
CN110036610B (en) Method and switch for route management in software defined network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181211