Summary of the invention
The technical problem that the present invention will solve provides a kind of method of double layer network expansion and double layer network of expansion realized, solves main frame in the process of obtaining the corresponding MAC Address in purpose IP address, produces the problem of broadcast storm.
For solving the problems of the technologies described above, a kind of method that realizes the double layer network expansion of the present invention is provided with address analyzing server (ARS) in carrier network, on the physical server in data center virtual switch is set;
After the virtual machine of said virtual switch in said physical server powers on, register the corresponding relation of the IP address and the self MAC address of said virtual machine to said ARS;
Said ARS writes down the corresponding relation of IP address and the MAC Address of this virtual switch of the virtual machine of said virtual switch registration, supplies other virtual machines to inquire about;
Virtual machine in the said physical server is inquired about the corresponding MAC Address in this IP address according to the IP address of Correspondent Node from said ARS, carries out message interaction through this MAC Address and said Correspondent Node.
Further, said virtual switch is registered the IP address of said virtual machine and the corresponding relation of self MAC address comprises to said ARS:
Said virtual switch is in said virtual machine power on the IP address and the corresponding relation of MAC Address of this virtual machine of back record, and registers the corresponding relation of MAC Address of IP address and this virtual switch of said virtual machine to the access service router (ASR) of this virtual switch ownership;
Said ASR writes down the corresponding relation of MAC Address of IP address and the said virtual switch of said virtual machine, and to the address of said ARS this corresponding relation of registration and this ASR.
Further, when said ARS writes down the corresponding relation of MAC Address of IP address and this virtual switch of virtual machine of said virtual switch registration, the address of also writing down said ASR accordingly.
Further, the virtual machine in the said physical server comprises from the MAC Address that said ARS inquires about this IP address correspondence according to the IP address of Correspondent Node:
Virtual machine in the said physical server sends MAC Address and resolves broadcast request; Virtual switch in this physical server converts this broadcast request the query requests of clean culture into, adopts the query requests of this clean culture to inquire about the corresponding MAC Address in IP address of said Correspondent Node from said ARS.
Further, said virtual switch machine adopts the query requests of this clean culture to comprise from the corresponding MAC Address in IP address that said ARS inquires about said Correspondent Node:
Said virtual switch sends to the ASR that this virtual switch belongs to the query requests of said clean culture, inquires about the corresponding MAC Address in IP address of said Correspondent Node through this ASR;
After the ASR of said virtual switch ownership receives said query requests; Inquire about the corresponding MAC Address in IP address of said Correspondent Node to said ARS; The address of the MAC Address that said ARS inquiry and returning inquires and the ASR of said Correspondent Node ownership; The ASR of said virtual switch ownership preserves the MAC Address that receives and the address of ASR, during non-self address, returns the MAC Address of self in the address of received ASR to said virtual switch;
It is the address of the ASR of said virtual switch ownership that said virtual switch is notified the corresponding MAC Address in IP address of the said Correspondent Node of virtual machine in the said physical server.
Further, the virtual machine in the said physical server carries out message interaction through this MAC Address and said Correspondent Node and comprises:
Virtual machine in the said physical server sends message to said Correspondent Node, and the source MAC of this message and target MAC (Media Access Control) address are respectively the address of the MAC Address and the ASR that said virtual switch belongs to of this virtual machine;
After said virtual switch receives message, the source MAC of this message is revised as the MAC Address of this virtual switch, and this message is sent to the ASR of this virtual switch ownership according to target MAC (Media Access Control) address;
The address of the ASR that the ASR of said virtual switch ownership belongs at the MAC Address of the said Correspondent Node of local search and Correspondent Node; The target MAC (Media Access Control) address of said message is revised as the MAC Address that inquires Correspondent Node, and this message is encapsulated in the tunnel of address of ASR that destination address is a said Correspondent Node ownership ASR that sends to said Correspondent Node ownership through carrier network.
Further, this method also comprises:
After the ASR of said Correspondent Node ownership receives message; Remove the tunnel; Target MAC (Media Access Control) address according to message sends to the virtual switch on the physical server of said Correspondent Node place with message; This virtual switch is according to the MAC Address of the said Correspondent Node of purpose IP address lookup of message, and the target MAC (Media Access Control) address of this message is revised as the MAC Address of said Correspondent Node, sends to said Correspondent Node.
Further, the virtual machine in the said physical server comprises from the MAC Address that said ARS inquires about this IP address correspondence according to the IP address of Correspondent Node:
Said virtual switch sends to the ASR that this virtual switch belongs to the query requests of said clean culture, inquires about the corresponding MAC Address in IP address of said Correspondent Node through this ASR;
After the ASR of said virtual switch ownership receives said query requests; Inquire about the corresponding MAC Address in IP address of said Correspondent Node to said ARS; The address of the MAC Address that said ARS inquiry and returning inquires and the ASR of said Correspondent Node ownership; The ASR of said virtual switch ownership preserves the MAC Address that receives and the address of ASR, when being self address in the address of received ASR, returns the MAC Address that receives to said virtual switch;
It is the MAC Address that the ASR of said virtual switch ownership receives that said virtual switch is notified the corresponding MAC Address in the IP address of the said Correspondent Node of virtual machine in the said physical server.
Further, the virtual machine in the said physical server carries out message interaction through this MAC Address and said Correspondent Node and comprises:
Virtual machine in the said physical server sends message to said Correspondent Node, and the source MAC of this message and target MAC (Media Access Control) address are respectively the MAC Address that the MAC Address of this virtual machine and ASR that said virtual switch belongs to receive;
After said virtual switch receives said message; The source MAC of this message is revised as the MAC Address of this virtual switch; And, this message is sent to the virtual switch on the physical server of said Correspondent Node place through Layer 2 switch according to target MAC (Media Access Control) address.
Further, this method also comprises:
Virtual switch on the physical server of said Correspondent Node place is inquired about the MAC Address of said Correspondent Node, and the target MAC (Media Access Control) address of this message is revised as the MAC Address of the Correspondent Node that inquires, and sends to said Correspondent Node.
Further, said virtual switch is arranged in the virtual machine manager of the physical server in the said data center.
Further, a kind of physical server is equipped with virtual machine in this physical server, on this physical server, also is provided with virtual switch;
Said virtual switch is used for after the virtual machine of said physical server powers on, the IP address of the said virtual machine of the address analyzing server that in carrier network, is provided with (ARS) registration and the corresponding relation of self MAC address.
Further, said virtual switch is registered the IP address of said virtual machine and the corresponding relation of self MAC address comprises to said ARS:
Said virtual switch is in said virtual machine power on the IP address and the corresponding relation of MAC Address of this virtual machine of back record, and registers the corresponding relation of MAC Address of IP address and this virtual switch of said virtual machine to the access service router (ASR) of this virtual switch ownership.
Further; Said virtual switch; Also be used for after the virtual machine that receives said physical server sends MAC Address parsing broadcast request; Convert this broadcast request the query requests of clean culture into, the query requests that adopts this clean culture is corresponding MAC Address from the IP address of said ARS query communication opposite end.
Further, corresponding MAC Address comprises the query requests of said this clean culture of virtual switch machine employing from the IP address of said ARS query communication opposite end:
Said virtual switch sends to the query requests of said clean culture the ASR of this virtual switch ownership; Inquire about the corresponding MAC Address in IP address of said Correspondent Node through this ASR; And return the address of the virtual switch on address or the said Correspondent Node place physical server of this ASR at said ASR after, the corresponding MAC Address in IP address of correspondingly notifying the said Correspondent Node of virtual machine in the said physical server is address or the address of the virtual switch on the physical server of said Correspondent Node place of the ASR of virtual switch ownership.
Further; Said virtual switch; Also be used for the message that sink virtual machine sends to said Correspondent Node; The source MAC of this message is the MAC Address of this virtual machine, and target MAC (Media Access Control) address is address or the address of the virtual switch on the physical server of said Correspondent Node place of the ASR of said virtual switch ownership, and this virtual switch is after receiving said message; The source MAC of this message is revised as the MAC Address of this virtual switch, and this message is sent to the ASR of this virtual switch ownership or the virtual switch on the physical server of said Correspondent Node place according to target MAC (Media Access Control) address.
Further, said virtual switch, during the message that also is used for sending at the ASR that receives ownership, the MAC Address corresponding according to the purpose IP address lookup of message is revised as the MAC Address that inquires with the target MAC (Media Access Control) address of this message, and sends.
Further, a kind of access service router (ASR) comprising: Registering modules, wherein:
Said Registering modules is used to write down the corresponding relation of MAC Address of IP address and this virtual switch of the virtual machine of virtual switch registration, and to address that address analyzing server (ARS) is registered this corresponding relation and this ASR.
Further, this ASR also comprises the address lookup module, wherein:
Said address lookup module; Be used for after receiving the query requests of said virtual switch; Inquire about the corresponding MAC Address in IP address of the Correspondent Node of virtual machine to said ARS; And preserve the MAC Address and the address of ASR receive, during the address of non-this address lookup module place ASR, return the address that this address lookup module belongs to ASR in the address of received ASR to said virtual switch; When being the address of this address lookup module place ASR, return the MAC Address that receives to said virtual switch in the address of received ASR.
Further, this ASR also comprises packet forwarding module, wherein:
Said packet forwarding module; Be used for when receiving the message of said virtual switch transmission; Address at the ASR of the MAC Address of the said Correspondent Node of local search and Correspondent Node ownership; The target MAC (Media Access Control) address of said message is revised as the MAC Address that inquires Correspondent Node, and this message is encapsulated in the tunnel of address of ASR that destination address is a said Correspondent Node ownership ASR that sends to said Correspondent Node ownership through carrier network.
Further, said packet forwarding module also is used for after receiving the message that sends through said carrier network, removing the tunnel, according to the target MAC (Media Access Control) address of message message is sent to the virtual switch on the physical server.
Further, a kind of double layer network of expansion comprises carrier network and data center, and address analyzing server (ARS) is set in said carrier network, on the physical server in said data center virtual switch is set, wherein:
Said virtual switch is used for after the virtual machine of said physical server powers on, and registers the corresponding relation of the IP address and the self MAC address of said virtual machine to said ARS;
Said ARS is used to write down the corresponding relation of IP address and the MAC Address of this virtual switch of the virtual machine of said virtual switch registration, supplies other virtual machines to inquire about;
Virtual machine in the said physical server is used for inquiring about the corresponding MAC Address in this IP address according to the IP address of Correspondent Node from said ARS, carries out message interaction through this MAC Address and said purpose virtual machine.
Further, this double layer network also comprises: between said subscriber data center and carrier network, set up the access service router (ASR) of intercommunication, wherein:
Said virtual switch at said virtual switch when ARS registers the corresponding relation of IP address and self MAC address of said virtual machine; After receiving the registration of said virtual switch; Write down the corresponding relation of MAC Address of IP address and the virtual switch of said virtual machine, and to the address of said ARS this corresponding relation of registration and this ASR.
Further; Said ASR; Also be used for when receiving the message of said virtual switch transmission; In the address of the ASR of the MAC Address of the said Correspondent Node of local search and Correspondent Node ownership, the target MAC (Media Access Control) address of said message is revised as the MAC Address that inquires Correspondent Node, and this message is encapsulated in the tunnel of address of ASR that destination address is said Correspondent Node ownership the ASR that sends to said Correspondent Node ownership through carrier network.
Further, said ARS also is used for when the corresponding relation of the IP address of the virtual machine of the said virtual switch of record registration and the MAC Address of this virtual switch the address of writing down the said ASR of ownership accordingly.
Further, the virtual machine in the said physical server comprises from the MAC Address that said ARS inquires about this IP address correspondence according to the IP address of Correspondent Node:
Virtual machine in the said physical server sends MAC Address and resolves broadcast request; Virtual switch in this physical server converts said broadcast request the query requests of clean culture into, adopts the query requests of this clean culture to inquire about the corresponding MAC Address in IP address of said Correspondent Node from said ARS.
Utilize the present invention, double layer network has reduced the expense of address resolution protocol, has avoided the influence of broadcast storm, therefore can greatly improve the extensibility of double layer network.
Embodiment
Hereinafter will combine accompanying drawing that embodiments of the invention are elaborated.Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
This execution mode improves the ARP/NDP agreement, in conjunction with the L2VPN technology, realizes the double layer network that can expand, can support the magnanimity virtual machine.
Shown in Figure 1 is the network architecture of this execution mode; The carrier network that comprises by a plurality of data centers and be responsible for interconnecting; Data center and carrier network connect through ASR (Access Service Router, access service router), and each data center comprises some physical servers and Layer 2 switch; Virtual machine manager (VMM) is installed on each physical server, is responsible for the management of some virtual machines on the physical server.
Do not revise existing operating system on Layer 2 switch and the virtual machine in the data center in this execution mode; In virtual machine manager, set up virtual switch (vSwitch), revise access service router (also claiming data center's border router); Also introduce ARS (Address Resolution Server; Address analyzing server is also claimed MAC Address resolution data storehouse), be responsible for receiving the registration and the inquiry of L2 address.
Virtual switch is after virtual machine powers on; Note the IP address of this virtual machine and the corresponding relation of MAC Address; And to ARS request registration corresponding relation; Virtual switch is revised as the self MAC address with the MAC Address in the corresponding relation, that is to say the corresponding relation to the MAC Address of the IP address of ARS registration virtual machine and virtual switch self, at this moment; All virtual machines externally only present a MAC Address in the physical server that VMM managed, and this has significantly reduced, and the MAC in the two-layer switching equipment transmits volume in the network.
ARS notes the IP address of ASR of MAC Address, IP address and the virtual machine ownership of registration, in order to subsequent query.
When VM need communicate with other main frame; The existing operating system of virtual machine still adopts the ARP/NDP agreement inquiry MAC Address of broadcasting; This broadcast request is intercepted and captured by the virtual switch among the VMM; Change into the unicast inquiry message of ARS, this message is through ASR, and ASR can carry out format conversion and store the relevant parameter content this message.ARS receives the MAC Address of the ASR of the pairing MAC Address in IP address that returns the target virtual machine after the unicast inquiry message and ownership.
Because the MAC Address of VM registration is actually the MAC Address of virtual switch in ARS; Therefore; What the ISSUER inquired about acquisition also is the address of virtual switch, after the source virtual machine inquiry obtains MAC Address, will send message to the purpose virtual machine; This message arrives the virtual switch at purpose virtual machine place; Virtual switch is searched the real MAC address that local data base obtains the purpose virtual machine, and target MAC (Media Access Control) address is revised as the real MAC address of target virtual machine, sends to the operating system in the virtual machine then.
When source virtual machine and purpose virtual machine do not belong to same data center; ASR changes the MAC Address of the target virtual machine in the inquiry response MAC Address of this ASR into, and writes down the corresponding relation of MAC Address of IP address and the registration of purpose virtual machine, after source virtual machine obtains inquiry response like this; The target MAC (Media Access Control) address of the message that sends is the MAC Address of the ASR of notebook data center ownership; Guarantee that the ASR that belongs to can intercept and capture message, after ASR receives that target MAC (Media Access Control) address is the message of self MAC address, take out the purpose IP address in the message; The inquiry local data base; Obtain the MAC Address of corresponding registration MAC Address of purpose IP and ownership ASR, change the target MAC (Media Access Control) address of original message the registration MAC Address of purpose virtual machine correspondence into, and be encapsulated in the IP in IP tunnel of an outer layer address for the MAC Address of purpose virtual machine ownership ASR (purpose ASR); This tunnel also can be the encapsulation of a GRE (Generic Routing Encapsulation, generic route encapsulation) form; When purpose ASR receives this message, remove outer encapsulation header, take out the initial data message, issue target MAC (Media Access Control) address corresponding virtual switch.
ARS can be positioned among the carrier network centralized deployment or adopt distributed computing technology to make up; Also can be deployed in data center inside, the ARS server of a plurality of data centers constitutes an incorporate in logic distributed server system.
In order to safeguard the validity of MAC Address, virtual switch should substitute virtual machine to carry out the registration of periodicity address and refreshes, and ARS is ageing timer of each address maintenance, when not receiving refresh requests in the timer cycle, will discharge this address record.
Fig. 1 is the system architecture diagram of this execution mode, comprises a plurality of data centers 101 in the system, and each data center comprises a plurality of physical servers 102 and a plurality of Layer 2 switch 103; Carrier network 104 connects a plurality of data centers, comprising core router 106 and the ARS107 that handles L2 address registration, inquiry; ASR105 is the access service router that connects data center and carrier network.Operation unicast address shadowing agreement (uMAP) between ASR and the ARS.
Fig. 2 is the inside structure of a physical server in the virtual machine pond, the 201st, and physical machine hardware; The 202nd, virtual machine manager, be responsible for this physical machine virtual machine creating, cancel and dispatch; The 203rd, for the defined virtual switch of this execution mode, be responsible for to replace virtual machine carry out MAC Address registration, the broadcast arp request is converted into clean culture MAC inquiry etc.; The 204th, the migration manager among the VMM, this paper does not pay close attention to; The 205th, by the virtual machine of VMM management; The 206th, the operating system in the virtual machine; The 207th, operate in the various application programs on the virtual machine internal operating system.
Fig. 3 shows the MAC Address register flow path of this execution mode, comprising:
Step 301: the virtual machine manager control virtual machine VM11 in the physical server powers on;
Step 302: after the electrifying startup operation was accomplished, VM11 initiated to obtain the process of IP address configuration;
Virtual machine VM11 obtains the IP address through DHCP (DynamicHost is provided with agreement) or alternate manner.
Step 303: the vSwitch1 that resides among the VMM knows that through checking the automatic configuration message in IP address VM11 has accomplished the process of IP address configuration; The IP address of VM11 and the corresponding relation of MAC under local record; The IP address of VM11 and MAC Address are respectively IP11 and MAC11 here; And to ARS transmission MAC Address register requirement, the corresponding relation of registration IP11 and vSwitch1 self MAC address (MAC1), this request is through ownership ASR;
The source IP address of MAC Address register requirement and source MAC are respectively IP11 and MAC1.
VMM was distributed when the MAC Address MAC11 of VM11 powered on by VM11.
Step 304: middle Layer 2 switch is learnt MAC1 through checking the source MAC of MAC Address register requirement, and charges to during the MAC-port transmits;
This step is layer 2-switched criterion behavior.
Step 305: Layer 2 switch is transmitted the MAC Address register requirement to ASR;
After step 306:ASR received the MAC Address register requirement, the corresponding relation of < MAC1, IP11>under local record was for the subsequent packet forwarding is prepared;
Step 307:ASR sends the map addresses register requirement to ARS, comprising < MAC1, IP11>binding relationship and ASR its own IP address;
Use in order to subsequent query the IP addresses of the ASR that entrained MAC, IP address and virtual machine belongs in this map addresses register requirement of step 308:ARS record etc.;
Step 309:ARS returns success response to ASR, and this response is forwarded to the vSwitch1 that initiates registration.The address registration process is accomplished.
Fig. 4 shows the embodiment that sets up communication between a kind of two virtual machines of striding data center, and idiographic flow is following:
Step 401: the virtual machine VM21 that is positioned at data center 2 needs to communicate by letter with the virtual machine VM11 that is positioned at data center 1, does not have the corresponding MAC record in IP address of VM11 in the local arp cache, and VM21 sends a common ARP broadcast request;
VM11, VM21 all power on successfully here, and belong to vSwitch on behalf of correctly registered IP address and MAC corresponding relation to ARS by it.
Step 402:ARP broadcast request is intercepted and captured by the virtual switch vSWitch2 on the physical machine of VM21 place; VSWitch2 is converted into the ARP query requests of a clean culture and issues ASR2 through Layer 2 switch, and the inquiry target of this query requests is the IP address ip 11 of VM11;
After step 403:ASR2 receives the ARP query requests of clean culture, produce a Map_Request (map locating) request and send to ARS, the corresponding MAC Address of inquiry IP11;
Supposition ASR is different from the ARP query requests of the clean culture of vSwitch to the vlan query protocol VLAN of ARS in the present embodiment, and actual agreements define also can be multiplexing.
Step 404:ARS inquires about local data base, obtains the address of the corresponding MAC Address of IP11, ownership ASR1;
Step 405:ARS will inquire about the MAC Address that obtains, address and the IP11 of ASR1 returns to ASR2 through Map_Reply message;
Step 406:ASR2 receives the address of taking out wherein IP, MAC and ASR1 after the Map_Reply message; And store in this locality; Construct an ARP unicast response message simultaneously, its source MAC changes the MAC Address of ASR2 into, and target MAC (Media Access Control) address is the MAC Address of vSWitch2;
Step 406:ASR2 sends to vSwitch2 with the ARP unicast response;
Step 407:vSwitch2 is according to a common arp response of ARP unicast response structure of receiving, the corresponding MAC Address of its IP11 that is inquired about of notice VM21 is the MAC Address of ASR2;
Step 408:VM21 sends an IP message according to the MAC Address that inquiry obtains, and source, purpose IP address, MAC Address are respectively IP21, MAC21, IP11, MAC_ASR2;
After step 409:vSwitch2 received the IP message of VM21, rewriting source MAC be the MAC Address MAC2 of this virtual switch, and was that MAC_ASR2 transmission message is to ASR2 according to target MAC (Media Access Control) address;
Step 410:ASR2 takes out the purpose IP address in the message, searches local data base, obtains address ip _ ASR1 of the ASR1 of corresponding MAC Address MAC1 that has registered of IP11 and ownership;
It is inner that step 411:ASR2 learnt according to the data in a last step that purpose IP address was positioned at another one data center; Its target MAC (Media Access Control) address with original message changes in the step 406 MAC1 that obtains into, and sends to ASR1 in the tunnel with this message IP address that to be encapsulated in a purpose IP be ASR1;
The tunnel can be the simple tunnel of an IP in IP, also can be a gre tunneling, or other any type of tunnel form.
After step 412:ASR1 receives message, remove the outer layer tunnel header, recover original message;
Step 413:ASR1 sends it to vSwitch1 according to the target MAC (Media Access Control) address of message;
Step 414:vSwitch1 searches local data base, knows that purpose IP address ip 11 corresponding real MAC address are MAC11 in the message, and it rewrites the two layer message head is MAC11, and message is sent to the protocol stack of operating system among the VM11.So far, IP communication is set up and is accomplished.
Fig. 5 shows the embodiment that sets up communication between a kind of two virtual machines in same data center, and idiographic flow is following:
Step 501: the virtual machine VM21 that is positioned at physical machine 2 needs to communicate by letter with the virtual machine VM11 that is positioned at physical machine 1, does not have the corresponding MAC record in IP address of VM11 in the local arp cache, and it sends a common ARP broadcast request;
VM11, VM21 all power on successfully here, and belong to vSwitch on behalf of correctly registered its own IP address, MAC corresponding relation to ARS by it.
Step 502:ARP broadcast request is intercepted and captured by the virtual switch vSwitch2 on its place physical machine, and vSwitch2 is converted into the ARP query requests of a clean culture and issues ASR1, and the inquiry target of this query requests is the IP address ip 11 of VM11;
After step 503:ASR1 receives the ARP query requests of clean culture, produce a Map_Request request and send to ARS, the corresponding MAC Address of inquiry IP11;
Supposition ASR is different from the ARP unicast inquiry request of vSwitch to the vlan query protocol VLAN of ARS in the present embodiment, and actual agreements define also can be multiplexing.
Step 504:ARS inquires about local data base, obtains corresponding MAC Address of IP11 and ownership ASR1 address.
Step 505:ARS will inquire about the MAC Address, ASR1 address and the IP11 that obtain and return to ASR1 through Map_Reply message;
Step 506:ASR1 takes out IP, MAC and ASR1 address wherein after receiving Map_Reply message; And store in this locality; Construct an ARP unicast response message simultaneously; ASR1 notice the ownership ASR of this purpose virtual machine be exactly own itself, so the IP of ARP unicast response message, MAC Address all be taken from Map_Reply message, do not make an amendment;
Step 507:vSwitch is according to common arp response of unicast response structure, and the corresponding MAC Address of its IP11 that is inquired about of notice VM21 is MAC1;
Step 508:VM21 sends an IP message according to the MAC Address that last step inquiry obtains, and source, purpose IP address, MAC Address are respectively IP21, MAC21, IP11 and MAC1;
After step 509:vSwitch2 received the IP message of VM21, rewriting source MAC was the address MAC2 of this virtual switch, and Layer 2 switch is that MAC1 sends message to physical machine 1 according to target MAC (Media Access Control) address;
Step 510: the vSwitch1 on the physical machine 1 receives this message; Search local data base; Know that purpose IP address ip 11 corresponding real MAC address are MAC11 in the message, it rewrites the two layer message head is MAC11, and message is sent to the protocol stack of operating system among the VM11.So far, IP communication is set up and is accomplished.
Fig. 6 is the structure chart of the ASR of this execution mode, comprising: Registering modules, address lookup module and packet forwarding module, wherein:
Registering modules is used to write down the corresponding relation of MAC Address of IP address and this virtual switch of the virtual machine of virtual switch registration, and to address that address analyzing server (ARS) is registered this corresponding relation and this ASR.
The address lookup module; Be used for after receiving the query requests of virtual switch; Inquire about the corresponding MAC Address in IP address of the Correspondent Node of virtual machine to ARS; And preserve the MAC Address and the address of ASR receive, during the address of non-this address lookup module place ASR, return the address that this address lookup module belongs to ASR in the address of received ASR to virtual switch; When being the address of this address lookup module place ASR, return the MAC Address that receives to virtual switch in the address of received ASR.
Packet forwarding module; Be used for when receiving the message of virtual switch transmission; Address at the ASR of the MAC Address of local search Correspondent Node and Correspondent Node ownership; The target MAC (Media Access Control) address of message is revised as the MAC Address that inquires Correspondent Node, and this message is encapsulated in the tunnel of address of ASR that destination address is a Correspondent Node ownership ASR that sends to the Correspondent Node ownership through carrier network, and after receiving the message that sends through carrier network; Remove the tunnel, message is sent to the virtual switch on the physical server according to the target MAC (Media Access Control) address of message.
One of ordinary skill in the art will appreciate that all or part of step in the said method can instruct related hardware to accomplish through program, program can be stored in the computer-readable recording medium, like read-only memory, disk or CD etc.Alternatively, all or part of step of the foregoing description also can use one or more integrated circuits to realize.Correspondingly, each module in the foregoing description can adopt the form of hardware to realize, also can adopt the form of software function module to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
Certainly; The present invention also can have numerous embodiments; In the situation that does not deviate from spirit of the present invention and essence thereof; Those of ordinary skill in the art be when can making various corresponding changes or variation according to the present invention, any modification of within spirit of the present invention and principle, being done in every case, are equal to replacement, improvement, all should be included within protection scope of the present invention.