CN103108053A - Method and device and system of MAC address configuration of virtual machine - Google Patents

Method and device and system of MAC address configuration of virtual machine Download PDF

Info

Publication number
CN103108053A
CN103108053A CN2011103545266A CN201110354526A CN103108053A CN 103108053 A CN103108053 A CN 103108053A CN 2011103545266 A CN2011103545266 A CN 2011103545266A CN 201110354526 A CN201110354526 A CN 201110354526A CN 103108053 A CN103108053 A CN 103108053A
Authority
CN
China
Prior art keywords
mac address
virtual machine
application
management server
manager device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011103545266A
Other languages
Chinese (zh)
Inventor
喻敬海
赵真富
刘大宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN2011103545266A priority Critical patent/CN103108053A/en
Publication of CN103108053A publication Critical patent/CN103108053A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method, a device and a system of MAC address configuration of a virtual machine. The method comprises that the number of MAC addresses for application can be determined by a virtual machine management device according to a configuration strategy; the virtual machine management device applies for the MAC addresses in the same number to an MAC address management server; the MAC addresses returned by the MAC address management server are received; and the MAC addresses are configured to the virtual machine. According to the method, the device and the system, the problem that in a relative art, application to the MAC addresses needs a plurality of messages so that network burden is heavy is solved, and therefore the network burden is lessened.

Description

