CN1744612A - DHCP address allocation method - Google Patents

DHCP address allocation method Download PDF

Info

Publication number
CN1744612A
CN1744612A CN 200510093195 CN200510093195A CN1744612A CN 1744612 A CN1744612 A CN 1744612A CN 200510093195 CN200510093195 CN 200510093195 CN 200510093195 A CN200510093195 A CN 200510093195A CN 1744612 A CN1744612 A CN 1744612A
Authority
CN
China
Prior art keywords
dhcp
address
user profile
user
class
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200510093195
Other languages
Chinese (zh)
Other versions
CN100527752C (en
Inventor
孙广新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou Huawei 3Com Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Huawei 3Com Technology Co Ltd filed Critical Hangzhou Huawei 3Com Technology Co Ltd
Priority to CNB200510093195XA priority Critical patent/CN100527752C/en
Publication of CN1744612A publication Critical patent/CN1744612A/en
Application granted granted Critical
Publication of CN100527752C publication Critical patent/CN100527752C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The method includes steps: (1) sorting IP addresses in IP address pool, building mapping relation between each IP address type and information of user at client end of Dynamic Host Configuration Protocol (DHCP); (2) sending information of user at client end of DHCP bound on message of DHCP request to DHCP server; (3) obtaining the information of user, DHCP server finds a usable IP address from IP address type possessing the mapping relation with the information of user and assigns it to client end of DHCP. Thus, the invention optimizes dynamic allocated IP addresses.

Description

The address distribution method of DHCP
Technical field
The present invention relates to network field, relate in particular to the address distribution method of a kind of DHCP, particularly carry out address distribution method according to user profile relevant for DHCP (Dynamic Host Configuration Protocol, DHCP) server.
Background technology
In the TCP/IP network, every work station is as if the resource of wanting on the energy access network, must carry out basic network configuration, some major parameters are essential such as IP address, subnet mask, default gateway, name server etc., also may need some additional informations, so Network Management and maintenance are very heavy tasks such as the IP management strategy.Such as, when a computer when a subnet is transferred to another subnet, just need carry out system configuration again.If manually be configured by the technical staff, troublesome poeration not only, and technical staff's level had relatively high expectations even may occur owing to dispose the improper consequence that causes network failure.
DHCP (DHCP) is a kind of TCP/IP standard of simplifying the host ip configuration management.DHCP is divided into two parts: Dynamic Host Configuration Protocol server (DHCP Server) and dhcp client (DHCP Client).The main function of Dynamic Host Configuration Protocol server is other relevant configuration information of enabling dhcp client on the distribution of management ip address and the network.
Every computer on the TCP/IP network all must have unique IP address (perhaps subnet mask).IP address (and associated subnet mask) mainly is the subnet that is used to identify master computer and connection thereof.When with a certain computer when a subnet moves to another subnet, usually need change IP address, and allow based on the Dynamic Host Configuration Protocol server of DHCP agreement dynamically to assign the IP address for this dhcp client the IP address database of the Dynamic Host Configuration Protocol server of dhcp client from local network, thereby avoid to cause configuration error owing to need manually on each computer, to key in the IP address, also improved simultaneously the efficient of configuration: help to prevent the IP address conflict of disposing, reduce the time of the IP address that is used to dispose and reconfigure computer greatly.
DHCP supports that three kinds of different mechanism are used for the configuration of IP host address: configuration automatically, dynamic-configuration and human configuration.Wherein under automatic configuration mechanism, in case dhcp client success for the first time after Dynamic Host Configuration Protocol server is rented the IP address, just use this address forever.Under dynamic-configuration mechanism, after dhcp client is for the first time rented the IP address from Dynamic Host Configuration Protocol server, and use this address non-permanently, as long as lease expires, dhcp client just needs to such an extent that discharge this IP address.Under human configuration mechanism, the IP address of dhcp client can be by manually distributing.At present, use maximum mechanism to be dynamic-configuration mechanism.
Rich accurate industrial (Shenzhen) Co., Ltd of letter is to disclose a kind of DynamicHost collocation method in 03126821.8 at the application number of application on June 6th, 2003, it comprises: the hardware address that at first obtains a dhcp client, determine dhcp client whether with Dynamic Host Configuration Protocol server at consolidated network, if at consolidated network, then this Dynamic Host Configuration Protocol server sends the DHCP package that contains the IP address to this dhcp client, otherwise, determine whether this Dynamic Host Configuration Protocol server and this dhcp client have IP address lease, if have, then send the DHCP package that contains the IP address to this dhcp client, otherwise in the IP of Dynamic Host Configuration Protocol server address pool, look for idle IP address, send the DHCP package that contains idle IP address.This method can repeatedly be checked IP address allocated, avoids the generation of IP address conflict incident as far as possible.But also there is following problem in above-mentioned dynamic active arrangement method:
First: at present, Dynamic Host Configuration Protocol server normally comes the distributing IP address with the sequencing that receives the DHCP request, such as, dhcp client A and dhcp client B successively initiate the DHCP request to same Dynamic Host Configuration Protocol server, Dynamic Host Configuration Protocol server is not considered dhcp client A and dhcp client B user profile (as priority) separately usually, usually give dhcp client A distributing IP address earlier, give dhcp client B distributing IP address again.In IP address resource condition of limited, the high IP application IP addresses request of priority that application afterwards often takes place can not be protected, and can't obtain the IP address.That is, existing DynamicHost collocation method can not be that different user distributes dissimilar IP addresses according to user's identity (as priority etc.), causes the high user of some ranks can not in time obtain the IP address thus, and then influences follow-up network service.
Second: for the ease of Network Management, may each user in network set user information, such as the user in the network being divided into user's category-A and user's category-B, the classification that comprises the user in each user profile, the user who supposes category-A need be to its Intranet IP address of classifying, and the user of category-B need distribute outer net IP address to it.Yet in the existing DynamicHost collocation method, Dynamic Host Configuration Protocol server is to be difficult to finish the IP address sort according to user profile, can't accomplish the further optimum management and the distribution of IP address.
Summary of the invention
The object of the present invention is to provide the address distribution method of a kind of DHCP, can not distribute dissimilar IP addresses for user with different user information to solve in the prior art, and then the technical problem that can't accomplish further optimum management in IP address and distribution.
The address distribution method of a kind of DHCP comprises: (1) classifies the IP address in the IP address pool, sets up the mapping relations of the user profile of each IP address class and a class dhcp client; (2) after the user profile of this dhcp client of binding on the DHCP request message, be sent to Dynamic Host Configuration Protocol server; (3) Dynamic Host Configuration Protocol server obtains described user profile, finds an available IP address assignment to described dhcp client the IP address class of mapping relations from having with described user profile.
Binding this dhcp client user information corresponding in the step (2) on described DHCP request message comprises: dhcp relay agent is intercepted and captured the DHCP request message that dhcp client sends, and the user profile of this dhcp client is set in the DHCP request message.
Dhcp relay agent is to obtain user profile in the following manner: dhcp relay agent obtains related information earlier from the DHCP request message of intercepting and capturing, described related information is in order to find the sign of dhcp client user profile, then, directly visit is preserved the far-end server of user profile in advance or is utilized third-party server to visit described far-end server, obtains the user profile of corresponding dhcp client by described related information.
Dhcp relay agent can also obtain user profile in the following manner: set in advance a memory cell on dhcp relay agent, in order to the corresponding relation of storage related information and user profile, described related information is in order to find the sign of dhcp client user information corresponding; When dhcp relay agent is intercepted and captured the DHCP request message, obtain related information earlier, from described memory cell, find user information corresponding according to described related information.
Dhcp relay agent is the Option option that user profile is filled in the DHCP package, and the Option option place code and the form that are used for sending user profile are that dhcp relay agent and Dynamic Host Configuration Protocol server are made an appointment.The Option option place code that is used for sending user profile is arbitrary code of 69-254 for the option code scope, and described form is in order to the code of determining described option, the length and the user profile position relation of user profile.
Step (2) also comprises: dhcp client directly is added on the user profile of local terminal in the DHCP request message, is sent to Dynamic Host Configuration Protocol server.
Step (3) also comprises: do not find idle IP address in the IP address class of mapping relations if having with described user profile, then determine in this IP address class whether the matured IP of lease address is arranged, if have, then with the matured IP address assignment of lease to described dhcp client.
Step (1) also comprises: the priority that each IP address class in the IP address pool is set; Step (3) also comprises: do not find idle IP address in the IP address class of mapping relations if having with described user profile, then Dynamic Host Configuration Protocol server is from than finding an IP address assignment to described dhcp client the low IP address class of the priority of this IP address class.
The invention also discloses the address allocation system of a kind of DHCP, comprise Dynamic Host Configuration Protocol server, dhcp relay agent and dhcp client, described dhcp relay agent is used to set up being connected of Dynamic Host Configuration Protocol server and dhcp client, described Dynamic Host Configuration Protocol server comprises classification memory cell and IP address assignment unit at least, described classification memory cell, be used for being classified in the IP address of IP address pool, and preserve the mapping relations of each IP address class and a class user profile, described IP address assignment unit, be used for obtaining user profile, and find an IP available address assignment to corresponding dhcp client from having the IP address class of mapping relations with described user profile from the DHCP request message that receives; Described dhcp relay agent comprises user profile binding unit at least, is used to intercept and capture the DHCP request message that dhcp client sends, and is sent to Dynamic Host Configuration Protocol server after the user profile of this dhcp client of binding in the DHCP request message.
User profile comprises user's authentication information, user's classification and user's management information.Described user profile is to be filled in the Option option of DHCP package.
Compared with prior art, the present invention has the following advantages: the present invention can be divided into the IP address class of different stage in advance to the IP address pool according to user profile, when dhcp client sends the DHCP request, can accomplish optimization according to the IP address in the corresponding IP address class of the user profile distribution of this dhcp client to dynamic assignment IP address.Such as, can be in advance be that the dhcp client of advanced level user is reserved more IP address to user profile, guarantee that user profile is that the dhcp client of advanced level user is dispensed to the IP address.And, can also be by the priority of IP address class be set, be the dhcp client of advanced level user can not from the IP address class of correspondence, be assigned to the IP address time in user profile, can from the low IP address class of priority, find idle IP address assignment to this DHCP.
The present invention can also utilize the option option of the DHCP package of dhcp relay agent, appoint the code of the option option that sends the user profile place and send form with Dynamic Host Configuration Protocol server in advance, from the DHCP package that receives, obtain user profile with routine Dynamic Host Configuration Protocol server, carry out IP address assignment.The present invention need not to revise the form of existing DHCP request message etc., only need utilize that not standardized code carries out the transmission of user profile, not only convenient but also favorable expandability in the option option of existing DHCP package.
Description of drawings
Fig. 1 is an Organization Chart of existing dhcp address distribution system;
Fig. 2 is an Organization Chart of dhcp address distribution system of the present invention;
Fig. 3 is the flow chart of dhcp address distribution method of the present invention;
Fig. 4 is a structural representation of the DHCP package of dhcp relay agent transmission.
Embodiment
Below in conjunction with accompanying drawing, specify the present invention.
See also Fig. 1, it is an Organization Chart of dhcp address distribution system.It comprises a plurality of Dynamic Host Configuration Protocol server 110, dhcp relay agent 120 and a plurality of dhcp client 130.Dynamic Host Configuration Protocol server 110 provides the Internet main frame of network settings parameter to dhcp client 130.Dhcp client 130 is the Internet main frames that obtain network configuration parameters by the DHCP agreement, is generally work station.Dhcp relay agent 120 is a main frame or routers at dhcp client 130 and 110 forwardings of Dynamic Host Configuration Protocol server DHCP message.When dhcp client 130 and Dynamic Host Configuration Protocol server 110 are positioned at same subnet, can directly carry out the DHCP message communication, transmit and not necessarily will carry out the DHCP message by dhcp relay agent 120.But because the DHCP message all adopts broadcast mode, it can not pass through a plurality of subnets.Therefore, when the DHCP message will pass through a plurality of subnet, when promptly dhcp client 130 and Dynamic Host Configuration Protocol server 110 are not positioned at same subnet, just must communicate by dhcp relay agent (DHCPRELAY) 120.Dhcp relay agent 120 is transmitted DHCP message (the DHCP message that dhcp relay agent is transmitted is referred to as the DHCP package usually) between dhcp client 130 and Dynamic Host Configuration Protocol server 110, to reach the purpose of striding a plurality of subnet dynamic assignment IP.
Do not consider in the prior art that the user for different identity distributes dissimilar IP addresses, and then have the problem that to accomplish further optimum management in IP address and distribution.For this reason, the present invention proposes the address allocation system of a kind of DHCP that can address the above problem.See also Fig. 2, it is the structure-steel framing composition of the address allocation system of DHCP of the present invention.It comprises Dynamic Host Configuration Protocol server 210, dhcp relay agent 220 and dhcp client 230, and described dhcp relay agent 220 is used to set up being connected of Dynamic Host Configuration Protocol server 210 and dhcp client 230.
Dynamic Host Configuration Protocol server 210 comprises classification memory cell 211 and IP address assignment unit 212 at least.Classification memory cell 211 is used for being classified in the IP address of IP address pool 213, and preserves the mapping relations of each IP address class and a class user profile.IP address assignment unit 212 is used for obtaining user profile from the DHCP request message that receives, and finds an IP available address assignment to corresponding dhcp client from having the IP address class of mapping relations with described user profile.
Described dhcp relay agent 220 comprises user profile binding unit 221 at least, is used to intercept and capture the DHCP request message that dhcp client 230 sends, and is sent to Dynamic Host Configuration Protocol server 210 after the user profile of this dhcp client of binding in the DHCP request message.
When dhcp client 230 and Dynamic Host Configuration Protocol server 210 are positioned at same subnet, can carry out the DHCP message by dhcp relay agent 220 and transmit, can not carry out the DHCP message yet and transmit by dhcp relay agent 220.When dhcp client 230 and Dynamic Host Configuration Protocol server 210 were positioned at same subnet and do not carry out the forwarding of DHCP message by dhcp relay agent 220, dhcp client 230 directly was added on the user profile of local terminal in the DHCP request message, is sent to Dynamic Host Configuration Protocol server 210.Such as, dhcp client 230 directly is added on the class of subscriber (supposing user's category-A) of local terminal in the DHCP request message, and Dynamic Host Configuration Protocol server 210 obtains to find behind the class of subscriber from the DHCP request message to have in the IP address class of mapping relations with described class of subscriber and finds idle IP address assignment to described dhcp client.
That is, also there is the address allocation system of another kind of DHCP in the present invention.It comprises Dynamic Host Configuration Protocol server and dhcp client.Dynamic Host Configuration Protocol server comprises classification memory cell and IP address assignment unit at least.The classification memory cell is used for being classified in the IP address of IP address pool, and preserves the mapping relations of each IP address class and a class user profile.The IP address assignment unit is used for obtaining user profile from the DHCP request message that receives, and finds an idle IP address assignment to corresponding dhcp client from having the IP address class of mapping relations with described user profile.Also comprise user profile binding unit in the dhcp client, be used for after the user profile of this dhcp client of DHCP request message binding, being sent to Dynamic Host Configuration Protocol server.
Based on above-mentioned disclosed system, the invention provides the address distribution method of a kind of DHCP.See also Fig. 3, it is the flow chart of the address distribution method of DHCP of the present invention.It comprises:
S110: classified in the IP address in the IP address pool, set up the mapping relations of the user profile of each IP address class and a class dhcp client;
S120: after the user profile of this dhcp client of binding on the DHCP request message, be sent to Dynamic Host Configuration Protocol server;
The S130:DHCP server obtains described user profile, finds an idle IP address assignment to described dhcp client the IP address class of mapping relations from having with described user profile.
Because when dhcp client and Dynamic Host Configuration Protocol server were positioned at same subnet, IP address assignment need not complexity like this.Therefore follow-up address assignment mainly is the address assignment of discussing under dhcp client and Dynamic Host Configuration Protocol server carry out the message forwarding by dhcp relay agent the situation, below makes a concrete analysis of above-mentioned steps.
One, step S110 specific implementation
User profile is the information that is used for the identifying user current state, and it can be user's authentication information, user's classification and user's management information etc.User's authentication information is divided into authentification of user by not passing through with authentification of user.Before proposing the DHCP request, generally can carry out the 802.1x authentication such as the user, then whether authentification of user is by referring to whether the 802.1x authentication is passed through.User's classification can be divided into some classifications with the user according to user's a certain characteristic, such as, according to user's priority treatment grade it is divided into advanced level user, domestic consumer.User's management information is meant the convenience for network management, can user's network configuration be managed.Such as, the user is divided into first kind user, the second class user and the 3rd class user, there is a certain qualification in each class user when the distributing IP address.For another example, the user is divided into class of subscriber A and class of subscriber B, class of subscriber A needs to distribute Intranet IP to belonging to such other user, and class of subscriber B needs distribute outer net IP to belonging to such other user.
Pre-determine according to which user profile and carry out the IP address sort, determine the total several classes of this kind user profile then, could classify to the IP address in the IP address pool targetedly at last, and set up the mapping relations of sorted each IP address class and a class user profile.Such as, system is that the authentication information (authentification of user success and user authentication failure) according to the user carries out the IP address sort, then Dynamic Host Configuration Protocol server can be divided into two classes with the IP address of IP address pool: the first kind IP address and the second class IP address.The first kind IP address of mapping authentification of user success can be that address conflict less I P address is formed, and first kind IP address can be more than the quantity of the second class IP address.
For another example, according to customer management information classified in the IP address in the IP address pool.Suppose the user is divided into first kind user, the second class user and the 3rd class user, there is a certain qualification in each class user when the distributing IP address.Dynamic Host Configuration Protocol server can be divided three classes the IP address of IP address pool: first kind IP address, the second class IP address and the 3rd class IP address.Suppose that there are mapping relations one to one in first kind IP address, the second class IP address and the 3rd class IP address with first kind user, the second class user and the 3rd class user respectively, just consider such IP address user information corresponding when then distributing each class IP address, the limited IP address of such user profile is not distributed in the corresponding class IP address usually.
In a word, according to the attribute of user profile classified in the IP address in the IP address pool.Usually the mapping relations of setting up each IP address class and a class user profile are one-to-one relationships, but also are not limited to this.IP address class and user profile also can be the relations of one-to-many.
Two, the specific implementation of step S120
The user profile of binding this dhcp client among the step S120 on described DHCP request message mainly is meant the DHCP request message of the dhcp client transmission that dhcp relay agent is intercepted and captured in the present invention, and the user profile of this dhcp client is set on the DHCP request message.
Below just come the performing step of description of step S120 with instantiation.
At first, dhcp relay agent is intercepted and captured the DHCP request message of dhcp client, obtains related information.
Described related information is the sign in order to the user profile that finds dhcp client, such as the receiving terminal port information of user's source MAC, this DHCP request message and receiving interface information etc.When user profile is kept at far-end server, can on dhcp relay agent, preserve the address of far-end server or the address of third-party server in advance.When user profile is kept at local network, such as on dhcp relay agent, setting in advance a memory cell, in order to the corresponding relation of storage related information (as user's source MAC) with user profile.Source MAC according to the user can find user information corresponding from memory cell.
Then, dhcp relay agent finds the user profile of visiting dhcp client according to the related information that obtains.
Dhcp relay agent directly has access to the far-end server of preserving user profile according to the address of the far-end server of preserving in advance, far-end server therefrom finds this related information user information corresponding to be back to dhcp relay agent according to the related information of preserving in advance and the corresponding relation of user profile.Perhaps, the third-party server visit far-end server of address is preserved in the dhcp relay agent utilization in advance, utilizes the related information of DHCP to match user information corresponding on far-end server and is back to dhcp relay agent.
Such as, after carrying out the 802.1x authentication earlier, the user just carries out the DHCP request, and then authentication result is to be kept on the certificate server.When user profile was the 802.1x authentication result, dhcp relay agent can obtain the 802.1x authentication result by local terminal access registrar server (being the far-end server of narrating previously) or by third-party server access registrar server.
On dhcp relay agent, set in advance a memory cell in order to storage related information and user profile corresponding relation, dhcp relay agent also can obtain related information earlier from the DHCP request message of intercepting and capturing, find the user profile that matches according to this related information in memory cell then.
Such as, corresponding relation between user's classification and the related information (being assumed to be the MAC Address of dhcp client) is kept in the memory cell of dhcp relay agent in advance, then the MAC Address that obtains from the DHCP request message of intercepting and capturing of dhcp relay agent can be mated in memory cell, finds corresponding class of subscriber.
Subsequently, dhcp relay agent is filled into user profile in the Option option, is attached in the DHCP request message, and amended DHCP request message is sent to Dynamic Host Configuration Protocol server.
Carrying out the DHCP message by dhcp relay agent between Dynamic Host Configuration Protocol server and the dhcp client transmits.Usually, the forwarding DHCP message that dhcp relay agent is sent is referred to as the DHCP package.
See also Fig. 4, the DHCP package form that it sends for dhcp relay agent.From configuration aspects, a message comprises an op field, a chaddr field and an option field, and for for simplicity, other field just seldom is described herein at this.Each all belongs to a specific type by dhcp relay agent to the DHCP message that Dynamic Host Configuration Protocol server sends, as DHCPDISCOVER, DHCPOFFER, DHCPREQUEST or DHCPACK etc.Each type all can write the options field.Each DHCP message can indicate that all to determine that it is sent by Dynamic Host Configuration Protocol server still be to be sent by dhcp client, and this is to realize by the OP field.The Chaddr field is used to write down the hardware address of dhcp client.
Existing option option code scope is 0-255, and wherein 0-68 is used by standard, and 255 end marks as option do not use, and the option of other non-standard use can use.That is, dhcp relay agent can be filled in user profile the option option, and the Option option place code and the form that are used for sending user profile are that dhcp relay agent and Dynamic Host Configuration Protocol server are made an appointment.The Option option place code that is used for sending user profile is arbitrary code of 69-254 for the option code scope, and described form comprises the length of code, user profile of described option and user profile and position separately at least.
Such as: use Option200 to send user authentication information.
Pass through if user profile is authentification of user, use following form:
200 7 s u c c e s s
If user profile is user authentication failure, then use following form:
200 4 f a i l
For another example, use option82 to send user profile.
Option82 can be made up of a plurality of sub-option.Use following form to add user profile: Code (code), Len (character length of user profile), Agent Information Field (user profile)
82 N i1 i2 i3 i4 iN
The information field i of each user profile is made up of following form: SubOpt/Length/Value promptly:
SubOpt?Len Sub-option?Value
I N s1 s2 s3 s4 sN
The Sub-option option is a dhcp relay agent increases sub-option information in the client of intercepting and capturing mails to the Option option of DHCP request message of server.
For example increasing sub-option 254 in the Option82 option, is class of subscriber with the identity information of going up this user; Being about to class of subscriber is attached in the sub-option in the Option82 option.
As:
SubOpt?Len Sub-option?Value
254 5 u s e r A
Three, the specific implementation of step S130
Dynamic Host Configuration Protocol server obtains described user profile, finds an available IP address assignment to described dhcp client the IP address class of mapping relations from having with described user profile.
Such as, the user profile that Dynamic Host Configuration Protocol server obtains is that authentification of user passes through information, then Dynamic Host Configuration Protocol server finds idle IP address assignment to this dhcp client from the IP address class of passing through corresponding to authentification of user.
If have with described user profile and not find idle IP address in the IP address class of mapping relations, then determine in this IP address class whether the matured IP of lease address is arranged, if having, then with the matured IP address assignment of lease to described dhcp client.
And, can also set in advance the priority of each IP address class in the IP address pool; If have with described user profile and not find idle IP address in the IP address class of mapping relations, then Dynamic Host Configuration Protocol server is from than finding an IP address assignment to described dhcp client or the like the low IP address class of the priority of this IP address class.Such as, user profile is advanced level user and domestic consumer, when Dynamic Host Configuration Protocol server is classified to the IP address pool based on this user profile: have first IP address class of mapping relations and have second IP address class of mapping relations with advanced level user, and the priority of setting first IP address class is higher than the priority of second IP address class with domestic consumer.When a certain user profile is the dhcp client proposition DHCP request of advanced level user, Dynamic Host Configuration Protocol server does not find idle IP address in first IP address class, then Dynamic Host Configuration Protocol server can be searched second IP address class, if there is idle IP address in second IP address class, then Dynamic Host Configuration Protocol server can will wherein one leave unused IP address assignment to dhcp client.
More than disclosed only be several specific embodiment of the present invention, but the present invention is not limited thereto, any those skilled in the art can think variation all should drop in protection scope of the present invention.

Claims (12)

1, the address distribution method of a kind of DHCP is characterized in that, comprising:
(1) classified in the IP address in the IP address pool, set up the mapping relations of the user profile of each IP address class and a class dhcp client;
(2) after the user profile of this dhcp client of binding on the DHCP request message, be sent to Dynamic Host Configuration Protocol server;
(3) Dynamic Host Configuration Protocol server obtains described user profile, finds an available IP address assignment to described dhcp client the IP address class of mapping relations from having with described user profile.
2, the address distribution method of DHCP as claimed in claim 1, it is characterized in that, binding this dhcp client user information corresponding in the step (2) on described DHCP request message comprises: dhcp relay agent is intercepted and captured the DHCP request message that dhcp client sends, and the user profile of this dhcp client is set in the DHCP request message.
3, the address distribution method of DHCP as claimed in claim 2 is characterized in that, dhcp relay agent is to obtain user profile in the following manner:
Dhcp relay agent obtains related information earlier from the DHCP request message of intercepting and capturing, described related information is in order to find the sign of dhcp client user profile, then, directly visit is preserved the far-end server of user profile in advance or is utilized third-party server to visit described far-end server, obtains the user profile of corresponding dhcp client by described related information.
4, the address distribution method of DHCP as claimed in claim 2 is characterized in that, dhcp relay agent is to obtain user profile in the following manner:
Set in advance a memory cell on dhcp relay agent, in order to the corresponding relation of storage related information and user profile, described related information is in order to find the sign of dhcp client user information corresponding:
When dhcp relay agent is intercepted and captured the DHCP request message, obtain related information earlier, from described memory cell, find user information corresponding according to described related information.
5, the address distribution method of DHCP as claimed in claim 2, it is characterized in that, dhcp relay agent is the Option option that user profile is filled in the DHCP package, and the Option option place code and the form that are used for sending user profile are that dhcp relay agent and Dynamic Host Configuration Protocol server are made an appointment.
6, the address distribution method of DHCP as claimed in claim 5, it is characterized in that, the Option option place code that is used for sending user profile is arbitrary code of 69-254 for the option code scope, and described form is in order to the code of determining described option, the length and the user profile position relation of user profile.
7, the address distribution method of DHCP as claimed in claim 1 is characterized in that, step (2) also comprises: dhcp client directly is added on the user profile of local terminal in the DHCP request message, is sent to Dynamic Host Configuration Protocol server.
8, the address distribution method of DHCP as claimed in claim 1, it is characterized in that, step (3) also comprises: do not find idle IP address in the IP address class of mapping relations if having with described user profile, then determine in this IP address class whether the matured IP of lease address is arranged, if have, then with the matured IP address assignment of lease to described dhcp client.
9, the address distribution method of DHCP as claimed in claim 1 is characterized in that,
Step (1) also comprises: the priority that each IP address class in the IP address pool is set;
Step (3) also comprises: do not find idle IP address in the IP address class of mapping relations if having with described user profile, then Dynamic Host Configuration Protocol server is from than finding an IP address assignment to described dhcp client the low IP address class of the priority of this IP address class.
10, the address allocation system of a kind of DHCP comprises Dynamic Host Configuration Protocol server, dhcp relay agent and dhcp client, and described dhcp relay agent is used to set up being connected of Dynamic Host Configuration Protocol server and dhcp client, it is characterized in that,
Described Dynamic Host Configuration Protocol server comprises classification memory cell and IP address assignment unit at least, described classification memory cell, be used for being classified in the IP address of IP address pool, and preserve the mapping relations of each IP address class and a class user profile, described IP address assignment unit, be used for obtaining user profile, and find an IP available address assignment to corresponding dhcp client from having the IP address class of mapping relations with described user profile from the DHCP request message that receives;
Described dhcp relay agent comprises user profile binding unit at least, is used to intercept and capture the DHCP request message that dhcp client sends, and is sent to Dynamic Host Configuration Protocol server after the user profile of this dhcp client of binding in the DHCP request message.
11, the address allocation system of a kind of DHCP as claimed in claim 10 is characterized in that, user profile comprises user's authentication information, user's classification and user's management information.
12, the address allocation system of a kind of DHCP as claimed in claim 10 is characterized in that, described user profile is to be filled in the Option option of DHCP package.
CNB200510093195XA 2005-08-19 2005-08-19 DHCP address allocation method Expired - Fee Related CN100527752C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200510093195XA CN100527752C (en) 2005-08-19 2005-08-19 DHCP address allocation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200510093195XA CN100527752C (en) 2005-08-19 2005-08-19 DHCP address allocation method

Publications (2)

Publication Number Publication Date
CN1744612A true CN1744612A (en) 2006-03-08
CN100527752C CN100527752C (en) 2009-08-12

Family

ID=36139802

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200510093195XA Expired - Fee Related CN100527752C (en) 2005-08-19 2005-08-19 DHCP address allocation method

Country Status (1)

Country Link
CN (1) CN100527752C (en)

Cited By (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008003241A1 (en) * 2006-06-28 2008-01-10 Huawei Technologies Co., Ltd. Method for allocating ip address, dynamic host configuration protocol server and relay method for allocating ip address
CN100405765C (en) * 2006-07-11 2008-07-23 杭州华三通信技术有限公司 IP address distributing method and device
CN101741925A (en) * 2009-12-14 2010-06-16 中兴通讯股份有限公司 Method for allocating access addresses and access equipment
CN101159758B (en) * 2007-10-30 2010-06-23 中兴通讯股份有限公司 Classification associated dynamic host machine configuring protocol option distribution method and device
CN101924801A (en) * 2010-05-21 2010-12-22 中国科学院计算机网络信息中心 IP (Internet Protocol) address management method and system as well as DHCP (Dynamic Host Configuration Protocol) server
CN102123181A (en) * 2010-12-09 2011-07-13 广东高新兴通信股份有限公司 Method for automatically configuring IP address to network device
CN102130788A (en) * 2011-03-14 2011-07-20 华为技术有限公司 Method, device and system for configuring monitoring terminal
CN102148879A (en) * 2010-10-22 2011-08-10 华为技术有限公司 Port mapping method and device and communication system
CN102202069A (en) * 2010-03-23 2011-09-28 鸿富锦精密工业(深圳)有限公司 Access point equipment and method for managing web cameras by utilizing access point equipment
CN102231764A (en) * 2011-06-22 2011-11-02 华为技术有限公司 Method and device for distributing network addresses
CN101141490B (en) * 2007-08-03 2011-11-23 中兴通讯股份有限公司 Network element address obtaining method
CN102255814A (en) * 2011-08-02 2011-11-23 华为技术有限公司 Method, device and system for selecting transfer path
CN102307247A (en) * 2011-08-22 2012-01-04 神州数码网络(北京)有限公司 Dynamic address allocation method for dynamic host configuration protocol (DHCP) and system
WO2012000256A1 (en) * 2010-06-30 2012-01-05 中兴通讯股份有限公司 Method and control station for scheduling resource block
CN102394948A (en) * 2011-11-04 2012-03-28 杭州华三通信技术有限公司 DHCP (dynamic host configuration protocol) address distribution method and DHCP server
CN102404230A (en) * 2011-12-15 2012-04-04 杭州华三通信技术有限公司 Flow control method and device
CN102469175A (en) * 2010-11-16 2012-05-23 国基电子(上海)有限公司 Network device and method for distributing Internet protocol address to client
CN102497378A (en) * 2011-12-15 2012-06-13 杭州华三通信技术有限公司 Method and device for dynamically choosing DHCP server for client terminal
CN101795300B (en) * 2009-11-11 2012-07-25 福建星网锐捷网络有限公司 IP (Internet Protocol) address recovery method and system, as well as DHCP (Dynamic Host Configuration Protocol) repeater and DHCP server
CN102694873A (en) * 2011-03-22 2012-09-26 中兴通讯股份有限公司 Address pool distribution system and method
CN102780790A (en) * 2012-07-13 2012-11-14 深圳市龙视传媒有限公司 Method and system for dynamically allocating IP (Internet Protocol) address
CN102970383A (en) * 2012-11-13 2013-03-13 中兴通讯股份有限公司 Method and device for allocating internet protocol (IP) addresses and method and device for processing information
CN103124294A (en) * 2013-02-01 2013-05-29 深圳市后天网络通信技术有限公司 Method, device and internet protocol (IP) device analyzing virtual domains
CN103297560A (en) * 2013-05-21 2013-09-11 江苏物联网研究发展中心 Data flow classification method and data flow classification server
CN103369066A (en) * 2013-07-25 2013-10-23 苏州大拿信息技术有限公司 IP (Internet Protocol) address distributing method
CN103581345A (en) * 2012-07-19 2014-02-12 中兴通讯股份有限公司 IP address allocation method and IP address allocation device based on dynamic host configuration protocol
CN103607482A (en) * 2013-11-27 2014-02-26 中国联合网络通信集团有限公司 IP address distribution method and device
CN101677279B (en) * 2008-09-16 2014-05-21 华为终端有限公司 LAN device, gateway and association method thereof
CN104270477A (en) * 2006-12-05 2015-01-07 株式会社东芝 Assisted Proactive Ip Address Acquisition
CN105472048A (en) * 2014-07-14 2016-04-06 华为技术有限公司 Address allocating method, information aggregation method and related equipment
CN105592170A (en) * 2014-10-23 2016-05-18 中兴通讯股份有限公司 Address distribution method and device
CN106056995A (en) * 2016-08-16 2016-10-26 合肥东上多媒体科技有限公司 Online classroom digital multimedia player
CN106056998A (en) * 2016-08-16 2016-10-26 合肥东上多媒体科技有限公司 Multimedia integrated digital classroom
CN106357838A (en) * 2016-09-26 2017-01-25 杭州昆海信息技术有限公司 Method and device for distributing IP (Internet protocol) address
CN106453693A (en) * 2016-12-14 2017-02-22 深圳Tcl数字技术有限公司 IP address allocation method and apparatus
CN107911234A (en) * 2017-11-03 2018-04-13 鼎点视讯科技有限公司 CMTS built-in services activating method and device
CN107968848A (en) * 2017-11-27 2018-04-27 广东欧珀移动通信有限公司 A kind of method, terminal device and storage medium for obtaining IP address
CN108377275A (en) * 2018-02-11 2018-08-07 厦门卓讯信息技术有限公司 Network safety protection method based on neural network algorithm
CN112104764A (en) * 2020-09-22 2020-12-18 陈军 Method and system for classifying DHCP (dynamic host configuration protocol) client
CN114338609A (en) * 2022-01-25 2022-04-12 广东省广播电视网络股份有限公司 IP address allocation management system and method thereof
CN116192806A (en) * 2023-01-13 2023-05-30 北京信而泰科技股份有限公司 IP distribution method, system, terminal and storage medium based on tester

Cited By (56)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098347B (en) * 2006-06-28 2011-02-09 华为技术有限公司 Method of assigning IP address for subscriber terminal
WO2008003241A1 (en) * 2006-06-28 2008-01-10 Huawei Technologies Co., Ltd. Method for allocating ip address, dynamic host configuration protocol server and relay method for allocating ip address
CN100405765C (en) * 2006-07-11 2008-07-23 杭州华三通信技术有限公司 IP address distributing method and device
CN104270477A (en) * 2006-12-05 2015-01-07 株式会社东芝 Assisted Proactive Ip Address Acquisition
CN101141490B (en) * 2007-08-03 2011-11-23 中兴通讯股份有限公司 Network element address obtaining method
CN101159758B (en) * 2007-10-30 2010-06-23 中兴通讯股份有限公司 Classification associated dynamic host machine configuring protocol option distribution method and device
CN101677279B (en) * 2008-09-16 2014-05-21 华为终端有限公司 LAN device, gateway and association method thereof
CN101795300B (en) * 2009-11-11 2012-07-25 福建星网锐捷网络有限公司 IP (Internet Protocol) address recovery method and system, as well as DHCP (Dynamic Host Configuration Protocol) repeater and DHCP server
CN101741925A (en) * 2009-12-14 2010-06-16 中兴通讯股份有限公司 Method for allocating access addresses and access equipment
CN102202069A (en) * 2010-03-23 2011-09-28 鸿富锦精密工业(深圳)有限公司 Access point equipment and method for managing web cameras by utilizing access point equipment
CN101924801B (en) * 2010-05-21 2013-04-24 中国科学院计算机网络信息中心 IP (Internet Protocol) address management method and system as well as DHCP (Dynamic Host Configuration Protocol) server
CN101924801A (en) * 2010-05-21 2010-12-22 中国科学院计算机网络信息中心 IP (Internet Protocol) address management method and system as well as DHCP (Dynamic Host Configuration Protocol) server
WO2012000256A1 (en) * 2010-06-30 2012-01-05 中兴通讯股份有限公司 Method and control station for scheduling resource block
CN102148879A (en) * 2010-10-22 2011-08-10 华为技术有限公司 Port mapping method and device and communication system
CN102469175A (en) * 2010-11-16 2012-05-23 国基电子(上海)有限公司 Network device and method for distributing Internet protocol address to client
CN102123181A (en) * 2010-12-09 2011-07-13 广东高新兴通信股份有限公司 Method for automatically configuring IP address to network device
CN102130788B (en) * 2011-03-14 2013-04-24 华为技术有限公司 Method, device and system for configuring monitoring terminal
CN102130788A (en) * 2011-03-14 2011-07-20 华为技术有限公司 Method, device and system for configuring monitoring terminal
CN102694873B (en) * 2011-03-22 2016-02-10 中兴通讯股份有限公司 A kind of address pool distribution system and method
CN102694873A (en) * 2011-03-22 2012-09-26 中兴通讯股份有限公司 Address pool distribution system and method
WO2012126243A1 (en) * 2011-03-22 2012-09-27 中兴通讯股份有限公司 Address pool allocation system and method
CN102231764A (en) * 2011-06-22 2011-11-02 华为技术有限公司 Method and device for distributing network addresses
CN102255814A (en) * 2011-08-02 2011-11-23 华为技术有限公司 Method, device and system for selecting transfer path
CN102307247A (en) * 2011-08-22 2012-01-04 神州数码网络(北京)有限公司 Dynamic address allocation method for dynamic host configuration protocol (DHCP) and system
CN102307247B (en) * 2011-08-22 2013-04-03 神州数码网络(北京)有限公司 Dynamic address allocation method for dynamic host configuration protocol (DHCP) and system
CN102394948A (en) * 2011-11-04 2012-03-28 杭州华三通信技术有限公司 DHCP (dynamic host configuration protocol) address distribution method and DHCP server
CN102394948B (en) * 2011-11-04 2014-10-29 杭州华三通信技术有限公司 DHCP (dynamic host configuration protocol) address distribution method and DHCP server
CN102497378A (en) * 2011-12-15 2012-06-13 杭州华三通信技术有限公司 Method and device for dynamically choosing DHCP server for client terminal
US9967254B2 (en) 2011-12-15 2018-05-08 Hewlett Packard Enterprise Development Lp Dynamically selecting a DHCP server for a client terminal
CN102404230A (en) * 2011-12-15 2012-04-04 杭州华三通信技术有限公司 Flow control method and device
CN102497378B (en) * 2011-12-15 2015-03-18 杭州华三通信技术有限公司 Method and device for dynamically choosing DHCP server for client terminal
CN102780790A (en) * 2012-07-13 2012-11-14 深圳市龙视传媒有限公司 Method and system for dynamically allocating IP (Internet Protocol) address
CN103581345A (en) * 2012-07-19 2014-02-12 中兴通讯股份有限公司 IP address allocation method and IP address allocation device based on dynamic host configuration protocol
CN102970383A (en) * 2012-11-13 2013-03-13 中兴通讯股份有限公司 Method and device for allocating internet protocol (IP) addresses and method and device for processing information
CN103124294A (en) * 2013-02-01 2013-05-29 深圳市后天网络通信技术有限公司 Method, device and internet protocol (IP) device analyzing virtual domains
CN103124294B (en) * 2013-02-01 2016-04-27 深圳市后天网络通信技术有限公司 A kind of method, device and IP device of resolving virtual Domain Name
CN103297560A (en) * 2013-05-21 2013-09-11 江苏物联网研究发展中心 Data flow classification method and data flow classification server
CN103297560B (en) * 2013-05-21 2018-09-07 江苏中科羿链通信技术有限公司 A kind of method and server of data flow classification
CN103369066A (en) * 2013-07-25 2013-10-23 苏州大拿信息技术有限公司 IP (Internet Protocol) address distributing method
CN103369066B (en) * 2013-07-25 2017-02-15 苏州大拿信息技术有限公司 IP (Internet Protocol) address distributing method
CN103607482A (en) * 2013-11-27 2014-02-26 中国联合网络通信集团有限公司 IP address distribution method and device
CN105472048B (en) * 2014-07-14 2019-05-10 华为技术有限公司 A kind of address distribution method, information aggregation method and relevant device
CN105472048A (en) * 2014-07-14 2016-04-06 华为技术有限公司 Address allocating method, information aggregation method and related equipment
CN105592170A (en) * 2014-10-23 2016-05-18 中兴通讯股份有限公司 Address distribution method and device
CN106056998A (en) * 2016-08-16 2016-10-26 合肥东上多媒体科技有限公司 Multimedia integrated digital classroom
CN106056995A (en) * 2016-08-16 2016-10-26 合肥东上多媒体科技有限公司 Online classroom digital multimedia player
CN106357838A (en) * 2016-09-26 2017-01-25 杭州昆海信息技术有限公司 Method and device for distributing IP (Internet protocol) address
CN106453693A (en) * 2016-12-14 2017-02-22 深圳Tcl数字技术有限公司 IP address allocation method and apparatus
CN107911234A (en) * 2017-11-03 2018-04-13 鼎点视讯科技有限公司 CMTS built-in services activating method and device
CN107968848A (en) * 2017-11-27 2018-04-27 广东欧珀移动通信有限公司 A kind of method, terminal device and storage medium for obtaining IP address
CN108377275A (en) * 2018-02-11 2018-08-07 厦门卓讯信息技术有限公司 Network safety protection method based on neural network algorithm
CN108377275B (en) * 2018-02-11 2021-08-31 北京泰和利通科技有限公司 Network security protection method based on neural network algorithm
CN112104764A (en) * 2020-09-22 2020-12-18 陈军 Method and system for classifying DHCP (dynamic host configuration protocol) client
CN112104764B (en) * 2020-09-22 2022-09-13 陈军 Method and system for classifying DHCP (dynamic host configuration protocol) client
CN114338609A (en) * 2022-01-25 2022-04-12 广东省广播电视网络股份有限公司 IP address allocation management system and method thereof
CN116192806A (en) * 2023-01-13 2023-05-30 北京信而泰科技股份有限公司 IP distribution method, system, terminal and storage medium based on tester

Also Published As

Publication number Publication date
CN100527752C (en) 2009-08-12

Similar Documents

Publication Publication Date Title
CN1744612A (en) DHCP address allocation method
CN1123154C (en) System, device and method for routine selection dhcp configuration agreement packets
CN1949784A (en) IP address requesting method for DHCP client by DHCP repeater
US5884024A (en) Secure DHCP server
US7263559B2 (en) Method for preventing IP address cheating in dynamic address allocation
CN1845554A (en) Control method for dynamically distributing IP address in 3G network
CN101159758B (en) Classification associated dynamic host machine configuring protocol option distribution method and device
US20130166776A1 (en) Method, apparatus, and system for allocating public ip address
CN1404276A (en) Apparatus and method for distributing interconnected network protocol address to network interface card
JP2000059387A (en) Dhcp server device
JP2002169694A (en) Method and system for automatic allocation of boot server to pxe client on network via dhcp server
CN1859441A (en) Method for distributing service based on terminal physical position
US8195775B2 (en) Enhanced method and apparatus for reducing congestion in DHCP network system
CN1835515A (en) Method and device of going repeating in configuration procedue of dynamic host address
US10419392B2 (en) Method, device and system for implementing address sharing
CN1320836C (en) Method for realizing automatic establishment of specific OM channel for 3G base station
CN1909524A (en) Automatic configuration method and system for digital household terminal
CN101741925A (en) Method for allocating access addresses and access equipment
CN1753411A (en) Improved method for assigning network identifiers using interface identifiers
EP1672876A3 (en) Network system and method for assigning dynamic address and performing routing based upon dynamic address
CN1917521A (en) Method and system for realizing load balancing, and load balancing equipment
CN105376226B (en) Forwarding method and system of streaming media server
CN1885763A (en) Method for preventing IP address leakage
CN106878485B (en) Message processing method and device
CN1487697A (en) IP address distributing management method for wideband access equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090812

Termination date: 20200819

CF01 Termination of patent right due to non-payment of annual fee