CN109714238A - A kind of method and apparatus for realizing inter-virtual machine communication - Google Patents
A kind of method and apparatus for realizing inter-virtual machine communication Download PDFInfo
- Publication number
- CN109714238A CN109714238A CN201811513715.1A CN201811513715A CN109714238A CN 109714238 A CN109714238 A CN 109714238A CN 201811513715 A CN201811513715 A CN 201811513715A CN 109714238 A CN109714238 A CN 109714238A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- message
- bridge
- virtual
- information
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The purpose of the application is to provide a kind of method and apparatus for realizing inter-virtual machine communication, the optimization message information that the application is sent by the agency's capture primary proxy being located on same host with virtual machine to the virtual machine;Based on the optimization message information creation for connecting the route-bridge of the first virtual LAN interface bridge and the second virtual LAN interface bridge, wherein the virtual machine includes the first virtual machine and the second virtual machine;Determine the address translation rule and water conservancy diversion rule that flow is forwarded by the route-bridge, wherein the flow includes message and message feedback information;The communication between the virtual machine is completed according to the address translation rule and water conservancy diversion rule.The probability of error can be reduced, improves network reliability, while not interfering traditional routing, the access that traditional equipment can be convenient.In addition, having lower delay preferentially to ensure that customer service is unaffected in any case independent of database.
Description
Technical field
This application involves computer field more particularly to a kind of method and apparatus for realizing inter-virtual machine communication.
Background technique
With the fast development of Internet technology and user is to the ever-increasing demand of internet, establishes with various
The bigger data center of various kinds ability is with meet demand.Wherein, the development of virtualization technology allows in the data center
It realizes a large amount of virtual machines (Virtual Machine, VM), these virtual machines substantially can be used as physical machine operation, and execute
The various functions of such as Web server or database server.Belong to two virtual machines (VM) on heterogeneous networks to be belonging respectively to not
It, can not direct communication when same network segment.Traditional direct flow being achieved in that between two virtual machines has to pass through intermediate cloud
Being routed can just complete, but when cloud routing connects a large amount of virtual machines, has big flow above, cloud routing will become
Bottleneck, when cloud routing relevant link shake, the virtual machine network that will lead to all connections is abnormal, and routing forwarding also increases
Delay.In the prior art, OpenStack mode can be used, but which path, logic complexity cause error rate high, Mei Geji
A virtual router will be realized to each three-layer network on operator node, increase many loads, regardless of whether there is communication to need
Can all strictly all rules, virtual flow-line be established by asking, and increase waste, in addition, due to do not have concentrate routing cause virtual machine with
The communication of non-cloud platform resource, once distributed routing goes wrong, message can not be sent to concentrated route, and reducing network can
With property the problems such as.
Summary of the invention
The purpose of the application is to provide a kind of method and apparatus for realizing inter-virtual machine communication, solves existing skill
Being forwarded in art using routing leads to increase delay, and the logic complexity in path causes error rate height and network availability low
The problems such as.
According to the one aspect of the application, a kind of method for realizing inter-virtual machine communication is provided, this method comprises:
It is located at the optimization message information that agency's capture primary proxy on same host is sent to the virtual machine with virtual machine;
Based on optimization message information creation for connecting the first virtual LAN interface bridge and the second virtual local area
The route-bridge of network interface bridge, wherein the virtual machine includes the first virtual machine and the second virtual machine;
Determine the address translation rule and water conservancy diversion rule that flow is forwarded by the route-bridge, wherein the flow
Including message and message feedback information;
The communication between the virtual machine is completed according to the address translation rule and water conservancy diversion rule.
Further, the address translation rule includes:
When first virtual machine to second virtual machine send message when, by the target MAC (Media Access Control) address of the message by
The MAC Address of the corresponding routing gateway of first virtual machine is revised as the MAC Address of second virtual machine;
When second virtual machine sends message feedback information to first virtual machine, by the message feedback information
Target MAC (Media Access Control) address the MAC of first virtual machine is revised as by the MAC Address of the corresponding routing gateway of second virtual machine
Address.
Further, the water conservancy diversion rule includes:
When first virtual machine sends message to second virtual machine, by the first virtual local area network interface net
Bridge forwarded by the route-bridge after to the second virtual LAN interface bridge;
When second virtual machine sends message feedback information to first virtual machine, by second virtual local area
Network interface bridge forwarded by the route-bridge after to the first virtual LAN interface bridge.
Further, the optimization message information is determined by the primary proxy according to the routing iinformation of the first message.
Further, the optimization that agency's capture primary proxy on same host is sent to the virtual machine is located at virtual machine
Before message information, comprising:
The routing iinformation of first message is captured by the primary proxy, wherein the primary proxy and first report
The routing that text passes through is located on same host, and the routing iinformation of first message is recorded in connection tracking table by the routing
In.
Further, the routing iinformation of first message includes: the transmission routing iinformation of first message and described
The feedback routing iinformation of first message,
Wherein, the transmission routing iinformation of first message includes being sent first message by first virtual machine
To the first virtual local area network interface, it is interfaced to after the gateway forwards of the routing from second virtual LAN described
The channel status information of second virtual machine;
The feedback routing iinformation of first message includes that will to receive first message by second virtual machine true
Fixed feedback information is sent to the second virtual local area network interface, virtual from described first after the gateway forwards of the routing
Lan interfaces to first virtual machine channel status information.
Further, based on optimization message information creation for connecting the first virtual LAN interface bridge and second
After the route-bridge of virtual LAN interface bridge, comprising:
The flow is identified on the virtual LAN interface bridge of transmitted traffic, and the flow is guided to the road
By bridge;
The flow is forwarded to the void for receiving flow by the matching that MAC Address and port are carried out by the route-bridge
On quasi- lan interfaces bridge.
Further, the optimization message information is determined by the primary proxy according to the routing iinformation of the first message, comprising:
The primary proxy is believed based on the routing iinformation of first message and preset trigger condition to determining optimization message
Breath.
Further, the trigger condition includes any one of following:
The feedback for sending channel status information and first message in routing iinformation of first message routes letter
Channel status information in breath is intercommunication state;
Flow between first virtual machine and second virtual machine degrades.
Further, based on optimization message information creation for connecting the first virtual LAN interface bridge and second
Before the route-bridge of virtual LAN interface bridge, comprising:
Routing iinformation of the primary proxy based on first message sends to the virtual machine and checks command information;
It is located at the agency on same host with the virtual machine and captures the inspection command information, and is referred to according to the inspection
Information is enabled to feed back inspection result to the primary proxy;
The primary proxy sends optimization message letter according to preset protocol format to the virtual machine according to the inspection result
Breath.
On the other hand according to the application, a kind of computer-readable medium is additionally provided, is stored thereon with computer-readable
Instruction, the computer-readable instruction can be executed by processor to realize a kind of aforementioned side for realizing inter-virtual machine communication
Method.
According to the application another aspect, a kind of equipment for realizing inter-virtual machine communication is additionally provided, wherein described
Equipment includes:
One or more processors;And
It is stored with the memory of computer-readable instruction, the computer-readable instruction makes the processor when executed
Execute the operation of the aforementioned method for realizing inter-virtual machine communication.
Compared with prior art, the application captures primary proxy to described by the agency that is located on same host with virtual machine
The optimization message information that virtual machine is sent;Based on optimization message information creation for connecting the first virtual local area network interface net
The route-bridge of bridge and the second virtual LAN interface bridge, wherein the virtual machine includes that the first virtual machine and second are virtual
Machine;Determine the address translation rule and water conservancy diversion rule that flow is forwarded by the route-bridge, wherein the flow includes report
Text and message feedback information;The communication between the virtual machine is completed according to the address translation rule and water conservancy diversion rule.Rule and
It is few to configure opposite existing way, so as to reduce the probability of error;When the rule failure of distribution routing or generation problem,
Flow can be downgraded to legacy paths, it is available guarantee network, while not interfering traditional routing, what traditional equipment can be convenient connects
Enter.In addition, having lower delay preferentially to ensure that customer service is unaffected in any case independent of database.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
A kind of method flow for realizing inter-virtual machine communication that the one aspect that Fig. 1 shows the application provides is illustrated
Figure;
Fig. 2 shows in one embodiment of the application for realizing the schematic diagram in the path of inter-virtual machine communication.
The same or similar appended drawing reference represents the same or similar component in attached drawing.
Specific embodiment
The application is described in further detail with reference to the accompanying drawing.
In a typical configuration of this application, terminal, the equipment of service network and trusted party include one or more
Processor (CPU), input/output interface, network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or
Any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, computer
Readable medium does not include non-temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
A kind of method flow for realizing inter-virtual machine communication that the one aspect that Fig. 1 shows the application provides is illustrated
Figure, this method comprises: step S11~step S14,
In step s 11, it is located at what agency's capture primary proxy on same host was sent to the virtual machine with virtual machine
Optimize message information;Here, primary proxy Agent is router network agency, virtual machine can be sent by control command, be located at
Network agent (computer node network agency) where virtual machine in physical machine captures the control command, calculate node network generation
Return information is managed to act on behalf of to router network.In SDN network, cloud routing is distributed routing.Primary proxy is sent to virtual machine
The agency being located on same host on optimization message information, with virtual machine captures the optimization message information.
Then, in step s 12, based on optimization message information creation for connecting the first virtual local area network interface net
The route-bridge of bridge and the second virtual LAN interface bridge, wherein the virtual machine includes that the first virtual machine and second are virtual
Machine;Here, creating route-bridge, the routing after the agency being located on same host with virtual machine captures optimization message information
Bridge connects the first virtual machine lan interfaces bridge and the second virtual LAN interface bridge, wherein the first virtual LAN
Interface bridge (VLAN1 bridge) is the virtual LAN interface bridge of the first virtual machine, the second virtual LAN interface bridge
(VLAN2 bridge) is the virtual LAN interface bridge of the second virtual machine.
In step s 13, the address translation rule and water conservancy diversion rule that flow is forwarded by the route-bridge are determined,
In, the flow includes message and message feedback information;Here, determining the direct flow warp of virtual machine after creation route-bridge
Address translation rule and water conservancy diversion rule when route-bridge is forwarded, wherein when the first virtual machine is sent to the second virtual machine
When message, flow is message, when the second virtual machine sends message feedback information to the first virtual machine according to the message received,
Flow is message feedback information, and address translation rule is used to modify the virtual machine of transmitted traffic and receives the ground of the virtual machine of flow
Location (such as MAC Address) is forwarded flow by established route-bridge to facilitate, and water conservancy diversion rule is for introducing flow
Route-bridge realizes transmission of the flow between virtual machine by route-bridge.
In step S14, the communication between the virtual machine is completed according to the address translation rule and water conservancy diversion rule.?
This, sets up the packet route between virtual machine according to determining address translation rule and water conservancy diversion rule, from the first virtual machine to
The message that second virtual machine is sent reaches the second virtual machine according to the packet route, avoids passing through cloud routing and is forwarded, and
It is few with rule and configuration, reduce the probability of error.
Specifically, the address translation rule includes: when first virtual machine sends message to second virtual machine
When, the target MAC (Media Access Control) address of the message is revised as described by the MAC Address of the corresponding routing gateway of first virtual machine
The MAC Address of two virtual machines;When second virtual machine sends message feedback information to first virtual machine, by the report
The target MAC (Media Access Control) address of literary feedback information is revised as described first by the MAC Address of the corresponding routing gateway of second virtual machine
The MAC Address of virtual machine.Here, issuing address when the first virtual machine (VM1) sends message to the second virtual machine (VM2) and turning
Rule is changed to modify the target MAC (Media Access Control) address of VM1 toward the flow of VM2 by the MAC Address of the corresponding cloud routing gateway of the first virtual machine
For the MAC Address of virtual machine VM2;When the feedback information of the second virtual machine VM2 returned packet, address translation rule is past by VM2
The target MAC (Media Access Control) address of the flow of VM1 is revised as virtual machine VM1's by the MAC Address of the corresponding cloud routing gateway of the second virtual machine
MAC Address, for example, the first virtual machine is located on the network of 10.0.1.0/24, the second virtual machine is located at the net of 10.0.2.0/24
On network, when the first virtual machine sends message to the second virtual machine, the legacy paths walked are by cloud routing forwarding, and cloud is routed and wrapped
Include gateway 10.0.1.1 and gateway 10.0.2.1, wherein gateway 10.0.1.1 is that the first virtual machine is reported to the transmission of the second virtual machine
Target MAC (Media Access Control) address when literary, gateway 10.0.2.1 be the second virtual machine to the first virtual machine return information when purpose MAC
Location, then after setting up route-bridge, when the first virtual machine sends subsequent packet to the second virtual machine, needing will be virtual from first
Machine is revised as by gateway 10.0.1.1 the MAC Address of the second virtual machine to the target MAC (Media Access Control) address of the flow of the second virtual machine, together
Sample, in the second virtual machine return information, need by from the second virtual machine to the target MAC (Media Access Control) address of the flow of the first virtual machine by
Gateway 10.0.2.1 is revised as the MAC Address of the first virtual machine.
Specifically, the water conservancy diversion rule include: when first virtual machine to second virtual machine send message when, by
The first virtual LAN interface bridge forwarded by the route-bridge after to the second virtual LAN interface bridge;
When second virtual machine sends message feedback information to first virtual machine, by the second virtual local area network interface net
Bridge forwarded by the route-bridge after to the first virtual LAN interface bridge.Here, when the first virtual machine VM1 is to the
When two virtual machine VM2 send message, need the message flow passing through route-bridge from VLAN1 bridge water conservancy diversion to route-bridge
It is forwarded to VLAN2 bridge.When the second virtual machine VM2 is to the first virtual machine VM1 return information, by the flow of the return information from
VLAN2 bridge water conservancy diversion is forwarded to VLAN1 bridge to route-bridge, by route-bridge.
In one embodiment of the application, the optimization message information is by the primary proxy according to the routing iinformation of the first message
It determines.Specifically: the routing iinformation of first message is captured by the primary proxy, wherein the primary proxy and described the
The routing that one message passes through is located on same host, and the routing iinformation of first message is recorded in connection tracking by the routing
In table.Here, first message that the first message is sent when being communicated between the virtual machine in heterogeneous networks, virtually
Because the MAC Address of other side's virtual machine can not be found when machine sends the first message, need to be forwarded by cloud routing, the first message
It is routed when being forwarded by cloud routing, the cloud routing passed through with the first message is located at the primary proxy on same host
(Agent) routing procedure is captured, routing iinformation is obtained.The routing iinformation of first message is recorded in connection tracking table by cloud routing
In.
In one embodiment of the application, the routing iinformation of first message includes: the transmission routing of first message
The feedback routing iinformation of information and first message, wherein the transmission routing iinformation of first message includes by described
First message is sent to the first virtual local area network interface by one virtual machine, from institute after the gateway forwards of the routing
State the channel status information that the second virtual LAN is interfaced to second virtual machine;The feedback routing iinformation of first message
Including being sent to second virtual local area for the feedback information that first message determines is received by second virtual machine
Network interface is interfaced to the access shape of first virtual machine after the gateway forwards of the routing from first virtual LAN
State information.Here, virtual machine 2 is located in physical machine 2 as shown in Fig. 2, virtual machine 1 is located in physical machine 1, cloud routing is located at object
On reason machine 3, the virtual machine 1 positioned at network 10.0.1.11/24 sends message to the virtual machine 2 positioned at network 10.0.2.12/24
When, the path that first message is walked is successively to pass through VLAN1 bridge, on vlan sub-interface to physical machine 1 from Microsoft Loopback Adapter
One physical network card reaches cloud road by the third physical network card in physical machine 3 to VLAN1 sub-interface, VLAN bridge, Microsoft Loopback Adapter
By upper gateway 10.0.1.1, is forwarded by the gateway 10.0.2.1 that cloud routes, successively pass through virtual machine network interface card, VLAN2 net
Bridge, vlan sub-interface to third physical network card reach the Physical Network in the physical machine 2 on virtual machine 2 by third physical network card
Block (the second physical network card), arrives virtual machine 2 again after VLAN2 sub-interface, VLAN bridge reach Microsoft Loopback Adapter, routed by cloud
This path being forwarded is recorded in connection tracking table;Likewise, when from the information that virtual machine 2 returns to virtual machine 1,
Cloud routing forwarding is also passed through, the path of return is also recorded in connection tracking table.Primary proxy judgement is captured from virtual machine 1
Whether this path to the flow of virtual machine 2 Jing Guo cloud routing forwarding is channel status and returns to virtual machine 1 from virtual machine 2
This path Jing Guo cloud routing forwarding of flow whether be channel status, can be under virtual machine when being all channel status
Hair subsequent packet walks the instruction of path optimizing (the second packet route), establishes the path optimizing that subsequent packet is walked, wherein optimization road
Diameter is by establishing the true path of the address translation rule of route-bridge and determination, water conservancy diversion rule.
In one embodiment of the application, the optimization message information creation that is sent to virtual machine based on primary proxy is for connecting the
After the route-bridge of one virtual LAN interface bridge and the second virtual LAN interface bridge, in the virtual office of transmitted traffic
The flow is identified on the network interface bridge of domain, and the flow is guided to the route-bridge;By the route-bridge into
The flow is forwarded on the virtual LAN interface bridge for receiving flow by the matching of row MAC Address and bridge interface.?
This, when VM1 sends message to VM2, VM1 is the virtual machine of transmitted traffic, then VLAN1 bridge is the virtual local area of transmitted traffic
Network interface bridge, VM2 are the virtual machine for receiving flow, then VLAN2 bridge is the virtual LAN interface bridge for receiving flow,
After recognizing the flow on VLAN1 bridge, by the flow from VLAN1 bridge water conservancy diversion into route-bridge, route-bridge passes through MAC
The flow is forwarded to VLAN2 bridge by address and port match.Likewise, when VM2 is to VM1 return information, the VLAN2 of VM2
Bridge is the virtual LAN interface bridge of transmitted traffic, and return path is the MAC Address and bridge interface by route-bridge
Matching is forwarded on VLAN1 bridge.
In one embodiment of the application, routing iinformation and preset triggering item of the primary proxy based on first message
Part optimizes message information to determining.Wherein, the trigger condition includes any one of following: the transmission routing letter of first message
Channel status information in the feedback routing iinformation of channel status information and first message in breath is intercommunication state;Institute
The flow stated between the first virtual machine and second virtual machine degrades.
Here, the path that the first message is passed by is first path, routing iinformation is determined according to first path, and then analyzing should
Routing iinformation determines whether first path is normal, if normal, meets preset trigger condition, the message of triggering following walks second
Packet route, wherein the second packet route be not by the path of router, but by primary proxy it is associated to the first message
Virtual machine optimizes message information, creates route-bridge, is forwarded by route-bridge, to carry out first virtual machine
With the communication between the second virtual machine.The information for obtaining message in embodiment described herein in a manner of bypass, does not depend on
In database, to preferentially guarantee that customer service is unaffected under any circumstance, wherein the mode of bypass is to be supervised by agency
The mode listened.Trigger condition include thes case where that the flow between first virtual machine and the second virtual machine degrades, when
After flow degradation occurs, the walked path of message is reduced to away first path, if the flow between the first virtual machine and the second virtual machine
It is still active state, then will triggers again message and walk path optimizing.And then meet and only active connection is optimized, it does not do non-essential
Optimization movement, and only flow can caused to degrade without interrupting the communication link between virtual machine under worst network condition.It needs
It is noted that when the channel status information of first message be obstructed state when, virtual machine shutdown or carry out secure group every
From.
In one embodiment of the application, which comprises step S10, the primary proxy is based on first message
Routing iinformation sends to the virtual machine and checks command information;It is located at described in the capture of the agency on same host with the virtual machine
It checks command information, and inspection result is fed back to the primary proxy according to the inspection command information;The primary proxy is according to institute
It states inspection result and sends optimization message information according to preset protocol format to the virtual machine.Here, the primary proxy in cloud routing
It sends and checks instruction to calculate node, to check whether each calculate node is normal, whether the network agent in calculate node is deposited
Living, the network agent in calculate node captures inspection instruction by way of intercepting and capturing, checks whether that normal rear reply checks
As a result, primary proxy sends optimization message information to virtual machine according to preset protocol format when inspection result is normal.Wherein,
Preset protocol format is based on IP agreement, and it is preset protocol format that the network agent in calculate node, which is monitored into calculate node,
Whole flows, the network agent on router monitors the whole flows for entering that router is preset protocol format, to route
Network agent on device only needs to send the message of preset protocol format to the virtual machine for needing to optimize flow, and message is in physical machine
Control instruction is passed through preset protocol format calculate node where not knowing virtual machine to reach by upper intercepted and parsing
Under the premise of be sent to correct calculate node, and this correctness is ensured by the operation of network bottom layer, therefore does not have number
According to the risks such as library information errors, out-of-date.Wherein, calculate node is the host and the where the first virtual machine in distributed network
Host where two virtual machines.
In one embodiment of the application, with continued reference to Fig. 2, virtual machine 1 sends the first message to virtual machine 2, first passes through
VLAN1 is dealt into gateway 10.0.1.1, and the first message reaches virtual machine 2 by cloud routing forwarding to VLAN2, and virtual machine 2 is logical
It crosses same paths and replys message, the connection tracking table in cloud routing records this connection.Network agent (main generation in cloud routing
Reason) inspection instruction is sent to the virtual machine (virtual machine 1 and virtual machine 2) in calculate node, to check the network in calculate node
Whether agency's (network agent 1 and network agent 2) survives, and when survival, primary proxy issues optimization to virtual machine 1 and virtual machine 2
Message information, network agent 1 and network agent 2 obtain the instruction of the optimization message information by intercepting and capturing mode, thus virtual machine 1
Network agent 1 in the calculate node at place will create route-bridge, connect VLAN1 bridge and VLAN2 bridge, and issue address
The target MAC (Media Access Control) address of virtual machine 1 toward the flow of VM2 is revised as virtual machine 2 by the MAC of cloud routing 10.0.1.1 by transformation rule
MAC Address issues water conservancy diversion rule for virtual machine 1 and is sent to the flow of virtual machine 2 from VLAN1 bridge water conservancy diversion to route-bridge, then turns
It is dealt into VLAN2 bridge.Network agent 2 equally in the calculate node where virtual machine 2 creates route-bridge and base area
Location transformation rule and water conservancy diversion rule, it is established that the path of the flow of virtual machine 1 is sent to from virtual machine 2.The road that subsequent packet is walked
Diameter is the path being forwarded above by route-bridge.
By the method described herein for realizing inter-virtual machine communication, rule and configuration can reduce the general of error less
Rate, when the rule failure of distribution routing or generation problem, flow can be downgraded to legacy paths, guarantee that network is available,
Traditional routing, the access that traditional equipment can be convenient are not interfered simultaneously.In addition, there is lower delay, independent of database,
It preferentially ensure that customer service is unaffected in any case.
Embodiment described herein is based on SDN network, wherein SDN network is software defined network (Software
Defined Network) it is a kind of novel transmission via net framework, by the way that network equipment control plane is solved with data surface
Coupling, to realize the flexible control to network flow.
In addition, it is stored thereon with computer-readable instruction the embodiment of the present application also provides a kind of computer-readable medium,
The computer-readable instruction can be executed by processor to realize the aforementioned method for realizing inter-virtual machine communication.
According to the application another aspect, a kind of equipment for realizing inter-virtual machine communication is additionally provided, wherein described
Equipment includes:
One or more processors;And
It is stored with the memory of computer-readable instruction, the computer-readable instruction makes the processor when executed
Execute the operation of aforementioned the method.
For example, computer-readable instruction makes one or more of processors when executed:
It is located at the optimization message information that agency's capture primary proxy on same host is sent to the virtual machine with virtual machine;
Based on optimization message information creation for connecting the first virtual LAN interface bridge and the second virtual local area
The route-bridge of network interface bridge, wherein the virtual machine includes the first virtual machine and the second virtual machine;
Determine the address translation rule and water conservancy diversion rule that flow is forwarded by the route-bridge, wherein the flow
Including message and message feedback information;
The communication between the virtual machine is completed according to the address translation rule and water conservancy diversion rule.
Obviously, those skilled in the art can carry out various modification and variations without departing from the essence of the application to the application
Mind and range.In this way, if these modifications and variations of the application belong to the range of the claim of this application and its equivalent technologies
Within, then the application is also intended to include these modifications and variations.
It should be noted that the application can be carried out in the assembly of software and/or software and hardware, for example, can adopt
With specific integrated circuit (ASIC), general purpose computer or any other realized similar to hardware device.In one embodiment
In, the software program of the application can be executed to implement the above steps or functions by processor.Similarly, the application
Software program (including relevant data structure) can be stored in computer readable recording medium, for example, RAM memory,
Magnetic or optical driver or floppy disc and similar devices.In addition, hardware can be used to realize in some steps or function of the application, example
Such as, as the circuit cooperated with processor thereby executing each step or function.
In addition, a part of the application can be applied to computer program product, such as computer program instructions, when its quilt
When computer executes, by the operation of the computer, it can call or provide according to the present processes and/or technical solution.
And the program instruction of the present processes is called, it is possibly stored in fixed or moveable recording medium, and/or pass through
Broadcast or the data flow in other signal-bearing mediums and transmitted, and/or be stored according to described program instruction operation
In the working storage of computer equipment.Here, including a device according to one embodiment of the application, which includes using
Memory in storage computer program instructions and processor for executing program instructions, wherein when the computer program refers to
When enabling by processor execution, method and/or skill of the device operation based on aforementioned multiple embodiments according to the application are triggered
Art scheme.
It is obvious to a person skilled in the art that the application is not limited to the details of above-mentioned exemplary embodiment, Er Qie
In the case where without departing substantially from spirit herein or essential characteristic, the application can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and scope of the present application is by appended power
Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims
Variation is included in the application.Any reference signs in the claims should not be construed as limiting the involved claims.This
Outside, it is clear that one word of " comprising " does not exclude other units or steps, and odd number is not excluded for plural number.That states in device claim is multiple
Unit or device can also be implemented through software or hardware by a unit or device.The first, the second equal words are used to table
Show title, and does not indicate any particular order.
Claims (12)
1. a kind of method for realizing inter-virtual machine communication, wherein the described method includes:
It is located at the optimization message information that agency's capture primary proxy on same host is sent to the virtual machine with virtual machine;
It is connect based on optimization message information creation for connecting the first virtual LAN interface bridge and the second virtual LAN
The route-bridge of mouth bridge, wherein the virtual machine includes the first virtual machine and the second virtual machine;
Determine the address translation rule and water conservancy diversion rule that flow is forwarded by the route-bridge, wherein the flow includes
Message and message feedback information;
The communication between the virtual machine is completed according to the address translation rule and water conservancy diversion rule.
2. according to the method described in claim 1, wherein, the address translation rule includes:
When first virtual machine sends message to second virtual machine, by the target MAC (Media Access Control) address of the message by described
The MAC Address of the corresponding routing gateway of first virtual machine is revised as the MAC Address of second virtual machine;
When second virtual machine sends message feedback information to first virtual machine, by the mesh of the message feedback information
MAC Address the MAC of first virtual machine is revised as by the MAC Address of the corresponding routing gateway of second virtual machine
Location.
3. according to the method described in claim 1, wherein, the water conservancy diversion rule includes:
When first virtual machine sends message to second virtual machine, led to by the first virtual LAN interface bridge
It crosses after the route-bridge forwards to the second virtual LAN interface bridge;
When second virtual machine sends message feedback information to first virtual machine, connect by second virtual LAN
Extremely the first virtual LAN interface bridge after mouthful bridge is forwarded by the route-bridge.
4. according to the method described in claim 1, wherein, the optimization message information is by the primary proxy according to the first message
Routing iinformation determines.
5. according to the method described in claim 3, wherein, being located at the agency on same host with virtual machine and capturing primary proxy to institute
Before the optimization message information for stating virtual machine transmission, comprising:
The routing iinformation of first message is captured by the primary proxy, wherein the primary proxy and first message pass through
The routing crossed is located on same host, and the routing iinformation of first message is recorded in connection tracking table by the routing.
6. according to the method described in claim 5, wherein, the routing iinformation of first message includes: first message
The feedback routing iinformation of routing iinformation and first message is sent,
Wherein, the transmission routing iinformation of first message includes that first message is sent to institute by first virtual machine
The first virtual local area network interface is stated, is interfaced to described second from second virtual LAN after the gateway forwards of the routing
The channel status information of virtual machine;
The feedback routing iinformation of first message includes that will receive first message by second virtual machine to determine
Feedback information is sent to the second virtual local area network interface, from first virtual local area after the gateway forwards of the routing
Network interface to first virtual machine channel status information.
7. according to the method described in claim 1, wherein, being used to connect the first virtual office based on optimization message information creation
After the route-bridge of domain network interface bridge and the second virtual LAN interface bridge, comprising:
The flow is identified on the virtual LAN interface bridge of transmitted traffic, and the flow is guided to the routing network
Bridge;
The flow is forwarded to the void for receiving flow by the matching that MAC Address and bridge interface are carried out by the route-bridge
On quasi- lan interfaces bridge.
8. according to the method described in claim 4, wherein, the optimization message information is by the primary proxy according to the first message
Routing iinformation determines, comprising:
The primary proxy optimizes message information to determining based on the routing iinformation of first message and preset trigger condition.
9. the method according to claim 6 or 8, wherein the trigger condition includes any one of following:
In the feedback routing iinformation for sending the channel status information and first message in routing iinformation of first message
Channel status information be intercommunication state;
Flow between first virtual machine and second virtual machine degrades.
10. according to the method described in claim 4, wherein, being used to connect first based on optimization message information creation virtual
Before the route-bridge of lan interfaces bridge and the second virtual LAN interface bridge, comprising:
Routing iinformation of the primary proxy based on first message sends to the virtual machine and checks command information;
It is located at the agency on same host with the virtual machine and captures the inspection command information, and is instructed and believed according to the inspection
It ceases to the primary proxy and feeds back inspection result;
The primary proxy sends optimization message information according to preset protocol format to the virtual machine according to the inspection result.
11. a kind of equipment for realizing inter-virtual machine communication, wherein the equipment includes:
One or more processors;And
It is stored with the memory of computer-readable instruction, the computer-readable instruction when executed executes the processor
Such as the operation of any one of claims 1 to 10 the method.
12. a kind of computer-readable medium, is stored thereon with computer-readable instruction, the computer-readable instruction can be processed
Device is executed to realize the method as described in any one of claims 1 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811513715.1A CN109714238B (en) | 2018-12-11 | 2018-12-11 | Method and equipment for realizing communication between virtual machines |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811513715.1A CN109714238B (en) | 2018-12-11 | 2018-12-11 | Method and equipment for realizing communication between virtual machines |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109714238A true CN109714238A (en) | 2019-05-03 |
CN109714238B CN109714238B (en) | 2021-08-10 |
Family
ID=66255599
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811513715.1A Active CN109714238B (en) | 2018-12-11 | 2018-12-11 | Method and equipment for realizing communication between virtual machines |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109714238B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111367620A (en) * | 2020-03-06 | 2020-07-03 | 联想(北京)有限公司 | Virtual network implementation method and electronic equipment |
CN112217689A (en) * | 2020-09-11 | 2021-01-12 | 苏州浪潮智能科技有限公司 | Network message tracking method and system based on OpenStack |
CN112468353A (en) * | 2019-09-09 | 2021-03-09 | 华为数字技术(苏州)有限公司 | Network accessibility detection method and device |
CN113612689A (en) * | 2021-08-11 | 2021-11-05 | 优刻得科技股份有限公司 | Message forwarding method, system, device and medium |
CN113709052A (en) * | 2020-05-21 | 2021-11-26 | 中移(苏州)软件技术有限公司 | Network message processing method and device, electronic equipment and storage medium |
CN113709200A (en) * | 2020-05-21 | 2021-11-26 | 阿里巴巴集团控股有限公司 | Method and device for establishing communication connection |
CN114039811A (en) * | 2021-10-18 | 2022-02-11 | 南京邮电大学 | Fast communication method in local area network |
CN115150327A (en) * | 2022-06-29 | 2022-10-04 | 济南浪潮数据技术有限公司 | Interface setting method, device, equipment and medium |
CN115396323A (en) * | 2022-08-12 | 2022-11-25 | 徐州恒佳电子科技有限公司 | Port real-time data flow visualization method and system based on finite-state machine |
CN116599901A (en) * | 2023-06-13 | 2023-08-15 | 苏州浪潮智能科技有限公司 | Service scheduling method, device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101465863A (en) * | 2009-01-14 | 2009-06-24 | 北京航空航天大学 | Method for implementing high-efficiency network I/O in kernel virtual machine circumstance |
US20090296726A1 (en) * | 2008-06-03 | 2009-12-03 | Brocade Communications Systems, Inc. | ACCESS CONTROL LIST MANAGEMENT IN AN FCoE ENVIRONMENT |
CN102075434A (en) * | 2011-01-28 | 2011-05-25 | 华中科技大学 | Communication method in virtual cluster |
CN102801599A (en) * | 2012-07-26 | 2012-11-28 | 华为技术有限公司 | Communication method and system |
CN103780674A (en) * | 2013-11-13 | 2014-05-07 | 南京中兴新软件有限责任公司 | Virtual machine communication method and apparatus based on hardware simulation |
-
2018
- 2018-12-11 CN CN201811513715.1A patent/CN109714238B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090296726A1 (en) * | 2008-06-03 | 2009-12-03 | Brocade Communications Systems, Inc. | ACCESS CONTROL LIST MANAGEMENT IN AN FCoE ENVIRONMENT |
CN101465863A (en) * | 2009-01-14 | 2009-06-24 | 北京航空航天大学 | Method for implementing high-efficiency network I/O in kernel virtual machine circumstance |
CN102075434A (en) * | 2011-01-28 | 2011-05-25 | 华中科技大学 | Communication method in virtual cluster |
CN102801599A (en) * | 2012-07-26 | 2012-11-28 | 华为技术有限公司 | Communication method and system |
CN103780674A (en) * | 2013-11-13 | 2014-05-07 | 南京中兴新软件有限责任公司 | Virtual machine communication method and apparatus based on hardware simulation |
Non-Patent Citations (1)
Title |
---|
温抿雄: "《虚拟机迁移系统网络连接重定向技术》", 《计算机应用研究》 * |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112468353A (en) * | 2019-09-09 | 2021-03-09 | 华为数字技术(苏州)有限公司 | Network accessibility detection method and device |
CN112468353B (en) * | 2019-09-09 | 2023-11-21 | 华为数字技术(苏州)有限公司 | Network reachability detection method and device |
CN111367620A (en) * | 2020-03-06 | 2020-07-03 | 联想(北京)有限公司 | Virtual network implementation method and electronic equipment |
CN111367620B (en) * | 2020-03-06 | 2024-04-23 | 联想(北京)有限公司 | Virtual network implementation method and electronic equipment |
CN113709052A (en) * | 2020-05-21 | 2021-11-26 | 中移(苏州)软件技术有限公司 | Network message processing method and device, electronic equipment and storage medium |
CN113709200A (en) * | 2020-05-21 | 2021-11-26 | 阿里巴巴集团控股有限公司 | Method and device for establishing communication connection |
CN113709200B (en) * | 2020-05-21 | 2023-11-28 | 阿里巴巴集团控股有限公司 | Method and device for establishing communication connection |
CN112217689B (en) * | 2020-09-11 | 2022-05-31 | 苏州浪潮智能科技有限公司 | Network message tracking method and system based on OpenStack |
CN112217689A (en) * | 2020-09-11 | 2021-01-12 | 苏州浪潮智能科技有限公司 | Network message tracking method and system based on OpenStack |
CN113612689A (en) * | 2021-08-11 | 2021-11-05 | 优刻得科技股份有限公司 | Message forwarding method, system, device and medium |
CN114039811A (en) * | 2021-10-18 | 2022-02-11 | 南京邮电大学 | Fast communication method in local area network |
CN114039811B (en) * | 2021-10-18 | 2023-07-25 | 南京邮电大学 | Quick communication method in local area network |
CN115150327A (en) * | 2022-06-29 | 2022-10-04 | 济南浪潮数据技术有限公司 | Interface setting method, device, equipment and medium |
CN115396323A (en) * | 2022-08-12 | 2022-11-25 | 徐州恒佳电子科技有限公司 | Port real-time data flow visualization method and system based on finite-state machine |
CN115396323B (en) * | 2022-08-12 | 2024-03-12 | 徐州恒佳电子科技有限公司 | Port real-time data stream visualization method and system based on finite state machine |
CN116599901A (en) * | 2023-06-13 | 2023-08-15 | 苏州浪潮智能科技有限公司 | Service scheduling method, device, computer equipment and storage medium |
CN116599901B (en) * | 2023-06-13 | 2024-01-23 | 苏州浪潮智能科技有限公司 | Service scheduling method, device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109714238B (en) | 2021-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109714238A (en) | A kind of method and apparatus for realizing inter-virtual machine communication | |
US10452422B2 (en) | Method and apparatus for deploying virtual machine instance, and device | |
US10911331B2 (en) | Service configuration method and apparatus for network service | |
US9917729B2 (en) | Methods, systems, and computer readable media for multi-layer orchestration in software defined networks (SDNs) | |
EP2774048B1 (en) | Affinity modeling in a data center network | |
CN107646185A (en) | Operation, management and processing (OAM) in data center environment is covered | |
CN104468181A (en) | Detection and handling of virtual network appliance failures | |
US9148369B2 (en) | Packet routing with analysis assist for embedded applications sharing a single network interface over multiple virtual networks | |
WO2017013587A1 (en) | A method and an apparatus for network state re-construction in software defined networking | |
CN110178342A (en) | The scalable application level of SDN network monitors | |
US9077659B2 (en) | Packet routing for embedded applications sharing a single network interface over multiple virtual networks | |
CN112166579B (en) | Multi-server architecture cluster providing virtualized network functionality | |
CN105052113A (en) | Common agent framework for network devices | |
CN108289061B (en) | Service chain topology system based on SDN | |
CN105391635A (en) | Network virtualization method based on software defined network (SDN) | |
WO2020114017A1 (en) | Data center traffic exchange method and apparatus, device and storage medium | |
WO2015026809A1 (en) | Network management layer - configuration management | |
US20230216786A1 (en) | Method for forwarding service packet, method for sending sr policy, device, and system | |
US12021735B2 (en) | Systems and methods for implementing multi-part virtual network functions | |
WO2023213216A1 (en) | Packet processing method and related device | |
WO2020029928A1 (en) | Method for establishing bgp session and sending interface address and alias, and network device | |
US11425221B1 (en) | Runtime extensible application programming interface server | |
US11916739B2 (en) | Mitigation of physical network misconfigurations for clustered nodes | |
US10904123B2 (en) | Trace routing in virtual networks | |
CN109710423A (en) | A kind of method and apparatus for inter-virtual machine communication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |