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
Grant status
Application
Patent type
Prior art keywords
dhcp
user
information
ip address
client
Prior art date
Application number
CN 200510093195
Other languages
Chinese (zh)
Other versions
CN100527752C (en )
Inventor
孙广新
Original Assignee
杭州华为三康技术有限公司
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

Links

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

DHCP的地址分配方法 DHCP address assignment method

技术领域 FIELD

本发明涉及网络领域,尤其涉及一种DHCP的地址分配方法,特别是有关于DHCP(Dynamic Host Configuration Protocol,动态主机配置协议)服务器根据用户信息进行地址分配方法。 The present invention relates to the field of networks, and particularly to a DHCP address assignment method, particularly to a DHCP (Dynamic Host Configuration Protocol, Dynamic Host Configuration Protocol) server address allocation method based on the user information.

背景技术 Background technique

在TCP/IP网络中,每台工作站若要能存取网络上的资源,必须进行基本的网络配置,一些主要参数诸如IP地址、子网掩码、缺省网关、域名服务器等必不可少,还可能需要一些诸如IP管理策略的附加信息,因此网络的管理和维护是一件非常繁重的任务。 In the TCP / IP network, each workstation to be able to access resources on the network, you must perform basic network configuration, some of the key parameters essential for such IP address, subnet mask, default gateway, domain name servers, may also need some additional information, such as IP management strategy, network management and maintenance is a very arduous task. 比如,当一台计算机从一个子网转移到另一子网时,就需要重新进行系统配置。 For example, when a computer from one subnet to another subnet, it is necessary to re-configure the system. 若通过技术人员手动进行配置,不仅操作麻烦,而且对技术人员的水平要求较高、甚至可能出现由于配置不合适而造成网络故障的后果。 If configured manually by technicians, not only operational problems, and a higher level of technical personnel requirements, and even consequences of improper configuration caused by network failures may occur.

动态主机配置协议(DHCP)是一种简化主机IP配置管理的TCP/IP标准。 Dynamic Host Configuration Protocol (DHCP) is a simplified IP host configuration management of TCP / IP standard. DHCP分为两个部分:DHCP服务器(DHCP Server)和DHCP客户端(DHCP Client)。 DHCP is divided into two parts: DHCP server (DHCP Server) and DHCP clients (DHCP Client). DHCP服务器主要的功能是管理IP地址的分配以及网络上启用DHCP客户端的其他相关配置信息。 The main function is to enable DHCP server configuration information related to other DHCP clients on IP address allocation and management of the network.

TCP/IP网络上的每台计算机都必须有唯一的IP地址(或者子网掩码)。 TCP / IP Each computer on the network must have a unique IP address (or subnet mask). IP地址(以及与之相关的子网掩码)主要是用于标识主计算机及其连接的子网。 IP address (and the associated subnet mask) is mainly used to identify the host computer and its attached subnets. 当将某一计算机从一个子网移动到另一个子网时,通常需要更改IP地址,而基于DHCP协议的DHCP服务器允许DHCP客户端从本地网络上的DHCP服务器的IP地址数据库中为本DHCP客户端动态指派IP地址,从而避免由于需要手动在每个计算机上键入IP地址而可能引起配置错误,同时也提高了配置的效率:有助于防止配置的IP地址冲突,大大降低用于配置和重新配置计算机的IP地址的时间。 When the computer from a certain subnet to another subnet, typically need to change the IP address, the DHCP server based on the DHCP protocol allows the DHCP client from the DHCP server on the local network IP address for the DHCP client database end dynamically assigned IP address, thereby avoiding the need to manually type the IP address on each computer that may cause configuration errors, but also improve the efficiency of configuration: configuration helps prevent IP address conflicts and greatly reduce configuration and re-used time to configure the computer's IP address.

DHCP支持三种不同的机制用于配置IP主机地址:自动配置、动态配置和人工配置。 DHCP supports three different mechanisms for configuring IP host address: auto-configuration, dynamic configuration and manual configuration. 其中在自动配置机制下,一旦DHCP客户端第一次成功的从DHCP服务器租用到IP地址之后,就永远使用这个地址。 In automatic configuration mechanism which, once the first successful DHCP client leased IP address from the DHCP server, you will never use this address. 在动态配置机制下,当DHCP客户端第一次从DHCP服务器租用到IP地址之后,并非永久地使用该地址,只要租约到期,DHCP客户端就需得释放这个IP地址。 In the dynamic configuration mechanism, when the DHCP client for the first time to lease an IP address from a DHCP server, use this address is not permanently, as long as the lease expires, the DHCP client would need to obtain the release of the IP address. 在人工配置机制下,DHCP客户端的IP地址可以由人工进行分配。 In the manual configuration mechanism, IP address, DHCP client may be assigned manually. 目前,使用最多的机制为动态配置机制。 Currently, the most widely used mechanism for dynamic configuration mechanism.

鸿富精密工业(深圳)有限公司在2003年6月6日申请的申请号为03126821.8中公开了一种动态主机配置方法,它包括:首先获得一DHCP客户端的硬件地址,确定DHCP客户端是否与DHCP服务器在同一网络,若在同一网络,则该DHCP服务器向该DHCP客户端发送含有IP地址的DHCP封包,否则,确定该DHCP服务器与该DHCP客户端是否有IP地址租约,若有,则向该DHCP客户端发送含有IP地址的DHCP封包,否则在DHCP服务器的IP地址池中找闲置IP地址,发送含有闲置IP地址的DHCP封包。 Hong Fu Precision Industry (Shenzhen) Co., Ltd. 03126821.8 discloses a method in Dynamic Host Configuration Application No. 2003, filed June 6 in that it comprises: a first obtaining the hardware address of the DHCP client, DHCP client to determine whether the DHCP server on the same network, if the same network, the DHCP server sends a DHCP packet containing the IP address to the DHCP client, otherwise, determines that the DHCP server and the DHCP client has an IP address lease, and if so, to the DHCP client sends a DHCP packet containing the IP address, or find unused IP address in the IP address pool to the DHCP server sends a DHCP IP address containing the idle packet. 这种方法能够多次检查分配的IP地址,尽量避免IP地址冲突事件的发生。 This method is able to check multiple IP address assignment, try to avoid IP address conflicts. 但是,上述的动态主动配置方法还存在以下问题:第一:目前,DHCP服务器通常是以接收到DHCP请求的先后顺序来分配IP地址,比如,DHCP客户端A和DHCP客户端B先后向同一个DHCP服务器发起DHCP请求,DHCP服务器通常不考虑DHCP客户端A和DHCP客户端B各自的用户信息(如优先级),通常先给DHCP客户端A分配IP地址,再给DHCP客户端B分配IP地址。 However, the above method further dynamic active configuration following problems: First: At present, the DHCP server usually in the order received DHCP request to allocate an IP address, for example, the DHCP client and the DHCP client A to B has the same initiates a DHCP request to the DHCP server, the DHCP server is generally not considered a DHCP client and the DHCP client a and B for user information (e.g., priority), the DHCP client a generally give assign IP addresses, to give the DHCP client IP address B assigned . 在IP地址资源有限的情况,经常发生后来申请的优先级高的IP地址申请请求不能得到保障,无法获得IP地址。 In the limited IP address resources, often later application of high-priority IP address of the application request can not be guaranteed, can not obtain an IP address. 即,现有的动态主机配置方法不能根据用户的身份(如优先级等)为不同用户分配不同类型的IP地址,由此导致一些级别高的用户不能及时获得IP地址,进而影响后续的网络通信。 That is, the conventional method can not be a dynamic host configuration (e.g., priority, etc.) based on their identity assigned to different users of different types of IP addresses, thereby resulting in some high-level users can not obtain an IP address in a timely manner, thereby affecting subsequent communications network .

第二:为了便于网络的管理,可能会在网络中的每个用户设置用户信息,比如将网络中的用户分为用户A类和用户B类,每一用户信息中包含用户的类别,假设A类的用户需要给其分类内网IP地址,而B类的用户需要给其分配外网IP地址。 Second: In order to facilitate management of the network, each user may set the user information in the network, such as network users into user A and user classes Classes B, each user information includes a user category, assuming A the need to give the user class classification network IP address, user class B needs to allocate IP addresses to its external network. 然而,现有的动态主机配置方法中,DHCP服务器是很难根据用户信息完成IP地址分类,无法做到IP地址的进一步优化管理和分配。 However, existing dynamic host configuration method, DHCP server IP address is difficult to accomplish classified according to user information, can not be done to further optimize the management and allocation of IP addresses.

发明内容 SUMMARY

本发明的目的在于提供一种DHCP的地址分配方法,以解决现有技术中不能为具有不同用户信息的用户分配不同类型的IP地址,进而无法做到IP地址进一步优化管理和分配的技术问题。 Object of the present invention is to provide a DHCP address assignment method to address can not be assigned to different types of users having different user information, the IP address of the prior art, and thus can not be done to further optimize the IP address allocation and management of technical problems.

一种DHCP的地址分配方法,包括:(1)将IP地址池中的IP地址进行分类,建立每一IP地址类和一类DHCP客户端的用户信息的映射关系;(2)在DHCP请求报文上绑定该DHCP客户端的用户信息后发送至DHCP服务器;(3)DHCP服务器获得所述用户信息,从与所述用户信息具有映射关系的IP地址类中找到一可用的IP地址分配至所述DHCP客户端。 A method of DHCP address assignment, comprising: (1) the IP addresses of the pool classification, mapping relationship between the IP address of each category and a Class DHCP client user information; (2) the DHCP request message the binding of the DHCP client transmits the user information to a DHCP server; (. 3) DHCP server obtains the user information, to find the IP address information of the class has a mapping relation with the user in a usable IP address assigned to the DHCP client.

步骤(2)中在所述DHCP请求报文上绑定该DHCP客户端对应的用户信息包括:DHCP中继代理截获DHCP客户端发送的DHCP请求报文,并在DHCP请求报文中设置该DHCP客户端的用户信息。 Step (2) binding in the DHCP request of the DHCP client user information corresponding to the packet includes: DHCP relay agent intercepts DHCP client sends a DHCP request packet, the DHCP request message and the DHCP setting the client user information.

DHCP中继代理是通过以下方式获得用户信息:DHCP中继代理从截获的DHCP请求报文中先获得关联信息,所述关联信息是用以找到DHCP客户端用户信息的标识,然后,直接访问预先保存用户信息的远端服务器或者利用第三方服务器访问所述远端服务器,通过所述关联信息获得对应的DHCP客户端的用户信息。 DHCP relay agent is to obtain user information in the following way: The DHCP Relay Agent intercepts the request from the DHCP packet to obtain related information, the associated information is used to find the user information identifying the DHCP client, and then directly access the pre save remote server using the user information or a third party server to access the remote server to obtain the user information corresponding to the DHCP client by the association information.

DHCP中继代理还可以通过以下方式获得用户信息:在DHCP中继代理上预先设置一存储单元,用以存储关联信息与用户信息的对应关系,所述关联信息是用以找到DHCP客户端对应的用户信息的标识;当DHCP中继代理截获DHCP请求报文时,先获得关联信息,根据所述关联信息从所述存储单元中找到对应的用户信息。 DHCP relay agent may also obtain user information in the following ways: a storage unit provided in advance on the DHCP relay agent, to store the associated information of the corresponding relationship with the user information, the associated information is used to find the corresponding DHCP client user identification information; when a DHCP relay agent intercepts DHCP request packet, to obtain related information, find the corresponding user information from the storage unit according to the association information.

DHCP中继代理是将用户信息填充在DHCP封包的Option选项,用来发送用户信息的Option选项所在代码及格式是DHCP中继代理和DHCP服务器预先约定好的。 The DHCP Relay Agent information is filled in by the user options Option DHCP packet for transmitting information to the user code, and where options Option format is the DHCP server and DHCP relay agent pre-agreed. 用来发送用户信息的Option选项所在代码为选项代码范围为69-254的任一代码,所述格式用以确定所述选项的代码、用户信息的长度和用户信息所在位置关系。 Option Option where the code used to transmit user information to the range of 69-254 option code of one of the code, the code to determine the format of the options, and the length of the user information between the user location information.

步骤(2)还包括:DHCP客户端将本端的用户信息直接添加在DHCP请求报文中,发送至DHCP服务器。 Step (2) further comprising: local DHCP client user information directly added to the DHCP request message sent to the DHCP server.

步骤(3)还包括:若与所述用户信息具有映射关系的IP地址类中没有找到闲置IP地址,则确定该IP地址类中是否有租约已到期的IP地址,若有,则将租约已到期的IP地址分配至所述DHCP客户端。 Step (3) further comprising: if the IP address of the user information in the class has a mapping relation is not idle IP address is found, it is determined whether the lease has expired IP address of the IP address of the class, if any, will lease expired IP address assigned to the DHCP client.

步骤(1)还包括:设置IP地址池中的每一IP地址类的优先级;步骤(3)还包括:若与所述用户信息具有映射关系的IP地址类中没有找到闲置IP地址,则DHCP服务器从比该IP地址类的优先级低的IP地址类中找到一IP地址分配至所述DHCP客户端。 Step (1) further comprising: a priority setting IP address pool of IP addresses for each class; in step (3) further comprising: if the IP address information of the class has a mapping relation with the user does not find an idle IP address, find a DHCP server IP address assigned from the DHCP client to a lower priority than the class of the IP address in the IP address class.

