CN103905392A - Dynamic Host Configuration Protocol (DHCP) server selection method, device and system - Google Patents
Dynamic Host Configuration Protocol (DHCP) server selection method, device and system Download PDFInfo
- Publication number
- CN103905392A CN103905392A CN201210576393.1A CN201210576393A CN103905392A CN 103905392 A CN103905392 A CN 103905392A CN 201210576393 A CN201210576393 A CN 201210576393A CN 103905392 A CN103905392 A CN 103905392A
- Authority
- CN
- China
- Prior art keywords
- dhcp
- host configuration
- dynamic host
- configuration protocol
- protocol 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
Links
Images
Landscapes
- Computer And Data Communications (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a DHCP (Dynamic Host Configuration Protocol) server selection method, a device and a system. The method comprises steps of receiving a DHCP work message fed back by at least one DHCP server within a set duration after a DHCP client sends a DHCP finding message, determining the DHCP work message comprises load information of each DHCP server, selecting one DHCP server from the DHCP servers to be used for providing services according to the determined load information, and determining address allocation information when the DHCP client receives a DHCP response message sent by the selected DHCP server. Through the above technical scheme, DHCP server resources can be effectively allocated, and the utilization rate of resources can be well improved.
Description
Technical field
The present invention relates to Internet protocol processing technology field, especially relate to a kind of DynamicHost agreement (DHCP, Dynamic Host Configuration Protocol) server selection method, Apparatus and system are set.
Background technology
In Internet protocol (IP, Internet Protocol) network, each network equipment needs an IP address as from the identification information on network.Wherein, in mininet, network equipment negligible amounts, the IP address of each network equipment can be configured one by one by network manager.If but in catenet, network equipment quantity is many, adopt the mode of manual configuration IP address relatively to lose time, and also cannot satisfy the demands, based on this, propose to come based on DHCP the method for dynamic IP address allocation.
DHCP is with client-server (CLIENT-SERVER) work pattern, on system architecture composition, if dhcp client and Dynamic Host Configuration Protocol server at the same physics network segment, dhcp client can obtain the IP address of Dynamic Host Configuration Protocol server dynamic assignment exactly.If not at the same physics network segment, dhcp relay agent (DCHP Relay Agent) equipment need to be set in network.The network segment that can each physics by DHCPRelay Agent equipment arranges Dynamic Host Configuration Protocol server, while carrying out IP address assignment after interpolation DHCPRelay equipment, specifically also comprise above-mentioned four-stage, but in message transmission procedure, DHCP Relay equipment can forward dhcp client and send to not the message at the Dynamic Host Configuration Protocol server of same physical subnets, also can forward Dynamic Host Configuration Protocol server and issue not the message at the dhcp client of same physical subnets.Dhcp client, from Dynamic Host Configuration Protocol server dynamic obtaining IP address, mainly comprises following four-stage:
First stage: in the discovery stage, dhcp client is determined the stage of Dynamic Host Configuration Protocol server.DHCP family end sends DHCP with broadcast mode to Dynamic Host Configuration Protocol server and finds (DHCP DISCOVER) message.
Second stage: the stage is provided, and Dynamic Host Configuration Protocol server provides stage of IP address for client.After Dynamic Host Configuration Protocol server receives the DHCP DISCOVER message that client sends, according to the order of priority of IP address assignment, determine an IP address, and by the IP address of determining together with other parameters, send to client by DHCP (DHCP OFFER) message of working.
Phase III, the choice phase, dhcp client is selected the stage of IP address.Dhcp client receives multiple Dynamic Host Configuration Protocol server and sends after DHCP OFFER message to this dhcp client, dhcp client is in the multiple DHCP OFFER messages that receive, the DHCP OFFER message that static acceptance is received, then send DHCP request (DHCP REQUEST) message with broadcast mode, in this message, comprise the IP address that Dynamic Host Configuration Protocol server distributes in DHCP OFFER message.
Fourth stage, the stage of recognition, Dynamic Host Configuration Protocol server is confirmed the stage of IP address.Dynamic Host Configuration Protocol server receives that after the DHCP-REQUEST message that dhcp client sends, the Dynamic Host Configuration Protocol server of being selected by dhcp client can carry out following operation: if confirm that IP address assignment, to this dhcp client, returns to DHCP and reply (DHCP ACK) message; Otherwise will return to DHCP and deny DHCP NAK message, show that this IP address can not distribute to this dhcp client.Dhcp client is received after the DHCP-ACK confirmation message that server returns, and can send address resolution (ARP) message in the mode of broadcast and carry out address detection, if do not receive response in official hour, dhcp client just uses this IP address.
From the above, Dynamic Host Configuration Protocol server system of selection in prior art, when after DHCP CLIENT broadcast DHCP DISCOVER message, can receive the DHCPOFFER message that in net, all DHCP SERVER return, but the DHCP SERVER corresponding to DHCPOFFER message of first arrival of selection that DHCP CLIENT only can be static, and obtain corresponding IP address from this DHCP SERVER, but, the mode of this kind of static selection Dynamic Host Configuration Protocol server, there is following defect: suppose that network interior has three Dynamic Host Configuration Protocol server, respectively by a~c mark, when Dynamic Host Configuration Protocol server b is for some reason (such as physical location reason, transmission link fault etc.), the DHCP OFFER message of its transmission always arrives dhcp client a little later than the DHCP OFFER message of Dynamic Host Configuration Protocol server a and b transmission, according to the technical scheme proposing in prior art, Dynamic Host Configuration Protocol server b will can provide service never, thereby make other Dynamic Host Configuration Protocol server in network need to carry a large amount of dhcp clients, load heavier, and this Dynamic Host Configuration Protocol server b is always in idle condition, waste server resource.
In sum, Dynamic Host Configuration Protocol server system of selection in prior art, Dynamic Host Configuration Protocol server resource can not be effectively used, and resource utilization is lower.
Summary of the invention
The embodiment of the present invention provides a kind of Dynamic Host Configuration Protocol server system of selection, Apparatus and system, can effectively distribute Dynamic Host Configuration Protocol server resource, improves preferably resource utilization.
A kind of DynamicHost arranges protocol DHCP server selection method, comprising: dhcp client sends DHCP and finds after message, receives the DHCP work message of setting at least one Dynamic Host Configuration Protocol server feedback in duration; Determine the load information of the each Dynamic Host Configuration Protocol server comprising in described DHCP work message; According to the load information of determining, in each Dynamic Host Configuration Protocol server, choose one for the Dynamic Host Configuration Protocol server of service is provided; Dhcp client receives the DHCP response message that the Dynamic Host Configuration Protocol server chosen is sent, and determines address allocation information.
A kind of DynamicHost arranges protocol DHCP server selection method, comprise: receive after DHCP that dhcp client sends finds message at Dynamic Host Configuration Protocol server, to described dhcp client feedback DHCP work message, wherein, the load information that comprises this Dynamic Host Configuration Protocol server in described DHCP work message, described dhcp client receives after this DHCP work message, determines the load information of described Dynamic Host Configuration Protocol server; And determine self be described dhcp client choose Dynamic Host Configuration Protocol server time, send the DHCP response message for confirming address allocation information to described dhcp client, wherein said dhcp client, according to DHCP response message, is determined address allocation information.
A kind of DynamicHost arranges protocol DHCP server choice device, and this device is positioned at dhcp client side, comprising: receiver module, for find after message, receive to set the DHCP work message that in duration, at least one Dynamic Host Configuration Protocol server feeds back at transmission DHCP; Determination module, the load information of the each Dynamic Host Configuration Protocol server comprising for definite described DHCP work message; Choose module, for according to the load information of determining, in each Dynamic Host Configuration Protocol server, choose one for the Dynamic Host Configuration Protocol server of service is provided; Described receiver module, the DHCP response message of also sending for receiving the Dynamic Host Configuration Protocol server chosen, determines address allocation information.
A kind of DynamicHost arranges protocol DHCP server choice device, this device is positioned at Dynamic Host Configuration Protocol server side, comprise: sending module, for receiving after DHCP that dhcp client sends finds message, to described dhcp client feedback DHCP work message, wherein, the load information that comprises Dynamic Host Configuration Protocol server in described DHCP work message, described dhcp client receives after this DHCP work message, determines the load information of Dynamic Host Configuration Protocol server; And determination module, self whether be the Dynamic Host Configuration Protocol server that described dhcp client is chosen for determining; Described sending module, also for determine at determination module self be described dhcp client choose Dynamic Host Configuration Protocol server time, send the DHCP response message for confirming address allocation information to described dhcp client, wherein said dhcp client, according to DHCP response message, is determined address allocation information.
A kind of DynamicHost arranges protocol DHCP server selective system, comprise at least one dhcp client and at least one Dynamic Host Configuration Protocol server, wherein: described dhcp client, find message for sending DHCP to described Dynamic Host Configuration Protocol server, and the DHCP work message of at least one Dynamic Host Configuration Protocol server feedback in duration is set in reception, determine the load information of the each Dynamic Host Configuration Protocol server comprising in described DHCP work message, according to the load information of determining, in each Dynamic Host Configuration Protocol server, choose one for the Dynamic Host Configuration Protocol server of service is provided, and receive the DHCP response message that the Dynamic Host Configuration Protocol server chosen is sent, determine address allocation information, described Dynamic Host Configuration Protocol server, for receiving after DHCP that described dhcp client sends finds message, to described dhcp client feedback DHCP work message, wherein, the load information that comprises this Dynamic Host Configuration Protocol server in described DHCP work message, and determine self be described dhcp client choose Dynamic Host Configuration Protocol server time, send the DHCP response message for confirming address allocation information to described dhcp client.
Adopt technique scheme, dhcp client receives the DHCP work message of setting at least one Dynamic Host Configuration Protocol server feedback in duration, and according to DHCP work message, determine the load information of Dynamic Host Configuration Protocol server, then according to the load information of determining, select one for the Dynamic Host Configuration Protocol server of service is provided, Dynamic Host Configuration Protocol server is in the time receiving DHCP request message, after determining and self being the Dynamic Host Configuration Protocol server chosen of dhcp client, send the DHCP response message for confirming address allocation information to described dhcp client, dhcp client is determined address allocation information according to DHCP response message, thereby that has avoided existing in prior art can only staticly select Dynamic Host Configuration Protocol server, can not effectively distribute Dynamic Host Configuration Protocol server resource, make the problem that resource utilization is lower.
Brief description of the drawings
Fig. 1 is in the embodiment of the present invention, the Dynamic Host Configuration Protocol server selective system structure composition schematic diagram of proposition;
Fig. 2 is in the embodiment of the present invention, the Dynamic Host Configuration Protocol server system of selection flow chart of proposition;
Fig. 3 is in the embodiment of the present invention, the client-side Dynamic Host Configuration Protocol server choice device result schematic diagram of proposition;
Fig. 4 is in the embodiment of the present invention, the server side Dynamic Host Configuration Protocol server choice device result schematic diagram of proposition.
Embodiment
For the Dynamic Host Configuration Protocol server system of selection existing in prior art, the problem that Dynamic Host Configuration Protocol server resource can not be effectively used, in the technical scheme that the embodiment of the present invention proposes here, by the work load information of the each Dynamic Host Configuration Protocol server comprising in message of DHCP, in each Dynamic Host Configuration Protocol server, choose one for the Dynamic Host Configuration Protocol server of service is provided, can effectively distribute Dynamic Host Configuration Protocol server resource, improve preferably resource utilization.
Below in conjunction with each accompanying drawing, embodiment of the present invention technical scheme main realized to principle, embodiment and the beneficial effect that should be able to reach is at length set forth.
The embodiment of the present invention proposes a kind of Dynamic Host Configuration Protocol server selective system here, and as shown in Figure 1, its this system comprises:
Comprise at least one dhcp client and at least one Dynamic Host Configuration Protocol server, wherein:
Described dhcp client (DHCP CLIENT), described dhcp client, find message for sending DHCP to described Dynamic Host Configuration Protocol server, and the DHCP work message of at least one Dynamic Host Configuration Protocol server feedback in duration is set in reception, determine the load information of the each Dynamic Host Configuration Protocol server comprising in described DHCP work message, according to the load information of determining, in each Dynamic Host Configuration Protocol server, choose one for the Dynamic Host Configuration Protocol server of service is provided, and receive the DHCP response message that the Dynamic Host Configuration Protocol server chosen is sent, determine address allocation information.
Particularly, above-mentioned dhcp client, also for the identification information of the Dynamic Host Configuration Protocol server selecting is write to DHCP request message, and broadcasts described DHCP request message.
Wherein, it is unique device numbering of Dynamic Host Configuration Protocol server that the identification information of Dynamic Host Configuration Protocol server can be, but not limited to, also can be the device identification of Dynamic Host Configuration Protocol server, preferably, in the technical scheme that the embodiment of the present invention proposes, adopt the device identification of Dynamic Host Configuration Protocol server as the identification information of Dynamic Host Configuration Protocol server here.Dhcp client is written to the device identification of the Dynamic Host Configuration Protocol server of this selection the specific field of DHCP request message one of selection for after the Dynamic Host Configuration Protocol server of service is provided, and is broadcast to all Dynamic Host Configuration Protocol server.
Particularly, the first quantity information that load information comprises the dhcp client that Dynamic Host Configuration Protocol server carried, and the second quantity information of this Dynamic Host Configuration Protocol server maximum dhcp client that can carry; Described dhcp client, specifically for according to the difference between the second quantity information and the first quantity information, determine the 3rd quantity information of the dhcp client that each Dynamic Host Configuration Protocol server can carry, according to the 3rd quantity information, in each Dynamic Host Configuration Protocol server, choose one for the Dynamic Host Configuration Protocol server of service is provided.
Particularly, above-mentioned dhcp client, specifically for by least one the 3rd quantity information obtaining according to sorting, in the result after sequence, choose the Dynamic Host Configuration Protocol server corresponding to the 3rd quantity information of numerical value maximum, as the Dynamic Host Configuration Protocol server for service is provided.
After dhcp client is determined the current load condition of Dynamic Host Configuration Protocol server according to the load information of each Dynamic Host Configuration Protocol server, select one of them for the Dynamic Host Configuration Protocol server of service is provided.Particularly, system of selection can be the Dynamic Host Configuration Protocol server of selecting load lighter, if there is the load condition of at least two Dynamic Host Configuration Protocol server identical, can, according to the time order and function that receives DHCP work message, select one for the Dynamic Host Configuration Protocol server of service is provided.
Described Dynamic Host Configuration Protocol server, for receiving after DHCP that described dhcp client sends finds message, to described dhcp client feedback DHCP work message, wherein, the load information that comprises this Dynamic Host Configuration Protocol server in described DHCP work message; And determine self be described dhcp client choose Dynamic Host Configuration Protocol server time, send the DHCP response message for confirming address allocation information to described dhcp client.
Particularly, described Dynamic Host Configuration Protocol server, whether identical with the identification information of self specifically for determining the identification information comprising in described DHCP request message, if identical, determine it self is the Dynamic Host Configuration Protocol server that described dhcp client is chosen, otherwise, determine it self is not the Dynamic Host Configuration Protocol server that described dhcp client is chosen.
Wherein, Dynamic Host Configuration Protocol server feeds back in the work message of dhcp client, the load information that comprises this Dynamic Host Configuration Protocol server.In concrete enforcement, the load information of self is written to the specific field in DHCP work message by Dynamic Host Configuration Protocol server.Particularly, described specific field can be spare field in DHCP work message, or increases new field at DHCP work message, for writing load information.Preferably, in the technical scheme that the embodiment of the present invention proposes here, adopt the spare field Opition of DHCP work message, be designated as OpitionX field, Dynamic Host Configuration Protocol server, receiving after DHCP discovery message, writes the load information of self and sends to dhcp client in the OpitionX field of DHCP work message.
Preferably, this system can also comprise at least one trunking between dhcp client and Dynamic Host Configuration Protocol server, and described trunking can communicate with dhcp client, Dynamic Host Configuration Protocol server respectively; Described trunking, for dhcp client being broadcast to the message of Dynamic Host Configuration Protocol server by the mode of unicast message, sends at least one Dynamic Host Configuration Protocol server; And forward each Dynamic Host Configuration Protocol server and send to the message of dhcp client.
Wherein, if dhcp client and Dynamic Host Configuration Protocol server be not at the same physics network segment, need to arrange trunking, can avoid will arranging at each physics network segment the condition of Dynamic Host Configuration Protocol server by trunking, and trunking can send to the message of dhcp client the not Dynamic Host Configuration Protocol server at same this physics network segment, the message that also Dynamic Host Configuration Protocol server can be sent returns to the dhcp client of the no longer same physics network segment.
Particularly, what DHCP message adopted is UDP transmission means, and the port numbers of dhcp client can be 68, and the port numbers of Dynamic Host Configuration Protocol server is 67.
Adopt technique scheme, forward the message between dhcp client and DHCP service end by increasing trunking, and the load condition analysis of Dynamic Host Configuration Protocol server does not realize by trunking, therefore the Dynamic Selection of Dynamic Host Configuration Protocol server does not also realize by trunking, but realized by dhcp client, thereby can avoid preferably a large amount of DHCP messages to be sent to trunking time, make trunking become the problem of the performance bottleneck of whole system.
Based on the system architecture shown in Fig. 1, the embodiment of the present invention proposes a kind of Dynamic Host Configuration Protocol server system of selection here, as shown in Figure 2, the embodiment of the present invention is described in detail as an example of one of them dhcp client (DHCPCLIENT) and a Dynamic Host Configuration Protocol server (DHCP SERVER) and trunking example here, and its concrete handling process is as following:
Step 21, DHCP CLIENT sends DHCP to DHCP SERVER side and finds message.
Wherein, DHCP CLIENT can, by the mode of broadcast, send DHCP to DHCP SERVER side and find message.Particularly, DHCP finds that message can be DHCP DISCOVER message.
Step 22, is arranged on after trunking in system receives the DHCPDISCOVER message that DHCP CLIENT sends, the mode by clean culture by this DHCP DISCOVER message relay to DHCP SERVER.
For example, suppose relay equipment receive DHCP CLIENT send DHCP DISCOVER message, trunking by N unicast message by this DHCP DISCOVER message relay to N DHCPSERVER.
Step 23, after DHCP SERVER receives the next DHCP DISCOVER message of being sent by dhcp client of trunking relaying, feedback DHCP work message.
Wherein, described DHCP work message can be DHCP OFFER message, the load information that comprises this Dynamic Host Configuration Protocol server in DHCP OFFER message.
In concrete enforcement, each DHCP SERVER, after receiving DHCP DISCOVER message, can encapsulate a DHCP OFFER message, and the specific field in DHCP OFFER message encapsulates self load information.Described specific field can be spare field in DHCP work message, or increases new field at DHCP work message, for writing load information.Preferably, in the technical scheme that the embodiment of the present invention proposes here, adopt the spare field Option of DHCP work message, be designated as OptionX field, Dynamic Host Configuration Protocol server, receiving after DHCP discovery message, writes the load information of self and sends to dhcp client in the OptionX field of DHCP work message.
Particularly, load information can comprise the first quantity information of the dhcp client that Dynamic Host Configuration Protocol server carried, and the second quantity information of this Dynamic Host Configuration Protocol server maximum dhcp client that can carry.
Step 24, the DHCP OFFER message relay that trunking is sent DHCP SERVER is to DHCP CLIENT.
Step 25, DHCP CLIENT receives the DHCP OFFER message of setting at least one the DHCP SERVER feedback being forwarded by trunking in duration.
Particularly, DHCP CLIENT receives and sets in duration t, the DHCP OFFER message of at least one the DHCP SERVER feedback being forwarded by trunking.
Step 26, DHCP CLIENT, according to the DHCP OFFER message receiving, determines the load information of the each DHCP SERVER comprising in DHCPOFFER message.
Step 27 according to the load information of determining, is chosen one for the Dynamic Host Configuration Protocol server of service is provided in each Dynamic Host Configuration Protocol server, and dhcp client receives the DHCP response message that the Dynamic Host Configuration Protocol server chosen is sent, and determines address allocation information.
Wherein, the first quantity information that load information in DHCP OFFER message comprises the dhcp client that Dynamic Host Configuration Protocol server carried, the second quantity information of the dhcp client that can carry with this Dynamic Host Configuration Protocol server maximum, according to the difference between the second quantity information and the first quantity information, determine the 3rd quantity information of the dhcp client that each Dynamic Host Configuration Protocol server can carry, according to the 3rd quantity information, in each Dynamic Host Configuration Protocol server, choose one for the Dynamic Host Configuration Protocol server of service is provided.Preferably, can, by least one the 3rd quantity information obtaining according to sorting, in the result after sequence, choose the Dynamic Host Configuration Protocol server corresponding to the 3rd quantity information of numerical value maximum, as the Dynamic Host Configuration Protocol server for service is provided.
In concrete enforcement, DHCP CLIENT is in setting duration t, to all DHCPOFFER messages that receive, extract the OptionX field information in DHCP OFFER message, and according to the loading condition of this field information calculating DHCP SERVER, to therefrom select the lightest DHCPSERVER of load.The parameter that load calculates comprises DHCP CLIENT quantity N, the DHCP CLIENT quantity M that maximum can be carried etc. that this DHCP SERVER carries, and the concrete formula of calculating can be selected according to actual conditions.For example Payload=Fun (N, M).Particularly, system of selection can be the Dynamic Host Configuration Protocol server of selecting least-loaded, if there is the load condition of at least two Dynamic Host Configuration Protocol server identical, can, according to the time order and function that receives DHCP work message, select one for the Dynamic Host Configuration Protocol server of service is provided.
Preferably, in the technical scheme that the embodiment of the present invention proposes here, can comprise:
Step 28, dhcp client writes the identification information of the DHCP SERVER selecting in DHCP request message, and broadcasts described DHCP request message.
Wherein, DHCP request message can be DHCP Request message, DHCP CLIENT, after according to the good DHCP SERVER of load information Dynamic Selection, determines the device identification of the DHCP SERVER selecting, and device identification is written in DHCP Request message and is broadcasted away.
Step 29, trunking is received after the DHCP Request message of DHCP CLIENT broadcast, this DHCP Request message is converted to N DHCP unicast message and sends to N DHCPSERVER.
Step 30, Dynamic Host Configuration Protocol server determines whether self is the Dynamic Host Configuration Protocol server that dhcp client is chosen.
Particularly, Dynamic Host Configuration Protocol server can, according to receiving DHCP request message, be determined the identification information comprising in described DHCP request message.Wherein, DHCP SERVER, according to receiving DHCP Request message, determines the identification information carrying in this message in DHCP Request message.
Step 31, DHCP SERVER judges that whether the identification information carrying in DHCP Request message is consistent with the identification information of self, determining described identification information when identical with the identification information of self, send for confirming that the DHCP of address allocation information replys (ACK) message to described dhcp client.
Wherein, the DHCP SERVER clean culture chosen by DHCP CLIENT send DHCP ACK message to DHCP CLIENT to confirm IP address assignment information.
Step 32, DHCP CLIENT receives the DHCP response message that the Dynamic Host Configuration Protocol server chosen sends and determines address allocation information.
It should be noted that; the technical scheme of the above-mentioned proposition of the embodiment of the present invention; above-mentioned steps 21 ~ step 32 and accompanying drawing 2, be preferably implementation of one, can be out of shape and reduce respective handling step also within protection range of the present invention according to technique scheme.
Correspondingly, the embodiment of the present invention also proposes a kind of Dynamic Host Configuration Protocol server choice device here, and this device is positioned at dhcp client side, as shown in Figure 3, comprising:
Choose module 403, for according to the load information of determining, in each Dynamic Host Configuration Protocol server, choose one for the Dynamic Host Configuration Protocol server of service is provided.
Described receiver module 401, the DHCP response message of also sending for receiving the Dynamic Host Configuration Protocol server chosen, determines address allocation information.
Alternatively, said apparatus can also comprise:
Described receiver module 401, also determine address allocation information for receiving the DHCP response message that the Dynamic Host Configuration Protocol server chosen sends, wherein, described DHCP response message is that Dynamic Host Configuration Protocol server receives after DHCP request message, according to the identification information comprising in DHCP request message, after determining and self being the Dynamic Host Configuration Protocol server of choosing, send the DHCP response message for confirming address allocation information.
Particularly, the first quantity information that load information comprises the dhcp client that Dynamic Host Configuration Protocol server carried, and the second quantity information of this Dynamic Host Configuration Protocol server maximum dhcp client that can carry; The described module 403 of choosing, specifically for according to the difference between the second quantity information and the first quantity information, determine the 3rd quantity information of the dhcp client that each Dynamic Host Configuration Protocol server can carry, according to the 3rd quantity information, in each Dynamic Host Configuration Protocol server, choose one for the Dynamic Host Configuration Protocol server of service is provided.
Particularly, the above-mentioned module 403 of choosing, specifically for by least one the 3rd quantity information obtaining according to sorting, in the result after sequence, choose the Dynamic Host Configuration Protocol server corresponding to the 3rd quantity information of numerical value maximum, as the Dynamic Host Configuration Protocol server for service is provided.
Correspondingly, the embodiment of the present invention also proposes a kind of Dynamic Host Configuration Protocol server choice device here, and this device is positioned at Dynamic Host Configuration Protocol server side, as shown in Figure 4, comprising:
Sending module 501, for receiving after DHCP that dhcp client sends finds message, to described dhcp client feedback DHCP work message, wherein, the load information that comprises Dynamic Host Configuration Protocol server in described DHCP work message, described dhcp client receives after this DHCP work message, determines the load information of Dynamic Host Configuration Protocol server.
Whether determination module 502 self is the Dynamic Host Configuration Protocol server that described dhcp client is chosen for determining.
Described sending module 501, also for determine at determination module self be described dhcp client choose Dynamic Host Configuration Protocol server time, send the DHCP response message for confirming address allocation information to described dhcp client, wherein said dhcp client, according to DHCP response message, is determined address allocation information.
This device also comprises:
Described determination module 502, whether identical with the identification information of self specifically for determining the identification information comprising in described DHCP request message, if identical, determine it self is the Dynamic Host Configuration Protocol server that described dhcp client is chosen, otherwise, determine it self is not the Dynamic Host Configuration Protocol server that described dhcp client is chosen.
Described sending module 501, also, for determining described identification information when identical with the identification information of self, sends the DHCP response message for confirming address allocation information to described dhcp client.
Adopt the technical scheme of the above-mentioned proposition of the embodiment of the present invention, by encapsulate the load information of Dynamic Host Configuration Protocol server in DHCP work message, and the DHCP message of working is sent to dhcp client, make dhcp client to determine accurately the loading condition of each Dynamic Host Configuration Protocol server according to the work load information of the Dynamic Host Configuration Protocol server that encapsulates in message of DHCP, can only the static problem of selecting thereby solved the Dynamic Host Configuration Protocol server existing in prior art.And, the loading condition of determining Dynamic Host Configuration Protocol server is completed by dhcp client, instead of completed by trunking, the Dynamic Selection calculating that is Dynamic Host Configuration Protocol server is not to concentrate on trunking to complete, thereby can avoid preferably trunking overload, make trunking become the problem of the performance bottleneck of system.And then can effectively distribute Dynamic Host Configuration Protocol server resource, improve preferably resource utilization.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, device (equipment) or computer program.Therefore, the present invention can adopt complete hardware implementation example, completely implement software example or the form in conjunction with the embodiment of software and hardware aspect.And the present invention can adopt the form at one or more upper computer programs of implementing of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) that wherein include computer usable program code.
The present invention is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present invention, device (equipment) and computer program.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction that makes to carry out by the processor of computer or other programmable data processing device produces the device for realizing the function of specifying at flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of specifying in flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of specifying in flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame on computer or other programmable devices.
Although described the preferred embodiments of the present invention, once those skilled in the art obtain the basic creative concept of cicada, can make other change and amendment to these embodiment.So claims are intended to be interpreted as comprising preferred embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if these amendments of the present invention and within modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.
Claims (18)
1. DynamicHost arranges a protocol DHCP server selection method, it is characterized in that, comprising:
Dhcp client sends DHCP and finds after message, receives the DHCP work message of setting at least one Dynamic Host Configuration Protocol server feedback in duration;
Determine the load information of the each Dynamic Host Configuration Protocol server comprising in described DHCP work message;
According to the load information of determining, in each Dynamic Host Configuration Protocol server, choose one for the Dynamic Host Configuration Protocol server of service is provided;
Dhcp client receives the DHCP response message that the Dynamic Host Configuration Protocol server chosen is sent, and determines address allocation information.
2. the method for claim 1, is characterized in that, choosing one for after the Dynamic Host Configuration Protocol server of service is provided, also comprises:
The identification information of the Dynamic Host Configuration Protocol server selecting is write in DHCP request message, and broadcast described DHCP request message.
3. the method for claim 1, is characterized in that, the first quantity information that described load information comprises the dhcp client that Dynamic Host Configuration Protocol server carried, and the second quantity information of this Dynamic Host Configuration Protocol server maximum dhcp client that can carry;
According to the load information of determining, in each Dynamic Host Configuration Protocol server, choose one for the Dynamic Host Configuration Protocol server of service is provided, comprising:
According to the difference between the second quantity information and the first quantity information, determine the 3rd quantity information of the dhcp client that each Dynamic Host Configuration Protocol server can carry, according to the 3rd quantity information, in each Dynamic Host Configuration Protocol server, choose one for the Dynamic Host Configuration Protocol server of service is provided.
4. method as claimed in claim 3, is characterized in that, according to the 3rd quantity information, chooses one for the Dynamic Host Configuration Protocol server of service is provided in each Dynamic Host Configuration Protocol server, comprising:
At least one the 3rd quantity information obtaining, according to sorting, is chosen to the Dynamic Host Configuration Protocol server corresponding to the 3rd quantity information of numerical value maximum, as the Dynamic Host Configuration Protocol server for service is provided in the result after sequence.
5. DynamicHost arranges a protocol DHCP server selection method, it is characterized in that, comprising:
Receive after DHCP that dhcp client sends finds message at Dynamic Host Configuration Protocol server, to described dhcp client feedback DHCP work message, wherein, the load information that comprises this Dynamic Host Configuration Protocol server in described DHCP work message, described dhcp client receives after this DHCP work message, determines the load information of described Dynamic Host Configuration Protocol server; And
Determine self be described dhcp client choose Dynamic Host Configuration Protocol server time, send the DHCP response message for confirming address allocation information to described dhcp client, wherein said dhcp client, according to DHCP response message, is determined address allocation information.
6. method as claimed in claim 5, is characterized in that, determines that whether self is the Dynamic Host Configuration Protocol server that described dhcp client is chosen, and comprising:
Receive the DHCP request message sent of dhcp client, in wherein said DHCP request message, comprise dhcp client according to load information, in each Dynamic Host Configuration Protocol server, select one for providing the identification information of Dynamic Host Configuration Protocol server of service;
Dynamic Host Configuration Protocol server determines that whether the identification information comprising in described DHCP request message is identical with the identification information of self, if identical, determine it self is the Dynamic Host Configuration Protocol server that described dhcp client is chosen, otherwise, determine it self is not the Dynamic Host Configuration Protocol server that described dhcp client is chosen.
7. method as claimed in claim 5, is characterized in that, the first quantity information that described load information comprises the dhcp client that Dynamic Host Configuration Protocol server carried, and the second quantity information of this Dynamic Host Configuration Protocol server maximum dhcp client that can carry;
Described dhcp client receives after this DHCP work message, determines the load information of described Dynamic Host Configuration Protocol server, comprising:
According to the difference between the second quantity information and the first quantity information, determine the 3rd quantity information of the dhcp client that described Dynamic Host Configuration Protocol server can carry.
8. DynamicHost arranges a protocol DHCP server choice device, and this device is positioned at dhcp client side, it is characterized in that, comprising:
Receiver module, for finding after message, receive to set the DHCP work message that in duration, at least one Dynamic Host Configuration Protocol server feeds back at transmission DHCP;
Determination module, the load information of the each Dynamic Host Configuration Protocol server comprising for definite described DHCP work message;
Choose module, for according to the load information of determining, in each Dynamic Host Configuration Protocol server, choose one for the Dynamic Host Configuration Protocol server of service is provided;
Described receiver module, the DHCP response message of also sending for receiving the Dynamic Host Configuration Protocol server chosen, determines address allocation information.
9. device as claimed in claim 8, is characterized in that, this device also comprises:
Broadcast module, for the identification information of the Dynamic Host Configuration Protocol server selecting is write to DHCP request message, and broadcasts described DHCP request message.
10. device as claimed in claim 8, is characterized in that, the first quantity information that described load information comprises the dhcp client that Dynamic Host Configuration Protocol server carried, and the second quantity information of this Dynamic Host Configuration Protocol server maximum dhcp client that can carry;
The described module of choosing, specifically for according to the difference between the second quantity information and the first quantity information, determine the 3rd quantity information of the dhcp client that each Dynamic Host Configuration Protocol server can carry, according to the 3rd quantity information, in each Dynamic Host Configuration Protocol server, choose one for the Dynamic Host Configuration Protocol server of service is provided.
11. devices as claimed in claim 10, it is characterized in that, the described module of choosing, specifically for by least one the 3rd quantity information obtaining according to sorting, in result after sequence, choose the Dynamic Host Configuration Protocol server corresponding to the 3rd quantity information of numerical value maximum, as the Dynamic Host Configuration Protocol server for service is provided.
12. 1 kinds of DynamicHosts arrange protocol DHCP server choice device, and this device is positioned at Dynamic Host Configuration Protocol server side, it is characterized in that, comprising:
Sending module, for receiving after DHCP that dhcp client sends finds message, to described dhcp client feedback DHCP work message, wherein, the load information that comprises Dynamic Host Configuration Protocol server in described DHCP work message, described dhcp client receives after this DHCP work message, determines the load information of Dynamic Host Configuration Protocol server; And
Whether determination module self is the Dynamic Host Configuration Protocol server that described dhcp client is chosen for determining;
Described sending module, also for determine at determination module self be described dhcp client choose Dynamic Host Configuration Protocol server time, send the DHCP response message for confirming address allocation information to described dhcp client, wherein said dhcp client, according to DHCP response message, is determined address allocation information.
13. devices as claimed in claim 12, is characterized in that, this device also comprises:
Receiver module, the DHCP request message of sending for receiving dhcp client, comprises dhcp client according to load information in wherein said DHCP request message, and in each Dynamic Host Configuration Protocol server, select one for providing the identification information of Dynamic Host Configuration Protocol server of service;
Described determination module, whether identical with the identification information of self specifically for determining the identification information comprising in described DHCP request message, if identical, determine it self is the Dynamic Host Configuration Protocol server that described dhcp client is chosen, otherwise, determine it self is not the Dynamic Host Configuration Protocol server that described dhcp client is chosen.
14. 1 kinds of DynamicHosts arrange protocol DHCP server selective system, it is characterized in that, comprise at least one dhcp client and at least one Dynamic Host Configuration Protocol server, wherein:
Described dhcp client, find message for sending DHCP to described Dynamic Host Configuration Protocol server, and the DHCP work message of at least one Dynamic Host Configuration Protocol server feedback in duration is set in reception, determine the load information of the each Dynamic Host Configuration Protocol server comprising in described DHCP work message, according to the load information of determining, in each Dynamic Host Configuration Protocol server, choose one for the Dynamic Host Configuration Protocol server of service is provided, and receive the DHCP response message that the Dynamic Host Configuration Protocol server chosen is sent, determine address allocation information;
Described Dynamic Host Configuration Protocol server, for receiving after DHCP that described dhcp client sends finds message, to described dhcp client feedback DHCP work message, wherein, the load information that comprises this Dynamic Host Configuration Protocol server in described DHCP work message; And determine self be described dhcp client choose Dynamic Host Configuration Protocol server time, send the DHCP response message for confirming address allocation information to described dhcp client.
15. systems as claimed in claim 14, is characterized in that, described dhcp client also for the identification information of the Dynamic Host Configuration Protocol server selecting is write to DHCP request message, and is broadcasted described DHCP request message;
Described Dynamic Host Configuration Protocol server, whether identical with the identification information of self specifically for determining the identification information comprising in described DHCP request message, if identical, determine it self is the Dynamic Host Configuration Protocol server that described dhcp client is chosen, otherwise, determine it self is not the Dynamic Host Configuration Protocol server that described dhcp client is chosen.
16. systems as claimed in claim 14, is characterized in that, the first quantity information that described load information comprises the dhcp client that Dynamic Host Configuration Protocol server carried, and the second quantity information of this Dynamic Host Configuration Protocol server maximum dhcp client that can carry;
Described dhcp client, specifically for according to the difference between the second quantity information and the first quantity information, determine the 3rd quantity information of the dhcp client that each Dynamic Host Configuration Protocol server can carry, according to the 3rd quantity information, in each Dynamic Host Configuration Protocol server, choose one for the Dynamic Host Configuration Protocol server of service is provided.
17. systems as claimed in claim 16, it is characterized in that, described dhcp client, specifically for by least one the 3rd quantity information obtaining according to sorting, in result after sequence, choose the Dynamic Host Configuration Protocol server corresponding to the 3rd quantity information of numerical value maximum, as the Dynamic Host Configuration Protocol server for service is provided.
18. systems as claimed in claim 14, is characterized in that, this system also comprises at least one trunking between dhcp client and Dynamic Host Configuration Protocol server, and described trunking can communicate with dhcp client, Dynamic Host Configuration Protocol server respectively;
Described trunking, for dhcp client being broadcast to the message of Dynamic Host Configuration Protocol server by the mode of unicast message, sends at least one Dynamic Host Configuration Protocol server; And forward each Dynamic Host Configuration Protocol server and send to the message of dhcp client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210576393.1A CN103905392B (en) | 2012-12-26 | 2012-12-26 | DynamicHost sets protocol DHCP server selection method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210576393.1A CN103905392B (en) | 2012-12-26 | 2012-12-26 | DynamicHost sets protocol DHCP server selection method, apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103905392A true CN103905392A (en) | 2014-07-02 |
CN103905392B CN103905392B (en) | 2017-06-20 |
Family
ID=50996547
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210576393.1A Active CN103905392B (en) | 2012-12-26 | 2012-12-26 | DynamicHost sets protocol DHCP server selection method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103905392B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105337886A (en) * | 2015-11-02 | 2016-02-17 | 福建星网锐捷网络有限公司 | DHCP address allocation method and DHCP address allocation device |
CN106453615A (en) * | 2016-11-11 | 2017-02-22 | 郑州云海信息技术有限公司 | A network communication protocol address configuration method and system |
CN113329105A (en) * | 2021-06-10 | 2021-08-31 | 深圳市炬力北方微电子有限公司 | Redundancy method of distributed self-adaptive DHCP service and related equipment |
CN114520965A (en) * | 2020-11-19 | 2022-05-20 | 瑞昱半导体股份有限公司 | Wireless relay device and configuration method for wireless relay device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020078188A1 (en) * | 2000-12-18 | 2002-06-20 | Ibm Corporation | Method, apparatus, and program for server based network computer load balancing across multiple boot servers |
CN1812398A (en) * | 2005-01-26 | 2006-08-02 | 华为技术有限公司 | Method for realizing DHCP server loading sharing based on DHCP relay |
CN101150526A (en) * | 2007-11-15 | 2008-03-26 | 中国电信股份有限公司 | A method and server for realizing load balance service of dynamic host configuration protocol |
WO2009090898A1 (en) * | 2008-01-15 | 2009-07-23 | Nec Corporation | Communication system, dhcp server, sip server, sip server selection method, and program |
CN102244690A (en) * | 2011-07-26 | 2011-11-16 | 福建星网锐捷网络有限公司 | Address allocation method and system of dynamic host configuration protocol (DHCP) as well as client side and servers of same |
CN102780790A (en) * | 2012-07-13 | 2012-11-14 | 深圳市龙视传媒有限公司 | Method and system for dynamically allocating IP (Internet Protocol) address |
WO2012163178A1 (en) * | 2011-07-14 | 2012-12-06 | 华为技术有限公司 | Method, device, and edge node controller for selecting edge node |
-
2012
- 2012-12-26 CN CN201210576393.1A patent/CN103905392B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020078188A1 (en) * | 2000-12-18 | 2002-06-20 | Ibm Corporation | Method, apparatus, and program for server based network computer load balancing across multiple boot servers |
CN1812398A (en) * | 2005-01-26 | 2006-08-02 | 华为技术有限公司 | Method for realizing DHCP server loading sharing based on DHCP relay |
CN101150526A (en) * | 2007-11-15 | 2008-03-26 | 中国电信股份有限公司 | A method and server for realizing load balance service of dynamic host configuration protocol |
WO2009090898A1 (en) * | 2008-01-15 | 2009-07-23 | Nec Corporation | Communication system, dhcp server, sip server, sip server selection method, and program |
WO2012163178A1 (en) * | 2011-07-14 | 2012-12-06 | 华为技术有限公司 | Method, device, and edge node controller for selecting edge node |
CN102244690A (en) * | 2011-07-26 | 2011-11-16 | 福建星网锐捷网络有限公司 | Address allocation method and system of dynamic host configuration protocol (DHCP) as well as client side and servers of same |
CN102780790A (en) * | 2012-07-13 | 2012-11-14 | 深圳市龙视传媒有限公司 | Method and system for dynamically allocating IP (Internet Protocol) address |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105337886A (en) * | 2015-11-02 | 2016-02-17 | 福建星网锐捷网络有限公司 | DHCP address allocation method and DHCP address allocation device |
CN106453615A (en) * | 2016-11-11 | 2017-02-22 | 郑州云海信息技术有限公司 | A network communication protocol address configuration method and system |
CN114520965A (en) * | 2020-11-19 | 2022-05-20 | 瑞昱半导体股份有限公司 | Wireless relay device and configuration method for wireless relay device |
CN114520965B (en) * | 2020-11-19 | 2024-03-01 | 瑞昱半导体股份有限公司 | Wireless relay device and configuration method for wireless relay device |
CN113329105A (en) * | 2021-06-10 | 2021-08-31 | 深圳市炬力北方微电子有限公司 | Redundancy method of distributed self-adaptive DHCP service and related equipment |
Also Published As
Publication number | Publication date |
---|---|
CN103905392B (en) | 2017-06-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103814554B (en) | A kind of communication means of virtual easily extensible local area network (LAN), device and system | |
CN102215158B (en) | Method for realizing VRRP (Virtual Router Redundancy Protocol) flow transmission and routing equipment | |
CN102316447B (en) | Internet protocol (IP) address allocation and sending method, wireless access device, server and system | |
CN102469015B (en) | Realize method and device, the system of relay selection | |
CN103561049A (en) | Method for processing terminal scheduling request, system thereof and device thereof | |
CN103051709A (en) | Data transmission path determination method, network node and content delivery network system | |
CN101159758B (en) | Classification associated dynamic host machine configuring protocol option distribution method and device | |
CN102752413B (en) | Dynamic Host Configuration Protocol server system of selection and the network equipment | |
CN113572835B (en) | Data processing method, network element equipment and readable storage medium | |
CN101188514A (en) | Method, device and system for automatically discovering network element device | |
CN104618243A (en) | Routing method, device and system, and gateway scheduling method and device | |
CN104754640A (en) | Network resource scheduling method and network resource management server | |
CN112543212B (en) | System for providing request response exact communication delay guarantee for distributed service | |
CN1812398B (en) | Method for realizing DHCP server loading sharing based on DHCP relay | |
CN103905392A (en) | Dynamic Host Configuration Protocol (DHCP) server selection method, device and system | |
CN103546315A (en) | System, method and equipment for backing up DHCP (dynamic host configuration protocol) server | |
CN111193756B (en) | VXLAN tunnel load balancing method and related equipment | |
CN101873320A (en) | Client information verification method based on DHCPv6 relay and device thereof | |
CN103259866A (en) | DNS zone file multi-node transmission method and system | |
CN116668511A (en) | Data processing method, network element equipment and readable storage medium | |
CN106878481B (en) | Method, device and system for acquiring Internet Protocol (IP) address | |
CN100466614C (en) | Multi-cast broadcasting business realizing method | |
CN104717312A (en) | Method and device for determining network resource access interfaces | |
US10686752B2 (en) | Methods for configuring and managing an IP network, corresponding devices and computer programs | |
CN103441931A (en) | Message sending method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |