CN102209123A - MAC (media access control) address management method and system, MAC address server and client - Google Patents

MAC (media access control) address management method and system, MAC address server and client Download PDF

Info

Publication number
CN102209123A
CN102209123A CN2011101418209A CN201110141820A CN102209123A CN 102209123 A CN102209123 A CN 102209123A CN 2011101418209 A CN2011101418209 A CN 2011101418209A CN 201110141820 A CN201110141820 A CN 201110141820A CN 102209123 A CN102209123 A CN 102209123A
Authority
CN
China
Prior art keywords
mac address
address
message
server
virtual server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011101418209A
Other languages
Chinese (zh)
Other versions
CN102209123B (en
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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201110141820.9A priority Critical patent/CN102209123B/en
Publication of CN102209123A publication Critical patent/CN102209123A/en
Application granted granted Critical
Publication of CN102209123B publication Critical patent/CN102209123B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a MAC (media access control) address management method and system, a MAC address server and a client. The method comprises the following step: the MAC address server receives an address application message sent by the client, wherein the address application message comprises an advisory address of the client; the MAC address server searches an available MAC address for the client in an available MAC address base according to the advisory address; an address distribution message is sent to the client if the available MAC address is searched, wherein the address distribution message comprises a searched available MAC address; and the searched available MAC address is removed from the available MAC address base. By using the MAC address management method and system, the problem of uniform planning management and uniqueness verification of the MAC addresses of a virtual server can be solved, meanwhile, the MAC address distribution efficiency of the virtual server and the security and stability of a virtual environment are improved.

Description

MAC Address management method, system, MAC Address server and client computer
Technical field
The present invention relates to the computer science technical field of virtualization, especially, relate to a kind of MAC Address management method, system, MAC Address server and client computer.
Background technology
Medium access control (Medium Access Control, MAC) address is by 48 bits (promptly, 6 bytes), hexadecimal numeral is formed, wherein, (Organizationally Unique Identifier OUI), is distributed to the IEEE application by manufacturer preceding 24bit in order to organize unique identification, it is special sign position that 2 bit positions are wherein arranged, and is respectively unified or local sign in the whole world and multicast and indicates.The MAC Address of traditional physical server generally all is to be fixed on when dispatching from the factory on the physical network card, is distributed by different network interface card manufacturers.
In virtualized environment, (Virtual Machine Monitor VMM) need distribute available MAC Address or check that virtual server has the availability of MAC Address when creating the startup of virtual server or virtual server the virtual server manager for virtual server.At present, the distribution of the MAC Address of virtual server mainly contains following several method:
(1) the VMware ESX virtualization software of VMWare company: first three byte of virtual server MAC Address is used the fixed address (00-50-56) of VMWare to the OUI application, the 4th byte calculates by the numbering (vCenterID) of virtual server administrative center (vCenter), and latter two byte is then generated at random by VMM.Before virtual server starts, vCenter will check also whether the MAC Address of virtual server repeats, if there is not vCenter in the virtualized environment, then the OUI of MAC will be different.
(2) the Hyper-V virtualization software of Microsoft: first three byte is used the fixed address (00-15-5d) of Microsoft to the OUI application, the the 4th and the 5th byte obtains by the IP address transition of VMM, from the beginning last byte starts distribution by Hyper-V, MAC Address minimum from address pool begins down to distribute always, run into the MAC Address of having distributed and then skip this address and continue again down to seek, find idle MAC Address just to distribute to virtual server.
(3) the Xen virtualization software of Citrix company: one section MAC Address (00-16-3e) that first three byte of virtual server MAC Address generally uses IEEE OUI to keep as Xen domU, three bytes in back are generated at random by VMM.
(4) the KVM virtualization software of Redhat company: the virtual server MAC Address generally is by artificial input MAC Address when creating virtual server.
The inventor the analysis found that can there be following shortcoming and defect in the MAC Address distribution method of virtual server when using at present:
(1) does the mode of uniqueness verification after most existing MAC Address distribution method all adopts and distributed by VMM earlier again, repeat if find, do verification after then redistributing again again, for example, VMWare, this causes allocative efficiency lower, especially as the artificial input mode of KVM, in application, will bring great workload, also can't give full play to the advantage that virtual server is disposed fast, inefficient assignment to the system manager.
(2) the uniqueness verification of MAC Address can not be carried out under the most existing MAC Address distribution method certain situation before use, so the uniqueness of virtual machine MAC Address in the subnet can not be guaranteed.For example, there is not the virtualized environment of vCenter just not have the uniqueness verification of MAC Address, the MAC Address of virtual server does not have the uniqueness verification yet between a plurality of Hyper-V main frames, also there is same problem in Xen, will cause confusion, information dangerous of network service like this even can cause virtual server normally not use.
(3) most existing MAC Address distribution method all lacks unified management, a lot of managerial problems have been brought on the one hand, for example, the recovery of MAC Address and reuse and often be difficult to good realization, the uniqueness verification of striding the virtual server MAC Address between a plurality of virtualization softwares be method preferably not also at present; Also cause the efficiency of management low on the other hand, MAC Address of having distributed and available address pool are not done unified statistical rules, when distributing, often need to be undertaken by passive mode of attempting at random, select one to attempt selecting at random again after the failure at random, compare with the mode of carrying out the active reasonable distribution under the situation that unified management is arranged, efficient is much lower.
Summary of the invention
The technical problem that the present invention will solve provides a kind of MAC Address management method, system, MAC Address server and client computer, can distribute available MAC Address for virtual server efficiently in virtualized environment.
According to an aspect of the present invention, proposed a kind of MAC Address management method, comprised the application IP addresses message that MAC Address server subscribing client sends, application IP addresses message comprises the suggestion address of client computer; The MAC Address server is searched for the MAC Address that client computer can be used according to the suggestion address in available MAC Address storehouse; If search available MAC Address, then send address assignment message to client computer, address assignment message comprises the available MAC Address that searches, and the available MAC Address that will search removes from available MAC Address storehouse.
According to a further aspect in the invention, also proposed a kind of MAC Address server, comprised the first message sink unit, be used for the application IP addresses message that subscribing client sends, application IP addresses message comprises the suggestion address of client computer; The address searching unit links to each other with the first message sink unit, is used for the MAC Address that can use in available MAC Address storehouse search client computer according to the suggestion address; First message sending unit links to each other with the address searching unit, is used for sending address assignment message to client computer under the situation that searches available MAC Address, and address assignment message comprises the available MAC Address that searches; Memory manage unit links to each other with the address searching unit, and the available MAC Address that is used for searching removes from available MAC Address storehouse.
According to another aspect of the invention, also proposed a kind of client computer, comprised second message sending unit, be used for sending application IP addresses message to the MAC Address server, application IP addresses message comprises the suggestion address of client computer; The second message sink unit is used to receive the address assignment message that the MAC Address server sends, address assignment message comprise the MAC Address server search to the MAC Address that can use of virtual server.
In accordance with a further aspect of the present invention, also proposed a kind of MAC Address management system, comprised aforementioned MAC Address server and client computer, wherein, the MAC Address server links to each other by IP network with client computer.
MAC Address management method provided by the invention, system, MAC Address server and client computer, dynamically distribute MAC Address based on client-server (C/S) pattern for the virtual server of client computer carrying, the problem of unified planning management of virtual server MAC Address and uniqueness verification not only can be solved, but also the allocative efficiency of virtual server MAC Address, the fail safe and the stability of virtualized environment can be improved.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part.In the accompanying drawings:
Fig. 1 is the application scenarios schematic diagram of the embodiment of the invention.
Fig. 2 is the schematic flow sheet of an embodiment of MAC Address management method of the present invention.
Fig. 3 is the schematic flow sheet of virtual server MAC Address dispose procedure of the present invention.
Fig. 4 is the availability checking process schematic diagram of virtual server MAC Address of the present invention.
Fig. 5 is the structural representation of an embodiment of MAC Address server of the present invention.
Fig. 6 is the structural representation of an embodiment of client computer of the present invention.
Fig. 7 is the structural representation of an embodiment of MAC Address management system of the present invention.
Embodiment
With reference to the accompanying drawings the present invention is described more fully, exemplary embodiment of the present invention wherein is described.Exemplary embodiment of the present invention and explanation thereof are used to explain the present invention, but do not constitute improper qualification of the present invention.
Below be illustrative to the description only actually of at least one exemplary embodiment, never as any restriction to the present invention and application or use.
Following embodiment of the present invention is applicable to general IP network, and transmission link and transmission equipment are not had special requirement, as long as can carry out normal IP communication between client computer VMM and the server.
Fig. 1 is the application scenarios schematic diagram of the embodiment of the invention.
As shown in Figure 1, in an IP network, there is physical server that a main frame installed VMM software as MAC Address server and two (promptly, client computer A and client computer B), on client computer A and client computer B, respectively carrying some virtual servers, for example, carry virtual server C on the client computer A, carrying virtual server D on the client computer B.Safeguard the information of coupled All Clients on the MAC Address server, comprising the communication information of client computer, the MAC Address of having applied for and the MAC Address of using.
The communication message form of MAC Address server and client computer is shown in following table 1:
Figure BDA0000064643150000051
Table 1
Wherein, MAC Address server and the client computer communication information between the two can be obtained in traditional IP header, and the length of each field and implication are shown in following table 2 in the above-mentioned table 1:
Figure BDA0000064643150000052
Table 2
Fig. 2 is the schematic flow sheet of an embodiment of MAC Address management method of the present invention.
As shown in Figure 2, this embodiment can may further comprise the steps:
S202, the application IP addresses message that MAC Address server subscribing client sends, this application IP addresses message comprises the suggestion address of client computer;
S204, the MAC Address server is searched for the MAC Address that client computer can be used according to the suggestion address in available MAC Address storehouse;
S206, if search available MAC Address, then send address assignment message to client computer, address assignment message comprises the available MAC Address that searches, and the available MAC Address that will search removes from available MAC Address storehouse, and add to and take in the MAC Address storehouse, otherwise, send the exhausted message in address to client computer.
Illustrate, as shown in Figure 1, when client computer A will create a virtual server C, if the system manager does not manually set MAC Address, client computer then was made as 1 with first byte " type of message " of datagram, the available then needs according to self (for example, need the own virtualization software of sign) address size is made as 3, in " suggestion address ", oneself OUI is filled into back benefit 0 again, for example, the VMWare virtualization software can be filled out and be 00-50-56-00-00-00.Server can utilize first three byte of the suggestion address that client computer provides to search in available MAC Address storehouse after receiving application IP addresses message like this, in case finding the MAC Address identical with first three byte of advising the address just inserts this address in " distribution address ", and " type of message " is made as 3, send address assignment message to client computer, simultaneously this MAC Address is removed from available MAC Address storehouse, and it is added to take in the MAC Address storehouse, so far finish the assigning process of a MAC Address.
Alternatively, also availablely available MAC Address storehouse is subdivided into the MAC Address storehouse of not used and once used but unappropriated MAC Address storehouse.At first, the MAC Address server is after receiving application IP addresses message, first three byte according to the suggestion address is searched in the MAC Address storehouse of not used, in case finding the MAC Address identical with first three byte of advising the address just inserts this address in " distribution address ", and " type of message " is made as 3, send address assignment message to client computer, simultaneously this MAC Address is removed from available MAC Address storehouse, and add to and take in the MAC Address storehouse, if in the MAC Address storehouse of not used, do not find suitable address, then the MAC Address server will once use but further searching in the unappropriated MAC Address storehouse, the hunting zone expanded to once distributed but not occupied at present address, if find suitable address, then equally carry out normal allocation,, then " type of message " is made as 7 if do not find suitable address with top, send the exhausted message in address to client computer, and report an error to the system manager.
This embodiment dynamically distributes MAC Address for the virtual server of client computer carrying based on client-server (C/S) pattern, the problem of unified planning management of virtual server MAC Address and uniqueness verification not only can be solved, but also the allocative efficiency of virtual server MAC Address, the fail safe and the stability of virtualized environment can be improved.
Further, transfer closed condition to from running status above after the scheduled time, start the MAC Address dispose procedure of virtual server at virtual server.
Fig. 3 is the schematic flow sheet of virtual server MAC Address dispose procedure of the present invention.
As shown in Figure 3, this address dispose procedure can may further comprise the steps:
S302, the address release message that MAC Address server subscribing client sends, the address release message comprises address to be discharged;
S304, the address that the MAC Address server will be to be discharged moves on to from take the MAC Address storehouse in the available MAC Address storehouse.
Illustrate, find that when client computer the virtual server of its carrying transfers closed condition to above certain time interval T 1, then enabling address dispose procedure from running status.Particularly, the address that will discharge is added " release address " field to, and " type of message " is made as 4, sends the address release message to the MAC Address server.The MAC Address server removes address to be discharged after receiving this address release message from take the MAC Address storehouse, add to simultaneously in the available MAC Address storehouse.
From this embodiment as can be seen, the dispose procedure of MAC Address can efficiently utilize limited MAC Address resource.
In addition, this set time, T1 can be set by the system manager, for example, and one hour.Certainly, according to the capacity in MAC Address pond, the system manager also can set cancellation address dispose procedure, that is, in a single day virtual server is assigned to after this MAC Address, can forever take this address under the situation that does not have the keeper to participate in revising.
In addition, when closed condition transfers opening to, start the MAC Address availability checking procedure of virtual server at virtual server.
Fig. 4 is the availability checking process schematic diagram of virtual server MAC Address of the present invention.
As shown in Figure 4, the availability checking procedure of MAC Address can may further comprise the steps:
The address check message that S402, MAC Address server subscribing client send, address check message comprise virtual server close before employed MAC Address;
S404, MAC Address server in taking the MAC Address storehouse, search whether exist virtual server close before employed MAC Address;
S406 if there is no, then sends the address available message to client computer, and employed MAC Address removed from available MAC Address storehouse before virtual server closed, and adds to and take in the MAC Address storehouse;
S408, if exist, then whether the MAC Address server is searched to exist to virtual server in available MAC Address storehouse and is closed the preceding similar MAC Address of employed MAC Address, wherein, similar MAC Address be meant its first five byte and virtual server close before identical, its preceding four bytes of the first five byte of employed MAC Address and virtual server close identical or its first three byte of preceding four bytes of preceding employed MAC Address and virtual server to close first three byte of preceding employed MAC Address identical;
S410, if exist, then send new address assignment message to client computer, new address assignment message comprise find to the similar MAC Address of employed MAC Address before virtual server is closed, and similar MAC Address removed from available MAC Address storehouse, and add to and take in the MAC Address storehouse, if there is no, then send the unavailable message in address to client computer.
Illustrate, still referring to Fig. 1, when the virtual server D of client computer B carrying opened under closed condition, client computer B will send to the MAC Address server with the last MAC Address of using of virtual server D, is carried out the verification of availability by the MAC Address server.This moment, client computer B was made as the last MAC Address of using of virtual server D with " verification address ", and " type of message " is made as 2, sent address check message by IP network to the MAC Address server.
The MAC Address server is after receiving this address check message, earlier in taking the MAC Address storehouse, search whether there is this verification address, if do not find this address, then " type of message " is made as 5, send the address available message to client computer B, this verification address is moved on to from the available address storehouse take in the MAC Address storehouse simultaneously.If find this address, illustrate that then this address just used by other virtual servers at present, virtual server D can not re-use this address.At first, the MAC Address server is searched in available MAC Address storehouse and the identical MAC Address of this first five byte of verification MAC Address, if found the most similar address, then the MAC Address server is made as 3 with " type of message ", and first the most similar address that will find sends to client computer B, this address moved on to from available MAC Address storehouse to take the MAC Address storehouse simultaneously; If do not find the most similar address, then continue in available MAC Address storehouse, to search preceding four MAC Address that byte is identical with this verification MAC Address, if find then send this distribution address to client computer in top same mode.If do not find, then in available MAC Address storehouse, continue to search the identical situation of first three byte similarly, and handle accordingly.If the MAC Address server does not also find similar address, then " type of message " is made as 6, send the unavailable message in address to client computer B, unavailable to show this verification address.
Correspondingly, on client computer, the MAC Address availability checking procedure of virtual server can also comprise:
S412, client computer is judged the type of message that receives;
S414 if be the address available message, then directly uses and the startup virtual server;
S416, if be new address assignment message, judge then whether virtual server is closed preceding employed MAC Address is that administrator hand is set or is locked as and can not rewrites, if, then send the address release message to discharge the MAC Address of being distributed to the MAC Address server, otherwise, whether the MAC Address that the client computer inspection is distributed meets the address requirement that client computer is set, if meet the requirements, then the MAC Address of being distributed is started virtual server as the MAC Address of virtual server, otherwise, send the address release message to discharge the MAC Address of being distributed to the MAC Address server.
Illustrate, client computer is after sending address check message, if receive the address available message, then directly use and start virtual machine, if what receive is address assignment message, check that then whether historical MAC Address is that the system manager manually sets or lockedly can not rewrite MAC Address, if, then send the MAC Address release message to the MAC Address server, discharge newly assigned MAC Address, report an error to the system manager simultaneously, the set MAC Address of apprizing system keeper is occupied.If be the MAC Address of unartificial setting, and neither other situations about can not rewrite, then client computer will check then whether newly assigned MAC Address meets the requirement of setting on the client computer, for example, whether first three field is for its producer's sign, at VMWare software, whether the vCenter of its 4th byte correct, at Hyper-V software, whether it is the 4th relevant with the IP address with the 5th volume byte etc., if meet the requirements, then the MAC Address server MAC Address that will go up sub-distribution is rewritten as newly assigned MAC Address, and normally starts virtual server.If newly assigned MAC Address is undesirable, then client computer will send new MAC Address release information to the MAC Address server, report an error to the keeper simultaneously, for example, not have available MAC Address.
If client computer is received the unavailable information in address after sending address check message, check that then whether historical MAC Address is that the system manager manually sets or lockedly can not rewrite MAC Address, if, then report an error to the system manager, the set MAC Address of apprizing system keeper is occupied, otherwise according to the application of address assignment flow process initiation to MAC Address, idiographic flow as shown in Figure 2 again.
Fig. 5 is the structural representation of an embodiment of MAC Address server of the present invention.
As shown in Figure 5, the MAC Address server 50 of this embodiment can comprise:
The first message sink unit 51 is used for the application IP addresses message that subscribing client sends, and application IP addresses message comprises the suggestion address of client computer;
Address searching unit 52, link to each other with the first message sink unit, be used for searching for the MAC Address that client computer can be used in available MAC Address storehouse, for example, in available MAC Address storehouse, search for the MAC Address identical as available MAC Address with first three byte of suggestion address according to the suggestion address;
First message sending unit 53 links to each other with the address searching unit, is used for sending address assignment message to client computer under the situation that searches available MAC Address, and address assignment message comprises the available MAC Address that searches;
Memory manage unit 54 links to each other with the address searching unit, and the available MAC Address that is used for searching removes from available MAC Address storehouse, and adds to and take in the MAC Address storehouse.
This embodiment dynamically distributes MAC Address for the virtual server of client computer carrying based on client-server (C/S) pattern, the problem of unified planning management of virtual server MAC Address and uniqueness verification not only can be solved, but also the allocative efficiency of virtual server MAC Address, the fail safe and the stability of virtualized environment can be improved.
Further, transfer the MAC Address dispose procedure that starts virtual server after closed condition surpasses the scheduled time to from running status at virtual server, correspondingly:
The first message sink unit also is used for the address release message that subscribing client sends, and the address release message comprises address to be discharged;
Memory manage unit links to each other with the first message sink unit, also is used for address to be discharged is moved on to the available MAC Address storehouse from taking the MAC Address storehouse.
In addition, when transferring opening to, closed condition starts the MAC Address availability checking procedure of virtual server at virtual server, correspondingly:
The first message sink unit also is used for the address check message that subscribing client sends, address check message comprise virtual server close before employed MAC Address;
The address searching unit, also be used for take the MAC Address storehouse search whether exist virtual server to close before employed MAC Address, in available MAC Address storehouse, search under the situation of employed MAC Address before in taking the MAC Address storehouse, existing virtual server to close and whether exist and the similar MAC Address of employed MAC Address before virtual server is closed;
First message sending unit, also be used for sending the address available message to client computer under the situation of employed MAC Address before taking the MAC Address storehouse and not existing virtual server to close, in available MAC Address storehouse, exist to close under the situation of the similar MAC Address of preceding employed MAC Address and send new address assignment message to client computer with virtual server, new address assignment message comprise find to the similar MAC Address of employed MAC Address before virtual server is closed, in available MAC Address storehouse, do not exist under the situation of the MAC Address similar to send the unavailable message in address to client computer to employed MAC Address before virtual server is closed;
Memory manage unit, employed MAC Address removes from available MAC Address storehouse before also being used for when sending the address available message to client computer virtual server closed, and add to and take in the MAC Address storehouse, when sending new address assignment message to client computer, similar MAC Address is removed from available MAC Address storehouse, and add to and take in the MAC Address storehouse.
Fig. 6 is the structural representation of an embodiment of client computer of the present invention.
As shown in Figure 6, the client computer 60 of this embodiment can comprise:
Second message sending unit 61 is used for sending application IP addresses message to the MAC Address server, and application IP addresses message comprises the suggestion address of client computer;
The second message sink unit 62 is used to receive the address assignment message that the MAC Address server sends, address assignment message comprise the MAC Address server search to the MAC Address that can use of virtual server.
This embodiment dynamically distributes MAC Address for the virtual server of client computer carrying based on client-server (C/S) pattern, the problem of unified planning management of virtual server MAC Address and uniqueness verification not only can be solved, but also the allocative efficiency of virtual server MAC Address, the fail safe and the stability of virtualized environment can be improved.
Further, transfer the MAC Address dispose procedure that starts virtual server after closed condition surpasses the scheduled time to from running status at virtual server, correspondingly:
Second message sending unit also is used for sending the address release message to the MAC Address server, and the address release message comprises address to be discharged.
In addition, when transferring opening to, closed condition starts the MAC Address availability checking procedure of virtual server at virtual server, correspondingly:
Second message sending unit also is used for sending address check message to the MAC Address server, address check message comprise virtual server close before employed MAC Address;
The second message sink unit, also be used for before taking the MAC Address storehouse and not existing virtual server to close, receiving under the employed MAC Address situation address available message that the MAC Address server sends, receive the new address assignment message that the MAC Address server sends before in available MAC Address storehouse, existing virtual server to close under the employed MAC Address situation, new address assignment message comprise find to the similar MAC Address of employed MAC Address before virtual server is closed, receive the unavailable message in address that the MAC Address server sends under the employed MAC Address situation before in available MAC Address storehouse, not existing virtual server to close.
Further, in order to finish the checking procedure of MAC Address, client computer can also comprise:
Judging unit links to each other with the second message sink unit, is used to judge the type of received message;
Message processing unit, link to each other with judging unit, be used for when the message that receives is the address available message, directly using and starting virtual server, when the message that receives is new address assignment message, judge virtual server close before employed MAC Address whether be that administrator hand is set or is locked as and can not rewrites, in the message that receives is new address assignment message, employed MAC Address was not that administrator hand is set and non-locking is to check under the situation about can not rewrite whether the MAC Address of being distributed meets the address requirement that client computer is set before virtual server was closed, if meet the requirements, then the MAC Address of being distributed is started virtual server as the MAC Address of virtual server;
Second message sending unit, link to each other with message processing unit, also be used for the message that receives be before new address assignment message and virtual server are closed employed MAC Address be administrator hand set or be locked as situation about can not rewrite and the undesirable situation of MAC Address of being distributed under send the address release message to discharge the MAC Address of being distributed to the MAC Address server.
Fig. 7 is the structural representation of an embodiment of MAC Address management system of the present invention.
As shown in Figure 7, the MAC Address management system 70 of this embodiment can comprise by interconnective MAC Address server 71 of IP network and client computer 72, wherein, MAC Address management server 71 can realize that client computer 72 can realize by mode shown in Figure 6 by mode shown in Figure 5.
Above-mentioned MAC Address server, client computer and MAC Address management system can realize the corresponding flow process of aforementioned MAC Address management method, and instantiation no longer repeats at this referring to the description of method flow.
The characteristics that the above embodiment of the present invention is distributed at virtual machine server MAC Address in the virtualized environment have proposed the dynamic MAC address allocation architecture based on client-server (C/S) pattern, by a unified MAC address server is set, set up a unified administrative mechanism, make each MAC Address distribution or the verification of MAC Address uniqueness all carry out at the MAC Address server end, can not only effectively solve the complexity of MAC Address distribution and the problem of how to carry out the uniqueness verification, and can also compatible easily various virtualization softwares, realize simple, efficiently, the problem of unified planning management of virtual server MAC Address and uniqueness verification be can effectively solve, the allocative efficiency of virtual server MAC Address and the fail safe and the stability of virtualized environment improved.
Though specific embodiments more of the present invention are had been described in detail by example, it should be appreciated by those skilled in the art that above example only is in order to describe, rather than in order to limit the scope of the invention.It should be appreciated by those skilled in the art, can under situation about not departing from the scope of the present invention with spirit, above embodiment be made amendment.Scope of the present invention is limited by claims.

Claims (14)

1. a MAC Address management method is characterized in that, comprising:
The application IP addresses message that MAC Address server subscribing client sends, described application IP addresses message comprises the suggestion address of described client computer;
Described MAC Address server is searched for the MAC Address that described client computer can be used according to described suggestion address in available MAC Address storehouse;
If search available MAC Address, then send address assignment message to described client computer, described address assignment message comprises the available MAC Address that searches, and the available MAC Address that will search removes from described available MAC Address storehouse.
2. MAC Address management method according to claim 1 is characterized in that, also comprises:
Transfer closed condition to from running status above after the scheduled time at described virtual server, start the MAC Address dispose procedure of virtual server.
3. MAC Address management method according to claim 2 is characterized in that, the MAC Address dispose procedure of described virtual server comprises:
Described MAC Address server receives the address release message that described client computer sends, and described address release message comprises address to be discharged;
Described MAC Address server will be to be discharged the address from take the MAC Address storehouse, move on in the described available MAC Address storehouse.
4. MAC Address management method according to claim 1 is characterized in that, also comprises:
When closed condition transfers opening to, start the MAC Address availability checking procedure of virtual server at described virtual server.
5. MAC Address management method according to claim 4 is characterized in that, the MAC Address availability checking procedure of described virtual server comprises:
Described MAC Address server receives the address check message that described client computer sends, described address check message comprise virtual server close before employed MAC Address;
Described MAC Address server in taking the MAC Address storehouse, search whether exist virtual server close before employed MAC Address;
If there is no, then send the address available message, and employed MAC Address removed from described available MAC Address storehouse before virtual server closed to described client computer;
If exist, whether then described MAC Address server is searched to exist to virtual server in described available MAC Address storehouse and is closed the preceding similar MAC Address of employed MAC Address, wherein, similar MAC Address be meant its first five byte and virtual server close before identical, its preceding four bytes of the first five byte of employed MAC Address and virtual server close identical or its first three byte of preceding four bytes of preceding employed MAC Address and virtual server to close first three byte of preceding employed MAC Address identical;
If exist, then send new address assignment message to described client computer, described new address assignment message comprise find to virtual server close before the similar MAC Address of employed MAC Address, and similar MAC Address removed from described available MAC Address storehouse, if there is no, then send the unavailable message in address to described client computer.
6. MAC Address management method according to claim 5 is characterized in that, the MAC Address availability checking procedure of described virtual server also comprises:
Described client computer is judged the type of message that receives;
If be described address available message, then directly use and the startup virtual server;
If be described new address assignment message, judge then whether virtual server is closed preceding employed MAC Address is that administrator hand is set or is locked as and can not rewrites, if, then send the address release message to discharge the MAC Address of being distributed to described MAC Address server, otherwise, whether the MAC Address that described client computer inspection is distributed meets the address requirement that described client computer is set, if meet the requirements, then the MAC Address of being distributed is started virtual server as the MAC Address of virtual server, otherwise, send the address release message to discharge the MAC Address of being distributed to described MAC Address server.
7. a MAC Address server is characterized in that, comprising:
The first message sink unit is used for the application IP addresses message that subscribing client sends, and described application IP addresses message comprises the suggestion address of described client computer;
The address searching unit links to each other with the described first message sink unit, is used for the MAC Address that can use in the available MAC Address storehouse described client computer of search according to described suggestion address;
First message sending unit links to each other with described address searching unit, is used for sending address assignment message to described client computer under the situation that searches available MAC Address, and described address assignment message comprises the available MAC Address that searches;
Memory manage unit links to each other with described address searching unit, and the available MAC Address that is used for searching removes from described available MAC Address storehouse.
8. MAC Address server according to claim 7 is characterized in that,
The described first message sink unit also is used to receive the address release message that described client computer sends, and described address release message comprises address to be discharged;
Described memory manage unit links to each other with the described first message sink unit, also is used for address to be discharged is moved on to the described available MAC Address storehouse from taking the MAC Address storehouse.
9. MAC Address server according to claim 7 is characterized in that,
The described first message sink unit also is used to receive the address check message that described client computer sends, described address check message comprise virtual server close before employed MAC Address;
Described address searching unit, also be used for take the MAC Address storehouse search whether exist virtual server to close before employed MAC Address, described taken in described available MAC Address storehouse, to search under the situation of employed MAC Address before existing virtual server to close in the MAC Address storehouse whether exist and the similar MAC Address of employed MAC Address before virtual server is closed;
Described first message sending unit, also be used for sending the address available message to described client computer under the situation of employed MAC Address before taking the MAC Address storehouse and not existing virtual server to close, in described available MAC Address storehouse, exist to close under the situation of the similar MAC Address of preceding employed MAC Address and send new address assignment message to described client computer with virtual server, described new address assignment message comprise find to the similar MAC Address of employed MAC Address before virtual server is closed, in described available MAC Address storehouse, do not exist under the situation to the similar MAC Address of employed MAC Address before virtual server is closed to send the unavailable message in address to described client computer;
Described memory manage unit, be used for also that employed MAC Address removes from described available MAC Address storehouse before when described client computer sends the address available message virtual server being closed, when sending new address assignment message to described client computer, similar MAC Address removed from described available MAC Address storehouse.
10. a client computer is characterized in that, comprising:
Second message sending unit is used for sending application IP addresses message to the MAC Address server, and described application IP addresses message comprises the suggestion address of described client computer;
The second message sink unit is used to receive the address assignment message that described MAC Address server sends, described address assignment message comprise described MAC Address server search to the MAC Address that can use of virtual server.
11. client computer according to claim 10 is characterized in that,
Described second message sending unit also is used for sending the address release message to described MAC Address server, and described address release message comprises address to be discharged.
12. client computer according to claim 10 is characterized in that,
Described second message sending unit also is used for sending address check message to described MAC Address server, described address check message comprise virtual server close before employed MAC Address;
The described second message sink unit, also be used for before taking the MAC Address storehouse and not existing virtual server to close, receiving under the employed MAC Address situation address available message that described MAC Address server sends, receive the new address assignment message that described MAC Address server sends before in described available MAC Address storehouse, existing virtual server to close under the employed MAC Address situation, described new address assignment message comprise find to the similar MAC Address of employed MAC Address before virtual server is closed, receive the unavailable message in address that described MAC Address server sends under the employed MAC Address situation before in described available MAC Address storehouse, not existing virtual server to close.
13. client computer according to claim 12 is characterized in that, described client computer also comprises:
Judging unit links to each other with the described second message sink unit, is used to judge the type of received message;
Message processing unit, link to each other with described judging unit, be used for when the message that receives is described address available message, directly using and starting virtual server, when the message that receives is new address assignment message, judge virtual server close before employed MAC Address whether be that administrator hand is set or is locked as and can not rewrites, in the message that receives is new address assignment message, employed MAC Address was not that administrator hand is set and non-locking is to check under the situation about can not rewrite whether the MAC Address of being distributed meets the address requirement that described client computer is set before virtual server was closed, if meet the requirements, then the MAC Address of being distributed is started virtual server as the MAC Address of virtual server;
Described second message sending unit, link to each other with described message processing unit, also be used for the message that receives be before new address assignment message and virtual server are closed employed MAC Address be administrator hand set or be locked as situation about can not rewrite and the undesirable situation of MAC Address of being distributed under send the address release message to discharge the MAC Address of being distributed to described MAC Address server.
14. MAC Address management system, it is characterized in that, comprise among the claim 7-9 each described client computer in each described MAC Address server and claim 10-13, wherein, described MAC Address server links to each other by IP network with described client computer.
CN201110141820.9A 2011-05-30 2011-05-30 MAC (media access control) address management method and system, MAC address server and client Active CN102209123B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110141820.9A CN102209123B (en) 2011-05-30 2011-05-30 MAC (media access control) address management method and system, MAC address server and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110141820.9A CN102209123B (en) 2011-05-30 2011-05-30 MAC (media access control) address management method and system, MAC address server and client

Publications (2)

Publication Number Publication Date
CN102209123A true CN102209123A (en) 2011-10-05
CN102209123B CN102209123B (en) 2013-10-30

Family

ID=44697781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110141820.9A Active CN102209123B (en) 2011-05-30 2011-05-30 MAC (media access control) address management method and system, MAC address server and client

Country Status (1)

Country Link
CN (1) CN102209123B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333133A (en) * 2011-10-11 2012-01-25 中兴通讯股份有限公司 Medium access control (MAC) address distribution method, device and system
CN102685267A (en) * 2012-05-16 2012-09-19 上海兆民云计算科技有限公司 IP (Internet Protocol) address leak preventing method in desktop cloud cluster running state
CN103108059A (en) * 2012-12-28 2013-05-15 上海斐讯数据通信技术有限公司 Broadband modem media access control (MAC) address distribution method
CN103108053A (en) * 2011-11-10 2013-05-15 中兴通讯股份有限公司 Method and device and system of MAC address configuration of virtual machine
CN103171277A (en) * 2011-12-21 2013-06-26 北大方正集团有限公司 Authorization method and authorization device of printing equipment
CN103312828A (en) * 2012-03-09 2013-09-18 中兴通讯股份有限公司 Method, device and system of MAC and IP address couple configuration of virtual machine
CN105068829A (en) * 2015-07-28 2015-11-18 深圳Tcl数字技术有限公司 Feature data burning method, apparatus and system
CN105847464A (en) * 2016-05-30 2016-08-10 上海斐讯数据通信技术有限公司 IP address management method under multi-DHCP server network environment and DHCP client
CN107888713A (en) * 2016-09-30 2018-04-06 中兴通讯股份有限公司 A kind of method, apparatus and access device of dynamically distributes MAC Address
CN108306762A (en) * 2018-01-03 2018-07-20 郑州云海信息技术有限公司 A kind of MAC Address management system and method based on interface
CN111866200A (en) * 2019-04-30 2020-10-30 烽火通信科技股份有限公司 MAC address segmentation management method and system
US11050746B2 (en) 2019-01-29 2021-06-29 Cisco Technology, Inc. Media access control (MAC) address anonymization based on allocations by network controller elements
CN116723175A (en) * 2023-08-04 2023-09-08 天津华来科技股份有限公司 MAC (media access control) automatic application method and device for test equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050138423A1 (en) * 2003-12-23 2005-06-23 Kumar Ranganathan Remote provisioning of secure systems for mandatory control
CN1696926A (en) * 2004-05-15 2005-11-16 鸿富锦精密工业(深圳)有限公司 MAC system of automatic assigning addresses and method
CN1739276A (en) * 2003-01-21 2006-02-22 艾利森电话股份有限公司 System, method and function for Ethernet MAC address management
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1739276A (en) * 2003-01-21 2006-02-22 艾利森电话股份有限公司 System, method and function for Ethernet MAC address management
US20050138423A1 (en) * 2003-12-23 2005-06-23 Kumar Ranganathan Remote provisioning of secure systems for mandatory control
CN1696926A (en) * 2004-05-15 2005-11-16 鸿富锦精密工业(深圳)有限公司 MAC system of automatic assigning addresses and method
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

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333133A (en) * 2011-10-11 2012-01-25 中兴通讯股份有限公司 Medium access control (MAC) address distribution method, device and system
CN103108053A (en) * 2011-11-10 2013-05-15 中兴通讯股份有限公司 Method and device and system of MAC address configuration of virtual machine
CN103171277A (en) * 2011-12-21 2013-06-26 北大方正集团有限公司 Authorization method and authorization device of printing equipment
CN103171277B (en) * 2011-12-21 2016-06-01 北大方正集团有限公司 The authorization method of printing equipment and device
CN103312828A (en) * 2012-03-09 2013-09-18 中兴通讯股份有限公司 Method, device and system of MAC and IP address couple configuration of virtual machine
CN102685267A (en) * 2012-05-16 2012-09-19 上海兆民云计算科技有限公司 IP (Internet Protocol) address leak preventing method in desktop cloud cluster running state
CN102685267B (en) * 2012-05-16 2018-02-16 上海兆民云计算科技有限公司 A kind of IP address leak-preventing method under desktop cloud cluster run mode
CN103108059A (en) * 2012-12-28 2013-05-15 上海斐讯数据通信技术有限公司 Broadband modem media access control (MAC) address distribution method
CN105068829A (en) * 2015-07-28 2015-11-18 深圳Tcl数字技术有限公司 Feature data burning method, apparatus and system
CN105847464B (en) * 2016-05-30 2019-11-29 上海斐讯数据通信技术有限公司 IP address management method and DHCP client under a kind of more Dynamic Host Configuration Protocol server network environments
CN105847464A (en) * 2016-05-30 2016-08-10 上海斐讯数据通信技术有限公司 IP address management method under multi-DHCP server network environment and DHCP client
CN107888713A (en) * 2016-09-30 2018-04-06 中兴通讯股份有限公司 A kind of method, apparatus and access device of dynamically distributes MAC Address
CN107888713B (en) * 2016-09-30 2021-10-01 中兴通讯股份有限公司 Method and device for dynamically allocating MAC address and access equipment
CN108306762A (en) * 2018-01-03 2018-07-20 郑州云海信息技术有限公司 A kind of MAC Address management system and method based on interface
US11050746B2 (en) 2019-01-29 2021-06-29 Cisco Technology, Inc. Media access control (MAC) address anonymization based on allocations by network controller elements
US11611557B2 (en) 2019-01-29 2023-03-21 Cisco Technology, Inc. Media access control (MAC) address anonymization based on allocations by network controller elements
CN111866200A (en) * 2019-04-30 2020-10-30 烽火通信科技股份有限公司 MAC address segmentation management method and system
CN111866200B (en) * 2019-04-30 2022-09-23 烽火通信科技股份有限公司 MAC address segmentation management method and system
CN116723175A (en) * 2023-08-04 2023-09-08 天津华来科技股份有限公司 MAC (media access control) automatic application method and device for test equipment and storage medium
CN116723175B (en) * 2023-08-04 2023-11-21 天津华来科技股份有限公司 MAC (media access control) automatic application method and device for test equipment and storage medium

Also Published As

Publication number Publication date
CN102209123B (en) 2013-10-30

Similar Documents

Publication Publication Date Title
CN102209123B (en) MAC (media access control) address management method and system, MAC address server and client
CN105376303B (en) Docker implementation system and communication method thereof
CN107924383B (en) System and method for network function virtualized resource management
CN102571698B (en) Access authority control method, system and device for virtual machine
EP2260611B1 (en) Automated power topology discovery
US20180077013A1 (en) Automatically generated virtual network elements for virtualized packet networks
EP3338184B1 (en) Technique for reconfiguring a virtual machine
JP5131239B2 (en) IP address allocation control program, IP address allocation control device, and IP address allocation control method
CN106031116A (en) Method, apparatus and system for associating NS with VNF
CN104104572A (en) Automatic deploying method and device for switch in SDN network
EP3211531B1 (en) Virtual machine start method and apparatus
CN114070822B (en) Kubernetes Overlay IP address management method
CN103797774A (en) Device and method for network address conversion
CN103747107A (en) Compatible cloud operating platform and realizing method thereof
US10761869B2 (en) Cloud platform construction method and cloud platform storing image files in storage backend cluster according to image file type
CN104618147A (en) Longitudinally stacked system management method and system
CN103580909B (en) A kind of hardware resource method for customizing and device
CN110661865A (en) Network communication method and network communication architecture
CN102708063B (en) disk space management method and device
US11669075B2 (en) Automation device, computer program, computer-readable medium and method for automatically configuring an automation device
CN111274022A (en) Server resource allocation method and system
CN109951551A (en) A kind of container mirror image management system and method
US20190334815A1 (en) Network device stacking
CN112631727A (en) Method and device for monitoring pod
US9876689B1 (en) Automatically generated virtual network elements for virtualized local area networks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20111005

Assignee: Tianyiyun Technology Co.,Ltd.

Assignor: CHINA TELECOM Corp.,Ltd.

Contract record no.: X2024110000040

Denomination of invention: MAC address management method, system, MAC address server and client

Granted publication date: 20131030

License type: Common License

Record date: 20240914