本发明还公开了一种DHCP的地址分配系统,包括DHCP服务器、DHCP中继代理和DHCP客户端,所述DHCP中继代理用于建立DHCP服务器和DHCP客户端的连接,所述DHCP服务器至少包括分类存储单元和IP地址分配单元,所述分类存储单元,用于将IP地址池中的IP地址进行分类,并保存每一IP地址类与一类用户信息的映射关系,所述IP地址分配单元,用于从接收的DHCP请求报文中获得用户信息,并从与所述用户信息具有映射关系的IP地址类中找到一可用IP地址分配至对应的DHCP客户端;所述DHCP中继代理至少包括用户信息绑定单元,用于截获DHCP客户端发送的DHCP请求报文,并在DHCP请求报文中绑定该DHCP客户端的用户信息后发送至DHCP服务器。 The present invention also discloses a dispensing system for a DHCP address, comprising a DHCP server, DHCP client and DHCP relay agent, the DHCP relay agent and DHCP server for establishing a connection to the DHCP client, the DHCP server at least includes a classification the storage unit and the IP address allocation unit, said classification storing means, for the IP address classifies the IP address pool, and save the mapping relationship between the IP address for each user class is a class of information, the IP address assignment unit, packet for requesting user information is obtained from the received DHCP, and find an available IP address from the IP address information of the class has a mapping relation with the user assigned to the corresponding DHCP client; the DHCP relay agent comprising at least DHCP user information binding unit, for intercepting client sends a DHCP request packets and user information packets binding of the DHCP client after sending the request to a DHCP server in the DHCP.

用户信息包括用户的认证信息、用户的类别以及用户的管理信息。 User information includes user authentication information, user category and user management information. 所述用户信息是填充在DHCP封包的一Option选项中。 The user information is filled in a packet of DHCP options Option.

与现有技术相比,本发明具有以下优点:本发明可以预先根据用户信息对IP地址池划分成不同级别的IP地址类,当DHCP客户端发出DHCP请求时,可以根据该DHCP客户端的用户信息分配对应的IP地址类中的IP地址,做到对动态分配IP地址的优化。 Compared with the prior art, the present invention has the following advantages: the present invention may be previously IP address pool information into different levels of classes of IP addresses, when the DHCP client sends a DHCP request, the DHCP client according to the user from the user information IP address assigned IP address corresponding to the class, so that optimization of the dynamically assigned IP address. 比如,可以预先给用户信息为高级用户的DHCP客户端预留更多IP地址,保证用户信息为高级用户的DHCP客户端分配至IP地址。 For example, the user can advance to reserve more information about IP addresses to DHCP clients advanced users, to ensure that the IP address assigned to the user information for the DHCP client for advanced users. 并且,还可以通过设置IP地址类的优先级,在用户信息为高级用户的DHCP客户端不能从对应的IP地址类中分配到IP地址时,可以从优先级低的IP地址类中找到空闲IP地址分配对该DHCP。 And, can also set the priority class IP, the DHCP client user information for the advanced user can not allocating the IP address corresponding to the class to the IP address can be found free IP from the low priority IP address of the class address assignment to the DHCP.

本发明还可以利用DHCP中继代理的DHCP封包的option选项,预先和DHCP服务器约定好发送用户信息所在的option选项的代码及发送格式,以例DHCP服务器从接收到的DHCP封包中获得用户信息,进行IP地址分配。 The present invention may also be utilized on option DHCP relay agent packet to DHCP, the DHCP server in advance, and transmits the code agreement good option option where the user information and the transmission format to the user information obtained in Example DHCP server DHCP packet from the received, IP address assignment. 本发明无需修改现有的DHCP请求报文等的格式,只需利用现有的DHCP封包的option选项中未标准化的代码进行用户信息的传输,不仅方便而且扩展性好。 The present invention without modifying the existing format of the DHCP request packet and the like, simply by using the existing DHCP option option packet in unnormalized code transfer of user information, not only convenient but also scalability.

附图说明 BRIEF DESCRIPTION

图1是现有的DHCP地址分配系统的一架构图;图2是本发明的DHCP地址分配系统的一架构图;图3是本发明的DHCP地址分配方法的流程图;图4是DHCP中继代理发送的DHCP封包的一结构示意图。 FIG 1 is a conventional patterning DHCP address assignment system; FIG. 2 is a DHCP address assignment system of the composition according to the invention; FIG. 3 is a flowchart of the DHCP address allocation method of the present invention; FIG. 4 is a DHCP relay DHCP proxy is a structure of the packet transmission.

具体实施方式 Detailed ways

以下结合附图,具体说明本发明。 In conjunction with the following drawings, detailed description of the present invention.

请参阅图1,其为DHCP地址分配系统的一架构图。 See Figure 1, which is a composition for the DHCP address assignment system. 它包括多个DHCP服务器110、DHCP中继代理120和多个DHCP客户端130。 It comprises a plurality of DHCP server 110, DHCP relay agent 120, and a plurality of DHCP clients 130. DHCP服务器110是提供网络设置参数至DHCP客户端130的Internet主机。 110 DHCP server to provide network setup parameters to DHCP clients on the Internet host 130. DHCP客户端130是通过DHCP协议来获得网络配置参数的Internet主机,通常为工作站。 DHCP client 130 is to obtain the Internet host network configuration parameters through DHCP, typically a workstation. DHCP中继代理120是一在DHCP客户端130和DHCP服务器110间转发DHCP报文的主机或路由器。 DHCP relay agent 120 is in between a DHCP client and the DHCP server 130 forwards the DHCP packet 110 host or router. 当DHCP客户端130和DHCP服务器110位于同一子网时,可以直接进行DHCP报文通信,而不一定要通过DHCP中继代理120进行DHCP报文转发。 When the DHCP client and the DHCP server 130 on the same subnet 110, the DHCP can be packet communication, but not necessarily 120 forwards the DHCP packets through the DHCP relay agent. 但是,由于DHCP报文都采用广播方式,它不能穿越多个子网。 However, due to the use of DHCP messages are broadcast, it can not cross multiple subnets. 因此,当DHCP报文要穿越多个子网时,即DHCP客户端130和DHCP服务器110不位于同一子网时,就必须要通过DHCP中继代理(DHCPRELAY)120进行通信。 Thus, when the DHCP packets to pass through a plurality of subnets, the DHCP client and the DHCP server 130 is not on the same subnet 110, it is necessary to communicate through a DHCP relay agent (DHCPRELAY) 120. DHCP中继代理120在DHCP客户端130和DHCP服务器110之间转发DHCP报文(通常将DHCP中继代理转发的DHCP报文称之为DHCP封包),以达到跨多个子网动态分配IP的目的。 DHCP relay agent 120 to forward DHCP packets (typically a DHCP relay agent forwards the DHCP packet called DHCP packets) between the DHCP client and the DHCP server 130 110, for the purpose of dynamically allocated across multiple IP subnets .

现有技术中没有考虑到为不同身份的用户分配不同类型的IP地址,进而存在无法做到IP地址进一步优化管理和分配的问题。 The prior art does not take into account the different types of IP addresses assigned to users of different identities, then there is not possible to further optimize the IP address of the management and allocation problems. 为此,本发明提出了一种能够解决上述问题的DHCP的地址分配系统。 To this end, the invention proposes a DHCP address allocation system capable of solving the above problems. 请参阅图2,其为本发明的DHCP的地址分配系统的结构架构图。 Please refer to FIG. 2, the structure of the architecture of FIG DHCP address assignment system of the present invention thereof. 它包括DHCP服务器210、DHCP中继代理220和DHCP客户端230,所述DHCP中继代理220用于建立DHCP服务器210和DHCP客户端230的连接。 It comprises a DHCP server 210, the DHCP relay agent 220 and the DHCP client 230, the DHCP relay agent 220 for establishing a connection 210 and a DHCP server 230. DHCP client.