The MAC Address collocation method of virtual machine, Apparatus and system
Technical field
The present invention relates to the communications field, control (MediaAccess Control is referred to as MAC) address configuration method, Apparatus and system in particular to a kind of media interviews of virtual machine.
Background technology
Along with the develop rapidly of cloud computing technology, the status of data center is more and more important, and in following data center, the use of Intel Virtualization Technology will be inexorable trend.In Intel Virtualization Technology, virtual machine (Virtual Machine is referred to as VM) technology will extensively be used in server.Just need a MAC unlike former in such server, but need more address, might need up to a hundred MAC Address by a server, and may there be server up to a million the large-scale data center, the management of MAC Address, distribution will be huge workloads, MAC Address is not only in the whole world and need to be bought simultaneously, and the worry of inadequate use is arranged.Therefore need a kind of MAC Address of effectively utilizing, cut the waste, the mode of convenient management.
Fig. 1 is according to the legacy hosts of correlation technique and the schematic diagram of virtualized host, the difference of legacy hosts and virtualized host is, in legacy hosts, only has a network interface card interface (Network Interface Card, referred to as NIC), only need a MAC Address, adopt manual configuration no problem.But in virtualized host, comprise an inner VM supervision/control unit Hypervisor, a plurality of edge TU Trunk Unit ER and a plurality of VM, each VM needs one or more MAC Address, and manual configuration is very loaded down with trivial details, and, VM can dynamic creation, deletion, manages very inconvenient.If specify at random MAC Address by system, will cause the conflict of MAC Address, when main frame was less, this problem was also not serious, but when main frame and VM increase, problem is just more serious, therefore needs to introduce the automatic configuration mechanism of a kind of MAC Address.DHCP (Dynamic Host Configuration Protocol, referred to as DHCP) itself be used for automatic configuration of IP address, through expansion, can be used for supporting the automatic configuration of MAC Address, one piece of patent of author is to each main frame, and perhaps VM adopts the DHCP expansion to apply for that separately the mechanism of MAC is described.But can find out, in virtualized host, can have a lot of VM, if each VM carry out separately MAC Address application, re-rent, have a lot of DHCP messages, increase network burden.
Application for MAC Address in correlation technique needs a lot of messages, and the problem that network burden is increased the weight of not yet proposes effective solution at present.
Summary of the invention
Application for MAC Address in correlation technique needs a lot of messages, the problem that network burden is increased the weight of, the invention provides a kind of MAC Address collocation method and system, Virtual Machine Manager device and MAC Address management server of virtual machine, to address the above problem at least.
According to an aspect of the present invention, provide a kind of MAC Address collocation method of virtual machine, having comprised: the Virtual Machine Manager device is determined the number of application MAC Address according to collocation strategy; This Virtual Machine Manager device is to the MAC Address of the above-mentioned number of MAC Address management server application; This Virtual Machine Manager device receives the MAC Address that the MAC Address management server returns; This Virtual Machine Manager device configures the MAC Address that receives to virtual machine.
Preferably, above-mentioned Virtual Machine Manager device determines that according to collocation strategy the number of application MAC Address comprises: this Virtual Machine Manager device is determined the number of this application MAC Address according to the quantity of the virtual machine of management; Perhaps, this Virtual Machine Manager device is determined the MAC Address number of this application according to pre-configured application number, then according to the quantity of virtual machine of management, determines the MAC Address number of continuation application.
Preferably, above-mentioned Virtual Machine Manager device comprises to the MAC Address of the above-mentioned number of MAC Address management server application: this Virtual Machine Manager device sends the MAC Address request message to the MAC Address management server, wherein, this MAC Address request message carries the indication information of the MAC Address of the above-mentioned number of request, and indicates this MAC Address management server to distribute the group character information of MAC Address according to this Virtual Machine Manager device place grouping.
Preferably, above-mentioned Virtual Machine Manager device configures the MAC Address that receives to after virtual machine, when the MAC Address of this virtual machine expired, virtual machine or Virtual Machine Manager device were initiated the request of the MAC Address request of re-renting or initiation release MAC Address to above-mentioned MAC Address management server.
Preferably, the above-mentioned MAC Address that above-mentioned Virtual Machine Manager device will receive configures to after virtual machine, and when this virtual machine deletion, this Virtual Machine Manager device initiates to discharge to above-mentioned MAC Address management server the MAC Address request that virtual machine is assigned with.
Preferably, between above-mentioned Virtual Machine Manager device and above-mentioned MAC Address management server mutual information based on one of following protocol massages: dynamic host configuration protocol DHCP V4, DHCPV6, virtual site are found and configuration protocol VDP.
According to a further aspect in the invention, provide a kind of MAC Address collocation method of virtual machine, having comprised: the MAC Address application that MAC Address management server sink virtual machine management devices sends, this application is carried the MAC Address number of promising virtual machine request; Above-mentioned MAC Address management server is determined the MAC Address of this number according to this application; The above-mentioned MAC Address that above-mentioned MAC Address management server will be determined configures to above-mentioned Virtual Machine Manager device.
Preferably, above-mentioned application also carries the group character information of above-mentioned Virtual Machine Manager device place grouping; Above-mentioned MAC Address management server determines that according to application the MAC Address of above-mentioned number comprises: this MAC Address management server is the MAC Address that grouping corresponding to group character information distributes above-mentioned number according to above-mentioned application.
According to a further aspect in the invention, provide a kind of Virtual Machine Manager device, having comprised: the number determination module is used for determining to apply for the number of MAC Address according to collocation strategy; The application module is used for the MAC Address to the above-mentioned number of MAC Address management server application; Receiver module is used for receiving the MAC Address that above-mentioned MAC Address management server returns; Configuration module is used for the above-mentioned MAC Address that this receiver module receives is configured to virtual machine.
Preferably, the application module comprises: packet sending unit is used for sending the MAC Address request message to the MAC Address management server, wherein, this MAC Address request message carries the indication information of the MAC Address of the above-mentioned number of request, and group character information under MAC Address to be allocated.
According to a further aspect in the invention, provide a kind of MAC Address management server, having comprised: the application receiver module, be used for the sink virtual machine management devices and send the MAC Address application, this application is carried the MAC Address number of promising virtual machine request; The address determination module is for determine the MAC Address of above-mentioned number according to the above-mentioned application of above-mentioned application receiver module reception; The address configuration module is used for the MAC Address that the address determination module is determined is configured to above-mentioned Virtual Machine Manager device.
Preferably, the address determination module comprises: first information determining unit is used for determining whether above-mentioned application carries the group character information of above-mentioned Virtual Machine Manager device place grouping; The second information determining unit, the definite result that is used for first information determining unit when being, are the MAC Address of the above-mentioned number of grouping distribution corresponding to above-mentioned group character information according to this application.
According to a further aspect in the invention, provide a kind of MAC Address configuration-system of virtual machine, having comprised: above-mentioned Virtual Machine Manager device also comprises above-mentioned MAC Address management server.
By the present invention, the Virtual Machine Manager device is determined the MAC Address of the above-mentioned number of number backward MAC Address management server application of application MAC Address according to the virtual machine of management, this Virtual Machine Manager device receives the MAC Address that the MAC Address management server returns, MAC Address with its reception configures to above-mentioned virtual machine again, the a lot of messages of application needs of MAC Address in the correlation technique have been solved, the problem that network burden is increased the weight of, and then reached the effect that alleviates network burden.
Description of drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of the application's a part, and illustrative examples of the present invention and explanation thereof are used for explaining the present invention, do not consist of improper restriction of the present invention.In the accompanying drawings:
Fig. 1 is according to the legacy hosts of correlation technique and the schematic diagram of virtualized host;
Fig. 2 is the flow chart according to the MAC Address collocation method of the virtual machine of the embodiment of the present invention;
Fig. 3 is the another kind of flow chart according to the MAC Address collocation method of the virtual machine of the embodiment of the present invention;
Fig. 4 is the structured flowchart according to the Virtual Machine Manager device of the embodiment of the present invention;
Fig. 5 is the another kind of structured flowchart according to the Virtual Machine Manager device of the embodiment of the present invention;
Fig. 6 is the structured flowchart according to the MAC Address management server of the embodiment of the present invention;
Fig. 7 is the another kind of structured flowchart according to the MAC Address management server of the embodiment of the present invention;
Fig. 8 is the structured flowchart according to the MAC Address configuration-system of the virtual machine of the embodiment of the present invention;
Fig. 9 is the schematic diagram according to the network configuration of the MAC Address distribution of the embodiment of the present invention;
Figure 10 is according to the virtual machine of the embodiment of the present invention and the mutual flow chart of MAC Address management server;
Figure 11 is the schematic diagram according to the option message format of the MAC Address of the embodiment of the present invention;
Figure 12 is the flow chart based on the message interaction method of DHCP V4 agreement according to the embodiment of the present invention;
Figure 13 is the flow chart based on the message interaction method of DHCP V6 agreement according to the embodiment of the present invention;
Figure 14 is the flow chart based on the message interaction method of VDP agreement according to the embodiment of the present invention.
Embodiment
Hereinafter also describe in conjunction with the embodiments the present invention in detail with reference to accompanying drawing.Need to prove, in the situation that do not conflict, embodiment and the feature in embodiment in the application can make up mutually.
Consider on server a plurality of VM may be arranged, if each VM applies for MAC Address separately, will increase the load of network, the embodiment of the present invention provides a kind of MAC Address collocation method, device (Virtual Machine Manager device and MAC Address management server) and system of virtual machine, is described below by embodiment.
The present embodiment provides a kind of MAC Address collocation method of virtual machine, and the method describes to be described from the Virtual Machine Manager device side as example, a management devices on the server that this Virtual Machine Manager device can be integrated a plurality of VM.As shown in Figure 2 be MAC Address collocation method flow chart according to the virtual machine of the embodiment of the present invention, the method comprises the following steps (step S202-step S208):
Step S202, Virtual Machine Manager device determine the number of application MAC Address according to collocation strategy;
Step S204, the Virtual Machine Manager device is to the MAC Address of the above-mentioned number of MAC Address management server application;
Step S206, the Virtual Machine Manager device receives the MAC Address that above-mentioned MAC Address management server returns;
The above-mentioned MAC Address that step S208, Virtual Machine Manager device will receive configures to virtual machine.
In the present embodiment, the Virtual Machine Manager device is determined the MAC Address of the above-mentioned number of number backward MAC Address management server application of application MAC Address according to the virtual machine of management, this Virtual Machine Manager device receives the MAC Address that the MAC Address management server returns, MAC Address with its reception configures to above-mentioned virtual machine again, the a lot of messages of application needs of MAC Address in the correlation technique have been solved, the problem that network burden is increased the weight of, and then reached the effect that alleviates network burden.
Above-mentioned collocation strategy can be the definite MAC Address number of applying for of virtual machine quantity of managing as required, can be also according to the MAC Address data of each permission application of setting and the definite MAC Address number of applying for of virtual machine quantity of management, for example: the Virtual Machine Manager device is determined the MAC Address number of this application according to pre-configured application number, according to the quantity of the virtual machine of managing, determine the MAC Address number of continuation application again.
In the above-described embodiments, above-mentioned Virtual Machine Manager device is determined the number of the virtual machine that the number of application MAC Address equals to manage, then this Virtual Machine Manager device sends the MAC Address request message to the MAC Address management server, wherein this MAC Address request message carries the indication information of the MAC Address of the above-mentioned number of request, in addition, can also carry the above-mentioned MAC Address management server of indication in this message and distribute the group character information of MAC Address according to the place grouping of above-mentioned Virtual Machine Manager device.
After above-mentioned Virtual Machine Manager device configures the MAC Address that receives to virtual machine, when the MAC Address of this virtual machine expired, this virtual machine or this Virtual Machine Manager device were initiated the request of the MAC Address request of re-renting or initiation release MAC Address to above-mentioned MAC Address management server; When this virtual machine deletion, this Virtual Machine Manager device can also initiate to discharge the MAC Address request that this virtual machine is assigned with to above-mentioned MAC Address management server.
Between above-mentioned Virtual Machine Manager device and above-mentioned MAC Address management server, mutual information can be based on one of following protocol massages: dynamic host configuration protocol DHCP V4, DHCP V6 and virtual site are found and configuration protocol (VSI discovery and configuration protocol is referred to as VDP).
Fig. 3 is the another kind of flow chart according to the MAC Address collocation method of the virtual machine of the embodiment of the present invention, the method describes to be described from MAC Address management server side as example, corresponding and above-mentioned flow chart shown in Figure 2, the method comprise the following steps (step S302-step S306):
Step S302, the MAC Address application that MAC Address management server sink virtual machine management devices sends, this application is carried the MAC Address number of promising virtual machine request, and wherein, this number is that above-mentioned Virtual Machine Manager device is determined according to above-mentioned collocation strategy;
Step S304, MAC Address management server determine the MAC Address of above-mentioned number according to above-mentioned application;
The above-mentioned MAC Address that step S306, MAC Address management server will determine configures to above-mentioned Virtual Machine Manager device management.
In the present embodiment, the MAC Address application that MAC Address management server sink virtual machine management devices sends, this application carries the MAC Address number of request, then after the MAC Address management server is determined the MAC Address of above-mentioned number according to above-mentioned application, the above-mentioned MAC Address of determining is configured to above-mentioned Virtual Machine Manager device, solved a lot of messages of application needs of MAC Address in the correlation technique, the problem that network burden is increased the weight of, and then reached the effect that alleviates network burden.
Above-mentioned application not only carries the MAC Address number of request, also carries the group character information of above-mentioned Virtual Machine Manager device place grouping.Above-mentioned MAC Address management server comprises according to the MAC Address that this application ascertains the number: this MAC Address management server is the MAC Address that grouping corresponding to above-mentioned group character information distributes above-mentioned number according to this application, for example, in same grouping, each MAC Address of distribution can be not identical.
Corresponding to the first collocation method of the MAC Address of above-described virtual machine, the present embodiment provides a kind of Virtual Machine Manager device, and this device is used for realizing above-described embodiment.Fig. 4 is the structured flowchart according to the Virtual Machine Manager device of the embodiment of the present invention, and as shown in Figure 4, this device comprises: number determination module 42, application module 44, receiver module 46 and configuration module 48.The below describes this structure.
Number determination module 42 is used for determining to apply for the number of MAC Address according to collocation strategy;
Application module 44 is connected to number determination module 42, is used for the MAC Address to the above-mentioned number of MAC Address management server application;
Receiver module 46 is connected to application module 44, is used for receiving the MAC Address that above-mentioned MAC Address management server returns;
Configuration module 48 is connected to receiver module 46, is used for the above-mentioned MAC Address that receiver module 46 receives is configured to virtual machine.
In the present embodiment, application module 44 is to the MAC Address of MAC Address management server application by the definite application MAC Address number of number determination module 42, the MAC Address that the above-mentioned MAC Address management server that configuration module 48 receives receiver module 46 returns configures to above-mentioned virtual machine, the a lot of messages of application needs of MAC Address in the correlation technique have been solved, the problem that network burden is increased the weight of, and then reached the effect that alleviates network burden.
Fig. 5 is the another kind of structured flowchart according to the Virtual Machine Manager device of the embodiment of the present invention, as shown in Figure 5, application module 44 in said apparatus comprises: packet sending unit 442, be used for sending the MAC Address request message to the MAC Address management server, wherein, this MAC Address request message carries the indication information of number of request target MAC (Media Access Control) address, and the group character information of MAC Address to be allocated (for example, the group character information of above-mentioned Virtual Machine Manager device place grouping).
Corresponding to the second collocation method of the MAC Address of above-described virtual machine, the present embodiment also provides a kind of MAC Address management server, and this server is used for realizing above-described embodiment.Fig. 6 is the structured flowchart according to the MAC Address management server of the embodiment of the present invention, and as shown in Figure 6, this server comprises: application receiver module 62, address determination module 64, address sending module 66.The below describes this structure.
Application receiver module 62 is used for the MAC Address application that the sink virtual machine management devices sends, and this application is carried the MAC Address number of promising virtual machine request;
Address determination module 64 is connected to application receiver module 62, is used for determining according to the above-mentioned application that application receiver module 62 receives the MAC Address of above-mentioned number;
Address configuration module 66 is connected to address determination module 64, is used for the above-mentioned MAC Address that address determination module 64 is determined is configured to above-mentioned Virtual Machine Manager device.
In the present embodiment, the MAC Address application that application receiver module 62 sink virtual machine management devices send, this application carries the MAC Address number of request, then the MAC Address of the above-mentioned number determined to above-mentioned Virtual Machine Manager device return address determination module 64 of address configuration module 66, the a lot of messages of application needs of MAC Address in the correlation technique have been solved, the problem that network burden is increased the weight of, and then reached the effect that alleviates network burden.
Fig. 7 is the another kind of structured flowchart according to the MAC Address management server of the embodiment of the present invention, as shown in Figure 7, address determination module 64 in above-mentioned server comprises first information determining unit 642 and the second information determining unit 644, and the below describes this structure.
First information determining unit 642 is used for determining whether application carries the group character information of Virtual Machine Manager device place grouping;
The second information determining unit 644, be connected to first information determining unit 642, be used in definite result of first information determining unit 642 when being, be that grouping corresponding to above-mentioned group character information distributes the respective counts target MAC (Media Access Control) address according to above-mentioned application, for example, can be not identical for each MAC Address of distributing in same grouping.
Corresponding to two kinds of collocation methods of the MAC Address of above-described virtual machine, the present embodiment provides again a kind of MAC Address configuration-system of virtual machine, and this system is used for realizing above-described embodiment.Fig. 8 is the structured flowchart according to the MAC Address configuration-system of the virtual machine of the embodiment of the present invention, and as shown in Figure 8, this system is except comprising Virtual Machine Manager device 40 and MAC Address management server 60.Wherein, Virtual Machine Manager device 40 can adopt above-mentioned Fig. 4 or mode shown in Figure 5 to realize, the present embodiment is embodied as example with the modules in Virtual Machine Manager device 40 above-mentioned Fig. 4 of employing and describes, MAC Address management server 60 can adopt above-mentioned Fig. 6 or mode shown in Figure 7 to realize,, the present embodiment is embodied as example with the modules in MAC Address management server 60 above-mentioned Fig. 6 of employing and describes.
Be elaborated below in conjunction with the implementation procedure of preferred embodiments and drawings to above-described embodiment.
The invention provides and a kind ofly carry out mutual method and system between virtualized host and network MAC Address Management Server, relate to the behavior of virtualized host behavior and network side protocol processes server and MAC Address administrative unit, and the exchange method between them.Fig. 9 is the schematic diagram of the MAC Address that provides of the present embodiment network configuration of distributing, wherein, comprise Dynamic Host Configuration Protocol server (also referred to as the protocol processes server) and Hypervisor (inner VM supervision/control unit), when this Dynamic Host Configuration Protocol server is used for MAC Address is managed, the MAC Address administrative unit can be set on this Dynamic Host Configuration Protocol server; Certainly, when not needing this Dynamic Host Configuration Protocol server that MAC Address is managed, also can not comprise the MAC Address administrative unit on it.When not comprising, this MAC Address administrative unit can be an independently equipment, for example, and the MAC Address management server in above-described embodiment.Above-mentioned Virtual Machine Manager device is equivalent to Hypervisor, and the main frame in Fig. 9 comprises Hypervisor and a plurality of VM, and Hypervisor is used for each VM is managed.The below describes as an example of network configuration shown in Figure 9 example.
Embodiment one
The present embodiment provides the interaction flow between a kind of virtualized host and network MAC Address Management Server, the present embodiment is embodied as example with the MAC Address administrative unit as equipment independently and describes, under this mode, the protocol processes server only is used for coordinating Virtual Machine Manager device (the present embodiment is Hypervisor) to complete to MAC Address administrative unit application MAC Address, virtual machine as shown in figure 10 and the mutual flow chart of MAC Address management server, the method comprise the steps (step S1002-step S1022):
Step S1002 completes when Hypervisor starts, and can carry out the processing of MAC Address request, and to MAC Address administrative unit application MAC Address, the present embodiment namely sends to the protocol processes server message that comprises the MAC Address request.
After step S1004, protocol processes server receive the above-mentioned message that comprises the MAC Address request, to MAC Address administrative unit application MAC Address.
Step S1006, the MAC Address administrative unit is according to above-mentioned application, distributes and issues MAC Address.
After step S1008, protocol processes server receive the MAC Address that the MAC Address administrative unit issues, respond the MAC Address message that comprises distribution to Hypervisor.
Step S1010, this step is optional action, VM applies for MAC Address to Hypervisor.Also can there is no this step, Hypervisor directly turns to step S1012 after perceiving the VM establishment.
Step S1012, Hypervisor distributes MAC Address to VM, namely informs corresponding MAC Address to VM.
Step S1014, this step is optional action, S1016 chooses any one kind of them with step, is the processing of re-renting of carrying out MAC Address.This step is to be initiated by Hypervisor, and VM does not process.Be that Hypervisor sends message that MAC Address re-rents processing to the protocol processes server, then this message of protocol processes server response is to Hypervisor.
Step S1016, S1014 chooses any one kind of them with step, is the processing of re-renting of carrying out MAC Address.This step is to be initiated by VM, and Hypervisor does not process.Be that VM sends message that MAC Address re-rents processing to the protocol processes server, then this message of protocol processes server response to VM, is completed re-renting of MAC Address.
Step S1018, when VM wanted deleting MAC address, Hypervisor initiated MAC Address and discharges the message of processing, and message comprises the option information of the MAC Address that will discharge.The protocol processes server can be responded a MAC Address and discharge the message of confirming, also can respond.
Step S1020, protocol processes server notification MAC Address administrative unit discharges MAC Address.
Step S1022, this step is optional action, the protocol processes server discharges the message notifying of confirmation to Hypervisor with MAC Address.
Above-mentioned interaction protocol message, can distribute flexibly a plurality of designation number target MAC (Media Access Control) address, divide timing to process respectively MAC according to the group character in the option bag, the management of MAC Address pond can configure MAC Address flexibly according to managerial demand, even for different groupings, MAC Address can repeat, and reduces the consumption of address.
The form of above-mentioned option message is seen Figure 11, and shown in Figure 11 is in interaction protocol about the schematic diagram of the option message format of MAC Address, and whether the G in figure the global assignment sign, determines the group character content whether occurs in message.When G is 0, expression global assignment MAC Address, the MAC Address of distribution is all different; When G was 1, expression distributed MAC Address according to group character, and namely the MAC Address in the group can be identical, and the MAC Address between group is different.
Sub-option type in Figure 11 can be got different values, the group option type is 1 o'clock, the expression request distributes MAC Address, imformosome part in message can not occur at this moment, this moment, the imformosome number represented what corresponding imformosomes main frame needs distribute, such as sub-option type is 1 o'clock, just what MAC Address expression needs.
When the group option type was other type, the imformosome number represented back imformosome number, and such as being 2 o'clock for sub-option type, the imformosome number just represents what MAC the back imformosome partly comprises, and imformosome partly comprises the corresponding information content.
In addition, sub-option type is to represent the MAC Address response that distributes at 2 o'clock; Sub-option type is to represent that request discharged MAC Address at 3 o'clock; Sub-option type is 0 or represents to keep this MAC Address during 4-127.
In group character, the sign type decided meaning and the coded system of back ident value.3 kinds of sign types have been defined at present: customer VLAN (C-VLAN), service vlan (S-VLAN), IPV4 subnet.Follow-up can the expansion as required.
When the sign types value is 1, be for customer VLAN (C-VLAN), its form is 2 byte-sized vlan-id values;
When the sign types value is 2, be for service vlan (S-VLAN), its form is 2 byte-sized vlan-id values;
When being 3, be for the IPV4 subnet when the sign types value, its form is 4 bytes, the IP subnet address, and host machine part is 0;
When the sign types value is 0 or during 4-127, its for type keep, its form is undetermined.
Top option also can be put into DHCP V4, the protocol massages such as DHCP V6, VDP.When different values is got respectively in the G in message, sub-option type, imformosome number and group character, just represented the different effect of this message.
Top protocol processes can be DHCP V4, can be also DHCP V6, can be also VDP, does not limit specific agreement.Following examples two to four are for the message interaction mode based on DHCP V4, DHCP V6 and three kinds of agreements of VDP.
Embodiment two
In the present embodiment, what interaction protocol adopted is the protocol massages of DHCP agreement V4 version, support the main frame of DHCP V4 to comprise VM and Hypervisor, the difference of the present embodiment and embodiment one is, is that the MAC Address that Hypervisor directly will apply for is distributed to the VM use between VM and Hypervisor.The processing that the processing that the host computer side MAC Address is re-rented, MAC Address discharge is all that Hypervisor completes voluntarily.
The present embodiment is embodied as example with the MAC Address administrative unit as equipment independently and describes, under this mode, DHCP V4SERVER (being equivalent to the protocol processes server in above-described embodiment) only is used for coordinating Virtual Machine Manager device (the present embodiment is Hypervisor) to complete to MAC Address administrative unit application MAC Address, the flow chart of the message interaction method that is based on DHCP V4 agreement as shown in figure 12, the method comprise the steps (step S1202-step S1218):
Step S1202, Hypervisor are to MAC Address administrative unit application MAC Address, and the present embodiment is that Hypervisor sends the DHCP REQUEST message that comprises MAC Address request option to DHCP V4 SERVER.
After step S1204, DHCP V4 SERVER receive the above-mentioned DHCP REQUEST message that comprises MAC Address request option, to MAC Address administrative unit application MAC Address.
Step S1206, the MAC Address administrative unit is according to above-mentioned request, distributes and issues MAC Address.
After step S1208, DHCP V4 SERVER receive the MAC Address that the MAC Address administrative unit issues, respond the DHCP ACK message of the MAC Address option that comprises distribution to Hypervisor.
After step S1210, Hypervisor perceived the VM establishment, Hypervisor informed a MAC Address to VM.
Step S1212, Hypervisor carry out the processing of re-renting of MAC Address.This step is to be initiated by Hypervisor, and VM does not process.Be that Hypervisor sends and to comprise MAC Address and re-rent the DHCP REQUEST message of option to DHCP V4SERVER.
Step S1214, DHCP V4 SERVER will comprise MAC Address and re-rent the DHCP ACK message of option and be sent to Hypervisor.
Step S1216, when VM wanted deleting MAC address, the DHCP REQUEST message that Hypervisor will comprise MAC Address release processing was sent to DHCP V4 SERVER, and message comprises the option information of the MAC Address that will discharge.
Step S1218, DHCP V4 SERVER notice MAC Address administrative unit discharges MAC Address.
Embodiment three
In the present embodiment, what interaction protocol adopted is the protocol massages of DHCP agreement V6 version, support the main frame of DHCP V6 to comprise VM and Hypervisor, the difference of the present embodiment and embodiment one is, that a plurality of MAC Address that Hypervisor directly will apply for are distributed to the VM1 use between VM1 and Hypervisor, because VM1 only needs an address.And VM2 needs 2 addresses, just can control oneself and initiatively want 2 addresses to Hypervisor, and then 2 MAC Address of Hypervisor response are to VM2.The processing that the processing that the host computer side MAC Address is re-rented, MAC Address discharge is all to be completed voluntarily by Hypervisor.
The present embodiment is embodied as example with the MAC Address administrative unit as equipment independently and describes, under this mode, DHCP V6SERVER (being equivalent to the protocol processes server in above-described embodiment) only is used for coordinating Virtual Machine Manager device (the present embodiment is Hypervisor) to complete to MAC Address administrative unit application MAC Address, the flow chart of the message interaction method that is based on DHCP V6 agreement as shown in figure 13, the method comprise the steps (step S1302-step S1322):
Step S1302, Hypervisor are to MAC Address administrative unit application MAC Address, and the present embodiment is that Hypervisor sends the DHCP SOLICIT message that comprises MAC Address request option to DHCP V6 SERVER.
After step S1304, DHCP V6 SERVER receive the above-mentioned DHCP SOLICIT message that comprises MAC Address request option, to MAC Address administrative unit application MAC Address.
Step S1306, the MAC Address administrative unit is according to above-mentioned request, distributes and issues MAC Address.
After step S1308, DHCP V6 SERVER receive the MAC Address that the MAC Address administrative unit issues, respond the DHCP ADVRETISE message of the MAC Address option that comprises distribution to Hypervisor.
After step S1310, Hypervisor perceived the VM1 establishment, Hypervisor informed a MAC Address to VM1.
Step S1312, VM2 is to two MAC Address of Hypervisor application.
Step S1314, Hypervisor carry out the processing of re-renting of MAC Address, and namely Hypervisor will comprise MAC Address and re-rent the DHCP REQUEST message of option and be sent to DHCP V6 SERVER.
Step S1316, DHCP V6 SERVER will comprise MAC Address and re-rent the DHCP REPLY message of option and be sent to Hypervisor.
Step S1318, Hypervisor informs two MAC Address of re-renting to VM2.
Step S1320, when VM2 will delete above-mentioned two MAC Address, the DHCP REQUEST message that Hypervisor will comprise MAC Address release processing was sent to DHCP V6 SERVER, and message comprises the option information of the MAC Address that will discharge.
Step S1322, DHCP V6 SERVER notice MAC Address administrative unit discharges MAC Address.
Embodiment four
In the present embodiment, what interaction protocol adopted is the VDP protocol massages, support the main frame of DHCP V6 to comprise VM and Hypervisor, the difference of the present embodiment and embodiment one is, is that the MAC Address that Hypervisor directly will apply for is distributed to the VM use between VM and Hypervisor.The processing that the processing that the host computer side MAC Address is re-rented, MAC Address discharge is all also that Hypervisor completes voluntarily.
The present embodiment is embodied as example with the MAC Address administrative unit as equipment independently and describes, under this mode, VDP bridge (being equivalent to the protocol processes server in above-described embodiment) only is used for coordinating Virtual Machine Manager device (the present embodiment is Hypervisor) to complete to MAC Address administrative unit application MAC Address, the flow chart of the message interaction method that is based on the VDP agreement as shown in figure 14, the method comprise the steps (step S1402-step S1420):
Step S1402, Hypervisor are to MAC Address administrative unit application MAC Address, and the present embodiment is that Hypervisor sends Pre-Assoc (pre-related) request message that comprises MAC Address request option to the VDP bridge.
After step S1404, VDP bridge joint receive the above-mentioned Pre-Assoc that comprises MAC Address request option (pre-related) request message, to MAC Address administrative unit application MAC Address.
Step S1406, the MAC Address administrative unit is according to above-mentioned request, distributes and issues MAC Address.
After step S1408, VDP bridge joint receive the MAC Address that the MAC Address administrative unit issues, send Pre-Assoc (pre-related) response message of the MAC Address request option that comprises distribution to Hypervisor.
After step S1410, Hypervisor perceived the VM establishment, Hypervisor informed a MAC Address to VM.
Step S1412, Hypervisor carry out the processing of re-renting of MAC Address.This step is to be initiated by Hypervisor, and VM does not process.Be that Hypervisor sends and to comprise MAC Address and re-rent the Assoc of option (association) and keep message to the VDP bridge.
Step S1414, VDP bridge will comprise MAC Address and re-rent the Assoc of option (association) and keep response message to be sent to Hypervisor.
Step S1416, when VM wanted deleting MAC address, the De-Assoc request message that Hypervisor will comprise MAC Address release processing was sent to the VDP bridge, and message comprises the option information of the MAC Address that will discharge.
Step S1418, VDP bridge notice MAC Address administrative unit discharges MAC Address.
The De-Assoc response message that step S1420, VDP bridge will comprise MAC Address release processing is sent to Hypervisor.
As can be seen from the above description, mutual and the main frame of above-described embodiment by these messages and the participation of protocol processes server, MAC Address pipe unit, can complete application, distribution, the release of a plurality of MAC Address, because the Virtual Machine Manager device by management VM carries out the operations such as application of MAC Address, make mutual message fewer, alleviated network burden.
obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, and in some cases, can carry out step shown or that describe with the order that is different from herein, perhaps they are made into respectively each integrated circuit modules, perhaps a plurality of modules in them or step being made into the single integrated circuit module realizes.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is only the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (13)

