CN102685264A - Dynamic host configuration protocol address allocation method, relay equipment and server - Google Patents
Dynamic host configuration protocol address allocation method, relay equipment and server Download PDFInfo
- Publication number
- CN102685264A CN102685264A CN2012101408324A CN201210140832A CN102685264A CN 102685264 A CN102685264 A CN 102685264A CN 2012101408324 A CN2012101408324 A CN 2012101408324A CN 201210140832 A CN201210140832 A CN 201210140832A CN 102685264 A CN102685264 A CN 102685264A
- Authority
- CN
- China
- Prior art keywords
- address
- dhcp
- relay equipment
- dynamic host
- host configuration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides a dynamic host configuration protocol address allocation method, relay equipment and a server. The dynamic host configuration protocol address allocation method comprises the following steps: DHCP (Dynamic Host Configuration Protocol) relay equipment receives an address allocation request message sent by a DHCP client side; the DHCP relay equipment allocates an Internet protocol IP address for the DHCP client side from an address pool which is applied for a DHCP server in advance, according to the address allocation request message, wherein the address pool corresponds to a subnet where the DHCP relay equipment is located; and the DHCP relay equipment sends an address allocation answer message to the DHCP client side, wherein the address allocation answer message comprises the IP address. According to the technical scheme of the invention, the burden of allocating the IP address to the DHCP server is lightened.
Description
Technical field
The present invention relates to the network communications technology, relate in particular to a kind of dhcp address distribution method, trunking and server.
Background technology
The user is through DHCP (Dynamic Host Configuration Protocol; DHCP) can obtain Internet protocol (Internet Protocol; IP) relevant information such as address; Simplify user's online needed configuration before greatly, reached the purpose of plug and play basically.DHCP adopts traditional client/server, and (its operation principle is as shown in Figure 1 for Client/Server, C/S) structure.Dhcp client sends DHCP to Dynamic Host Configuration Protocol server and finds (Discover) request; Dynamic Host Configuration Protocol server sends DHCP to dhcp client (Offer) is provided response; Dhcp client sends DHCP request (Request) to Dynamic Host Configuration Protocol server again; Dynamic Host Configuration Protocol server returns DHCP to dhcp client and confirms (ACK) response; So far dhcp client finishes from the process of trend Dynamic Host Configuration Protocol server request distributing IP address and relevant configuration; Dhcp client has successfully obtained the configuration of oneself wanting, connection network that can be successful.
If dhcp client and Dynamic Host Configuration Protocol server then need the participation of DHCP relay not in the same network segment.The IP address assignment process that has DHCP relay to participate in is as shown in Figure 2, and DHCP relay has been realized being redirected of message between the two as the relaying between dhcp client and the Dynamic Host Configuration Protocol server.
Visible by Fig. 2; The dhcp client of different segment is connected to Dynamic Host Configuration Protocol server through DHCP relay; When needing information such as dynamic assignment IP address when a dhcp client; Dhcp client is just sent to corresponding DHCP relay place to message, and DHCP relay arrives the message redirecting of dhcp client the Dynamic Host Configuration Protocol server of appointment according to the sensing of pre-configured Dynamic Host Configuration Protocol server; Dynamic Host Configuration Protocol server is sent to the DHCP relay place with response after treatment again, and DHCP relay is redirected to dhcp client with response again.Whole process DHCP relay has played the effect of bridge between dhcp client and Dynamic Host Configuration Protocol server, be responsible for the mutual reception and registration of message.
In above-mentioned each situation; The dhcp client of each network segment is all unified to information such as Dynamic Host Configuration Protocol server application IP addresses; Dynamic Host Configuration Protocol server need be handled all messages relevant with the IP application IP addresses, and the burden of Dynamic Host Configuration Protocol server is heavier, particularly in bigger network environment; When thousands of dhcp client is applied for information such as IP address simultaneously (when for example the dhcp client after the outage powers up simultaneously), will there be the possibility of collapsing in Dynamic Host Configuration Protocol server.
Summary of the invention
The present invention provides a kind of dhcp address distribution method, trunking and server, in order to alleviate the burden of Dynamic Host Configuration Protocol server.
One aspect of the present invention provides a kind of dynamic host configuration protocol DHCP address distribution method, comprising:
DHCP relay equipment receives the address assignment request message that dhcp client sends;
Said DHCP relay equipment is according to said address assignment request message, from advance to the Dynamic Host Configuration Protocol server application to address pool distribute internet protocol IP address for said dhcp client; Said address pool is subnet corresponding address pond, said DHCP relay equipment place;
Said DHCP relay equipment sends the address assignment response message to said dhcp client, and said address assignment response message comprises said IP address.
One aspect of the present invention provides a kind of dynamic host configuration protocol DHCP trunking, comprising:
First receiver module is used to receive the address assignment request message that dhcp client sends;
Distribution module is used for according to said address assignment request message, from advance to the Dynamic Host Configuration Protocol server application to address pool distribute internet protocol IP address for said dhcp client; Said address pool is subnet corresponding address pond, said DHCP relay equipment place;
First sending module is used for sending the address assignment response message to said dhcp client, and said address assignment response message comprises said IP address.
One aspect of the present invention provides a kind of dynamic host configuration protocol DHCP address allocation system, comprising: dhcp client, DHCP relay equipment and Dynamic Host Configuration Protocol server;
Said DHCP relay equipment comprises:
First receiver module is used to receive the address assignment request message that said dhcp client sends;
Distribution module is used for according to said address assignment request message, from advance to said Dynamic Host Configuration Protocol server application to address pool distribute internet protocol IP address for said dhcp client; Said address pool is subnet corresponding address pond, said DHCP relay equipment place;
First sending module is used for sending the address assignment response message to said dhcp client, and said address assignment response message comprises said IP address;
Said dhcp client is used for sending said address assignment request message to said DHCP relay equipment, and receives the said address assignment response message that said DHCP relay equipment sends;
Said Dynamic Host Configuration Protocol server is used in advance to the said address pool of said DHCP relay devices allocation.
The present invention provides a kind of dynamic host configuration protocol DHCP server on the other hand, comprising:
The 4th receiver module is used to receive the address pool negotiation request message that DHCP relay equipment sends, and said address pool negotiation request message comprises the Internet protocol IP address of said DHCP relay equipment;
Acquisition module is used for determining said DHCP relay equipment place subnet according to the IP address of said DHCP relay equipment, and obtains and subnet corresponding address pond, said DHCP relay equipment place;
The 4th sending module; Be used for sending address pool and consult response message to said DHCP relay equipment; Said address pool is consulted response message and is comprised said address pool; So that said DHCP relay equipment is said dhcp client distributing IP address from said address pool after the address assignment request that receives the dhcp client transmission.
Dhcp address distribution method, system and trunking that one aspect of the present invention provides; DHCP relay equipment is in advance to subnet corresponding address pond, Dynamic Host Configuration Protocol server application place; After the request that receives dhcp client application IP address, from the address pool of applying in advance, be dhcp client distributing IP address; Make dhcp client application IP address need not obtain on the one hand through Dynamic Host Configuration Protocol server; Need be not mutual with Dynamic Host Configuration Protocol server, alleviated the burden of Dynamic Host Configuration Protocol server, what DHCP relay equipment obtained from Dynamic Host Configuration Protocol server on the other hand is address pool rather than IP address; With Dynamic Host Configuration Protocol server once can accomplish obtaining of a plurality of IP address alternately; Compare with the application scheme that can only apply for an IP address at every turn, reduced the interaction times with Dynamic Host Configuration Protocol server, alleviated the burden of Dynamic Host Configuration Protocol server equally.
The Dynamic Host Configuration Protocol server that the present invention provides on the other hand; Match with the DHCP relay equipment that the embodiment of the invention provides; Consult response message through the address pool negotiation request message of reception DHCP relay equipment transmission and to pond, DHCP relay equipment return address; Allow DHCP relay equipment applied address pond; Make DHCP relay equipment with a reciprocal process of Dynamic Host Configuration Protocol server in can apply for a plurality of IP address; Alleviated the burden that DHCP relay equipment causes to Dynamic Host Configuration Protocol server to Dynamic Host Configuration Protocol server application IP address in advance on the one hand, directly laid the foundation for dhcp client distributing IP address for DHCP relay equipment on the other hand, alleviated the burden that Dynamic Host Configuration Protocol server directly causes for dhcp client distributing IP address according to the address pool of applying for.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply; Obviously, the accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is a kind of flow chart of dhcp address distribution method in the prior art;
Fig. 2 is the another kind of flow chart of dhcp address distribution method in the prior art;
Fig. 3 A is the flow chart of the dhcp address distribution method that provides of one embodiment of the invention;
Fig. 3 B is the flow chart of the practical implementation process of the dhcp address distribution method that provides of one embodiment of the invention;
Fig. 3 C is the sketch map of the DHCP message format that provides of one embodiment of the invention;
The flow chart of the dhcp address distribution method that Fig. 4 provides for another embodiment of the present invention;
The flow chart of the dhcp address distribution method that Fig. 5 provides for further embodiment of this invention;
The flow chart of the embodiment of the dhcp address distribution method that Fig. 6 provides for one embodiment of the invention;
The structural representation of the DHCP relay equipment that Fig. 7 provides for one embodiment of the invention;
The structural representation of the DHCP relay equipment that Fig. 8 provides for another embodiment of the present invention;
The structural representation of the Dynamic Host Configuration Protocol server that Fig. 9 provides for one embodiment of the invention;
The structural representation of the Dynamic Host Configuration Protocol server that Figure 10 provides for another embodiment of the present invention;
The structural representation of the dhcp address distribution system that Figure 11 provides for one embodiment of the invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Fig. 3 A is the flow chart of the dhcp address distribution method that provides of one embodiment of the invention.Shown in Fig. 3 A, the method for present embodiment comprises:
When dhcp client need be asked the distributing IP address, dhcp client sent address assignment request message to DHCP relay.Accordingly, DHCP relay equipment receives the address assignment request message that dhcp client sends.
Wherein, dhcp client and DHCP relay equipment belong to same subnet.
Step 302, DHCP relay equipment is according to address assignment request message, from advance to the Dynamic Host Configuration Protocol server application to address pool be dhcp client distributing IP address; Address pool is subnet corresponding address pond, DHCP relay equipment place.
On Dynamic Host Configuration Protocol server, store each subnet corresponding address pond respectively.
In the present embodiment; In order to solve the Dynamic Host Configuration Protocol server problem that over-burden in the prior art; DHCP relay equipment is in advance to subnet corresponding address pond, Dynamic Host Configuration Protocol server application DHCP relay equipment place; After the request that receives dhcp client application IP address, no longer this request is redirected to Dynamic Host Configuration Protocol server but directly from the address pool of application in advance, is dhcp client distributing IP address, and the IP address that will distribute to dhcp client sends to dhcp client; With Dynamic Host Configuration Protocol server is that the job sharing of dhcp client distributing IP address is to DHCP relay equipment; Make dhcp client application IP address need not obtain through Dynamic Host Configuration Protocol server, need be not mutual with Dynamic Host Configuration Protocol server, alleviated the burden of Dynamic Host Configuration Protocol server.In addition; In the present embodiment; DHCP relay equipment from the Dynamic Host Configuration Protocol server application in advance be address pool rather than IP address, once can accomplish obtaining of a plurality of IP address alternately between DHCP relay equipment and the Dynamic Host Configuration Protocol server, compare with the application scheme that can only apply for an IP address at every turn; Reduce the interaction times with Dynamic Host Configuration Protocol server, alleviated the burden of Dynamic Host Configuration Protocol server equally.
Further, in the prior art, if dhcp client is in the different network segments with Dynamic Host Configuration Protocol server; Then the mutual message of the application IP address of dhcp client application IP address need pass through two networks; One is to need to arrive DHCP relay equipment through local subnet, one be DHCP relay equipment to the network between the Dynamic Host Configuration Protocol server, and DHCP relay equipment maybe be very complicated to the network between the Dynamic Host Configuration Protocol server; There is very large delay usually in message interaction even can loses; Make that the time of dhcp client application IP address is longer, even failure, user experience is relatively poor.And in the present embodiment; Dhcp client only needs to carry out alternately with the DHCP relay equipment of place subnet; The message of application IP address only need arrive DHCP relay equipment through local subnet and get final product; Reduce the time of dhcp client application IP address, improved the application efficient of IP address, improved user experience.
In this explanation, dhcp client can send address assignment request message to DHCP relay equipment through the DHCP request message.Correspondingly, DHCP relay equipment can send the address assignment response message to dhcp client through the DHCP confirmation message.Based on this, shown in Fig. 3 B, a kind of practical implementation process of dhcp address distribution method comprises:
Step 3a, DHCP relay equipment receive the DHCP discovery message that dhcp client sends.
Concrete, dhcp client sends DHCP to DHCP relay equipment and finds message when request distributing IP address.And DHCP relay equipment receives the DHCP discovery message that dhcp client sends.
Step 3b, DHCP relay equipment provide message to dhcp client transmission DHCP.
Step 3c, DHCP relay equipment receive the DHCP request message that dhcp client sends.
Step 3d, DHCP relay equipment after receiving the DHCP request message, from advance to the Dynamic Host Configuration Protocol server application to address pool be that dhcp client distributes an IP address.
Wherein, DHCP relay equipment comprises to the process of dhcp client distributing IP address: from the address pool of application in advance, be the process of an IP address of dhcp client distribution, and the process that institute's IP address allocated is carried out collision detection.Wherein, The purpose of collision detection is to judge whether institute's IP address allocated is used by other dhcp clients; If detecting institute's IP address allocated exists on network when conflicting the address; Needing is dhcp client distributing IP address again, till being assigned to the IP address of not used by other dhcp clients.
Wherein, a kind of execution mode that carries out collision detection can be: DHCP relay equipment sends probe messages with the purpose IP address of institute's IP address allocated as probe messages with broadcast mode.For the IP address be the dhcp client of institute's IP address allocated after receiving probe messages, need return detection response message.If DHCP relay equipment receives detection response message, think then to detect conflict that promptly institute's IP address allocated is used; Otherwise, think not detect conflict, can institute's IP address allocated be sent to dhcp client.
Step 3e, DHCP relay equipment send the DHCP confirmation message to dhcp client, and this DHCP confirmation message comprises the IP address of distributing to dhcp client.
In above-mentioned reciprocal process, DHCP finds that message, DHCP provide message, DHCP request message and DHCP confirmation message to use unified message format, and this message format is shown in Fig. 3 C.
Wherein, op field: the action type of expression message.The DHCP message generally is divided into request message and response message, and for example this op field value is that 1 this message of expression is a request message, and value is that 2 these messages of expression are response message.Above-mentioned DHCP finds that it is a pair of request message and response message that message and DHCP provide message; DHCP request message and DHCP confirmation message are a pair of request message and response message.
Htype field: expression hardware address type.
Hlen field: expression hardware address length.Only to the Ethernet support, hardware address length is fixed as 6 at present in system.
Hops field: the number of the DHCP relay equipment of expression DHCP message process.The DHCP request message is every through a DHCP relay equipment, and this field will increase by 1.
The xid field: expression is used for matching request and response message by the random number that dhcp client produces.
The secs field: the expression dhcp client gets into the time of IP application IP addresses process or the time of upgrading IP address process; According to circumstances set by dhcp client.Do not use at present, fixedly value is 0.
Sign (flags) field: indicator sign field.First bit is broadcasting response identification position, and being used for identifying the dhcp server response message in the prior art is to adopt clean culture or broadcast mode transmission, and value is that mode of unicast is adopted in 0 expression, and value is that broadcast mode is adopted in 1 expression.All the other bits keep need not.In technical scheme of the present invention, it is to adopt clean culture or broadcast mode transmission that first bit is used for identifying DHCP relay device responds message, and same value is that mode of unicast is adopted in 0 expression, and value is 1 expression employing broadcast mode.
Ciaddr field: the IP address of expression dhcp client.
Yiaddr field: represent that in the prior art Dynamic Host Configuration Protocol server distributes to the IP address of dhcp client; In the present embodiment, expression DHCP relay devices allocation is given the IP address of dhcp client.
Siaddr field: the IP address that the expression dhcp client obtains the Dynamic Host Configuration Protocol server of information such as IP address.
The giaddr field: the expression dhcp client send behind the request message through the IP address of first DHCP relay equipment.
Chaddr field: the hardware address of expression dhcp client.
The sname field: the expression dhcp client obtains the title of the Dynamic Host Configuration Protocol server of information such as IP address.
The file field: the expression Dynamic Host Configuration Protocol server is the startup profile name and the routing information of dhcp client appointment.
Option (options) field: be optional elongated Option Field, comprise the type of message, effective rental period, the IP address of dns server, the configuration informations such as IP address of WINS server.
By above-mentioned visible, the dhcp address distribution method that present embodiment provides need not done any change to dhcp client, has the simple advantage of realization.
The flow chart of the dhcp address distribution method that Fig. 4 provides for another embodiment of the present invention.As shown in Figure 4, the method for present embodiment comprises:
DHCP relay equipment sends the address pool negotiation request message to Dynamic Host Configuration Protocol server, and this address pool negotiation request message comprises the IP address of DHCP relay equipment.Dynamic Host Configuration Protocol server receives the address pool negotiation request message that DHCP relay equipment sends; And after receiving this address pool negotiation request message, this address pool negotiation request message is handled; Concrete; Dynamic Host Configuration Protocol server is resolved this address pool negotiation request message; Obtain the IP address of DHCP relay equipment wherein; Determine DHCP relay equipment place subnet (address network segment under the IP address of DHCP relay equipment in other words) according to the IP address of DHCP relay equipment then, obtain subnet corresponding address pond, DHCP relay equipment place then, and consult response message through address pool this subnet corresponding address pond, DHCP relay equipment place is announced to DHCP relay equipment.
Optional; If on Dynamic Host Configuration Protocol server, also dispose some other information for address pool; For example the default route information of this address pool correspondence, the information of dns server, the time in rental period of this address pool etc., then Dynamic Host Configuration Protocol server can also send to DHCP relay equipment with other information relevant with this address pool that disposed in the lump when this address pool is sent to DHCP relay equipment.Wherein, the information relevant with address pool such as time in rental period of the information of the default route information of above-mentioned address pool, dns server, address pool are called the configuration information of this address pool.
Preferably, DHCP relay equipment can carry out the negotiations process of primary address pond with Dynamic Host Configuration Protocol server, with the applied address pond after each start.Perhaps, DHCP relay equipment can carry out the negotiations process of primary address pond with Dynamic Host Configuration Protocol server, with the applied address pond at every turn after powering on.
Further; In order to strengthen the reliability that DHCP relay equipment is dhcp client distributing IP address; When address pool application failure; For example Dynamic Host Configuration Protocol server is not replied or is not had the corresponding address pond, and DHCP relay equipment can be initiated the address pool agreement request to the DHCP service again with the mechanism of overtime triggering, to pass through the repeatedly final address acquisition of address pool negotiations process pond.Wherein, time-out time can extend seriatim up to reaching a fixing value.The overtime retransmission mechanism of this process and TCP is similar.
In this explanation; When after power down, powering on simultaneously when DHCP relay equipment and with all dhcp clients that DHCP relay equipment belongs to same subnet; DHCP relay equipment needs earlier to Dynamic Host Configuration Protocol server applied address pond; And the address pool that will apply for is kept at this locality, and then is the dhcp client distributing IP address after powering on according to the address pool of local message.In this case; Because DHCP relay equipment is address pool to the Dynamic Host Configuration Protocol server application; The application process of this address pool only needs primary address pond negotiations process (message interaction process of needs in other words) to accomplish usually, and is less to the time delay influence of dhcp client application IP address.Each only to IP address of Dynamic Host Configuration Protocol server application and through repeatedly applying for obtaining a plurality of IP address for DHCP relay equipment as local reserved address as dhcp client; Be the scheme of dhcp client distributing IP address then according to local reserved address; Situation about powering on simultaneously for all dhcp clients after the power down and DHCP relay equipment; DHCP relay equipment needs earlier through repeatedly applying for to the Dynamic Host Configuration Protocol server application to a plurality of IP address; Could be dhcp client distributing IP address then; DHCP relay equipment simulating dhcp client also needs twice message interaction process to IP address of Dynamic Host Configuration Protocol server application, this shows after the application of accomplishing a plurality of IP address to be dhcp client distributing IP address again, makes that the time delay of dhcp client distributing IP address is longer.This shows; The dhcp client of present embodiment passes through to Dynamic Host Configuration Protocol server applied address pond rather than IP address; Not only can alleviate the burden of Dynamic Host Configuration Protocol server, also help the time delay that reduces dhcp client application IP address, improve the efficient of application IP address in this opposite extreme situations.
After DHCP relay equipment gets access to address pool, can be dhcp client distributing IP address through following step 403-step 405.Concerning dhcp client, be just the same from DHCP relay devices allocation IP address with distributing IP address from Dynamic Host Configuration Protocol server, have no difference.
Step 404, DHCP relay equipment is according to address assignment request message, from advance to the Dynamic Host Configuration Protocol server application to address pool distribute internet protocol IP address for dhcp client; Address pool is subnet corresponding address pond, DHCP relay equipment place.
Above-mentioned steps 403-step 405 can repeat no more at this referring to the description of Fig. 3 A or Fig. 3 B illustrated embodiment.
In like manner; In the present embodiment; DHCP relay equipment is consulted through carrying out address pool with Dynamic Host Configuration Protocol server, in advance to subnet corresponding address pond, Dynamic Host Configuration Protocol server application DHCP relay equipment place, after the request that receives dhcp client requirement distributing IP address; No longer this request is redirected to Dynamic Host Configuration Protocol server but directly from the address pool of application in advance, is dhcp client distributing IP address; And the IP address that will distribute to dhcp client sends to dhcp client, with Dynamic Host Configuration Protocol server be the job sharing of dhcp client distributing IP address to DHCP relay equipment, make dhcp client application IP address need not obtain through Dynamic Host Configuration Protocol server; Need be not mutual with Dynamic Host Configuration Protocol server, alleviated the burden of Dynamic Host Configuration Protocol server.In addition; In the present embodiment; DHCP relay equipment from the Dynamic Host Configuration Protocol server application in advance be address pool rather than IP address, once can accomplish obtaining of a plurality of IP address alternately between DHCP relay equipment and the Dynamic Host Configuration Protocol server, compare with the application scheme that can only apply for an IP address at every turn; Reduce the interaction times with Dynamic Host Configuration Protocol server, alleviated the burden of Dynamic Host Configuration Protocol server equally.Further; In the present embodiment; Dhcp client only needs to carry out alternately with the DHCP relay equipment of place subnet, and the message of application IP address only need arrive DHCP relay equipment through local subnet and get final product, and has reduced the time of dhcp client application IP address; Improve the application efficient of IP address, improved user experience.
The flow chart of the dhcp address distribution method that Fig. 5 provides for further embodiment of this invention.As shown in Figure 5, the method for present embodiment comprises:
Step 501, DHCP relay equipment send the address pool negotiation request message to Dynamic Host Configuration Protocol server, and the address pool negotiation request message comprises the IP address of DHCP relay equipment.
Above-mentioned steps 501 can repeat no more at this referring to the description of step 401 and step 402 with step 502.
Step 504, DHCP relay equipment is according to address assignment request message, from advance to the Dynamic Host Configuration Protocol server application to address pool be dhcp client distributing IP address; Address pool is subnet corresponding address pond, DHCP relay equipment place.
Step 503-step 505 can repeat no more at this referring to the description of Fig. 3 A or Fig. 3 B illustrated embodiment.
Step 506, DHCP relay equipment send the address assignment notice message to Dynamic Host Configuration Protocol server, so that the user mode of the IP address in the Dynamic Host Configuration Protocol server recording address pond, the address assignment notice message comprises the IP address of distributing to dhcp client.
In the present embodiment, the IP address that DHCP relay equipment will be distributed to dhcp client sends to after the dhcp client, through sending the address assignment notice message to Dynamic Host Configuration Protocol server, the IP address of distributing to dhcp client is told to Dynamic Host Configuration Protocol server.Like this Dynamic Host Configuration Protocol server just can the recording address pond in the user mode of each IP.Concerning Dynamic Host Configuration Protocol server; Receive the address assignment notice message that DHCP relay equipment sends; And after receiving the address assignment notice message; Recording address distributes the user mode of the IP address of carrying in the notice message, for example with the IP address designation that carries in the address assignment notice message for distributing or being used.Because the distribution condition of the IP in the address pool of DHCP relay equipment application can be given Dynamic Host Configuration Protocol server synchronously, therefore, the distribution condition that Dynamic Host Configuration Protocol server is known the IP address in the address pool of each DHCP relay equipment application fully realizes the unified management of IP address easily.
Further, the address assignment notice message can also comprise: the distribution time of IP address and/or the sign of dhcp client, but be not limited thereto.Wherein, the sign of dhcp client can be the hardware address of dhcp client.Dynamic Host Configuration Protocol server can more comprehensively be understood the distribution operating position of the IP address in the address pool of each DHCP relay equipment application like this, helps the unified management to the IP address more.
Further, in above-mentioned each embodiment, when the configuration information of the address pool on the Dynamic Host Configuration Protocol server changed, Dynamic Host Configuration Protocol server can be given DHCP relay equipment synchronously with the variation that takes place, thereby the information of realization is synchronous fully.Concrete, when the configuration information of the address pool on the Dynamic Host Configuration Protocol server changed, Dynamic Host Configuration Protocol server can send the configuration variation notice message to DHCP relay equipment; DHCP relay equipment receives the configuration variation notice message that Dynamic Host Configuration Protocol server sends, and this configuration variation notice message comprises the configuration change information that address pool is corresponding.Then, the configuration change information that DHCP relay equipment is corresponding according to address pool in the configuration variation notice message, the configuration information in scheduler pond.
Wherein, the configuration variation notice message comprises that a kind of implementation of the configuration change information that address pool is corresponding is: the configuration variation notice message only comprises the configuration information that changes.Then DHCP relay equipment is according to the configuration information that changes in the configuration variation notice message; The scheduler pond is at the configuration information of this locality; If the configuration information that for example changes is the configuration information that has existed; Then can directly directly replace local corresponding configuration information with the configuration information that changes, if the configuration information that changes is the configuration information that increases newly, the configuration information of the said generation conversion that then directly increases newly in this locality.
Wherein, The configuration variation notice message comprises that a kind of implementation of the configuration change information that address pool is corresponding is: the configuration variation notice message comprises the corresponding whole configuration informations of address pool (comprise change and do not change), and then DHCP relay equipment can directly be replaced address pool all configuration informations in this locality with the corresponding whole configuration informations of address pool in the configuration variation notice message.
Situation about changing in the face of the configuration information of address pool on the Dynamic Host Configuration Protocol server down is illustrated.For example; In running, in the rental period (or perhaps assignment period) of the possible desired modifications address pool of Dynamic Host Configuration Protocol server, perhaps Dynamic Host Configuration Protocol server hopes to reclaim some IP address; These IP addresses are distributed to some dhcp client use and do not hoped to pass through dynamic assignment with static mode; Perhaps, the default route of address pool changes (for example by not having to having), perhaps the DNS information on services of address pool change (for example by not having to having).In case above-mentioned variation has taken place, Dynamic Host Configuration Protocol server need be announced to DHCP relay equipment.Information on DHCP relay equipment and the Dynamic Host Configuration Protocol server is realized synchronously, and can to make DHCP relay equipment be dhcp client distributing IP address based on the up-to-date configuration information of address pool, help improving the probability of successful distributing IP address.
In the above-described embodiments; Between Dynamic Host Configuration Protocol server and DHCP relay equipment, carrying out information synchronization and address pool consults; Realizing through address assignment notice message or configuration variation notice message synchronously of these information, address pool are consulted to consult response message through address pool negotiation request message and address pool and are realized.Address assignment notice message, configuration variation notice message, address pool negotiation request message or address pool are consulted response message can carry out extension realization through the message to existing DHCP agreement.
A kind of optional execution mode of message of the DHCP of expansion agreement is: DHCP option 53 is expanded.DHCP option 53 after the expansion has increased address pool agreement request (INFOREQ), and address pool consults to reply (INFORPY) and 3 option values of information announcement (INFONTY), is respectively 8,9 and 10, is used for as new type of message.DHCP option 53 comprises 7 option values before expansion; Be respectively 1-7, find that corresponding to DHCP message, DHCP provide message, DHCP request message, DHCP refusal (decline) message, DHCP confirmation message, DHCP to deny that (NACK) message and DHCP discharge (release) message.In order in information reconciliation process and information announcement process, to carry relevant content, present embodiment is set up a privately owned option in the original Option Field of DHCP, and establishing its option code is 211, but is not limited thereto.The option value part of the privately owned option of setting up 211 can be made up of at least 1 sub-options, and its option is each sub-option sum, is variable-length.In the present embodiment, the sub-option that privately owned option 211 comprises is as shown in table 1, but is not limited thereto.Expansion can increase if desired.
Table 1
Suboption-value | Sub-option explanation |
1 | Address pool is consulted |
2 | The Dynamic Host Configuration Protocol server configuration variation is announced sub-option |
3 | The sub-option of DHCP relay devices advertise IP allocation result |
Wherein, value is that 1 sub-option is used to realize that above-mentioned address pool negotiation request message and address pool consult response message in the table 1; Value is that 2 sub-option is used to realize the configuration variation notice message; Value is that 3 sub-option is used to realize the address assignment notice message.In addition, for the default route of address pool, relevant informations such as dns server can be encapsulated into address pool and consult to carry out synchronously in the corresponding standard option of response message.
DHCP message based on above-mentioned expansion; When behind the DHCP relay opening of device; DHCP relay equipment is consulted the corresponding address pond from the Dynamic Host Configuration Protocol server of its appointment of trend; Wherein, when disposing DHCP relay equipment, can specify the Dynamic Host Configuration Protocol server of its sensing, Dynamic Host Configuration Protocol server also can be address pool of DHCP relay devices allocation of correspondence simultaneously; DHCP relay equipment sends to Dynamic Host Configuration Protocol server and comprises option 53, and value is 8, and comprises privately owned option 211, and its sub-option is 1 address pool message of negotiation request; After Dynamic Host Configuration Protocol server is received the address pool message of negotiation request; Confirm the corresponding address pond, comprise option 53 through sending to DHCP relay equipment, value is 9; And comprise privately owned option 211; Its sub-option is that 1 address pool is consulted response message and given DHCP relay equipment with corresponding address pond information synchronization, and so far, address pool consults to accomplish.Address pool information can also include but not limited to except comprising address pool: default route information, the dns server information of address pool and the time in rental period of address pool etc. that address pool is corresponding.
When the configuration of address pool on the Dynamic Host Configuration Protocol server changed, Dynamic Host Configuration Protocol server need send to DHCP relay equipment and comprise option 53, and value is 10, and comprises privately owned option 211, and its sub-option is 2 configuration variation notification packet; DHCP relay equipment receives this configuration variation notification packet, handles and the corresponding configuration information in scheduler pond.The configuration variation of address pool includes but not limited on the Dynamic Host Configuration Protocol server: the variation in the rental period of address pool, reclaiming some IP address is the static allocation address, the variation of default route, the variation of dns server etc.
When DHCP relay equipment behind dhcp client success distributing IP address; Need comprise option 53 to the Dynamic Host Configuration Protocol server transmission, value is 10, and comprises privately owned option 211; Its sub-option is 3 address assignment notification packet, gives Dynamic Host Configuration Protocol server synchronously with the allocation result of IP address.The IP allocation result also includes but not limited to except comprising the IP address of distributing to dhcp client: the time that dispenses, the sign (for example its hardware address) of the dhcp client of this IP of application distribution etc.
In this explanation; The DHCP relay equipment of the embodiment of the invention is except being responsible for dhcp client distributing IP address; When also will be overtime in the rental period of the IP address of dhcp client application; Initiatively reclaim this IP address, handle the request that dhcp client is re-rented, carry out the correct processing of re-renting for the IP address of dhcp client application and wait operation.The processing procedure of Dynamic Host Configuration Protocol server is similar in above-mentioned processing procedure and the prior art, is not described in detail at this.
The flow chart of the embodiment of the dhcp address distribution method that Fig. 6 provides for one embodiment of the invention.As shown in Figure 6, the method for present embodiment comprises:
Step 6a, DHCP relay equipment send the address pool message of negotiation request to Dynamic Host Configuration Protocol server, and the address pool message of negotiation request comprises the IP address of DHCP relay equipment.
Step 6b, Dynamic Host Configuration Protocol server are confirmed DHCP relay equipment place subnet according to the IP address of DHCP relay equipment in the address pool message of negotiation request, and obtain subnet corresponding address pond, DHCP relay equipment place.
Step 6a and step 6b are the process in applied address pond in advance, and this process can only be carried out once before the power down after the DHCP relay device power.
Step 6c, Dynamic Host Configuration Protocol server send address pool to DHCP relay equipment and consult response message, and address pool is consulted response message and comprised subnet corresponding address pond, DHCP relay equipment place.
Step 6d, DHCP relay equipment receive the DHCP discovery message that dhcp client sends.
Step 6e, DHCP relay equipment provide message to dhcp client transmission DHCP.
Step 6f, DHCP relay equipment receive the DHCP request message that dhcp client sends.
Step 6g, DHCP relay equipment after receiving the DHCP request message, from advance to the Dynamic Host Configuration Protocol server application to address pool be that dhcp client distributes an IP address.
Step 6h, DHCP relay equipment send the DHCP confirmation message to dhcp client, and this DHCP confirmation message comprises the IP address of distributing to dhcp client.
Step 6c-step 6h is the process for dhcp client distributing IP address, if a plurality of dhcp client request distributing IP address is arranged, then this process can be carried out repeatedly.
Step 6i, DHCP relay equipment send the address assignment notification packet to Dynamic Host Configuration Protocol server, and the address assignment notification packet comprises the IP address of distributing to dhcp client.
Be assigned to the user mode of the IP address of dhcp client in step 6j, the Dynamic Host Configuration Protocol server recording address pond.
Step 6i and step 6j be for behind the dhcp client distributing IP address to the process of Dynamic Host Configuration Protocol server through institute's IP address allocated, do not distribute an IP address promptly to carry out once this process.
Optional, the address assignment notification packet can also comprise the distribution time of IP address and the hardware address of the HDCP client that is assigned to this IP address etc.
Step 6k, Dynamic Host Configuration Protocol server send the configuration variation notification packet to DHCP relay equipment, and the configuration variation notification packet comprises the configuration variation information that address pool is corresponding.
Step 6l, the configuration variation information that DHCP relay equipment is corresponding according to address pool in the configuration variation notification packet, the scheduler pond is at the configuration information of this locality.
In this explanation, step 6k and step 61 can be independent of other steps and implement.
By above-mentioned visible, the dhcp address distribution method that present embodiment provides has alleviated the burden of Dynamic Host Configuration Protocol server, has solved the slow problem of user applies IP address reaction; In addition, present embodiment need not laid a plurality of Dynamic Host Configuration Protocol server under the situation that solves performance issue, saves the cost of laying a plurality of Dynamic Host Configuration Protocol server, has solved the situation that a plurality of Dynamic Host Configuration Protocol server disperse to be difficult for unified management simultaneously yet.
The structural representation of the DHCP relay equipment that Fig. 7 provides for one embodiment of the invention.As shown in Figure 7, the DHCP relay equipment of present embodiment comprises: first receiver module 71, distribution module 72 and first sending module 73.
Wherein, first receiver module 71 is connected with dhcp client, is used to receive the address assignment request message that dhcp client sends.Wherein, the DHCP relay equipment of dhcp client and present embodiment belongs to same subnet.Present embodiment is not done qualification to the number of dhcp client, for ease of diagram, is example with a dhcp client only among Fig. 7.
First sending module 73 is connected with dhcp client with distribution module 72, is used for sending the address assignment response message to dhcp client, and this address assignment response message comprises that distribution module 72 distributes to the IP address of dhcp client.
Each functional module of the DHCP relay equipment that present embodiment provides can be used for carrying out the flow process of dhcp address distribution method shown in Figure 3, and its concrete operation principle repeats no more, and sees the description of method embodiment for details.
The DHCP relay equipment of present embodiment; In advance to subnet corresponding address pond, Dynamic Host Configuration Protocol server application place; After the request that receives dhcp client application IP address, from the address pool of applying in advance, be dhcp client distributing IP address, make dhcp client application IP address need not obtain on the one hand through Dynamic Host Configuration Protocol server, need be not mutual with Dynamic Host Configuration Protocol server; Alleviated the burden of Dynamic Host Configuration Protocol server; What DHCP relay equipment obtained from Dynamic Host Configuration Protocol server on the other hand is address pool rather than IP address, with Dynamic Host Configuration Protocol server once can accomplish obtaining of a plurality of IP address alternately, compare with the application scheme that can only apply for an IP address at every turn; Reduce the interaction times with Dynamic Host Configuration Protocol server, alleviated the burden of Dynamic Host Configuration Protocol server equally.
The structural representation of the DHCP relay equipment that Fig. 8 provides for another embodiment of the present invention.Present embodiment is based on realization embodiment illustrated in fig. 7.As shown in Figure 8, the DHCP relay equipment of present embodiment also comprises: first receiver module 71, distribution module 72 and first sending module 73, and each functional module also has the function of description embodiment illustrated in fig. 7.
Further, the DHCP relay equipment of present embodiment also comprises: second sending module 74 and second receiver module 75.
Second sending module 74 is connected with Dynamic Host Configuration Protocol server, is used for sending the address pool negotiation request message to Dynamic Host Configuration Protocol server, and this address pool negotiation request message comprises the IP address of present embodiment DHCP relay equipment.
Further, the DHCP relay equipment of present embodiment also comprises: the 3rd sending module 76.
The 3rd sending module 76; Be connected with Dynamic Host Configuration Protocol server with distribution module 72, first sending module 73; Be used at first sending module 73 after dhcp client sends the address assignment response message; Send the address assignment notice message to Dynamic Host Configuration Protocol server, so that the user mode of the IP address in the Dynamic Host Configuration Protocol server recording address pond, this address assignment notice message comprises that distribution module 72 distributes to the IP address of dhcp client.
Optional, the address assignment notice message also comprises: the distribution time of IP address and/or the sign of dhcp client.The sign of dhcp client can be the hardware address of dhcp client, but is not limited thereto.
Further, the DHCP relay equipment of present embodiment also comprises: the 3rd receiver module 77 and update module 78.
Wherein, the 3rd receiver module 77 is connected with Dynamic Host Configuration Protocol server, is used to receive the configuration variation notice message that Dynamic Host Configuration Protocol server sends, and this configuration variation notice message comprises the configuration change information that address pool is corresponding.
Wherein, the corresponding configuration change information of address pool includes but not limited to: the change information in the rental period of address pool, reclaiming some IP address is the information of static allocation address, the change information of default route, the change information of dns server etc.
Update module 78 is connected with the 3rd receiver module 77, the configuration change information that the address pool of the configuration variation notice message that is used for receiving according to the 3rd receiver module 77 is corresponding, the configuration information in scheduler pond.
Above-mentioned each functional module can be used for carrying out the corresponding flow process among the above-mentioned dhcp address distribution method embodiment, and its concrete operation principle repeats no more, and sees the description of method embodiment for details.
The DHCP relay equipment of present embodiment has alleviated the burden of Dynamic Host Configuration Protocol server, has solved the slow problem of user applies IP address reaction; In addition, the DHCP relay equipment of present embodiment makes need not lay a plurality of Dynamic Host Configuration Protocol server when solving performance issue, save the cost of laying a plurality of Dynamic Host Configuration Protocol server, has solved the situation that a plurality of Dynamic Host Configuration Protocol server disperse to be difficult for unified management simultaneously yet.
The structural representation of the Dynamic Host Configuration Protocol server that Fig. 9 provides for one embodiment of the invention.As shown in Figure 9, the Dynamic Host Configuration Protocol server of present embodiment comprises: the 4th receiver module 91, acquisition module 92 and the 4th sending module 93.
The 4th receiver module 91 is connected with DHCP relay equipment, is used to receive the address pool negotiation request message that DHCP relay equipment sends, and this address pool negotiation request message comprises the IP address of DHCP relay equipment.
The 4th sending module 93; Be connected with DHCP relay equipment with acquisition module 92; Be used for sending address pool and consult response message to DHCP relay equipment; This address pool is consulted response message and is comprised the address pool that acquisition module 92 obtains, so that DHCP relay equipment is dhcp client distributing IP address from address pool after the address assignment request that receives the dhcp client transmission.
Each functional module of the Dynamic Host Configuration Protocol server that present embodiment provides can be used for carrying out the corresponding flow process in the dhcp address distribution method shown in Figure 4, and its concrete operation principle repeats no more, and sees the description of method embodiment for details.
The Dynamic Host Configuration Protocol server of present embodiment; Match with the DHCP relay equipment that the embodiment of the invention provides; Consult response message through the address pool negotiation request message of reception DHCP relay equipment transmission and to pond, DHCP relay equipment return address; Allow DHCP relay equipment applied address pond; Make DHCP relay equipment with a reciprocal process of Dynamic Host Configuration Protocol server in can apply for a plurality of IP address; Alleviated the burden that DHCP relay equipment causes to Dynamic Host Configuration Protocol server to Dynamic Host Configuration Protocol server application IP address in advance on the one hand, directly laid the foundation for dhcp client distributing IP address for DHCP relay equipment on the other hand, alleviated the burden that Dynamic Host Configuration Protocol server directly causes for dhcp client distributing IP address according to the address pool of applying for.
The structural representation of the Dynamic Host Configuration Protocol server that Figure 10 provides for another embodiment of the present invention.Present embodiment is based on realization embodiment illustrated in fig. 9.Shown in figure 10, the Dynamic Host Configuration Protocol server of present embodiment also comprises: the 4th receiver module 91, acquisition module 92 and the 4th sending module 93, and each functional module also has the function of description embodiment illustrated in fig. 9.
Further, the Dynamic Host Configuration Protocol server of present embodiment also comprises: the 5th receiver module 94 and logging modle 95.
Wherein, the 5th receiver module 94 is connected with DHCP relay equipment, is used to receive the address assignment notice message that DHCP relay equipment sends, and this address assignment notice message comprises that DHCP relay equipment distributes to the IP address of dhcp client from address pool.
Further, the Dynamic Host Configuration Protocol server of present embodiment also comprises: the 5th sending module 96.
The 5th sending module 96; Be connected with DHCP relay equipment; Be used for sending the configuration variation notice message to DHCP relay equipment; This configuration variation notice message comprises the configuration change information that address pool is corresponding, so that the DHCP relay equipment configuration change information corresponding according to address pool, the configuration information in scheduler pond.
Above-mentioned each functional module can be used for carrying out the corresponding description among the above-mentioned dhcp address distribution method embodiment, and its operation principle repeats no more at this.
The Dynamic Host Configuration Protocol server of present embodiment; Match with the DHCP relay equipment that the embodiment of the invention provides; Consult response message through the address pool negotiation request message of reception DHCP relay equipment transmission and to pond, DHCP relay equipment return address; Allow DHCP relay equipment applied address pond; Make DHCP relay equipment with a reciprocal process of Dynamic Host Configuration Protocol server in can apply for a plurality of IP address; Alleviated the burden that DHCP relay equipment causes to Dynamic Host Configuration Protocol server to Dynamic Host Configuration Protocol server application IP address in advance on the one hand, directly laid the foundation for dhcp client distributing IP address for DHCP relay equipment on the other hand, alleviated the burden that Dynamic Host Configuration Protocol server directly causes for dhcp client distributing IP address according to the address pool of applying for; In addition, the user mode through writing down each IP address and to DHCP relay devices advertise configuration variation, realized information fully synchronously, be convenient to the distribution of IP address used and carry out unified management.
The structural representation of the dhcp address distribution system that Figure 11 provides for one embodiment of the invention.Shown in figure 11, the system of present embodiment comprises: dhcp client 10, DHCP relay equipment 20 and Dynamic Host Configuration Protocol server 30.
DHCP relay equipment 20 comprises: first receiver module, distribution module and first sending module.
Wherein, first receiver module is connected with dhcp client 10, is used to receive the address assignment request message that dhcp client 10 sends.Wherein, dhcp client 10 belongs to same subnet with the DHCP relay equipment of present embodiment.Present embodiment is not done qualification to the number of dhcp client 10, for ease of diagram, is example with a dhcp client 10 only among Figure 11.
Distribution module is connected with first receiver module, is used for the address assignment request message that receives according to first receiver module, to the address pool that Dynamic Host Configuration Protocol server 30 is applied for, distributing internet protocol IP address for dhcp client 10 in advance.Wherein, address pool is subnet corresponding address pond, DHCP relay equipment 20 place.
First sending module is connected with dhcp client 10 with distribution module, is used for sending the address assignment response messages to dhcp client 10, and this address assignment response message comprises that module assigns gives the IP address of dhcp client 10.
Wherein, dhcp client 10 is used for sending address assignment request message to DHCP relay equipment 20, and receives the address assignment response message that DHCP relay equipment 20 sends.
Dynamic Host Configuration Protocol server 30 is used for distributing above-mentioned address pool to DHCP relay equipment 20 in advance.
Wherein, the DHCP relay equipment 20 of present embodiment is the DHCP relay equipment that the above embodiment of the present invention provides, and its operation principle can be referring to the description of method embodiment, and its concrete implementation structure can repeat no more at this referring to Fig. 7 or embodiment illustrated in fig. 8.
Wherein, the Dynamic Host Configuration Protocol server 30 of present embodiment is the Dynamic Host Configuration Protocol server that the above embodiment of the present invention provides, and its operation principle can be referring to the description of method embodiment, and its concrete implementation structure can repeat no more at this referring to Fig. 9 or embodiment illustrated in fig. 10.
In the dhcp address distribution system of present embodiment; DHCP relay equipment is in advance to subnet corresponding address pond, Dynamic Host Configuration Protocol server application place; After the request that receives dhcp client application IP address, from the address pool of applying in advance, be dhcp client distributing IP address, make dhcp client application IP address need not obtain on the one hand through Dynamic Host Configuration Protocol server, need be not mutual with Dynamic Host Configuration Protocol server; Alleviated the burden of Dynamic Host Configuration Protocol server; What DHCP relay equipment obtained from Dynamic Host Configuration Protocol server on the other hand is address pool rather than IP address, with Dynamic Host Configuration Protocol server once can accomplish obtaining of a plurality of IP address alternately, compare with the application scheme that can only apply for an IP address at every turn; Reduce the interaction times with Dynamic Host Configuration Protocol server, alleviated the burden of Dynamic Host Configuration Protocol server equally.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each method embodiment can be accomplished through the relevant hardware of program command.Aforesaid program can be stored in the computer read/write memory medium.This program the step that comprises above-mentioned each method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
What should explain at last is: above each embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although the present invention has been carried out detailed explanation with reference to aforementioned each embodiment; Those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, perhaps to wherein part or all technical characteristic are equal to replacement; And these are revised or replacement, do not make the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.
Claims (13)
1. a dynamic host configuration protocol DHCP address distribution method is characterized in that, comprising:
DHCP relay equipment receives the address assignment request message that dhcp client sends;
Said DHCP relay equipment is according to said address assignment request message, from advance to the Dynamic Host Configuration Protocol server application to address pool distribute internet protocol IP address for said dhcp client; Said address pool is subnet corresponding address pond, said DHCP relay equipment place;
Said DHCP relay equipment sends the address assignment response message to said dhcp client, and said address assignment response message comprises said IP address.
2. dhcp address distribution method according to claim 1 is characterized in that, said DHCP relay equipment comprises to the said address pool of said Dynamic Host Configuration Protocol server application in advance:
Said DHCP relay equipment sends the address pool negotiation request message to said Dynamic Host Configuration Protocol server, and said address pool negotiation request message comprises the IP address of said DHCP relay equipment;
Said DHCP relay equipment receives the address pool negotiation response message that said DHCP sends; Said address pool is consulted response message and is comprised said address pool, said address pool be said Dynamic Host Configuration Protocol server according to the IP address of said DHCP relay equipment determine obtain behind the subnet of said DHCP relay equipment place with subnet corresponding address pond, said DHCP relay equipment place.
3. dhcp address distribution method according to claim 1 and 2 is characterized in that, said DHCP relay equipment comprises after said dhcp client sends the address assignment response message:
Said DHCP relay equipment sends the address assignment notice message to said Dynamic Host Configuration Protocol server, so that said Dynamic Host Configuration Protocol server writes down the user mode of the said IP address in the said address pool, said address assignment notice message comprises said IP address.
4. dhcp address distribution method according to claim 3 is characterized in that, said address assignment notice message also comprises: the distribution time of said IP address and/or the sign of said dhcp client.
5. dhcp address distribution method according to claim 1 and 2 is characterized in that, also comprises:
Said DHCP relay equipment receives the configuration variation notice message that said Dynamic Host Configuration Protocol server sends, and said configuration variation notice message comprises the configuration change information that said address pool is corresponding;
Said DHCP relay equipment upgrades the configuration information of said address pool according to the configuration change information of said address pool correspondence.
6. a dynamic host configuration protocol DHCP trunking is characterized in that, comprising:
First receiver module is used to receive the address assignment request message that dhcp client sends;
Distribution module is used for according to said address assignment request message, from advance to the Dynamic Host Configuration Protocol server application to address pool distribute internet protocol IP address for said dhcp client; Said address pool is subnet corresponding address pond, said DHCP relay equipment place;
First sending module is used for sending the address assignment response message to said dhcp client, and said address assignment response message comprises said IP address.
7. DHCP relay equipment according to claim 6 is characterized in that, also comprises:
Second sending module is used for sending the address pool negotiation request message to said Dynamic Host Configuration Protocol server, and said address pool negotiation request message comprises the IP address of said DHCP relay equipment;
Second receiver module; Be used to receive the address pool negotiation response message that said Dynamic Host Configuration Protocol server sends; Said address pool is consulted response message and is comprised said address pool, said address pool be said Dynamic Host Configuration Protocol server according to the IP address of said DHCP relay equipment determine obtain behind the subnet of said DHCP relay equipment place with subnet corresponding address pond, said DHCP relay equipment place.
8. according to claim 6 or 7 described DHCP relay equipment, it is characterized in that, also comprise:
The 3rd sending module is used for sending the address assignment notice message to said Dynamic Host Configuration Protocol server, so that said Dynamic Host Configuration Protocol server writes down the user mode of the IP address in the said address pool, said address assignment notice message comprises said IP address.
9. according to claim 6 or 7 described DHCP relay equipment, it is characterized in that, also comprise:
The 3rd receiver module is used to receive the configuration variation notice message that said Dynamic Host Configuration Protocol server sends, and said configuration variation notice message comprises the configuration change information that said address pool is corresponding;
Update module is used for the configuration change information corresponding according to said address pool, upgrades the configuration information of said address pool.
10. a dynamic host configuration protocol DHCP server is characterized in that, comprising:
The 4th receiver module is used to receive the address pool negotiation request message that DHCP relay equipment sends, and said address pool negotiation request message comprises the Internet protocol IP address of said DHCP relay equipment;
Acquisition module is used for determining said DHCP relay equipment place subnet according to the IP address of said DHCP relay equipment, and obtains and subnet corresponding address pond, said DHCP relay equipment place;
The 4th sending module; Be used for sending address pool and consult response message to said DHCP relay equipment; Said address pool is consulted response message and is comprised said address pool; So that said DHCP relay equipment is said dhcp client distributing IP address from said address pool after the address assignment request that receives the dhcp client transmission.
11. Dynamic Host Configuration Protocol server according to claim 10 is characterized in that, also comprises:
The 5th receiver module is used to receive the address assignment notice message that said DHCP relay equipment sends, and said address assignment notice message comprises that said DHCP relay equipment distributes to the IP address of said dhcp client from said address pool;
Logging modle is used for writing down said dhcp client that said address assignment notice message comprises is distributed to the IP address of said dhcp client from said address pool user mode.
12. according to claim 10 or 11 described Dynamic Host Configuration Protocol server, it is characterized in that, also comprise:
The 5th sending module; Be used for sending the configuration variation notice message to said DHCP relay equipment; Said configuration variation notice message comprises the configuration change information that said address pool is corresponding; So that said DHCP relay equipment according to the configuration change information of said address pool correspondence, upgrades the configuration information of said address pool.
13. a dynamic host configuration protocol DHCP address allocation system is characterized in that, comprising: dhcp client, DHCP relay equipment and Dynamic Host Configuration Protocol server;
Said DHCP relay equipment comprises:
First receiver module is used to receive the address assignment request message that said dhcp client sends;
Distribution module is used for according to said address assignment request message, from advance to said Dynamic Host Configuration Protocol server application to address pool distribute internet protocol IP address for said dhcp client; Said address pool is subnet corresponding address pond, said DHCP relay equipment place;
First sending module is used for sending the address assignment response message to said dhcp client, and said address assignment response message comprises said IP address;
Said dhcp client is used for sending said address assignment request message to said DHCP relay equipment, and receives the said address assignment response message that said DHCP relay equipment sends;
Said Dynamic Host Configuration Protocol server is used in advance to the said address pool of said DHCP relay devices allocation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012101408324A CN102685264A (en) | 2012-05-08 | 2012-05-08 | Dynamic host configuration protocol address allocation method, relay equipment and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012101408324A CN102685264A (en) | 2012-05-08 | 2012-05-08 | Dynamic host configuration protocol address allocation method, relay equipment and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102685264A true CN102685264A (en) | 2012-09-19 |
Family
ID=46816616
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012101408324A Pending CN102685264A (en) | 2012-05-08 | 2012-05-08 | Dynamic host configuration protocol address allocation method, relay equipment and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102685264A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102917084A (en) * | 2012-10-22 | 2013-02-06 | 北京交通大学 | Automatic allocation method of IP address of node inside fat tree structure networking data center |
CN103037026A (en) * | 2012-12-10 | 2013-04-10 | 上海斐讯数据通信技术有限公司 | Dynamic host configuration protocol (DHCP) server address pool automatic configuration method and device and central processing element (CPE) equipment |
CN104410726A (en) * | 2014-11-10 | 2015-03-11 | 深圳市深信服电子科技有限公司 | Management method based on dynamic host configuration protocol address pool and relay server |
CN104702427A (en) * | 2013-12-06 | 2015-06-10 | 华为技术有限公司 | Method and system for acquiring fault information |
CN104767765A (en) * | 2015-04-29 | 2015-07-08 | 杭州华三通信技术有限公司 | Method for improving on-line speed of user and access equipment for broadband to get access to server remotely |
CN105610962A (en) * | 2016-01-15 | 2016-05-25 | 华洋通信科技股份有限公司 | Anti-conflict mobile terminal IP address allocation relay equipment and method |
CN106254567A (en) * | 2015-06-15 | 2016-12-21 | 中兴通讯股份有限公司 | A kind of method and apparatus obtaining address |
WO2018214112A1 (en) * | 2017-05-25 | 2018-11-29 | 深圳市伊特利网络科技有限公司 | Method and system for maintaining ip address in network link |
CN109561170A (en) * | 2018-12-25 | 2019-04-02 | 迈普通信技术股份有限公司 | Address pool creation method, device, address pool management system and storage medium |
CN110730254A (en) * | 2019-10-14 | 2020-01-24 | 新华三信息安全技术有限公司 | Address allocation method, device, relay equipment and medium |
CN111092961A (en) * | 2019-11-15 | 2020-05-01 | 中国电子科技集团公司第三十研究所 | Method for realizing IP address negotiation based on PPP protocol |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101536412A (en) * | 2006-11-03 | 2009-09-16 | 思科技术公司 | Automatically controlling operation of a bras device based on encapsulation information |
CN102413203A (en) * | 2011-12-01 | 2012-04-11 | 中兴通讯股份有限公司 | IP (Internet Protocol) address allocation method and device |
-
2012
- 2012-05-08 CN CN2012101408324A patent/CN102685264A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101536412A (en) * | 2006-11-03 | 2009-09-16 | 思科技术公司 | Automatically controlling operation of a bras device based on encapsulation information |
CN102413203A (en) * | 2011-12-01 | 2012-04-11 | 中兴通讯股份有限公司 | IP (Internet Protocol) address allocation method and device |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102917084A (en) * | 2012-10-22 | 2013-02-06 | 北京交通大学 | Automatic allocation method of IP address of node inside fat tree structure networking data center |
CN102917084B (en) * | 2012-10-22 | 2015-05-06 | 北京交通大学 | Automatic allocation method of IP address of node inside fat tree structure networking data center |
CN103037026A (en) * | 2012-12-10 | 2013-04-10 | 上海斐讯数据通信技术有限公司 | Dynamic host configuration protocol (DHCP) server address pool automatic configuration method and device and central processing element (CPE) equipment |
CN103037026B (en) * | 2012-12-10 | 2015-07-22 | 上海斐讯数据通信技术有限公司 | Dynamic host configuration protocol (DHCP) server address pool automatic configuration method and device and central processing element (CPE) equipment |
CN104702427A (en) * | 2013-12-06 | 2015-06-10 | 华为技术有限公司 | Method and system for acquiring fault information |
CN104410726A (en) * | 2014-11-10 | 2015-03-11 | 深圳市深信服电子科技有限公司 | Management method based on dynamic host configuration protocol address pool and relay server |
CN104410726B (en) * | 2014-11-10 | 2018-04-06 | 深信服科技股份有限公司 | Management method and Relay Server based on dhcp address pond |
CN104767765A (en) * | 2015-04-29 | 2015-07-08 | 杭州华三通信技术有限公司 | Method for improving on-line speed of user and access equipment for broadband to get access to server remotely |
CN106254567A (en) * | 2015-06-15 | 2016-12-21 | 中兴通讯股份有限公司 | A kind of method and apparatus obtaining address |
WO2016202080A1 (en) * | 2015-06-15 | 2016-12-22 | 中兴通讯股份有限公司 | Method and device for acquiring address |
CN105610962A (en) * | 2016-01-15 | 2016-05-25 | 华洋通信科技股份有限公司 | Anti-conflict mobile terminal IP address allocation relay equipment and method |
WO2018214112A1 (en) * | 2017-05-25 | 2018-11-29 | 深圳市伊特利网络科技有限公司 | Method and system for maintaining ip address in network link |
CN109561170A (en) * | 2018-12-25 | 2019-04-02 | 迈普通信技术股份有限公司 | Address pool creation method, device, address pool management system and storage medium |
CN109561170B (en) * | 2018-12-25 | 2021-10-08 | 迈普通信技术股份有限公司 | Address pool creating method and device, address pool management system and storage medium |
CN110730254A (en) * | 2019-10-14 | 2020-01-24 | 新华三信息安全技术有限公司 | Address allocation method, device, relay equipment and medium |
CN111092961A (en) * | 2019-11-15 | 2020-05-01 | 中国电子科技集团公司第三十研究所 | Method for realizing IP address negotiation based on PPP protocol |
CN111092961B (en) * | 2019-11-15 | 2021-12-17 | 中国电子科技集团公司第三十研究所 | Method for realizing IP address negotiation based on PPP protocol |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102685264A (en) | Dynamic host configuration protocol address allocation method, relay equipment and server | |
JP5663549B2 (en) | Method, apparatus and system for assigning public IP addresses | |
CN100502413C (en) | IP address requesting method for DHCP client by DHCP repeater | |
US6587455B1 (en) | Automatic discovery of nodes associated with a virtual subnet | |
CN102647486B (en) | Address distribution method, equipment and system | |
CN101188514A (en) | Method, device and system for automatically discovering network element device | |
CN102098354B (en) | Method and server for allocating dynamic host configuration protocol (DHCP) addresses | |
CN103888551A (en) | Internet protocol address obtaining method in network, relay device and system | |
CN101159758B (en) | Classification associated dynamic host machine configuring protocol option distribution method and device | |
CN102447746B (en) | Information supply method, family gateway and family network system | |
CN100493102C (en) | Method for distribution of IP address in wideband wireless city area network | |
CN101656763A (en) | IP address automatic distribution method, client and server | |
KR20100036818A (en) | Method for allocating ip address using dhcp in an image forming apparatus, image forming apparatus thereof, and system for allocating ip address using dhcp | |
CN102158569A (en) | Method and device for data transmission based on address conversion | |
CN105245629A (en) | DHCP-based host communication method and device | |
CN102404418A (en) | Method, device and system for allocating IP address to user terminal | |
US8195775B2 (en) | Enhanced method and apparatus for reducing congestion in DHCP network system | |
CN101707637A (en) | Method and system for allocating IP address | |
CN102394948A (en) | DHCP (dynamic host configuration protocol) address distribution method and DHCP server | |
CN102299932A (en) | Backup method for DHCP (Dynamic Host Configuration Protocol) server and DHCP server | |
CN102307247A (en) | Dynamic address allocation method for dynamic host configuration protocol (DHCP) and system | |
CN1984146A (en) | Authentication system in DSTM communication network and method using the same | |
CN102752413A (en) | Method for selecting DHCP (dynamic host configuration protocol) server and network equipment | |
CN112689029A (en) | Method, device and equipment for acquiring IP address of group user | |
CN102769678A (en) | DHCP (Dynamic Host Configuration Protocol) address distributing 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 | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120919 |