DHCP服务器210至少包括分类存储单元211和IP地址分配单元212。 DHCP server 210 comprises storage unit 211 and the classification of at least IP address allocation unit 212. 分类存储单元211,用于将IP地址池213中的IP地址进行分类,并保存每一IP地址类与一类用户信息的映射关系。 Classification storage unit 211, the IP address for the IP address pool 213 are classified, and save the mapping relationship between the IP address of each category of information to a user class. IP地址分配单元212,用于从接收的DHCP请求报文中获得用户信息,并从与所述用户信息具有映射关系的IP地址类中找到一可用IP地址分配至对应的DHCP客户端。 IP address assignment unit 212, for requesting to obtain the user information packets received from DHCP, and find an available IP address from the IP address information of the class has a mapping relation with the user assigned to the corresponding DHCP client.

所述DHCP中继代理220至少包括用户信息绑定单元221,用于截获DHCP客户端230发送的DHCP请求报文,并在DHCP请求报文中绑定该DHCP客户端的用户信息后发送至DHCP服务器210。 The DHCP relay agent 220 binding unit includes at least the user information 221 for intercepting transmitted DHCP client DHCP request message 230, the DHCP request packet and the bound user information of the DHCP client to the DHCP server transmits 210.

当DHCP客户端230和DHCP服务器210位于同一子网时,可以通过DHCP中继代理220进行DHCP报文转发,也可以不通过DHCP中继代理220进行DHCP报文转发。 When the DHCP client and the DHCP server 210, 230 on the same subnet, DHCP packets may be forwarded by the DHCP relay agent 220 may not be performed by the DHCP relay agent 220 forwards the DHCP packets. 当DHCP客户端230与DHCP服务器210位于同一子网且不通过DHCP中继代理220进行DHCP报文转发时,DHCP客户端230将本端的用户信息直接添加在DHCP请求报文中,发送至DHCP服务器210。 When the DHCP client and the DHCP server 230 in the same subnet 210 230 does not present the end user information directly added to the DHCP request message by a DHCP relay agent 220 forwards the DHCP message, the DHCP client, the DHCP server to send 210. 比如,DHCP客户端230将本端的用户类别(假设用户A类)直接添加在DHCP请求报文中,DHCP服务器210从DHCP请求报文中获得用户类别后找到与所述用户类别具有映射关系的IP地址类中找到闲置IP地址分配至所述DHCP客户端。 For example, DHCP clients 230 to the local categories of users (assuming that the user type A) directly added to the DHCP request packet, DHCP server 210 to find the packet to obtain the user category from the DHCP request IP and the user category has a mapping relationship found idle address class IP address assigned to the DHCP client.

即,本发明还存在另一种DHCP的地址分配系统。 That is, the present invention, there is also another DHCP address assignment system of. 它包括DHCP服务器和DHCP客户端。 It includes a DHCP server and DHCP clients. DHCP服务器至少包括分类存储单元和IP地址分配单元。 The DHCP server includes a storage unit and a classification of at least IP address assignment unit. 分类存储单元,用于将IP地址池中的IP地址进行分类,并保存每一IP地址类与一类用户信息的映射关系。 Classification storage unit, the IP address for the IP address pool are classified and stored for each IP address mapping between classes with a class of user information. IP地址分配单元,用于从接收的DHCP请求报文中获得用户信息,并从与所述用户信息具有映射关系的IP地址类中找到一闲置IP地址分配至对应的DHCP客户端。 IP address allocation means for receiving a request from a DHCP packet to obtain the user information, and to find the IP address information of the class has a mapping relation with the user in an idle IP address assigned to a corresponding DHCP client. DHCP客户端中还包括一用户信息绑定单元,用于在DHCP请求报文中绑定该DHCP客户端的用户信息后发送至DHCP服务器。 The DHCP client user information further comprises a binding unit configured to bind the packet is sent to the DHCP server to the DHCP client user information in the DHCP request.

基于上述公开的系统,本发明提供了一种DHCP的地址分配方法。 Based on the above disclosed system, the present invention provides a method of address assignment of DHCP. 请参阅图3,其为本发明的DHCP的地址分配方法的流程图。 Refer to FIG. 3, a flowchart of a DHCP address allocation method thereof of the present invention. 它包括:S110:将IP地址池中的IP地址进行分类,建立每一IP地址类和一类DHCP客户端的用户信息的映射关系;S120:在DHCP请求报文上绑定该DHCP客户端的用户信息后发送至DHCP服务器;S130:DHCP服务器获得所述用户信息,从与所述用户信息具有映射关系的IP地址类中找到一闲置的IP地址分配至所述DHCP客户端。 It includes: S110: The IP address of the IP address pool classification, mapping relationship between the IP address of each category and a Class DHCP client user information; S120: binding the DHCP request of the DHCP client user information on packets after sent to the DHCP server; S130: DHCP server obtains the user information, to find the IP address information of the class has a mapping relation with the user in an idle IP address assigned to the DHCP client.

由于DHCP客户端与DHCP服务器位于同一子网时,IP地址分配无需如此复杂。 Because the DHCP client and the DHCP server on the same subnet, IP address assignment need not so complicated. 因此后续的地址分配主要是讨论DHCP客户端与DHCP服务器通过DHCP中继代理进行报文转发的情况下的地址分配,以下具体分析上述步骤。 Thus the subsequent address assignment is to discuss the DHCP client and the DHCP server address assignment in a case where packets are forwarded by the DHCP relay agent, the analyze the above steps.

一、步骤S110具体实现用户信息是用于标识用户当前状态的信息,它可以是用户的认证信息、用户的类别以及用户的管理信息等。 First, in step S110 the user information is a specific implementation information identifying the current state of the user, it may be a user authentication information, user class and the like of the user management information. 用户的认证信息分为用户认证通过和用户认证未通过。 User authentication information into user authentication and user authentication is not passed. 比如用户在提出DHCP请求之前,一般会进行802.1x认证,则用户认证是否通过可以指802.1x认证是否通过。 Before presenting such user DHCP request, will generally 802.1x authentication, the user can refer to whether the authentication by 802.1x authentication passes. 用户的类别可以根据用户的某一特性将用户分为若干类别,比如,根据用户的优先处理等级将其分为高级用户、普通用户。 Categories of users according to a characteristic of the user users into several categories, such as, according to the user's priority level will be divided into advanced users, the average user. 用户的管理信息是指为了网络管理的方便,可以对用户的网络配置进行管理。 Refers to the user management information in order to facilitate network management, user can manage the network configuration. 比如,将用户分为第一类用户、第二类用户和第三类用户,每一类用户在分配IP地址时存在某一限定。 For example, the class of the user into a first user, the second user and the third user, each class defining a user exists in the allocation of an IP address. 再比如,将用户分为用户类别A和用户类别B,用户类别A是需要给属于该类别的用户分配内网IP,用户类别B是需要给属于该类别的用户分配外网IP。 As another example, the user A and the user into the user class class B, class A user needs to be assigned within the user belonging to the category of network IP, user class B is required to assign a user belonging to the category of the external network IP.