1. the MAC Address collocation method is controlled in the media interviews of a virtual machine, it is characterized in that comprising:
The Virtual Machine Manager device is determined the number of application MAC Address according to collocation strategy;
Described Virtual Machine Manager device is to the MAC Address of the described number of MAC Address management server application;
Described Virtual Machine Manager device receives the MAC Address that described MAC Address management server returns;
The described MAC Address that described Virtual Machine Manager device will receive configures to virtual machine.
2. method according to claim 1, is characterized in that, described Virtual Machine Manager device determines that according to collocation strategy the number of application MAC Address comprises:
Described Virtual Machine Manager device is determined the number of this application MAC Address according to the quantity of the virtual machine of management; Perhaps,
Described Virtual Machine Manager device is determined the MAC Address number of this application according to pre-configured application number, then according to the quantity of virtual machine of management, determines the MAC Address number of continuation application.
3. method according to claim 1, is characterized in that, described Virtual Machine Manager device comprises to the MAC Address of the described number of MAC Address management server application:
Described Virtual Machine Manager device sends the MAC Address request message to the MAC Address management server, wherein, described MAC Address request message carries the indication information of the MAC Address of the described number of request, and indicates described MAC Address management server to distribute the group character information of MAC Address according to the place grouping of described Virtual Machine Manager device.
4. method according to claim 1, is characterized in that, the described MAC Address that described Virtual Machine Manager device will receive configures to after described virtual machine, and described method also comprises:
When the MAC Address of described virtual machine expired, described virtual machine or described Virtual Machine Manager device were initiated the request of the MAC Address request of re-renting or initiation release MAC Address to described MAC Address management server.
5. method according to claim 1, is characterized in that, the described MAC Address that described Virtual Machine Manager device will receive configures to after described virtual machine, and described method also comprises:
When described virtual machine deletion, described Virtual Machine Manager device initiates to discharge to described MAC Address management server the MAC Address request that described virtual machine is assigned with.
6. according to claim 1-5 described methods of any one, it is characterized in that, between described Virtual Machine Manager device and described MAC Address management server, mutual information is based on one of following protocol massages: dynamic host configuration protocol DHCP V4, DHCP V6, virtual site are found and configuration protocol VDP.
7. the MAC Address collocation method is controlled in the media interviews of a virtual machine, it is characterized in that comprising:
The MAC Address application that MAC Address management server sink virtual machine management devices sends, the MAC Address number of promising virtual machine request is carried in described application;
Described MAC Address management server is determined the MAC Address of described number according to described application;
The described MAC Address that described MAC Address management server will be determined configures to described Virtual Machine Manager device.
8. method according to claim 7, is characterized in that, described application also carries the group character information of described Virtual Machine Manager device place grouping;
Described MAC Address management server determines that according to described application the MAC Address of described number comprises: described MAC Address management server is the MAC Address that grouping corresponding to described group character information distributes described number according to described application.
9. Virtual Machine Manager device is characterized in that comprising:
The number determination module is used for determining to apply for the number of media interviews control MAC Address according to collocation strategy;
The application module is used for the MAC Address to the described number of MAC Address management server application;
Receiver module is used for receiving the MAC Address that described MAC Address management server returns;
Configuration module is used for the described MAC Address that described receiver module receives is configured to virtual machine.
10. device according to claim 9, is characterized in that, described application module comprises:
Packet sending unit is used for sending the MAC Address request message to the MAC Address management server, and wherein, described MAC Address request message carries the indication information of the MAC Address of the described number of request, and group character information under MAC Address to be allocated.
11. the MAC Address management server is controlled in media interviews, it is characterized in that comprising:
The application receiver module is used for the sink virtual machine management devices and sends the MAC Address application, and the MAC Address number of promising virtual machine request is carried in described application;
The address determination module is for determine the MAC Address of described number according to the described application of described application receiver module reception;
The address configuration module is used for the described MAC Address that described address determination module is determined is configured to described Virtual Machine Manager device.
12. MAC Address management server according to claim 11 is characterized in that, described address determination module comprises:
First information determining unit is used for determining whether described application carries the group character information of described Virtual Machine Manager device place grouping;
The second information determining unit, the definite result that is used for described first information determining unit when being, are the MAC Address of the described number of grouping distribution corresponding to described group character information according to described application.
13. the MAC Address configuration-system is controlled in the media interviews of a virtual machine, it is characterized in that comprising: the described Virtual Machine Manager device of claim 9 or 10 also comprises the described MAC Address management server of claim 11 or 12.
CN2011103545266A 2011-11-10 2011-11-10 Method and device and system of MAC address configuration of virtual machine Pending CN103108053A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103545266A CN103108053A (en) 2011-11-10 2011-11-10 Method and device and system of MAC address configuration of virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103545266A CN103108053A (en) 2011-11-10 2011-11-10 Method and device and system of MAC address configuration of virtual machine

