CN101159758B - Classification associated dynamic host machine configuring protocol option distribution method and device - Google Patents
Classification associated dynamic host machine configuring protocol option distribution method and device Download PDFInfo
- Publication number
- CN101159758B CN101159758B CN2007101765458A CN200710176545A CN101159758B CN 101159758 B CN101159758 B CN 101159758B CN 2007101765458 A CN2007101765458 A CN 2007101765458A CN 200710176545 A CN200710176545 A CN 200710176545A CN 101159758 B CN101159758 B CN 101159758B
- Authority
- CN
- China
- Prior art keywords
- address
- dynamic host
- client
- address pool
- item
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- 230000006855 networking Effects 0.000 claims abstract description 6
- 230000005540 biological transmission Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 101100269850 Caenorhabditis elegans mask-1 gene Proteins 0.000 description 1
- 238000002224 dissection Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a class-associated dynamic host configuration protocol option distribution method. The method comprises dividing the sub-net and the address pool range according to the network resource, the networking manner and the network structure; configuring specific terms of a dynamic host configuration protocol server, associating each term with the address pool, and storing the configuration and association relationship between the address pool and the specific terminal in the database of the dynamic host configuration protocol; selecting one non-distributed address in the address pool and a specific term requested by a client according to the sub-net and specific term information in the request transmitted by the client, and transmitting to the client; and receiving the address by the client, and affirming the distribution address and the option configuration parameter with the dynamic host configuration protocol server. The invention also discloses a corresponding device, with has a pre-configured module and a distribution module. The invention can ensure the correct configuration of the client, improve the distribution efficiency of the DHCP server, and utilize the network resources more reasonably.
Description
Technical field
The present invention relates to DHCP (DHCP, Dynamic Host ConfigurationProtocol) field, be meant a kind of classification associated DHCP option distribution method and device especially.
Background technology
DHCP is a kind of transmission control/Internet protocol (TCP/IP, Transmission Control Protocol/Internet Protocol) standard of simplifying the host IP address configuration management.This standard provides a kind of effective method for the use of Dynamic Host Configuration Protocol server: i.e. the dynamic assignment of client computer IP address and the relevant configuration information of enabling DHCP client computer on the network in the supervising the network.In the DHCP system, parameter options all is associated with address pool, has selected just to distribute the corresponding option parameter after certain address pool.But, the parameter of address pool association can not change, and the parameter of various equipment types is mixed the bind address pond, causes address pool too in disorder, like this, some dissimilar equipment are assigned to and own unallied parameter, even the parameter that needs omitted, in the time of the client-requested address, various parameters in this address pool are distributed to client together in company with institute's addresses distributed, and the parameter that its request is arranged that client obtains also has unnecessary parameter, causes waste of network resources; Simultaneously, each client that is in the consolidated network may be asked different service options, if with the only related service option of each address pool, so, in consolidated network, divide a plurality of subnets according to the service option needs, it is very complicated that network configuration becomes.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of succinct, efficient, related DHCP option distribution method of accurate classification.
Another purpose of the present invention is to provide a kind of classification associated efficiently DHCP option distributor.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of classification associated dynamic host machine configuring protocol option distribution method, this method may further comprise the steps:
A, according to Internet resources, networking mode and network configuration, divide subnet, address pool range;
The particular item of B, configuration Dynamic Host Configuration Protocol server, according to the distribution situation of user in each subnet that each particular item is related with address pool, and in the DHCP database, preserve the configuration and the incidence relation of address pool and particular item; Described particular item is set to the information on services that Virtual network operator provides;
C, send subnet, particular item information in the request, select a unallocated address in the corresponding address pond according to client, and the particular item of client-requested, send to client;
D, client receive and confirm to distribute address and particular item configuration with Dynamic Host Configuration Protocol server.
The service option that described operator provides comprises in Web TV, video request program and the video conference one or more.
Also comprise the basic parameter in the configuration Dynamic Host Configuration Protocol server among the step B, each basic parameter option is formed an elementary item, elementary item with the address pond association of described address among the step C together sends client, and client receives and confirms elementary item with Dynamic Host Configuration Protocol server among the step D.
Described basic parameter comprises: one or more in address realm, address rental period, mask address, excluded address, gateway address, DNS domain name addresses, tftp server, sip server and the www server.
The related at least address pool of each elementary item; The related at the most elementary item of each address pool; The related at least address pool of each particular item.
A kind of classification associated dynamic host machine configuring protocol option assigned unit, this device is arranged in Dynamic Host Configuration Protocol server, comprising: pre-configured module and distribution module:
Pre-configured module is used to dispose the particular item of Dynamic Host Configuration Protocol server, according to the distribution situation of user in each subnet, with each particular item related address pool respectively, and will all dispose and incidence relation stores in the DHCP database; Described particular item is set to the information on services that Virtual network operator provides;
Distribution module according to the subnet in the client-requested, specific service option information, is sought corresponding address pool in the DHCP database, therefrom choose a unappropriated address, sends to client.
Described pre-configured module also is used for disposing the basic parameter of Dynamic Host Configuration Protocol server, and each basic parameter option is formed an elementary item, and described pre-configured module also is used for the configuration to elementary item, and elementary item is related with address pool.
The present invention classifies parameter options according to elementary item, address pool, particular item etc., related with address pool respectively, when making the client address acquisition, can obtain the option information of accurate and address correlation fast, guarantee that client can correctly dispose, optimize network configuration, improve the allocative efficiency of Dynamic Host Configuration Protocol server, more the reasonable use Internet resources.
Description of drawings
Fig. 1 is the structural representation of application system of the present invention;
Fig. 2 is the method for the invention flow chart;
Fig. 3 is each option incidence relation schematic diagram of the present invention;
Fig. 4 is the schematic diagram of apparatus of the present invention.
Embodiment
Main thought of the present invention is: when Dynamic Host Configuration Protocol server is pre-configured, the service that operator provides is related with address pool respectively as particular item, the elementary item that client configuration needs is also related with address pool, when client-requested, according to user's requested service, Dynamic Host Configuration Protocol server can be fast, accurately respond, and improves network efficiency, avoids the transmission of nuisance parameter.
As shown in Figure 1, the present invention is based on the DHCP system, this system comprises DHCP configuration platform, Dynamic Host Configuration Protocol server, DHCP database, DHCP relay and plurality of client end.Carry out pre-configured by DHCP configuration platform to Dynamic Host Configuration Protocol server, each option parameter of DHCP is related with address pool, and deposit configuration data in the DHCP database, when each client through DHCP relay when Dynamic Host Configuration Protocol server sends request, DHCP returns the configuration information of request to client.Concrete steps are as shown in Figure 2:
Step 1:, divide the address pool range of subnet, Dynamic Host Configuration Protocol server according to the structure of Internet resources, networking mode and network.
Structure according to Internet resources, networking mode and network, need to determine the subnet number of dividing, the scope of address pool, after determining the subnet number, the quantity of address pool is generally equal to or greater than the subnet number, in the network as shown in Figure 1, subnet has 3, be respectively Dynamic Host Configuration Protocol server place subnet, DHCP relay 1 place subnet and DHCP relay 2 place subnets, address pool at least also has 3 so, and address pool is divided into 3, i.e. address pool 1, address pool 2 and address pool 3.The scope of each address pool is as shown in table 1:
Address pool | Scope | Subnet mask |
1 | 10.40.35.1-10.40.35.100 | 255.255.255.0 |
2 | 10.40.30.1-10.40.30.100 | 255.255.255.0 |
3 | 10.40.25.1-10.40.25.100 | 255.255.255.0 |
Table 1
Wherein, the IP address of Dynamic Host Configuration Protocol server is 10.40.35.254, corresponding address pond 1; The IP address of DHCP relay 1 is 10.40.30.200, corresponding address pond 2; The IP address of DHCP relay 2 is 10.40.25.120, corresponding address pond 3.
Step 2: the elementary item of configuration DHCP server, with the related address pool of each elementary item.
The parameter options of general character in the dynamically allocate address process is extracted as elementary item, as parameters such as address realm, address rental period, mask address, excluded address, gateway address, DNS domain name addresses, tftp server, sip server, www servers, these parameters are formed one group, be called elementary item, according to Internet resources, networking mode and network configuration, be divided into some elementary items, these parameter values are incomplete same in each elementary item, form the elementary item that satisfies different configuration requirements: elementary item 1, elementary item 2, elementary item 3.
As shown in Figure 3, the related at least address pool of each elementary item, but an address pool can only related elementary item.
Step 3: the particular item of configuration Dynamic Host Configuration Protocol server, with the related address pool of each particular item, and with whole configuration store in the DHCP database.
Service entrys such as the Web TV that provides according to operator in the network, video request program, video conference, terminal provisioning merchant type, terminal applies type, various information on services are set to particular item, according to the distribution situation of user in each subnet, that particular item is related with address pool.As shown in Figure 3, each address pool can related a plurality of particular item, and each particular item also can be related with a plurality of address pool, guarantee when a certain user in the subnet asks a certain special services, can satisfy this user's requirement, the particular item of each address pool association is as shown in table 2:
Table 2
The particular item configuration is finished, and the result to 3 configurations stores in the DHCP database with step 1.
Step 4: according to subnet, the particular item information in the client transmission request, select a unallocated address in the corresponding address pond,, send client together with the elementary item of this address pool association, the particular item of client-requested.
Client sends the discover message to Dynamic Host Configuration Protocol server, and Dynamic Host Configuration Protocol server carries out dissection process to this message, obtains the information of the special services of the place subnet of client and request.If client carries DHCP relay information, illustrate this client with Dynamic Host Configuration Protocol server not in same subnet, need to seek and the related address pool of this DHCP relay place subnet; Otherwise, directly use and the related address pool of Dynamic Host Configuration Protocol server place subnet.And then, according to the service-specific information in the client-requested, select an address pool, therefrom select a unappropriated address, together with the elementary item of this address pool association, the particular item of client-requested, form the offer bag that the address is provided, if existence conflicts before in the numbering of particular item and the message, then replace the information that existed in the past, send to the client of request with this option information.When selecting address pool, if has all joined the address pool address that satisfies condition, just select the next address pool that satisfies condition, if there are a plurality of address pool that satisfy condition simultaneously, then select one at random.
In the previous example, with client 1 is example: client 1 is in the same subnet with DHCP relay 1, then when client 1 request, Dynamic Host Configuration Protocol server is according to the IP address of its DHCP relay that carries 1, judge that client 1 and DHCP relay 1 are in the same subnet, then select the address pool 2 of DHCP relay 1 association, and then the special services of viewing client-side 1 request, as client 1 request Web TV service, supplier is A2, see again and seek Web TV supplier A2 in the particular item of address pool 2 associations, if can find, then satisfy the request of client 1, then from address pool 2, select a unappropriated address 10.40.30.36, together with elementary item, particular item is formed the offer bag together, send client 1, for other particular item of address pool 2 associations, as Web TV supplier A3, parameters such as video conference supplier C1 do not send to client 1, thereby avoid client 1 to accept self unwanted nuisance parameter.The request process of the request process of client 2, client 3 and client 1 is similar.
Step 5: the address that is provided is provided client, confirms to distribute address and option configuration parameter with Dynamic Host Configuration Protocol server.
After client is received the offer bag, send the request bag to Dynamic Host Configuration Protocol server, represent to receive Dynamic Host Configuration Protocol server institute addresses distributed, DHCP responds the ACK bag, and elementary item, particular item that client provides according to the offer bag dispose, and finish the process of an Address requests.
Based on above method, the present invention also provides corresponding device thereof, and as shown in Figure 4, this device is arranged in Dynamic Host Configuration Protocol server, comprising: pre-configured module and distribution module:
Pre-configured module is used for elementary item, the particular item of configuration DHCP server, with each elementary item, particular item related address pool respectively, and will all dispose and incidence relation stores in the DHCP database;
Distribution module according to the subnet in the client-requested, specific service option information, is sought corresponding address pool in the DHCP database, therefrom choose a unappropriated address, sends to client.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.
Claims (7)
1. a classification associated dynamic host machine configuring protocol option distribution method is characterized in that, this method may further comprise the steps:
A, according to Internet resources, networking mode and network configuration, divide subnet, address pool range;
The particular item of B, configuration Dynamic Host Configuration Protocol server, according to the distribution situation of user in each subnet that each particular item is related with address pool, and in the DHCP database, preserve the configuration and the incidence relation of address pool and particular item; Described particular item is set to the information on services that Virtual network operator provides;
C, send subnet, particular item information in the request, select a unallocated address in the corresponding address pond according to client, and the particular item of client-requested, send to client;
D, client receive and confirm to distribute address and particular item configuration with Dynamic Host Configuration Protocol server.
2. classification associated dynamic host machine configuring protocol option distribution method according to claim 1 is characterized in that, the service option that described operator provides comprises in Web TV, video request program and the video conference one or more.
3. classification associated dynamic host machine configuring protocol option distribution method according to claim 1, it is characterized in that, also comprise the basic parameter in the configuration Dynamic Host Configuration Protocol server among the step B, each basic parameter option is formed an elementary item, elementary item with the address pond association of described address among the step C together sends client, and client receives and confirms elementary item with Dynamic Host Configuration Protocol server among the step D.
4. classification associated dynamic host machine configuring protocol option distribution method according to claim 3, it is characterized in that, described basic parameter comprises: one or more in address realm, address rental period, mask address, excluded address, gateway address, DNS domain name addresses, tftp server, sip server and the www server.
5. according to claim 3 or 4 arbitrary described classification associated dynamic host machine configuring protocol option distribution methods, it is characterized in that:
The related at least address pool of each elementary item; The related at the most elementary item of each address pool; The related at least address pool of each particular item.
6. classification associated dynamic host machine configuring protocol option assigned unit is characterized in that this device is arranged in Dynamic Host Configuration Protocol server, comprising: pre-configured module and distribution module:
Pre-configured module is used to dispose the particular item of Dynamic Host Configuration Protocol server, according to the distribution situation of user in each subnet, with each particular item related address pool respectively, and will all dispose and incidence relation stores in the DHCP database; Described particular item is set to the information on services that Virtual network operator provides;
Distribution module according to the subnet in the client-requested, specific service option information, is sought corresponding address pool in the DHCP database, therefrom choose a unappropriated address, sends to client.
7. classification associated dynamic host machine configuring protocol option assigned unit according to claim 6, it is characterized in that, described pre-configured module also is used for disposing the basic parameter of Dynamic Host Configuration Protocol server, each basic parameter option is formed an elementary item, described pre-configured module also is used for the configuration to elementary item, and elementary item is related with address pool.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101765458A CN101159758B (en) | 2007-10-30 | 2007-10-30 | Classification associated dynamic host machine configuring protocol option distribution method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101765458A CN101159758B (en) | 2007-10-30 | 2007-10-30 | Classification associated dynamic host machine configuring protocol option distribution method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101159758A CN101159758A (en) | 2008-04-09 |
CN101159758B true CN101159758B (en) | 2010-06-23 |
Family
ID=39307676
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2007101765458A Expired - Fee Related CN101159758B (en) | 2007-10-30 | 2007-10-30 | Classification associated dynamic host machine configuring protocol option distribution method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101159758B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101534329B (en) * | 2009-04-16 | 2012-05-02 | 华为技术有限公司 | IP address allocation method and system |
CN101800783A (en) * | 2010-02-08 | 2010-08-11 | 深圳市同洲电子股份有限公司 | Method, device, and system for allocating IP addresses |
CN101969477A (en) * | 2010-10-12 | 2011-02-09 | 深圳市共进电子有限公司 | Interactive system and method for simultaneously acquiring IP addresses and information provided by manufacturers |
CN102694873B (en) * | 2011-03-22 | 2016-02-10 | 中兴通讯股份有限公司 | A kind of address pool distribution system and method |
CN102256362B (en) * | 2011-08-22 | 2014-01-29 | 东南大学 | Link allocation method for multi-channel wireless network |
CN102404419A (en) * | 2011-11-23 | 2012-04-04 | 华为技术有限公司 | IP address allocation method and router |
CN105472048B (en) * | 2014-07-14 | 2019-05-10 | 华为技术有限公司 | A kind of address distribution method, information aggregation method and relevant device |
CN105007233B (en) * | 2015-07-13 | 2018-02-27 | 互联网域名系统北京市工程研究中心有限公司 | A kind of method that distribution address is loaded based on Dynamic Host Configuration Protocol server cluster |
CN105323120A (en) * | 2015-11-26 | 2016-02-10 | 上海斐讯数据通信技术有限公司 | Test method, test device and test terminal for DHCP service side |
CN106357621A (en) * | 2016-08-29 | 2017-01-25 | 桂林浩新科技服务有限公司 | User access control method and system |
CN108156275B (en) * | 2017-12-20 | 2021-03-09 | 北京金山云网络技术有限公司 | IP address allocation method, device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6212563B1 (en) * | 1998-10-01 | 2001-04-03 | 3Com Corporation | Method and system for setting and managing externally provided internet protocol addresses using the dynamic host configuration protocol |
CN1578243A (en) * | 2003-07-02 | 2005-02-09 | 西门子公司 | Method and arrangement for configuration of a device in a data network |
EP1575245A1 (en) * | 2004-03-12 | 2005-09-14 | AT&T Corp. | Method and apparatus to manage network addresses for private voice communications |
CN1744612A (en) * | 2005-08-19 | 2006-03-08 | 杭州华为三康技术有限公司 | DHCP address allocation method |
CN1949784A (en) * | 2005-10-12 | 2007-04-18 | 华为技术有限公司 | IP address requesting method for DHCP client by DHCP repeater |
-
2007
- 2007-10-30 CN CN2007101765458A patent/CN101159758B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6212563B1 (en) * | 1998-10-01 | 2001-04-03 | 3Com Corporation | Method and system for setting and managing externally provided internet protocol addresses using the dynamic host configuration protocol |
CN1578243A (en) * | 2003-07-02 | 2005-02-09 | 西门子公司 | Method and arrangement for configuration of a device in a data network |
EP1575245A1 (en) * | 2004-03-12 | 2005-09-14 | AT&T Corp. | Method and apparatus to manage network addresses for private voice communications |
CN1744612A (en) * | 2005-08-19 | 2006-03-08 | 杭州华为三康技术有限公司 | DHCP address allocation method |
CN1949784A (en) * | 2005-10-12 | 2007-04-18 | 华为技术有限公司 | IP address requesting method for DHCP client by DHCP repeater |
Also Published As
Publication number | Publication date |
---|---|
CN101159758A (en) | 2008-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101159758B (en) | Classification associated dynamic host machine configuring protocol option distribution method and device | |
CN100527752C (en) | DHCP address allocation method | |
CN100502413C (en) | IP address requesting method for DHCP client by DHCP repeater | |
CN101951417B (en) | Method, system and trunk equipment for assigning multiple server addresses | |
CN103281203B (en) | A kind of dhcp address allocation management method based on ecos systems | |
CN102710811B (en) | Realize method and the switch of dhcp address safety distribution | |
CN102075591A (en) | Method, device and system for acquiring media access control address | |
CN102387222B (en) | Address distribution method, apparatus and system thereof | |
CN102148879A (en) | Port mapping method and device and communication system | |
CN101188514A (en) | Method, device and system for automatically discovering network element device | |
CN101626406B (en) | DHCP address pool configuration method, DHCP address assignment method, DHCP address assignment system and DHCP server | |
CN103888551A (en) | Internet protocol address obtaining method in network, relay device and system | |
CN102957754A (en) | Operating-level network address conversion method, operating-level network address conversion equipment and network system | |
CN101184099B (en) | Second IP address assignment method based on dynamic host machine configuration protocol access authentication | |
CN102394948B (en) | DHCP (dynamic host configuration protocol) address distribution method and DHCP server | |
CN101227356A (en) | Equipment, system and method for network access based on dynamic state host computer collocation protocol | |
CN103561122B (en) | IPv6 address collocation method, IPv6 client and server | |
CN102780790A (en) | Method and system for dynamically allocating IP (Internet Protocol) address | |
CN102891901A (en) | Dynamic domain name resolution method, server and domain name service system | |
CN102594839B (en) | Method for distinguishing pseudo dynamic host configuration protocol (DHCP) servers and switchboards | |
CN100556047C (en) | Realize the method for dynamic domain name update in a kind of IPv6 network | |
CN106878481B (en) | Method, device and system for acquiring Internet Protocol (IP) address | |
CN101997931A (en) | Position information acquiring method and equipment | |
CN102025797A (en) | Address prefix processing method, device, system and network equipment | |
CN105338131A (en) | Testing method and system for address pool capacity of DHCP server |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20100623 |