CN101600001A - Acquisition methods and device based on the configuration information of dynamic host allocation protocol - Google Patents

Acquisition methods and device based on the configuration information of dynamic host allocation protocol Download PDF

Info

Publication number
CN101600001A
CN101600001A CN200910151507.6A CN200910151507A CN101600001A CN 101600001 A CN101600001 A CN 101600001A CN 200910151507 A CN200910151507 A CN 200910151507A CN 101600001 A CN101600001 A CN 101600001A
Authority
CN
China
Prior art keywords
address
dhcp
dynamic host
protocol server
server end
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
CN200910151507.6A
Other languages
Chinese (zh)
Other versions
CN101600001B (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.)
Li Yanrong
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN200910151507.6A priority Critical patent/CN101600001B/en
Publication of CN101600001A publication Critical patent/CN101600001A/en
Priority to PCT/CN2010/073799 priority patent/WO2011000258A1/en
Application granted granted Critical
Publication of CN101600001B publication Critical patent/CN101600001B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5092Address allocation by self-assignment, e.g. picking addresses at random and testing if they are already in use
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a kind of acquisition methods and device of the configuration information based on dynamic host allocation protocol, this method comprises that dhcp client obtains the IP address of itself, and judge whether the IP address is available, if judged result is for being, then dhcp client sends DHCP notice message to the Dynamic Host Configuration Protocol server end, wherein, DHCP notice message is used to notify Dynamic Host Configuration Protocol server end IP the address, and request Dynamic Host Configuration Protocol server end reports other configuration parameters except that the IP address; Dhcp client receives the DHCP confirmation message that the Dynamic Host Configuration Protocol server end returns, and obtains other configuration parameters from the DHCP confirmation message; Dhcp client obtains whole configuration parameters, and wherein, all configuration parameter comprises: IP address and other configuration parameters.The present invention can distribute the configuration data of appointment for the dhcp client of appointment and not limited by client mac address.

Description