预先确定根据哪一用户信息进行IP地址分类,然后确定此种用户信息共有几类,最后才能有针对性地对IP地址池中的IP地址进行分类,并建立分类后的每一IP地址类与一类用户信息的映射关系。 Predefined IP address classified according to which user information, and then determine the total of such types of user information, and finally can be targeted to the IP address of the IP address pool classify each IP address class and the establishment of the classification and a mAP relationship between the user information. 比如,系统是根据用户的认证信息(用户认证成功和用户认证失败)进行IP地址分类,则DHCP服务器可以将IP地址池的IP地址分为两类:第一类IP地址和第二类IP地址。 For example, the system is user authentication information (user authentication is successful and the user authentication fails) classified according to the IP address, the DHCP server IP address pool of IP addresses are divided into two classes: first class and the second IP address IP addresses . 映射用户认证成功的第一类IP地址可以是地址冲突较少的IP地址组成,并且第一类IP地址可以比第二类IP地址的数量多。 Mapping first type of user authentication is successful may be fewer IP address of IP addresses the address conflict, and the first type can be more than the number of IP addresses IP address of the second type.

再比如,根据用户管理信息对IP地址池中的IP地址进行分类。 As another example, the user management information to classify the IP address of the IP address pool. 假设将用户分为第一类用户、第二类用户和第三类用户,每一类用户在分配IP地址时存在某一限定。 Suppose the user into a first class of user, the second user and the third user, each class defining a user exists in the allocation of an IP address. DHCP服务器可以将IP地址池的IP地址分为三类:第一类IP地址、第二类IP地址和第三类IP地址。 DHCP server IP address pool of IP addresses divided into three categories: the first IP address, the second IP address and the IP address of the third category. 假设第一类IP地址、第二类IP地址和第三类IP地址分别与第一类用户、第二类用户和第三类用户存在一一对应的映射关系,则分配每一类IP地址时就考虑到该类IP地址对应的用户信息,该类用户信息受限的IP地址通常不分配在对应的类IP地址中。 Assuming that the IP address of the first type, second type and third type of IP address and IP address of the first user type, the presence of one to one mapping between each user and the second type of the third user, an IP address is allocated for each class to take into account the user class information corresponding to IP addresses, such IP address of the user information is usually not restricted in the corresponding class assigned IP address.

总之,根据用户信息的属性对IP地址池中的IP地址进行分类。 In short, according to the user attribute information to classify the IP address of the IP address pool. 通常建立每一IP地址类与一类用户信息的映射关系是一一对应关系,但也不局限于此。 Usually mapping relationship between each IP address class and a class of user information is a one to one relationship, but is not limited to this. IP地址类与用户信息也可以是一对多的关系。 IP address classes and user information can also be one to many relationship.

二、步骤S120的具体实现步骤S120中在所述DHCP请求报文上绑定该DHCP客户端的用户信息在本发明中主要是指DHCP中继代理截获的DHCP客户端发送的DHCP请求报文,并在DHCP请求报文上设置该DHCP客户端的用户信息。 Step two specific implementation, the steps S120 S120 of binding in the DHCP request of the DHCP client user information packets in the present invention mainly refers to the DHCP relay agent intercepts DHCP client sends a DHCP request message, and in the DHCP request packet information provided on the user of the DHCP client.

以下就以具体实例来说明步骤S120的实现步骤。 The following specific examples will be described in a step S120 implementation steps.

首先,DHCP中继代理截获DHCP客户端的DHCP请求报文,获得关联信息。 First, DHCP relay agent intercepts DHCP client DHCP request packets to obtain related information.

所述关联信息是用以找到DHCP客户端的用户信息的标识,比如用户的源MAC、该DHCP请求报文的接收端端口信息及接收接口信息等。 The association information is used to find the user identification information of the DHCP client, such as the MAC source user, the DHCP request receiving terminal port information and packet receiving interface information, and the like. 当用户信息保存在远端服务器时,可以在DHCP中继代理上预先保存远端服务器的地址或者第三方服务器的地址。 When the user information is stored in a remote server, the remote server may be pre-stored address on the DHCP relay agent or the address of a third party server. 当用户信息保存在本地网络时,比如在DHCP中继代理上预先设置一存储单元,用以存储关联信息(如用户的源MAC地址)与用户信息的对应关系。 When the user information stored in a local network, such as a storage unit is provided in advance on the DHCP relay agent, to store the associated information (e.g., source MAC address of the user) and user information corresponding relationship. 根据用户的源MAC地址即可从存储单元中找到对应的用户信息。 To find the user information from the storage unit corresponding to the source MAC address of the user.

然后,DHCP中继代理根据获得的关联信息找到访DHCP客户端的用户信息。 Then, DHCP relay agent to find user information visit DHCP client information obtained according to the association.

DHCP中继代理根据预先保存的远端服务器的地址直接访问到保存有用户信息的远端服务器,远端服务器根据预先保存的关联信息与用户信息的对应关系,从中找到本关联信息对应的用户信息返回至DHCP中继代理。 DHCP relay agent to directly access the address stored in advance in the remote server to the user information stored in the remote server, the remote server in accordance with pre-stored correspondence information associated with the user information, the user find the information corresponding to the information related to the present return to the DHCP relay agent. 或者,DHCP中继代理利用预先保存地址的第三方服务器访问远端服务器,在远端服务器上利用DHCP的关联信息匹配到对应的用户信息返回至DHCP中继代理。 Alternatively, DHCP relay agent using the pre-stored address to access the remote server a third party server, associated with the use of the DHCP server on the distal end of the matching information corresponding to the user is returned to the DHCP relay agent.

比如,当用户先进行802.1x认证后才进行DHCP请求,则认证结果是保存在认证服务器上。 For example, when a user first 802.1x authentication after a DHCP request, the authentication result is stored on the authentication server. 当用户信息为802.1x认证结果时,DHCP中继代理可以通过本端访问认证服务器(即前面叙述的远端服务器)或通过第三方服务器访问认证服务器,获得802.1x认证结果。 When the user 802.1x authentication result information, the DHCP relay agent can (i.e. foregoing description remote server) to access the authentication server by the local server or by a third party to access the authentication server, 802.1x authentication result is obtained.

当DHCP中继代理上预先设置一用以存储关联信息与用户信息对应关系的存储单元,DHCP中继代理也可以从截获的DHCP请求报文中先获得关联信息,然后根据该关联信息在存储单元中找到与之匹配的用户信息。 When a pre-set for storing information associated with the user relationship information corresponding to the storage unit on the DHCP relay agent, the DHCP relay agent may also be a request from the intercepted DHCP packet to obtain related information, and then based on the association information in the storage unit find the user information matching.