Publications (1)

Publication Number Publication Date
CN103108053A true CN103108053A (en) 2013-05-15

Family

ID=48315620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103545266A Pending CN103108053A (en) 2011-11-10 2011-11-10 Method and device and system of MAC address configuration of virtual machine

Country Status (1)

Country Link
CN (1) CN103108053A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107888713A (en) * 2016-09-30 2018-04-06 中兴通讯股份有限公司 A kind of method, apparatus and access device of dynamically distributes MAC Address

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852329A (en) * 2005-10-21 2006-10-25 华为技术有限公司 Wireless LAN temporary media access control address dynamic allocation and recovery method
CN101150597A (en) * 2006-09-22 2008-03-26 华为技术有限公司 Method, system and device for allocating media access control address for access point
US7424610B2 (en) * 2003-12-23 2008-09-09 Intel Corporation Remote provisioning of secure systems for mandatory control
CN101426027A (en) * 2008-10-28 2009-05-06 北京航空航天大学 Bottom layer communication method for distributed virtual machine monitor
CN101546270A (en) * 2009-05-08 2009-09-30 阿里巴巴集团控股有限公司 Automatic installation method for Linux operation system, device and system
CN102209123A (en) * 2011-05-30 2011-10-05 中国电信股份有限公司 MAC (media access control) address management method and system, MAC address server and client

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7424610B2 (en) * 2003-12-23 2008-09-09 Intel Corporation Remote provisioning of secure systems for mandatory control
CN1852329A (en) * 2005-10-21 2006-10-25 华为技术有限公司 Wireless LAN temporary media access control address dynamic allocation and recovery method
CN101150597A (en) * 2006-09-22 2008-03-26 华为技术有限公司 Method, system and device for allocating media access control address for access point
CN101426027A (en) * 2008-10-28 2009-05-06 北京航空航天大学 Bottom layer communication method for distributed virtual machine monitor
CN101546270A (en) * 2009-05-08 2009-09-30 阿里巴巴集团控股有限公司 Automatic installation method for Linux operation system, device and system
CN102209123A (en) * 2011-05-30 2011-10-05 中国电信股份有限公司 MAC (media access control) address management method and system, MAC address server and client

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107888713A (en) * 2016-09-30 2018-04-06 中兴通讯股份有限公司 A kind of method, apparatus and access device of dynamically distributes MAC Address

