Embodiment
Hereby with regard to a preferred embodiment of the present invention, coordinate graphicly, be described in detail as follows.
First please refer to Fig. 1 and Fig. 2, be respectively the system architecture diagram of the first preferred embodiment of the present invention and the second preferred embodiment.Person shown in figure, for the system architecture in the machine room of high in the clouds, mainly comprise high in the clouds domain name service (Cloud Domain Name Service, CDNS) server 1 of the present invention (below will in specification in literary composition referred to as this cloud server 1), a master network switch (main switch) 2, one start server (boot server) 3 and a plurality of sub-network (subnet) system 4,5.In the present embodiment, the plurality of sub-network system 4,5 is connected with this cloud server 1 and this start server 3 by this master network switch 2, and quantity take two as example, but is not limited.
In the present embodiment, each sub-network system 4,5 can be considered as to a rack (Rack), so in each high in the clouds machine room, can there is the quite huge sub-network system of quantity in fact.This first sub-network system 4 mainly has a first sub-network switch 41, on this first sub-network switch 41, has a plurality of connectivity ports, in order to connect many first main frames 42 (main frame (Cloud Host) that is called high in the clouds).Wherein, described a plurality of main frame mainly can be entity main frame (Physical Machine, PM) or fictitious host computer (Virtual Machine, VM), no matter be PM or VM, all can carry out by this cloud server 1 of the present invention the management and control (holding detailed description) of Hostname and procotol (Internet Protocol, IP) address.
Described a plurality of the first main frame 42 connects this master network switch 2 on upper strata by this first sub-network switch 41, by this master network switch 2, connect this cloud server 1 and this start server 3 again, to accept the service of this cloud server 1 and this start server 3.
This second sub-network system 5 has one second sub-network switch 51, and this second sub-network switch 51 has a plurality of connectivity ports equally, in order to connect many second main frames 52 (can comprise PM and VM equally).Described a plurality of the second main frame 52 connects this master network switch 2 on upper strata by this second sub-network switch 51, and connects this cloud server 1 and this start server 3 by this master network switch 2.For convenience of description, will, in specification in literary composition, only with described a plurality of the first main frames 42 under this first sub-network system 4, illustrate below.
It is worth mentioning that, in the present invention, main arbitrary server in the machine room of high in the clouds is carried out a separate procedure (process), to serve as this cloud server 1 in the present invention and the role of this start server 3.Therefore this cloud server 1 can be the arbitrary server in the machine room of high in the clouds, or this cloud server 1 can be realized by same station server with this start server 3, should not be limited.
This cloud server 1 is mainly for being responsible for the Hostname JiIP address of All hosts in the machine room of the whole high in the clouds of management and control, at arbitrary blank main frame, newly add (for example connection of new PM in this high in the clouds machine room, or the generation of new VM), and while carrying out a system startup with installation procedure (boot up and installation task), can directly by this cloud server 1, obtain the Hostname JiIP address of self.Thus, do not need the administrative staff of high in the clouds machine room manually main frame to be carried out the setting of Hostname JiIP address, can effectively reach the automation of arrangement and installation procedure.
And, this cloud server 1 of the present invention, being mainly a kind of system beyond the clouds uses, and according to the server of Domain Name System DNS (Domain Name System) normalization, this cloud server 1 can be supported the normal solution (forward resolution) of DNS, anti-function (holding detailed description) of separating (reverse resolution) and agency (DNS proxy).Therefore any main frame all can come to Hostname corresponding to this cloud server 1 inquiry by IP address, also can come to this cloud server 1 IP address corresponding to inquiry by Hostname.So, can effectively reach IP address, Hostname (hostname), with topology network effect in correspondence with each other, for the administrative staff of high in the clouds machine room, cloud server 1 is real that management and control function quite easily can be provided for this.More specifically, this cloud server 1 can an external or built-in Image Data storehouse (Mapping Database) 10, this Image Data storehouse 10 is mainly used to store the relevant informations such as All hosts title JiIP address in this high in the clouds machine room, and for this cloud server 1 reference.
Continuing and refer to Fig. 3, is the flow chart of the first specific embodiment of the present invention.Arbitrary main frame in the machine room of Dang Gai high in the clouds (take below this first main frame 42 describe for example) wants to carry out this system while for example starting, with installation procedure (startup of operating system and installation procedure), need possess and have a GeIP address, can install smoothly, therefore this cloud server 1 will receive a request (step S10) of the DuiIP address that this first main frame 42 sends.Then, this cloud server 1 is according to this request, first distribute (assign) temporary ip address to use (step S12) to this first main frame 42, thus, this first main frame 42 can be according to this temporary ip address interconnection network, to carry out this system startup and installation procedure by this start server 3.
It is worth mentioning that, this temporary ip address is mainly to distribute to the use that this first main frame 42 is used for carrying out startup, installation, the assigned ip address (fixed IP address) that not allows this first main frame 42 forever use.Therefore, different main frames is when different time points carries out this system startup with installation procedure, may use this temporary ip address of same group, but described a plurality of main frame is after completing this system startup and installation procedure, is bound to carry out interconnection network with different assigned ip addresses.Therefore want to distribute smoothly temporary ip address and assigned ip address, this cloud server 1 must will be known all temporary ip address scopes that are used, and an assigned ip address realm that can be used.
Then, this cloud server 1 is accepted a registration action (step S14) of this first main frame 42, and more specifically, this first main frame 42, according to this temporary ip address using, carries out registration action to this cloud server 1.After having registered, this cloud server 1 is obtained this temporary ip address that this first main frame 42 uses, and a medium access of this first main frame 42 is controlled (Media Access Control, MAC) address, and write in a corresponding table (this correspondence table 100 as shown in Figure 7) (step S16).This correspondence table 100 can be referred to as in the host name of inquiring about this first main frame 42 in the future for this cloud server 1 and, this correspondence table 100 is to be mainly stored in this Image Data storehouse 10, or is directly stored in this cloud server 1, but is not limited.
As shown in the following Table I, this cloud server 1, by this correspondence table 100, records the relevant information of each main frame in this high in the clouds machine room, for inquiry in the future.Wherein, the content of described a plurality of Hostnames, assigned ip address, MAC Address and the temporary ip address described in table one is all only in order to illustrate, not as limit.
Hostname |
Assigned ip address |
MAC Address |
Temporary ip address |
Host |
1 |
192.168.10.1 |
00-AA-BB-50-CC-92 |
192.168.15.1 |
Host 2 |
192.168.10.2 |
00-CC-DD-45-FF-88 |
192.168.15.2 |
……… |
……… |
……… |
……… |
Host n |
192.168.10.n |
00-BC-EF-55-FI-12 |
192.168.15.n |
Table one
In the present embodiment, at this cloud server 1, start (run) front, the topological structure (topology) of administrative staff Xu Jianggai high in the clouds machine room, and above-mentioned this temporary ip address scope being used and this assigned ip address realm write as setting shelves (configuration file) (these setting shelves 1061 as shown in Figure 7), and set according to this settings grade 1061 pairs of these cloud servers 1.Thus, after this cloud server 1 starts, automatically according to this, set shelves 1061, a corresponding Hostname and a corresponding assigned ip address are all distributed in for example, all connectivity ports on connected sub-network switch (this first sub-network switch 41), and the main frame connecting for this connectivity port uses.And this cloud server 1 can produce the as above correspondence of this shown in table one table 100, and described a plurality of Hostnames and described a plurality of assigned ips address are write in this correspondence table 100.
It is worth mentioning that, in the present embodiment, this cloud server 1 is mainly the information such as connectivity port of country, machine room, rack and the network switch according to place, calculates the Hostname of each main frame by algorithm.Therefore, each main frame all can be assigned with a Hostname with identification, is beneficial to administrative staff's management maintenance.
After above-mentioned this step S16, in this correspondence table 100, be Hostname, assigned ip address, temporary ip address and the MAC Address of the All hosts in the machine room of complete documentation Liao Gai high in the clouds.This cloud server 1 can be obtained this MAC Address when this first main frame 42 carries out this registration action, and writes in this correspondence table 100; Moreover this cloud server 1 more can periodically be changed planes and inquire all-ones subnet cross winding, to obtain this MAC Address of the main frame that each connectivity port was connected on each estrade network switch.More specifically, this cloud server 1 is main by simple network management protocol (SimpleNetwork Management Protocol, SNMP), periodically described a plurality of sub-network switches are inquired, and the MAC Address of gained is updated in this correspondence table 100.Yet which kind of mode this cloud server 1 adopts obtain the MAC Address of described a plurality of main frames, and when obtains, and is determined by practice, should not be limited.
When this first main frame 42 proceeds to a network installation step, need this cloud server 1 of inquiry, with this assigned ip address that obtains forever using.This cloud server 1 receives the DNS inquiry instruction (step S18) that this first main frame 42 proposes, and answer at the DNS that has inquired about rear generation one correspondence in this Image Data storehouse 10, and reply to this first main frame 42 (step S20), wherein this DNS answers and has comprised that this cloud server 1 distributes to this Hostname that this first main frame 42 uses and the information of this assigned ip address.More specifically, this DNS answers system and comprises that this cloud server 1 distributes to the Hostname of a connectivity port and the information of assigned ip address on this first sub-network switch 41, wherein this connectivity port connects this first main frame 42, therefore, this first main frame 42 can use this Hostname and this assigned ip address that this connectivity port is assigned with.
In this step S18, this first main frame 42 is mainly, by gethostbyaddr () instruction, this cloud server 1 is proposed to inquiry, and in this step S20, this cloud server 1 is processed this DNS inquiry instruction according to the anti-program (DNS reverse resolution) of separating of a DNS, and produces this DNS answer (DNS answer).
More specifically, general gethostbyaddr () instruction, mainly to send YiIP address (for example 192.168.1.1) to dns server, through this dns server carry out this DNS anti-solution program be converted to corresponding domain name (for example www.delta.com.tw), then the mode that this domain name is answered with this DNS is replied.That is to say, by the present invention, can directly use the service call of operating system just can use this cloud server, and needn't reach by special software.In this step S18, by this first main frame 42, send this DNS inquiry instruction to this cloud server 1 (wherein this DNS inquiry instruction comprises this temporary ip address that this first main frame 42 uses).This cloud server 1 is inquired about this correspondence table 100 with this DNS inquiry instruction, to obtain after the information of this Hostname that this connectivity port that this first main frame 42 connected is assigned with and this assigned ip address, then produces this DNS that meets DNS standard and answers.As mentioned above, this DNS answer must comprise will distribute to this Hostname of this first main frame 42 and the information of this assigned ip address, and must meet DNS standard, for instance, this DNS answer and can be for example " Hostname. assigned ip address .delta.com.tw " form, but be not limited.This first main frame 42 receives after this DNS answer, can, from this DNS answers, obtain this corresponding Hostname and the information of this assigned ip address.
When having multiple host to carry out this system startup with installation procedure simultaneously, this cloud server 1 will receive simultaneously the DNS inquiry that proposes of multiple host, and need reply DNS simultaneously and answer to multiple host, it is above-mentioned that only to take single this first main frame 42 be example, convenient explanation, but not as limit.
Then please refer to Fig. 4 and Fig. 5, be respectively the flow chart of the second specific embodiment of the present invention and the system architecture diagram of the 3rd specific embodiment.As mentioned above, when the system startup of this first main frame 42 proceeds to this network installation step with installation procedure, will be first by keyed (Block), this first main frame 42 must wait for that this cloud server 1 distributes this assigned ip address, and by 1 pair of this cloud server DynamicHost, set agreement (Dynamic Host Configuration Protocol, DHCP) server 6 and carry out a new element (step S22) more.In the machine room of ,Gai high in the clouds, have as shown in Figure 5 this Dynamic Host Configuration Protocol server 6, this Dynamic Host Configuration Protocol server 6 is connected with this cloud server 1 and this first main frame 42 by network system.DHCP is common knowledge in the art, does not repeat them here.And, if there are other main frames to carry out this system startup and installation procedure simultaneously, when proceeding to this network installation step, also can be first by keyed, and wait the action of this cloud server 1.
When there being multiple host to proceed to this network installation step, and during by keyed, whether this cloud server 1 judgement is surpassed a threshold value by the quantity of the main frame of keyed, or the stand-by period of described a plurality of main frames overtime (step S24) whether, if not, this cloud server 1 continues to carry out this step S22, to continue that this Dynamic Host Configuration Protocol server 6 is carried out to this more new element.If this cloud server 1 judgement is surpassed this threshold value by the quantity of the main frame of keyed, or the stand-by period exceedes, or this is when more new element completes, this cloud server 1 is given notice, and allows described a plurality of main frame to continue to carry out this network installation step (step S26) continuing.Wherein, this cloud server 1 mainly can be by multiple broadcasting (multicasting) technology, and many of releases (unlocking) are by the main frame of keyed, and then, described in can synchronization, the system of a plurality of main frames starts and installation procedure, with this, reduces the mortality of Auto-mounting.
After this step S26, described a plurality of main frame (for example this first main frame 42) can be according to the information of this assigned ip address obtaining from this DNS answers, to this Dynamic Host Configuration Protocol server 6, require scheduler (renew IP) (step S28), that is, this assigned ip address is used in request.Finally, this first main frame 42 is in this assigned ip address after more new settings completes, then by remaining program be finished (step S30).
It is worth mentioning that, in embodiments of the invention, described a plurality of main frames are mainly when this system startup is carried out this network installation step with installation procedure, are pinned, to maintain the synchronism of installation by this cloud server 1.Yet this cloud server 1 mainly also can solve beyond the clouds in cluster system (Cluster), the stationary problem of distributing software when starting.That is to say, when each self-starting one distributing software of described a plurality of main frames, can be subject to the control of this cloud server 1, when proceeding to certain specific program by keyed, and, when a unlocking condition is satisfied, then by this cloud server 1 with a plurality of main frames described in the release simultaneously of the technology of multicasting.Thus, can effectively maintain the synchronization of this distributing software on carrying out.
Referring to Fig. 6, is the flow chart of the 3rd specific embodiment of the present invention, in Fig. 6 complete description the action of this cloud server 1, this first main frame 41 and this Dynamic Host Configuration Protocol server 6, and execution sequence of each action.
First, when this first main frame 41 will carry out system startup with installation procedure, this request (step S40) of IP address can be proposed this cloud server 1, when this cloud server 1 receives after this request, can require a GeIP address to come as this temporary ip address (step S42) to this Dynamic Host Configuration Protocol server 6.This Dynamic Host Configuration Protocol server 6 is according to spendable this temporary ip address scope, choose a temporary ip address and reply to this cloud server 1 (step S44), this cloud server 1 is distributed to this temporary ip address this first main frame 42 again and is used (step S46).
This first main frame 42 is obtained after this temporary ip address in this step S46, and the system that can carry out smoothly operating system starts and installation procedure (step S48).Until this system, start with installation procedure and carry out after certain phase, this first main frame 42 can be registered (step S50) to this cloud server 1 with this temporary ip address being used, to make this cloud server 1 produce this complete correspondence table 100.Then, when the installation action of this first main frame 42 proceeds to this network installation step, by this DNS inquiry instruction (being gethostbyaddr () instruction in the present embodiment), to this CDNS server 1, propose this DNS inquiry (step S52), and this DNS inquiry instruction comprises this temporary ip address that this first main frame 42 uses.This cloud server 1 receives after this DNS inquiry instruction, and this temporary ip address using according to this first main frame 42 is inquired about this correspondence table 100, and to carry out, this DNS is counter to be separated program and produce this DNS answer, then replies to this first main frame 42 (step S54).Now, this first main frame 42 will be first by keyed, and Break-Up System starts and installation procedure.
Then, 1 pair of this cloud server distributes (step S56) will to this this assigned ip address that the first main frame 42 uses, and, according to the information of this assigned ip address, this Dynamic Host Configuration Protocol server 6 is carried out to this more new element (step S58).The stand-by period that completes or surpassed this threshold value or main frame by the quantity of the main frame of keyed to be updated is during overtime, this cloud server 1 is by multiple broadcasting mode, a release multiple host (step S60), comprising this first main frame 42 of the present embodiment illustrated.
After this step S60, this first main frame 42 is obtained the information of this Hostname and this assigned ip address in this DNS answers, and is allowed to continue to carry out network installation step.Now, this first main frame 42 is according to the information of this assigned ip address, to this Dynamic Host Configuration Protocol server 6, require scheduler (step S62), 6 of this Dynamic Host Configuration Protocol server are according to this new element more of this cloud server 1, and the information of this assigned ip address of these first main frame, 42 propositions, distribute this assigned ip address to use (step S64) to this first main frame 42.And after step S64, this first main frame 42 can complete with this Hostname and this assigned ip address the installation steps of network, and by remaining program be all finished (step S66).
After step S66, this first main frame 42 is a complete high in the clouds main frame being used, and administrative staff can, according to this Hostname and this assigned ip address of these the first main frame 42 uses, carry out various management and control to this first main frame 42.
Continuing and refer to Fig. 7, is the cloud server Organization Chart of the first specific embodiment of the present invention.Aforesaid this separate procedure mainly comprises the different procedure code of many groups, by the operation of described a plurality of procedure codes, a plurality of modules can be distinguished and comprise to this cloud server 1, mainly comprises: a receiver module 101, an IP address processing module 102, an information provide module 103, a Registering modules 104, a DNS processing module 105, a storage module 106 and a corresponding table access module 107.
This receiver module 101 is this request that receives the DuiIP address that this first main frame 42 sends, this IP address processing module 102 can be asked according to this, this Dynamic Host Configuration Protocol server 6 is required to distribute this temporary ip address, and, this cloud server 1 provides module 103 by this information again, this temporary ip address is distributed to this first main frame 42 and use.When this first main frame 42 is carried out these system startups and installation procedure and proceeded to this network installation step, this cloud server 1 is to accept by this Registering modules 104 this registration action that this first main frame 42 carries out.With this temporary ip address and this MAC Address that this first main frame 42 is used, write in this correspondence table 100.
When this first main frame 42 proposes this DNS inquiry instruction, this cloud server 1 is to receive and process this DNS inquiry instruction by this DNS processing module 105.More specifically, this DNS processing module 105 is to inquire about this correspondence table with this DNS inquiry instruction, to obtain this cloud server 1, distribute to this Hostname that this first main frame 42 uses and the information of this assigned ip address, with according to this DNS anti-solution program produce this DNS and answer.And this cloud server 1 provides module 103 to reply this DNS by this information again and answers to this first main frame 42.
This storage module 106 is mainly used to store this setting shelves 1061, the administrative staff of this high in the clouds machine room can be before this cloud server 1 starts, write as these setting shelves 1061 and be stored in this storage module 106, to set according to 1061 pairs of these cloud servers 1 of these setting shelves.So, after this cloud server 1 starts, can automatically according to this, set shelves 1061, for example, for all distributing a Hostname and an assigned ip address in all connectivity ports on connected sub-network switch (this first sub-network switch 41).
This cloud server 1 is mainly to connect this map data storehouse 10 by this correspondence table access module 107, with this correspondence table 100 of access, yet, this correspondence table 100 also can be stored in this cloud server 1 inside,, be stored in this storage module 106, and read and write by this correspondence table access module 107.Yet the foregoing is only preferred embodiments of the present invention, should be as limit.
As earlier figures 1 and the framework as shown in Fig. 2, be mainly a kind of centralized architecture (Centralized), in this framework, only have this cloud server 1 and this start server 3, and by this master network switch 2, serve the all-ones subnet network system 4,5 in the system of high in the clouds simultaneously.The present invention has also disclosed another framework, is a kind of decentralized architecture (Distributed), has many these cloud servers 1 and this start server 3 of many, and can be applicable to the disclosed management-control method of the present invention simultaneously.
Please refer to Fig. 8 and Fig. 9, be respectively the system architecture diagram of the 4th specific embodiment of the present invention and the 5th specific embodiment.In the present embodiment, this master network switch 2 directly connects this Image Data storehouse 10, and does not connect this cloud server 1 and this start server 3.In the present embodiment, in each sub-network system 4,5,11,12 and start servers 31,32 of a cloud server are set respectively, take Fig. 9 as example, and this cloud server 11 and this start server 31 are in order to serve entity main frame 42, this cloud server 12 and this start server 32 in this first sub-network system 41 in order to serve the entity main frame 52 in this second sub-network system 51.
Take this first sub-network system 41 is example, when many these the first main frames 42 will be asked temporary ip address, being to these cloud server 11 requests in this first sub-network system 41, in the time of carrying out boot program, is also to be undertaken by this start server 31 in this first sub-network system 41.For example, and this cloud server 11 by upper layer network, is stored in the related data of described a plurality of the first main frames 42 (this correspondence table 100) in this Image Data storehouse 10 again.That is to say, this cloud server 11 needs this first sub-network system 41 of service with this 31 of start server, and the burden (Loading) therefore causing can be come littlely than this cloud server 1 in previous embodiment.More specifically, in cluster system, each sub-network system 4,5 is separated environment, therefore by the framework of the present embodiment, can allow the Internet resources (Traffic) of each sub-network system 4,5 stay separately Local end, can not have influence on the resource of whole network environment.In other words, even if this cloud server 11 in this first sub-network system 41 damages with this start server 31, also can not have influence on the program of other sub-network systems and upper layer network.
As mentioned before, this cloud server 1,11,12 and this start server 3,31,32, be mainly to carry out a separate procedure by arbitrary server, after starting in this program, serves as this role.Referring to Figure 10, is the system architecture diagram of the 6th specific embodiment of the present invention.In the present embodiment, this cloud server 11,12 and this start server 31,32 are not served as by the server of entity, but the sub-network switch 41,51 that hardware usefulness is higher is set in system, and carry out respectively a program 410,510 by described a plurality of sub-network switches 41,51.In the present embodiment, this program 410 has been carried out in these the first sub-network switch 41 inside, and after this program 410 starts, this the first sub-network switch 41 can be served as the role of switch, cloud server and start server simultaneously, to provide service to all the first main frames 42 in this first sub-network system 4.This program 510 has been carried out in these the second sub-network switch 51 inside, and after this program 510 starts, this the second sub-network switch 51 can be served as the role of switch, cloud server and start server simultaneously, to provide service to all the second main frames 52 in this second sub-network system 5.Such benefit is, can reduce the quantity of the management and control server in rack, to reduce the construction cost of high in the clouds system.
This cloud server 1,11,12 disclosing in the present invention, more can realize by three-layer type (3-tier) framework, so that the DNS service in a plurality of regions (zone) and distribution and the management and control of IP address and Hostname to be provided simultaneously.Three-layer type framework is the common knowledge for the art, does not repeat them here.
Referring to Figure 11, is the cloud server configuration diagram of the first specific embodiment of the present invention.This complete cloud server 1, mainly can be divided into this Image Data storehouse 10, cloud server backstage 13 and one or more cloud server foreground 14.This Image Data storehouse 10 is main as the data Layer in 3-tier framework (data tier), in order to be responsible for the storage of data; This cloud server backstage 13 is as the application layer in 3-tier framework (application tier), in order to be responsible for main logical operation; This many cloud servers foreground 14 is as the presentation layer in 3-tier framework (presentation tier), in order to be arranged on different regions, as the interface of different clients.More specifically, this many cloud servers foreground 14 is inputted in order to receive the data of each client respectively, then offers this cloud server backstage 13, and the operation result that shows this cloud server backstage 13 is to client.
By the framework in the present embodiment, this cloud server 1 is a plurality of regions of management and control simultaneously, and, also can, by the differentiation on foreground and backstage, increase the expandability of system.
The foregoing is only preferred embodiments of the present invention, non-so limit to the scope of the claims of the present invention, therefore such as use the equivalence that content of the present invention is done to change, be all in like manner all contained in scope of the present invention, close and give Chen Ming.