比如,用户的类别和关联信息(假设为DHCP客户端的MAC地址)之间的对应关系预先保存在DHCP中继代理的存储单元中,则DHCP中继代理从截获的DHCP请求报文中获得的MAC地址即可在存储单元中进行匹配,找到对应的用户类别。 For example, the correspondence between the category and the user related information (assuming the DHCP client MAC address) is stored in advance in a storage unit a DHCP relay agent, the DHCP relay agent requests the MAC packet obtained from the intercepted DHCP address to the storage unit match, find the corresponding user category.

随后,DHCP中继代理将用户信息填充到Option选项中,附在DHCP请求报文中,并将修改后的DHCP请求报文发送至DHCP服务器。 Subsequently, the DHCP relay agent options Option user information filled in, attached to the DHCP request packet, and the modified DHCP request message to the DHCP server.

DHCP服务器和DHCP客户端之间通过DHCP中继代理进行DHCP报文转发。 Between the DHCP server and DHCP client DHCP packets forwarded by DHCP Relay Agent. 通常,将DHCP中继代理发送的转发DHCP报文称之为DHCP封包。 Typically, the DHCP relay agent forwards DHCP messages sent DHCP packet call.

请参阅图4,其为DHCP中继代理发送的DHCP封包格式。 Please refer to FIG. 4, DHCP packet format which is transmitted from a DHCP relay agent. 从结构方面看,一报文包括一op字段、一chaddr字段以及一option字段,为简便起见,其它字段在此就不多作叙述。 From a structural perspective, a message including a field op, a chaddr field and a field option, for simplicity, this is not to the other fields as described. 每一通过DHCP中继代理向DHCP服务器发送的DHCP报文都属于一特定的类型,如DHCPDISCOVER、DHCPOFFER、DHCPREQUEST或DHCPACK等。 Each transmitted through the DHCP relay agent to the DHCP server a DHCP packet belongs to a specific type, such as DHCPDISCOVER, DHCPOFFER, DHCPREQUEST or the like DHCPACK. 每一类型均会写入options字段。 Each type will write options field. 每一DHCP报文都会标志以确定其是被DHCP服务器所发出还是被DHCP客户端所发出,这是通过OP字段来实现。 Each DHCP packets are flags to determine which are issued by the DHCP server or DHCP client is issued, which is achieved by OP field. Chaddr字段用于记录DHCP客户端的硬件地址。 Chaddr field is used to record the hardware address of the DHCP client.

现有的option选项代码范围为0-255,其中0-68已经被标准使用,255做为选项的结束符不使用,其它的非标准使用的选项都可以使用。 Conventional option option code range 0-255, 0-68 wherein the standard has been used, as the terminator 255 option is not used, the use of other non-standard options are available. 即,DHCP中继代理可以将用户信息填充在option选项,用来发送用户信息的Option选项所在代码及格式是DHCP中继代理和DHCP服务器预先约定好的。 That is, the user may be a DHCP relay agent information option option is filled, where the options Option codes used to send and format of the user information is a DHCP relay agent and DHCP server pre-agreed. 用来发送用户信息的Option选项所在代码为选项代码范围为69-254的任一代码,所述格式至少包括所述选项的代码、用户信息的长度和用户信息及各自所在位置。 Option Option where the code used to transmit user information to the range of 69-254 option code of one of the code, said format comprising at least the length of the option codes and user information, user information, and their respective positions.

比如:使用Option200来发送用户认证信息。 For example: to send user authentication information using Option200.

如果用户信息是用户认证通过的话,使用以下格式: If the user information is user authentication, then use the following format:

如果用户信息是用户认证失败,则使用以下格式: If the user information is user authentication fails, use the following format:

再比如,使用option82来发送用户信息。 As another example, user information is transmitted using option82.

Option82可以有多个sub-option组成。 Option82 can have multiple sub-option components. 使用以下格式添加用户信息:Code(代码)、Len(用户信息的字符长度)、Agent Information Field(用户信息) Adding user information using the following format: Code (Code), Len (character length of the user information), Agent Information Field (user information)

每一个用户信息的信息字段i都由以下格式组成:SubOpt/Length/Value即:SubOpt Len Sub-option Value A user information field of each message consists of the following formats that i: SubOpt / Length / Value namely: SubOpt Len Sub-option Value

Sub-option选项是DHCP中继代理在截获的客户端发往服务器的DHCP请求报文的Option选项中增加子选项信息。 Sub-option option is a DHCP relay agent intercepts the client to the server's DHCP request packet Option options to increase sub-option information.

例如在Option82选项中增加子选项254,带上该用户的身份信息为用户类别;即将用户类别附到Option82选项中的子选项中。 For example, increasing the sub-option in the option Option82 254, to bring the user's identity information for the user category; will be attached to the user class sub-option in the option Option82.

如:SubOpt Len Sub-option Value Such as: SubOpt Len Sub-option Value

三、步骤S130的具体实现DHCP服务器获得所述用户信息,从与所述用户信息具有映射关系的IP地址类中找到一可用的IP地址分配至所述DHCP客户端。 Third, the specific implementation of step S130 DHCP server obtains the user information, to find the IP address information of the class has a mapping relation with the user in a usable IP address assigned to the DHCP client.

比如,DHCP服务器获得的用户信息是用户认证通过信息,则DHCP服务器从对应于用户认证通过的IP地址类中找到闲置的IP地址分配至该DHCP客户端。 For example, the user information is obtained from the DHCP server through user authentication information, to find the IP address of the DHCP server IP address from the idle class corresponding to the authenticated user's assigned to the DHCP client.

若与所述用户信息具有映射关系的IP地址类中没有找到闲置IP地址,则确定该IP地址类中是否有租约已到期的IP地址,若有,则将租约已到期的IP地址分配至所述DHCP客户端。 If the IP address information of the user class has a mapping relation is not found in the idle IP address, it is determined whether the IP address lease has expired IP address of the class, if any, will lease has expired IP address allocation to the DHCP client.

并且,还可以预先设置IP地址池中的每一IP地址类的优先级;若与所述用户信息具有映射关系的IP地址类中没有找到闲置IP地址,则DHCP服务器从比该IP地址类的优先级低的IP地址类中找到一IP地址分配至所述DHCP客户端等等。 And may also be set in advance for each priority class of the IP address of the IP address pool; IP address information, if the class has a mapping relation with the user does not find an idle IP address, the DHCP server IP address from the ratio of class lower priority class to find the IP address assigned to an IP address of the DHCP client and the like. 比如,用户信息为高级用户和普通用户,当DHCP服务器基于此用户信息对IP地址池进行分类:与高级用户具有映射关系的第一IP地址类和与普通用户具有映射关系的第二IP地址类,并设定第一IP地址类的优先级高于第二IP地址类的优先级。 For example, the user information for advanced users and general users, when the DHCP server based on the user information on the IP address pool classification: first class and the IP address of a user with advanced mapping between IP addresses and the second class has a mapping relationship with the ordinary user , and set the priority of the first priority class is higher than the IP address of the second IP address class. 当某一用户信息为高级用户的DHCP客户端提出DHCP请求时,DHCP服务器在第一IP地址类中未找到闲置IP地址,则DHCP服务器可以查找第二IP地址类,若第二IP地址类中存在闲置IP地址,则DHCP服务器可将其中一闲置IP地址分配至DHCP客户端。 When a subscriber information for advanced users of the DHCP client makes a DHCP request, DHCP server is not idle IP address of the IP address found in the first category, the DHCP server can look up the IP address of the second category, if the second IP address class the presence of the idle IP address, the DHCP server may assign one idle IP address to a DHCP client.