Similar Documents

Publication Publication Date Title
CN108924268B (en) Container cloud service system and pod creation method and device
CN111224821B (en) Security service deployment system, method and device
US11490327B2 (en) Method, device, and system for deploying network slice
WO2016028927A1 (en) Methods and system for allocating an ip address for an instance in a network function virtualization (nfv) system
CN107666419B (en) Virtual broadband access method, controller and system
CN103703724A (en) Resource payment method
CN105284080A (en) Data center system and virtual network management method of data center
CN101778132B (en) Method, system and device for network installation based on load balance
CN102377669B (en) Method for sending message and switch
CN102571996A (en) IP (Internet Protocol) address assignment method, IP address assignment device and network system
CN106302839A (en) The distribution method of internet protocol address and device
CN108574613B (en) Two-layer intercommunication method and device for SDN data center
CN110830574B (en) Method for realizing intranet load balance based on docker container
CN108390956A (en) A kind of method and system for virtual machine configuration internet protocol address
CN104348798A (en) Network assigning method and device, scheduling server, and system
CN111130838A (en) Method and device for dynamic expansion of process-level service instance and network bandwidth limitation
CN201332404Y (en) Network card upgrading system and equipment
CN111800523B (en) Management method, data processing method and system of virtual machine network
CN103039059B (en) IP address allocation method, system and device
CN107800814A (en) Virtual machine deployment method and device
CN105453658A (en) Network element selection entity and user equipment registration method
CN102739821A (en) Method and system for allocating IP addresses
CN102447703B (en) A kind of heat backup method and system, CGN equipment
CN103312828A (en) Method, device and system of MAC and IP address couple configuration of virtual machine
CN114826807B (en) Automatic dialing method, dialing device and dialing server

Legal Events

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

Application publication date: 20130515

RJ01 Rejection of invention patent application after publication