Virtual machine data exchange method, apparatus and system

A data exchange and virtual machine technology, applied in the field of communication, can solve the problems of insufficient data exchange efficiency, affecting communication, consuming peripheral components and expanding interfaces, etc.

Active Publication Date: 2014-03-05
HUAWEI TECH CO LTD
View PDF4 Cites 36 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] During the research and practice of the prior art, the inventors of the present invention have found that although the existing hard switch solution has improved performance and flexibility compared with the soft switch, its data exchange efficiency is not as good as that of the soft switch. Not high enough, for example, all virtual machine communication needs to go through the network card first, and whether it communicates with the unit in the host or the device outside the host will consume the bus bandwidth of the peripheral original expansion interface (PCI, Pedpherd Component Interconnect), etc., and , in this scheme, the communication between virtual machines in the host will also affect the communication between other virtual machines in the host and devices outside the host

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Virtual machine data exchange method, apparatus and system
  • Virtual machine data exchange method, apparatus and system
  • Virtual machine data exchange method, apparatus and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0105] The embodiment of the present invention is described from the perspective of a virtual machine in a physical host sending data, and the physical host in the embodiment of the present invention may be a physical server or the like.

[0106] A data exchange method for a virtual machine, comprising: obtaining data that needs to be sent to a destination node in a physical host, and determining whether the destination node is a node within the physical host or outside the physical host according to the MAC address of the destination node carried in the data The node, if it is a node in the physical host, then determine the destination virtual network card interface, and send the data to the corresponding destination virtual machine through the destination virtual network card corresponding to the destination virtual network card interface; if it is a node outside the physical host, then Determine the physical network card interface (out_port), and send the data to the outside...

Embodiment 2

[0133] Embodiment 1 mainly describes the sending process in the data exchange method of the virtual machine. In addition, the data exchange method of the virtual machine may also include the receiving process. In other words, the virtual machine standing in the same physical host receives the data outside the host. Described from the perspective; that is, on the basis of Embodiment 1, the data exchange method of the virtual machine may also include: receiving data from outside the physical host through the physical network card, and according to the destination node carried in the data from outside the physical host The MAC address determines the corresponding destination virtual network card interface, and sends the data from outside the physical host to the corresponding destination virtual machine through the destination virtual network card corresponding to the destination virtual network card interface.

[0134] Such as figure 2 As shown, the specific process can be as f...

Embodiment 3

[0148] In this embodiment, a physical host will be used as an example for detailed description.

[0149] see Figure 3a ,Should Figure 3a It is a schematic diagram of a scenario of a virtual machine data exchange method provided by an embodiment of the present invention.

[0150] The scenario of the virtual machine data exchange method provided by the embodiment of the present invention includes multiple physical hosts, where each physical host includes a hardware layer, a kernel space above the hardware layer, and a user space above the kernel space, wherein The user space includes one or more virtual machines, and the hardware layer includes network connection devices (that is, physical network cards), processors, and memory (not shown in the figure), etc. The kernel space can be understood as the system management layer, so The above-mentioned kernel space includes a back-end virtual network card (not shown in the figure) and a switch module; and, it should be understood...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment provides a virtual machine data exchange method comprising steps of: receiving data which is the data a physical host needs to send to a destination node; identifying whether the destination node is the node inside the physical host or outside the physical host based on the data received, wherein if the node is identified as inside the physical host, then a destination virtual network card interface is identified and the next step is sending the data to a corresponding destination virtual machine via a virtual network card corresponding to the destination virtual network card interface, wherein if the node is identified as outside the physical host, then a physical network card interface is identified and the next step is sending the data to the outside of the physical host via a physical network card corresponding to a physical network card interface. The embodiment of the invention also provides corresponding apparatus and systems.

Description

technical field [0001] The present invention relates to the technical field of communications, and in particular to a data exchange method, device and system for a virtual machine. Background technique [0002] After the emergence of virtualization technology, multiple virtual machines (VM, Virtual Machine) coexist inside a host (Host, hereinafter also referred to as a physical host), and the virtual machine appears to the user as a normal physical machine. In addition to the need for data exchange between machines, there is also a need for communication between the virtual machine and the external network. [0003] Currently, there are two mainstream virtual machine data exchange solutions: soft switch and hard switch. Among them, software switch refers to using software to imitate the behavior of a physical switch, which is relatively cumbersome to implement; The switch implements a switching logic behavior, that is to say, the external data exchange of the virtual machin...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/741G06F9/455H04L45/74H04L45/586
CPCH04L12/4625H04L49/70H04L45/74H04L45/586H04L45/745
Inventor 秦传瑜逯云松
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products