Acquisition methods and device based on the configuration information of dynamic host allocation protocol
Technical field
The present invention relates to the communications field, in particular to a kind of acquisition methods and device of the configuration information based on dynamic host allocation protocol.
Background technology
Dynamic host allocation protocol (Dynamic Host Configuration Protocol, abbreviate DHCP as) be transmission control protocol/Internet protocol (Transmission ControlProtocol/Internet Protocol, abbreviate TCP/IP as) a kind of in the protocol family, the RFC standard is 2131, mainly is to be used for distributing dynamic IP address to net computer.These assigned IP address all are the address set of being made up of a plurality of addresses that Dynamic Host Configuration Protocol server keeps in advance, and they generally are one section continuous addresses.Present Dynamic Host Configuration Protocol server has three kinds of address distribution, comprising: manual assignment, distribute and dynamic assignment automatically.In above-mentioned three kinds of assigning process, it all is to carry out according to the message negotiation process that is illustrated in fig. 1 shown below that dhcp client obtains the IP address.
Fig. 1 is the schematic diagram according to the DHCP message negotiation process of correlation technique, in the existing DHCP message negotiation process as shown in Figure 1, adopt DHCPDISCOVER (DHCP finds message), DHCPOFFER (DHCP response message), DHCPREQUEST (DHCP request message) and DHCPACK (DHCP confirmation message) four steps message interaction to finish the negotiations process of DHCP.Fig. 2 is the DHCP message format according to correlation technique, and wherein, the DHCP message format defines as shown in Figure 2.
Is example with Windows 2000Server commonly used as Dynamic Host Configuration Protocol server, mainly contains the relational language and the notion of following three Dynamic Host Configuration Protocol server ends configuration:
1) action scope (Scope): Windows 2000 with the service unit of Dynamic Host Configuration Protocol server be subnet.To each subnet of serving, define an action scope and (comprise subnet net IP address, mask, configurations such as assignable IP address pool, gateway, route, DNS), when the dhcp client in the serviced subnet sends DHCPDISCOVER when request, in the IP address pool of the action scope of correspondence, select available IP address to respond.
2) user class (user class): can define user class and come specific dhcp client or client sets definition distributed to their specific configuration parameter (such as gateway, route, DNS etc.).The option of Windows 2000DHCP SERVER user class correspondence is option 77, applicating example: in the DHCPDISCOVER request message that dhcp client sends, carry option 77, wherein insert the self-defined content that can identify this client, as " client1 "; Also needing to dispose accordingly on the Dynamic Host Configuration Protocol server of this client service, the user class of " client1 " of a correspondence of definition in the action scope under this client carries out the configurations such as gateway, route, DNS of appointment to " client1 " user class.Therefore, the dhcp client that client1 identified gets access to configuration datas such as gateway into own appointment, route, DNS from server.
3) keep: can in Windows 2000DHCP SERVER, use media interviews control (Medium Access Control, abbreviate MAC as) the next unique dhcp client of sign in address, and distribute to this client specific I P address, promptly usually said MAC Address is bound.
In existing standard negotiation flow process, be reached for the purpose that the client of appointment is distributed the configuration parameter of appointment, general way is to adopt the MAC Address of dhcp client to be used as differentiation between different clients, utilizes the method for MAC Address binding to realize.But, under wireless side equipment in mobile radio communication (such as base station equipment etc.) this specific application scenarios of MANET, each BTS network element of base station system is as dhcp client, when the configuration of obtaining appointment to Dynamic Host Configuration Protocol server comes networking, following two special demands arranged:
1) in the base station system of mobile radio communication, ubiquity the situation of main preparation system, and need promptly distribute the IP address of identical appointment to different MAC Address to the identical IP address of active and standby two system assignment when configuration.
2) each BTS network element of base station system not only needs to get access to its own IP address, just can finish the networking layoutprocedure after also needing simultaneously to get access to the IP address information of other network elements (BSC network element, background system OMC etc.).
Is example with Windows 2000Server commonly used as Dynamic Host Configuration Protocol server, and for the special applications scene in the above-described mobile radio communication, the DHCP of existing standard consults to have following limitation:
1) different MAC Address can't with same IP address binding, can not satisfy the demand of different MAC Address being distributed the IP address of identical appointment.
2) adopt the method for MAC Address binding can only distribute the IP address of appointment for the dhcp client of appointment, but, then can't satisfy other configuration informations except that self IP address that each dhcp client distributed appointment for needed other configuration informations of dhcp client.For example, when certain dhcp client A belongs to action scope A (i.e. subnet) on the server A that service is provided for it, on server A with behind the MAC Address of customer end A and certain the IP address binding among the action scope A, after the DHCP of standard consults to finish, server A has been distributed the IP address of appointment to this customer end A, but other configuration informations such as gateway, route etc. then are to be that unit distributes with the action scope.Be under this kind mode, other configuration informations that dhcp client obtained that belong in the same subnet are identical, non-appointment.
In addition,, also can adopt the different user class of (i.e. action scope) definition in a subnet, come to be each base station assigns specified message for Windows 2000Server; Yet the information of carrying in the yiaddr field in the DHCPOFFER message is automatic IP address allocated from the address pool of Dynamic Host Configuration Protocol server in this case, the IP address of promptly distributing to dhcp client is non-appointment, therefore, also can't satisfy the demand of distributing the configuration data of appointment for the dhcp client of appointment.
Can not satisfy the demand of different MAC Address being distributed the IP address of identical appointment at correlation technique, adopt the method for MAC Address binding can't satisfy other configuration informations except that self IP address that each dhcp client distributed appointment, and can't satisfy the problem of distributing the configuration data of appointment for the dhcp client of appointment, effective solution is not proposed at present as yet.
Summary of the invention
At not satisfying the IP address of different MAC Address being distributed identical appointment in the correlation technique, adopt the method for MAC Address binding can't satisfy other configuration informations except that self IP address that each dhcp client distributed appointment, and the dhcp client that can't satisfy for appointment distributes the problem of the configuration data of appointment to propose the present invention, for this reason, main purpose of the present invention is to provide a kind of scheme of obtaining of the configuration information based on DHCP, one of to address the above problem at least.
To achieve these goals, according to an aspect of the present invention, provide a kind of acquisition methods of the configuration information based on DHCP.
Acquisition methods according to the configuration information based on DHCP of the present invention comprises: dhcp client obtains the IP address of itself, and judge whether the IP address is available, if judged result is for being, then dhcp client sends DHCP notice message to the Dynamic Host Configuration Protocol server end, wherein, DHCP notice message is used to notify Dynamic Host Configuration Protocol server end IP the address, and request Dynamic Host Configuration Protocol server end reports other configuration parameters except that the IP address; Dhcp client receives the DHCP confirmation message that the Dynamic Host Configuration Protocol server end returns, and obtains other configuration parameters from the DHCP confirmation message, wherein, carries other configuration parameters in the DHCP confirmation message; Dhcp client obtains whole configuration parameters, and wherein, all configuration parameter comprises: IP address and other configuration parameters.
Preferably, dhcp client obtains the IP address and comprises: dhcp client obtains the IP address of itself from this locality.
Preferably, dhcp client obtains the IP address and comprises: dhcp client is searched the IP address from this locality, if the IP address is 0, then dhcp client sends DHCP to the Dynamic Host Configuration Protocol server end and finds broadcasting packet, and wherein, DHCP finds that broadcasting packet is used to ask the IP address; Dhcp client receives the DHCP response message that the Dynamic Host Configuration Protocol server end returns, and wherein, the DHCP response message carries the IP address information; Dhcp client obtains the IP address information from the DHCP response message, and obtains the IP address according to the IP address information.
Preferably, DHCP notice message also carries one of following at least: required parameter list option, Dynamic Host Configuration Protocol server end are used to identify the option of dhcp client.
Preferably, to find that broadcasting packet also carries at least one of following for DHCP: required parameter list option, Dynamic Host Configuration Protocol server end are used to identify the option of dhcp client.
Preferably, the required parameter list option further comprises: the option code and the self-defining option code of the option code of request subnet mask, request gateway address, wherein, self-defining option code is the option code that is used to ask the IP address.
Preferably, the Dynamic Host Configuration Protocol server end option that is used to identify dhcp client further comprises: the electronic bar code information of the MAC Address of dhcp client, dhcp client.
Preferably, after judging that the IP address is whether available, method also comprises: if judged result for not, then dhcp client continues to send DHCP to the Dynamic Host Configuration Protocol server end and finds broadcasting packet, wherein, DHCP finds that broadcasting packet is used to ask the IP address.
To achieve these goals, according to another aspect of the present invention, provide a kind of dhcp client.
Dhcp client according to the present invention comprises: first acquisition module, obtain IP address own; Judge module is used to judge whether the IP address that first acquisition module obtains is available; Sending module, the judged result that is used at judge module is under the situation that is, sends DHCP notice message to the Dynamic Host Configuration Protocol server end, wherein, DHCP notice message is used to notify Dynamic Host Configuration Protocol server end IP the address, and request Dynamic Host Configuration Protocol server end reports other configuration parameters except that the IP address; Receiver module is used to receive the DHCP confirmation message that the Dynamic Host Configuration Protocol server end returns, and wherein, carries other configuration parameters in the DHCP confirmation message; Second acquisition module is used for obtaining other configuration parameters from the DHCP confirmation message that receiver module receives; The 3rd acquisition module is used to obtain whole configuration parameters, and wherein, all configuration parameter comprises: other configuration parameters that the IP address that first acquisition module obtains and second acquisition module obtain.
Preferably, first acquisition module comprises: first obtains submodule, is used for obtaining from this locality the IP address of itself.
Preferably, first acquisition module comprises: search submodule, be used for searching from this locality the IP address; Send submodule, be used for sending DHCP to the Dynamic Host Configuration Protocol server end and finding broadcasting packet under the lookup result of searching submodule for the IP address is 0 situation, wherein, DHCP finds that broadcasting packet is used to ask the IP address; Receive submodule, be used to receive the DHCP response message that the Dynamic Host Configuration Protocol server end returns, wherein, the DHCP response message carries the IP address information; Second obtains submodule, is used for obtaining the IP address information from the DHCP response message that receives the submodule reception; The 3rd obtains submodule, is used for obtaining the IP address information that submodule obtains according to second and obtains the IP address.
By the present invention, adopt dhcp client according to obtain itself the IP address and receive the method that other configuration parameters that the Dynamic Host Configuration Protocol server end returns obtain whole configuration parameters, solved and to have satisfied the IP address of different MAC Address being distributed identical appointment in the correlation technique, adopt the method for MAC Address binding can't satisfy other configuration informations except that self IP address that each dhcp client distributed appointment, and can't satisfy the problem of distributing the configuration data of appointment for the dhcp client of appointment, and then the dhcp client that is embodied as appointment distributes the configuration data of appointment and is not subjected to the purpose of client mac address restriction.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram according to the DHCP message negotiation process of correlation technique;
Fig. 2 is the DHCP message format according to correlation technique;
Fig. 3 is the BSS system model schematic diagram according to the embodiment of the invention;
Fig. 4 is the flow chart based on the acquisition methods of the configuration information of DHCP according to the embodiment of the invention;
Fig. 5 is the schematic diagram according to the DHCP message negotiation process of the embodiment of the invention;
Fig. 6 is the schematic diagram according to the dhcp client state machine after the change of the embodiment of the invention;
Fig. 7 is the structured flowchart according to the client of the embodiment of the invention;
Fig. 8 is the preferred structure block diagram according to the client of the embodiment of the invention.
Embodiment
Functional overview
Consider and to satisfy the IP address of different MAC Address being distributed identical appointment in the correlation technique, adopt the method for MAC Address binding can't satisfy other configuration informations except that self IP address that each dhcp client distributed appointment, and can't satisfy the problem of distributing the configuration data of appointment for the dhcp client of appointment, the embodiment of the invention provides a kind of acquisition methods of the configuration information based on DHCP, this method comprises: dhcp client obtains the IP address of itself, and judge whether the IP address is available, if judged result is for being, then dhcp client sends DHCP notice message to the Dynamic Host Configuration Protocol server end, wherein, DHCP notice message is used to notify the IP address, and request Dynamic Host Configuration Protocol server end reports other configuration parameters except that the IP address; Dhcp client receives the DHCP confirmation message that the Dynamic Host Configuration Protocol server end returns, and obtains other configuration parameters from the DHCP confirmation message, wherein, carries other configuration parameters in the DHCP confirmation message; Like this, dhcp client has just obtained comprising whole configuration parameters of IP address and other configuration parameters.
Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.Describe the present invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
Be example hereinafter with mobile communication base station system (Base Station System abbreviates BSS as), the concrete enforcement of setting forth method provided by the present invention.
Fig. 3 is the BSS system model schematic diagram according to the embodiment of the invention, as shown in Figure 3, in the BSS system, network element base transceiver station (Base Transceiver Station, abbreviate BTS as), network element base station controller (Base Station Controller, abbreviate BSC as), (the Operation and Maintenance Centre of NM server operation maintenance center, abbreviate OMC as) be connected by Ethernet switch with the interior Dynamic Host Configuration Protocol server of local area network (LAN), network element BTS is as the Dynamic Host Configuration Protocol server request relevant configuration data of dhcp client in local area network (LAN), comprise self IP address, subnet mask, gateway address, the IP address of BSC and the information such as IP address of OMC are to finish BTS and BSC, link establishment between the OMC.
Method embodiment
According to embodiments of the invention, provide a kind of acquisition methods of the configuration information based on DHCP.Fig. 4 is the flow chart based on the acquisition methods of the configuration information of DHCP according to the embodiment of the invention, and as shown in Figure 4, this method comprises that following step S402 is to step S406:
Step S402, dhcp client obtains the IP address of itself, and judge whether the IP address is available, if judged result is for being, then dhcp client sends DHCP notice message to the Dynamic Host Configuration Protocol server end, wherein, DHCP notice message is used to notify Dynamic Host Configuration Protocol server end IP the address, and request Dynamic Host Configuration Protocol server end reports other configuration parameters except that the IP address.If judged result is not, then dhcp client continues to send DHCP discovery broadcasting packet to the Dynamic Host Configuration Protocol server end, and wherein, DHCP discovery broadcasting packet is used to ask the IP address.Wherein, DHCP notice message can also carry one of following at least: required parameter list option, Dynamic Host Configuration Protocol server end are used to identify the option of dhcp client.
Wherein, dhcp client obtains the IP address and comprises one of following mode:
(1) dhcp client obtains the IP address of itself from this locality.
(2) dhcp client is searched the IP address from this locality, if the IP address is 0, then dhcp client sends DHCP to the Dynamic Host Configuration Protocol server end and finds broadcasting packet, and wherein, DHCP finds that broadcasting packet is used to ask the IP address; Dhcp client receives the DHCP response message that the Dynamic Host Configuration Protocol server end returns, and wherein, the DHCP response message carries the IP address information; Dhcp client obtains the IP address information from the DHCP response message, and obtains the IP address according to the IP address information.Wherein, to find that broadcasting packet also carries at least one of following for DHCP: required parameter list option, Dynamic Host Configuration Protocol server end are used to identify the option of dhcp client.The required parameter list option may further include: the option code and the self-defining option code of the option code of request subnet mask, request gateway address, self-defining option code is the option code that is used to ask the IP address.Wherein, the Dynamic Host Configuration Protocol server end option that is used to identify dhcp client may further include: the electronic bar code information of the MAC Address of dhcp client, dhcp client.
Step S404, dhcp client receives the DHCP confirmation message that the Dynamic Host Configuration Protocol server end returns, and obtains other configuration parameters from the DHCP confirmation message, wherein, carries other configuration parameters in the DHCP confirmation message.
Step S406, dhcp client obtain whole configuration parameters, and wherein, all configuration parameter comprises: IP address and other configuration parameters.
By this embodiment, utilize DHCPDISCOVER, DHCPOFFER, DHCPINFORM (DHCP notifies message) and DHCPACK four steps message interaction to finish the negotiations process of DHCP, realized that dhcp client for appointment distributes the configuration data of appointment and is not subjected to the purpose of client mac address restriction.
In addition, the present invention has also defined the dhcp client state machine that is used for such scheme, has wherein increased address check newly and has notified two states, will describe in detail later.
Fig. 5 is the schematic diagram according to the DHCP message negotiation process of the embodiment of the invention, to be example as Dynamic Host Configuration Protocol server with Windows 2000Server system in the following step, tell about in the implementation process use of relevant option and field, as shown in Figure 5, comprise that following step 1 is to step 6:
Step 1, dhcp client is from self obtaining the IP address, if the IP address that gets access to is not 0, then execution in step 4, otherwise execution in step 2.
Step 2, dhcp client sends the DHCPDISCOVER broadcasting packet to the Dynamic Host Configuration Protocol server end, and the option that the option field in the message is inserted has:
Option77 (user class id, user class option): insert the electronic bar code of dhcp client herein, Dynamic Host Configuration Protocol server is discerned different dhcp clients according to this option, and distributes the configuration of appointment.For the server of other types, this option code may be worth for other, wherein adds the information of energy unique identification client, includes but not limited to MAC Address, electronic bar code information such as (EID).
Option55 (parameter request list, required parameter list option): insert option code 1 herein successively, be used for asking subnet mask; Option code 3 is used for asking gateway address; And self-defining option code 41, be used for asking dhcp client IP address, definition option41 is that network information servers is a network information server in the standard, be used for asking dhcp client IP address herein, option 41 herein is a User Defined, also can choose other any one option code of not using in negotiation.
Step 3, after dhcp client receives the DHCPOFFER message that the Dynamic Host Configuration Protocol server end returns, by option one, 3 and self-defined option 41 obtained subnet mask, gateway address and self IP address configuration respectively, check whether this IP address is available, if available then execution in step 4, otherwise forward step 2 to.
Step 4, dhcp client sends the DHCPINFORM message to the Dynamic Host Configuration Protocol server end, self IP address that notice Dynamic Host Configuration Protocol server end has got access to, ask other configuration parameters such as the IP address of the needed BSC of dhcp client and OMC server ip address simultaneously, these other configuration parameters, comprise: option code 1 (request subnet mask), option code 3 (request gateway address), self-defining option code, other configuration parameters in this step include but not limited to above listed option, and pairing standard option sign indicating number of the needed various configuration parameters of dhcp client and self-defined option code can be added at this.The option that option field in the message is inserted has:
Ciaddr (client ip address field): insert client self the IP address that obtains in step 1 or the step 3 herein;
Option77 (user class id, user class option): with the content in the step 2;
Option55 (parameter request list, the required parameter list option): insert option code 1 (request subnet mask) herein successively, option code 3 (request gateway address), self-defining option code 6 (the IP address of request BSC), self-defined option code 44 (request OMC server ip address).
After step 5, dhcp client received the DHCPACK message that the Dynamic Host Configuration Protocol server end returns, dhcp client obtained whole configuration parameters, and these whole configuration parameters comprise according to IP address and other configuration parameters.Subnet mask, gateway address, the IP address of BSC and the IP address of OMC server have been obtained respectively by the corresponding option in the step 3,4.
Step 6 is preserved after having obtained the required whole configuration informations of dhcp client by above step, and BTS utilizes the configuration of obtaining to begin to set up link.
Need to prove that the option 6 that utilizes in above step, option 41 and option 44 are user-defined implication, the option that the user can define voluntarily includes but not limited to above-mentioned mentioning.
According to above negotiations process, the state machine of design dhcp client.Fig. 6 is the schematic diagram according to the dhcp client state machine after the change of the embodiment of the invention, and as shown in Figure 6, the running of dhcp client state machine comprises:
[A1] dhcp client is in " A: halted state ", starts DHCP and consult when client does not have the IP address, and then transition between states is to " B: initial condition ";
[A2] dhcp client is in " A: halted state ", starts DHCP and consult when client has the IP address, carries out the operation of configuration ethernet mouth, and back transition between states is to " D: address check state ";
[B1] dhcp client is in " B: initial condition ", carries out the operation that sends the DHCPDISCOVER broadcasting packet, and back transition between states is to " C: selection mode ";
[C1] dhcp client is in " C: selection mode ", receive acceptable DHCPOFFER message, can be with the option 43 that carries in the DHCPOFFER message (Vendor Specific Information such as dhcp client, whether supplier's particular message) distinguish this message is acceptable, from the DHCPOFFER message, obtain information such as distributing to its own IP address, carry out the operation of configuration ethernet mouth, back transition between states is to " D: address check state ";
[C2] dhcp client is in " C: selection mode ", receives unacceptable DHCPOFFER message, then still rests on this state;
Whether overtime [C3] dhcp client is in " C: selection mode ", receives overtime incident, then carry out the judgement of total time that DHCP consults;
[C3.1] then ends the negotiation of this DHCP if the total time that DHCP consults is overtime, and state turns back to " A: halted state ";
[C3.2] then continues to send the DHCPDISCOVER message if the total time that DHCP consults is also not overtime, and state rests on " C: selection mode ";
[D1] dhcp client is in " D: address check state ", checks that the IP address of acquisition can be used, and then sends the DHCPINFORM message to Dynamic Host Configuration Protocol server, and transition between states is to " E: notify status ";
[D2] dhcp client is in " D: address check state ", checks that the IP address that obtains is unavailable, then continues to send the DHCPDISCOVER message, and state turns back to " C: selection mode ";
[E1] dhcp client is in " E: notify status ", receive acceptable DHCPACK message, distinguish deterministic process that DHCPACK could accept with in [C1] to the judgement of DHCPOFFER, get access to other configuration data of asking and preservation except that the IP address from DHCPACK, transition between states is to " F: binding state ";
[E2] dhcp client is in " E: notify status ", receives unacceptable DHCPACK message, then still rests on this state;
Whether overtime [E3] dhcp client is in " E: notify status ", receives overtime incident, then carry out the judgement of total time that DHCP consults;
[E3.1] then ends the negotiation of this DHCP if the total time that DHCP consults is overtime, and state turns back to " A: halted state ";
[E3.2] then continues to send the DHCPINFORM message if the total time that DHCP consults is also not overtime, and state rests on " E: notify status ";
[F1] dhcp client is in " F: binding state ", and then this DHCP consults to complete successfully, and ends this negotiation, and state turns back to " A: halted state ".
Device embodiment
According to embodiments of the invention, provide a kind of dhcp client.Fig. 7 is the structured flowchart according to the client of the embodiment of the invention, and as shown in Figure 7, this dhcp client 101 comprises: first acquisition module 2, judge module 4, sending module 6, receiver module 8, second acquisition module, 10, the three acquisition modules 12 are described said structure below.
First acquisition module 2 obtains IP address own; Judge module 4 is connected to first acquisition module 2, is used to judge whether the IP address that first acquisition module 2 obtains is available; Sending module 6, be connected to judge module 4, the judged result that is used at judge module 4 is under the situation that is, send DHCP notice message to Dynamic Host Configuration Protocol server 202 ends, wherein, DHCP notice message is used to notify Dynamic Host Configuration Protocol server end 202IP the address, and other configuration parameters of asking Dynamic Host Configuration Protocol server end 202 to report except that the IP address; Receiver module 8 is used to receive the DHCP confirmation message that Dynamic Host Configuration Protocol server 202 ends return, and wherein, carries other configuration parameters in the DHCP confirmation message; Second acquisition module 10 is connected to receiver module 8, is used for obtaining other configuration parameters from the DHCP confirmation message that receiver module 8 receives; The 3rd acquisition module 12 is connected to first acquisition module 2 and second acquisition module 10, is used to obtain whole configuration parameters, and wherein, all configuration parameter comprises: other configuration parameters that the IP address that first acquisition module 2 obtains and second acquisition module 10 obtain.
Fig. 8 is the preferred structure block diagram according to the client of the embodiment of the invention, as shown in Figure 8, preferably, first acquisition module 2 comprises: first obtains submodule 22, searches submodule 24, sends submodule 26, receive submodule 28, second obtains submodule 30, the three obtains submodule 32, below said structure is described.
First obtains submodule 22, is used for obtaining from this locality the IP address of itself; Search submodule 24, be used for searching the IP address from this locality; Send submodule 26, be connected to and search submodule 24, be used for sending DHCP to Dynamic Host Configuration Protocol server end 202 and finding broadcasting packets under the lookup result of searching submodule 24 for the IP address is 0 situation, wherein, DHCP finds that broadcasting packet is used to ask the IP address; Receive submodule 28, be used to receive the DHCP response message that Dynamic Host Configuration Protocol server end 202 returns, wherein, the DHCP response message carries the IP address information; Second obtains submodule 30, is connected to receive submodule 28, is used for obtaining the IP address information from the DHCP response message that receives submodule 28 receptions; The 3rd obtains submodule 32, is connected to second and obtains submodule 30, is used for obtaining the IP address information that submodule 30 obtains according to second and obtains the IP address.
In sum, by the above embodiment of the present invention, compared with prior art, example has replaced the DHCPREQUEST broadcasting packet that uses originally with the DHCPINFORM unicast message in the DHCP negotiations process; And substitute the purposes of original field in the DHCP message by the self-defined config option purposes of client, such as, use self-defining option to obtain the IP address of distributing to client, and do not use yiaddr in the message (distributing to the IP address of client) field from Dynamic Host Configuration Protocol server; And in the message that dhcp client sends, carry the option that can allow the Dynamic Host Configuration Protocol server end be used for distinguishing each dhcp client.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. the acquisition methods based on the configuration information of dynamic host allocation protocol DHCP is characterized in that, comprising:
Dhcp client obtains the IP address of itself, and judge whether described IP address is available, if judged result is for being, then described dhcp client sends DHCP notice message to the Dynamic Host Configuration Protocol server end, wherein, described DHCP notice message is used to notify the described IP of described Dynamic Host Configuration Protocol server end the address, and asks described Dynamic Host Configuration Protocol server end to report other configuration parameters except that described IP address;
Described dhcp client receives the DHCP confirmation message that described Dynamic Host Configuration Protocol server end returns, and obtains described other configuration parameters from described DHCP confirmation message, wherein, carries described other configuration parameters in the described DHCP confirmation message;
Described dhcp client obtains whole configuration parameters, and wherein, described whole configuration parameters comprise: described IP address and described other configuration parameters.
2. method according to claim 1 is characterized in that, described dhcp client obtains described IP address and comprises:
Described dhcp client obtains the IP address of itself from this locality.
3. method according to claim 1 is characterized in that, described dhcp client obtains described IP address and comprises:
Described dhcp client is searched the IP address from this locality, if described IP address is 0, then described dhcp client sends DHCP to the Dynamic Host Configuration Protocol server end and finds broadcasting packet, and wherein, described DHCP finds that broadcasting packet is used to ask described IP address;
Described dhcp client receives the DHCP response message that described Dynamic Host Configuration Protocol server end returns, and wherein, described DHCP response message carries described IP address information;
Described dhcp client obtains described IP address information from described DHCP response message, and obtains described IP address according to described IP address information.
4. method according to claim 1 is characterized in that, it is one of following that described DHCP notice message also carries at least:
Required parameter list option, described Dynamic Host Configuration Protocol server end are used to identify the option of described dhcp client.
5. method according to claim 3 is characterized in that, it is one of following that described DHCP finds that broadcasting packet also carries at least:
Required parameter list option, described Dynamic Host Configuration Protocol server end are used to identify the option of described dhcp client.
6. method according to claim 5 is characterized in that, described request parameter list option further comprises:
The option code and the self-defining option code of the option code of request subnet mask, request gateway address, wherein, described self-defining option code is the option code that is used to ask the IP address.
7. method according to claim 5 is characterized in that, the option that described Dynamic Host Configuration Protocol server end is used to identify described dhcp client further comprises:
The electronic bar code information of the MAC Address of described dhcp client, described dhcp client.
8. according to each described method in the claim 1 to 7, it is characterized in that after judging that described IP address is whether available, described method also comprises:
If judged result is not, then described dhcp client continues to send DHCP to described Dynamic Host Configuration Protocol server end and finds broadcasting packet, and wherein, described DHCP discovery broadcasting packet is used to ask described IP address.
9. a dhcp client is characterized in that, comprising:
First acquisition module obtains IP address own;
Judge module is used to judge whether the described IP address that described first acquisition module obtains is available;
Sending module, the judged result that is used at described judge module is under the situation that is, send DHCP notice message to the Dynamic Host Configuration Protocol server end, wherein, described DHCP notice message is used to notify the described IP of described Dynamic Host Configuration Protocol server end the address, and asks described Dynamic Host Configuration Protocol server end to report other configuration parameters except that described IP address;
Receiver module is used to receive the DHCP confirmation message that described Dynamic Host Configuration Protocol server end returns, and wherein, carries described other configuration parameters in the described DHCP confirmation message;
Second acquisition module is used for obtaining described other configuration parameters from the described DHCP confirmation message that described receiver module receives;
The 3rd acquisition module is used to obtain whole configuration parameters, and wherein, described whole configuration parameters comprise: described other configuration parameters that described IP address that described first acquisition module obtains and described second acquisition module obtain.
10. dhcp client according to claim 9 is characterized in that, described first acquisition module comprises:
Described first obtains submodule, is used for obtaining from this locality the IP address of itself.
11. dhcp client according to claim 9 is characterized in that, described first acquisition module comprises:
Search submodule, be used for searching the IP address from this locality;
Send submodule, being used at the described lookup result of searching submodule is that described IP address is under 0 the situation, sends DHCP to the Dynamic Host Configuration Protocol server end and finds broadcasting packet, and wherein, described DHCP finds that broadcasting packet is used to ask described IP address;
Receive submodule, be used to receive the DHCP response message that described Dynamic Host Configuration Protocol server end returns, wherein, described DHCP response message carries described IP address information;
Second obtains submodule, is used for obtaining described IP address information from the described DHCP response message that described reception submodule receives;
The 3rd obtains submodule, is used for obtaining the described IP address information that submodule obtains according to described second and obtains described IP address.
CN200910151507.6A 2009-06-29 2009-06-29 Method and device for acquiring configuration information based on dynamic host configuration protocol Expired - Fee Related CN101600001B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN200910151507.6A CN101600001B (en) 2009-06-29 2009-06-29 Method and device for acquiring configuration information based on dynamic host configuration protocol
PCT/CN2010/073799 WO2011000258A1 (en) 2009-06-29 2010-06-11 Method and device for acquiring configuration information based on dynamic host configuration protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910151507.6A CN101600001B (en) 2009-06-29 2009-06-29 Method and device for acquiring configuration information based on dynamic host configuration protocol

Publications (2)

Publication Number Publication Date
CN101600001A true CN101600001A (en) 2009-12-09
CN101600001B CN101600001B (en) 2013-01-16

Family

ID=41421244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910151507.6A Expired - Fee Related CN101600001B (en) 2009-06-29 2009-06-29 Method and device for acquiring configuration information based on dynamic host configuration protocol

Country Status (2)

Country Link
CN (1) CN101600001B (en)
WO (1) WO2011000258A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011000258A1 (en) * 2009-06-29 2011-01-06 中兴通讯股份有限公司 Method and device for acquiring configuration information based on dynamic host configuration protocol
CN102075590A (en) * 2010-12-16 2011-05-25 中兴通讯股份有限公司 Methods and corresponding systems for acquiring and configuring network parameters by utilizing base station
CN102123140A (en) * 2011-01-14 2011-07-13 深圳市普联技术有限公司 Network equipment control method, network equipment control system and network equipment
WO2014029110A1 (en) * 2012-08-24 2014-02-27 Thomson Licensing Method and apparatus for configuring dhcp client
CN107395439A (en) * 2017-08-24 2017-11-24 郑州云海信息技术有限公司 A kind of network collocating method, device and controller
CN108572852A (en) * 2018-03-21 2018-09-25 江苏长顺江波软件科技发展有限公司 It is a kind of can be in the method for cross-network segment network startup
CN108777645A (en) * 2018-09-13 2018-11-09 郑州云海信息技术有限公司 A kind of system and method for configuration server network IP information
CN112689029A (en) * 2020-12-30 2021-04-20 海信视像科技股份有限公司 Method, device and equipment for acquiring IP address of group user

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542446B (en) * 2021-06-11 2023-04-07 杭州玖欣物联科技有限公司 Gateway equipment IP address remote management method based on lwm m protocol
CN115604097A (en) * 2022-11-30 2023-01-13 天津聚芯光禾科技有限公司(Cn) Automatic configuration and detection system and method for switch leaving factory

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2405711B (en) * 2003-09-05 2006-08-09 Sun Microsystems Inc Method and apparatus for performing configuration over a network
CN1859437B (en) * 2005-04-30 2010-11-10 华为技术有限公司 Method for obtaining cut-in position information for user terminal and user terminal and relative device
CN100502413C (en) * 2005-10-12 2009-06-17 华为技术有限公司 IP address requesting method for DHCP client by DHCP repeater
US20070250605A1 (en) * 2006-04-24 2007-10-25 Microsoft Corporation Automatic discovery and configuration of network devices
CN101321102A (en) * 2007-06-07 2008-12-10 杭州华三通信技术有限公司 Detection method and access equipment of DHCP server
CN101227481A (en) * 2008-02-02 2008-07-23 中兴通讯股份有限公司 Apparatus and method of IP access based on DHCP protocol
CN101600001B (en) * 2009-06-29 2013-01-16 中兴通讯股份有限公司 Method and device for acquiring configuration information based on dynamic host configuration protocol

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011000258A1 (en) * 2009-06-29 2011-01-06 中兴通讯股份有限公司 Method and device for acquiring configuration information based on dynamic host configuration protocol
CN102075590A (en) * 2010-12-16 2011-05-25 中兴通讯股份有限公司 Methods and corresponding systems for acquiring and configuring network parameters by utilizing base station
CN102123140A (en) * 2011-01-14 2011-07-13 深圳市普联技术有限公司 Network equipment control method, network equipment control system and network equipment
CN102123140B (en) * 2011-01-14 2014-01-08 普联技术有限公司 Network equipment control method, network equipment control system and network equipment
WO2014029110A1 (en) * 2012-08-24 2014-02-27 Thomson Licensing Method and apparatus for configuring dhcp client
CN107395439A (en) * 2017-08-24 2017-11-24 郑州云海信息技术有限公司 A kind of network collocating method, device and controller
CN108572852A (en) * 2018-03-21 2018-09-25 江苏长顺江波软件科技发展有限公司 It is a kind of can be in the method for cross-network segment network startup
CN108777645A (en) * 2018-09-13 2018-11-09 郑州云海信息技术有限公司 A kind of system and method for configuration server network IP information
CN112689029A (en) * 2020-12-30 2021-04-20 海信视像科技股份有限公司 Method, device and equipment for acquiring IP address of group user

Also Published As

Publication number Publication date
CN101600001B (en) 2013-01-16
WO2011000258A1 (en) 2011-01-06

Similar Documents

Publication Publication Date Title
CN101600001B (en) Method and device for acquiring configuration information based on dynamic host configuration protocol
US8103784B2 (en) Communication device and communication control method using efficient echonet address determination scheme
CN100525316C (en) Method for assigning an IP address to a device
CN101478576B (en) Method, apparatus and system for selecting service network
RU2297107C2 (en) Method and system for generating access terminal ip address and for transferring messages to generate ip addresses in ip system
EP2477361B1 (en) Ip address automatic assignment method, equipment and system
CN101674288B (en) Method, device and system for managing address prefix distribution
US8412198B2 (en) Method and system for configuring IP address in a wireless communication system
CN100576852C (en) Obtain the method and apparatus of Internet protocol address
US10218671B2 (en) Dynamic media access control address allocation and leasing for wireless network
CN101577738B (en) Address distribution method and equipment thereof
US20070076681A1 (en) Method and apparatus for dynamically allocating internet protocol address inwireless network
CN112654049B (en) Method, system, node and medium for configuring a wireless communication coverage extension system
CN102752413B (en) Dynamic Host Configuration Protocol server system of selection and the network equipment
CN101378347B (en) Method for managing terminal roaming and multi-scene
CN101188514A (en) Method, device and system for automatically discovering network element device
CN105245629A (en) DHCP-based host communication method and device
CN102769678B (en) A kind of dhcp address distribution method and device
CN1960380B (en) Method for obtaining service IP address and base station
CN101018193A (en) Load distribution method and system and device for allocating the backup packet and virtual IP address
CN105188047A (en) Wifi wireless roaming Internet access method and mobile terminal
CN101009711A (en) Configuration method of IP address and its application in the sub-network switching
CN101674209B (en) Method and system for implementing network discovery
CN102340553B (en) Method and device for allocating and determining IP addresses
CN115174528A (en) Equipment address control method, device and system

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20171229

Address after: Si Zhen Xi Cao Qiao Cun 272500 Shandong city of Jining province Wenshang County Yin No. 384

Patentee after: Li Yanrong

Address before: 518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No.

Patentee before: ZTE Corporation

CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Li Yanrong

Inventor before: Hu Xiaojiao

Inventor before: Chen Zhi

Inventor before: Mu Guoyan

Inventor before: Liao Junfeng

Inventor before: Zhou Zhixiong

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: 20130116

Termination date: 20180629