以上公开的仅为本发明的几个具体实施例,但本发明并非局限于此,任何本领域的技术人员能思之的变化都应落在本发明的保护范围内。 While the invention has several specific embodiments disclosed above, but the present invention is not limited thereto, anyone skilled in the art can think of variations shall fall within the scope of the present invention.

Claims (12)

  1. 1.一种DHCP的地址分配方法,其特征在于,包括:(1)将IP地址池中的IP地址进行分类,建立每一IP地址类和一类DHCP客户端的用户信息的映射关系;(2)在DHCP请求报文上绑定该DHCP客户端的用户信息后发送至DHCP服务器;(3)DHCP服务器获得所述用户信息,从与所述用户信息具有映射关系的IP地址类中找到一可用的IP地址分配至所述DHCP客户端。 1. A method of DHCP address assignment, the method comprising: (1) the IP addresses of the pool classification, mapping relationship between the IP address of each category and a Class DHCP client user information; (2 ) after the user transmits the DHCP request message to the DHCP client on binding packets to a DHCP server; (. 3) DHCP server obtains the user information, to find the IP address information of the class has a mapping relation with the user in a usable IP address assignment to the DHCP client.
  2. 2.如权利要求1所述的DHCP的地址分配方法,其特征在于,步骤(2)中在所述DHCP请求报文上绑定该DHCP客户端对应的用户信息包括:DHCP中继代理截获DHCP客户端发送的DHCP请求报文,并在DHCP请求报文中设置该DHCP客户端的用户信息。 2. The address allocation method according to claim 1 DHCP, wherein the step (2) binding in the DHCP request of the DHCP client user information corresponding to the packet includes: DHCP relay agent intercepts DHCP DHCP client sends a request packet, the request packet and the user setting information of the DHCP client at the DHCP.
  3. 3.如权利要求2所述的DHCP的地址分配方法,其特征在于,DHCP中继代理是通过以下方式获得用户信息:DHCP中继代理从截获的DHCP请求报文中先获得关联信息,所述关联信息是用以找到DHCP客户端用户信息的标识,然后,直接访问预先保存用户信息的远端服务器或者利用第三方服务器访问所述远端服务器,通过所述关联信息获得对应的DHCP客户端的用户信息。 3. The address allocation method according to claim 2 DHCP, wherein, the DHCP relay agent is to obtain user information in the following ways: DHCP relay agent packet to request associated information obtained from the intercepted DHCP, the DHCP client-related information is used to find the user information identifying the DHCP client, and then directly access the user information stored in advance in the remote server or by a third party server to access the remote server, the association information obtained by the corresponding user end information.
  4. 4.如权利要求2所述的DHCP的地址分配方法,其特征在于,DHCP中继代理是通过以下方式获得用户信息:在DHCP中继代理上预先设置一存储单元,用以存储关联信息与用户信息的对应关系,所述关联信息是用以找到DHCP客户端对应的用户信息的标识:当DHCP中继代理截获DHCP请求报文时,先获得关联信息,根据所述关联信息从所述存储单元中找到对应的用户信息。 4. The address allocation method according to claim 2 DHCP, characterized in that, the agent is a DHCP relay user information is obtained by the following ways: a storage unit provided in advance on the DHCP relay agent, to store information associated with the user correspondence information, the association information is used for identifying the user to find the information corresponding to the DHCP client: when the DHCP relay agent intercepts DHCP request packet, to obtain related information, according to the association information from the storage unit find the corresponding user information.
  5. 5.如权利要求2所述的DHCP的地址分配方法,其特征在于,DHCP中继代理是将用户信息填充在DHCP封包的Option选项,用来发送用户信息的Option选项所在代码及格式是DHCP中继代理和DHCP服务器预先约定好的。 5. The address allocation method according to claim 2 DHCP, wherein, the DHCP relay agent is filled in a user information packet Option DHCP options, Option options for transmitting location code, and format of the user information is a DHCP following the proxy DHCP server and pre-agreed.
  6. 6.如权利要求5所述的DHCP的地址分配方法,其特征在于,用来发送用户信息的Option选项所在代码为选项代码范围为69-254的任一代码,所述格式用以确定所述选项的代码、用户信息的长度和用户信息所在位置关系。 6. The method according to address assignment of DHCP claim, wherein, where the code used to transmit the user options Option Information option code for any of a range of 69-254 code to determine the format of the code option, the length and location of the user information between the user information.
  7. 7.如权利要求1所述的DHCP的地址分配方法,其特征在于,步骤(2)还包括:DHCP客户端将本端的用户信息直接添加在DHCP请求报文中,发送至DHCP服务器。 7. The address allocation method according to claim 1 DHCP, wherein the step (2) further comprising: local DHCP client user information directly added to the DHCP request message sent to the DHCP server.
  8. 8.如权利要求1所述的DHCP的地址分配方法,其特征在于,步骤(3)还包括:若与所述用户信息具有映射关系的IP地址类中没有找到闲置IP地址,则确定该IP地址类中是否有租约已到期的IP地址,若有,则将租约已到期的IP地址分配至所述DHCP客户端。 8. The address allocation method according to claim 1 DHCP, wherein, in step (3) further comprising: if the IP address of the user information in the class has a mapping relation is not idle IP address is found, it is determined that the IP whether the IP address lease has expired address class, if any, will lease expired IP address assignment to the DHCP client.
  9. 9.如权利要求1所述的DHCP的地址分配方法,其特征在于,步骤(1)还包括:设置IP地址池中的每一IP地址类的优先级;步骤(3)还包括:若与所述用户信息具有映射关系的IP地址类中没有找到闲置IP地址,则DHCP服务器从比该IP地址类的优先级低的IP地址类中找到一IP地址分配至所述DHCP客户端。 9. The address allocation method according to claim 1 DHCP, wherein the step (1) further comprising: a priority setting IP address pool of IP addresses for each class; in step (3) further comprises: if the IP address information of the user class has a mapping relation is not found in the idle IP address, the DHCP server assigns an IP address found from the ratio of the low priority class of the IP address of the IP address class to the DHCP client.
  10. 10.一种DHCP的地址分配系统,包括DHCP服务器、DHCP中继代理和DHCP客户端,所述DHCP中继代理用于建立DHCP服务器和DHCP客户端的连接,其特征在于,所述DHCP服务器至少包括分类存储单元和IP地址分配单元,所述分类存储单元,用于将IP地址池中的IP地址进行分类,并保存每一IP地址类与一类用户信息的映射关系,所述IP地址分配单元,用于从接收的DHCP请求报文中获得用户信息,并从与所述用户信息具有映射关系的IP地址类中找到一可用IP地址分配至对应的DHCP客户端;所述DHCP中继代理至少包括用户信息绑定单元,用于截获DHCP客户端发送的DHCP请求报文,并在DHCP请求报文中绑定该DHCP客户端的用户信息后发送至DHCP服务器。 A DHCP address assignment system comprising a DHCP server, DHCP client and DHCP relay agent, the DHCP relay agent for establishing a connection DHCP servers and clients, wherein the DHCP server, comprising at least classification storage unit and IP address assignment unit, the classifying storage means, the IP address for the IP address pool are classified and stored for each IP address mapping between classes with a class of user information, the IP address allocation unit , packets for requesting user information is obtained from the received DHCP, and find an available IP address from the IP address information of the class has a mapping relation with the user assigned to the corresponding DHCP client; the DHCP relay agent at least user information including a binding unit, for intercepting the DHCP client sends a DHCP request packet, the request packet and the binding information of the user after sending the DHCP client to the DHCP server in the DHCP.
  11. 11.如权利要求10所述的一种DHCP的地址分配系统,其特征在于,用户信息包括用户的认证信息、用户的类别以及用户的管理信息。 DHCP address one kind of dispensing system as claimed in claim 10, wherein the user information includes user authentication information, user class and user management information.
  12. 12.如权利要求10所述的一种DHCP的地址分配系统,其特征在于,所述用户信息是填充在DHCP封包的一Option选项中。 DHCP address one kind of dispensing system as claimed in claim 10, wherein said user information is filled in a packet of DHCP options Option.
CN 200510093195 2005-08-19 2005-08-19 DHCP address allocation method CN100527752C (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN1744612A true 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
CN 200510093195 CN100527752C (en) 2005-08-19 2005-08-19 DHCP address allocation method

Country Status (1)

Country Link
CN (1) CN100527752C (en)

Cited By (29)

* 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
CN102255814A (en) * 2011-08-02 2011-11-23 华为技术有限公司 Method, device and system for selecting transfer path
CN101141490B (en) 2007-08-03 2011-11-23 中兴通讯股份有限公司 Network element address obtaining method
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
CN105472048A (en) * 2014-07-14 2016-04-06 华为技术有限公司 Address allocating method, information aggregation method and related equipment

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
CN101098347B (en) 2006-06-28 2011-02-09 华为技术有限公司 Method of assigning IP address for subscriber terminal
CN100405765C (en) 2006-07-11 2008-07-23 杭州华三通信技术有限公司 IP address distributing method and device
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
CN102130788A (en) * 2011-03-14 2011-07-20 华为技术有限公司 Method, device and system for configuring monitoring terminal
CN102130788B (en) 2011-03-14 2013-04-24 华为技术有限公司 Method, device and system for configuring monitoring terminal
CN102694873B (en) * 2011-03-22 2016-02-10 中兴通讯股份有限公司 An address pool allocation system and method
WO2012126243A1 (en) * 2011-03-22 2012-09-27 中兴通讯股份有限公司 Address pool allocation system and method
CN102694873A (en) * 2011-03-22 2012-09-26 中兴通讯股份有限公司 Address pool distribution 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
CN102307247B (en) 2011-08-22 2013-04-03 神州数码网络(北京)有限公司 Dynamic address allocation method for dynamic host configuration protocol (DHCP) and system
CN102307247A (en) * 2011-08-22 2012-01-04 神州数码网络(北京)有限公司 Dynamic address allocation method for dynamic host configuration protocol (DHCP) and system
CN102394948B (en) 2011-11-04 2014-10-29 杭州华三通信技术有限公司 Dhcp address assignment method and dhcp server
CN102394948A (en) * 2011-11-04 2012-03-28 杭州华三通信技术有限公司 DHCP (dynamic host configuration protocol) address distribution method and DHCP server
CN102497378B (en) * 2011-12-15 2015-03-18 杭州华三通信技术有限公司 Method and device for dynamically choosing DHCP server for client terminal
CN102404230A (en) * 2011-12-15 2012-04-04 杭州华三通信技术有限公司 Flow control method and device
US9967254B2 (en) 2011-12-15 2018-05-08 Hewlett Packard Enterprise Development Lp Dynamically selecting a DHCP server for a client terminal
CN102497378A (en) * 2011-12-15 2012-06-13 杭州华三通信技术有限公司 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 深圳市后天网络通信技术有限公司 An analytic method for the virtual domain, apparatus and equipment ip
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 江苏中科羿链通信技术有限公司 The method of classification of types of data streams and servers
CN103369066B (en) * 2013-07-25 2017-02-15 苏州大拿信息技术有限公司 Ip address distribution method
CN103369066A (en) * 2013-07-25 2013-10-23 苏州大拿信息技术有限公司 IP (Internet Protocol) address distributing method
CN103607482A (en) * 2013-11-27 2014-02-26 中国联合网络通信集团有限公司 IP address distribution method and device
CN105472048A (en) * 2014-07-14 2016-04-06 华为技术有限公司 Address allocating method, information aggregation method and related equipment

Also Published As

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

Similar Documents

Publication Publication Date Title
Droms Dynamic host configuration protocol
US5617540A (en) System for binding host name of servers and address of available server in cache within client and for clearing cache prior to client establishes connection
US5878212A (en) System for updating mapping or virtual host names to layer-3 address when multimedia server changes its usage state to busy or not busy
US7505464B2 (en) Method of identifying a home gateway using network traffic sniffing and apparatus employing the same
US6510153B1 (en) Mobile IP communication scheme using dynamic address allocation protocol
US7152099B1 (en) Friend configuration and method for network devices
US6603758B1 (en) System for supporting multiple internet service providers on a single network
US20070180120A1 (en) Automated management of network addresses in a broadband managed access environment
US20070061458A1 (en) Dynamic address assignment for access control on DHCP networks
US7231660B1 (en) Method and system for preventing unauthorized server interference in an internet protocol network
Cheshire et al. Multicast dns
US20040064559A1 (en) Method and apparatus for dynamic assignment of network protocol addresses
US20030145073A1 (en) Domain name management method and system therefor
US20060015513A1 (en) System, network entities and computer programs for configuration management of a dynamic host configuration protocol framework
US6061739A (en) Network address assignment using physical address resolution protocols
US20060056420A1 (en) Communication apparatus selecting a source address
US7174371B2 (en) Dynamic port configuration of network equipment
US20050114492A1 (en) DHCP proxy in a subscriber environment
US6614788B1 (en) Network address management
US7337224B1 (en) Method and apparatus providing policy-based determination of network addresses
US20050105529A1 (en) Network element modifying the DHCP lease timer
US7139818B1 (en) Techniques for dynamic host configuration without direct communications between client and server
US5884024A (en) Secure DHCP server
US20090193103A1 (en) Method of and System for Support of User Devices Roaming Between Routing Realms by a Single Network Server
US20090006585A1 (en) Ip Address Allocation Method

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
CP03