[go: up one dir, main page]

CN101600001B - Method and device for acquiring configuration information based on dynamic host configuration protocol - Google Patents

Method and device for acquiring configuration information based on dynamic host configuration protocol Download PDF

Info

Publication number
CN101600001B
CN101600001B CN200910151507.6A CN200910151507A CN101600001B CN 101600001 B CN101600001 B CN 101600001B CN 200910151507 A CN200910151507 A CN 200910151507A CN 101600001 B CN101600001 B CN 101600001B
Authority
CN
China
Prior art keywords
address
dhcp
dynamic host
protocol server
client
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
Application number
CN200910151507.6A
Other languages
Chinese (zh)
Other versions
CN101600001A (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 method and a device for acquiring configuration information based on a dynamic host configuration protocol. The method comprises that: a client of the DHCP acquires a self IP address, and judges whether the IP address is available, and if the IP address is available, the client of the DHCP sends a DHCP notification message to a server of the DHCP, wherein the DHCP notification message is used for informing an IP address of the server of the DHCP, and requesting the server of the DHCP to report other configuration parameters except the IP address; the client of the DHCP receives a DHCP conformation message returned by the server of the DHCP, and acquires other configuration parameters from the DHCP confirmation message; and the client of the DHCP obtains all of configuration parameters, wherein all of the configuration parameters comprise the IP address and the other configuration parameters. The method and the device can allocate appointed configuration data to appointed client of the DHCP, and are not limited by an MAC address of the client.

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, referred to as DHCP) be transmission control protocol/Internet protocol (Transmission ControlProtocol/Internet Protocol, referred to as TCP/IP) a kind of in the protocol family, the RFC standard is 2131, mainly is the IP address to the net computer monthly dynamics.The IP address that these are assigned with all is an address set that is comprised of a plurality of addresses of Dynamic Host Configuration Protocol server advance reservation, and they generally are one section continuous addresses.Present Dynamic Host Configuration Protocol server has three kinds of address distribution, comprising: manual assignment, automatically distribute and dynamic assignment.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.
Take Windows 2000 Server commonly used as Dynamic Host Configuration Protocol server as example, mainly contain relational language and the concept 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, the 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 can with the IP address 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.).Option corresponding to Windows 2000 DHCP SERVER user class 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, such as " client1 "; Also needing to configure 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 identifies of client1 gets access to the configuration datas such as gateway into own appointment, route, DNS from server.
3) keep: can in Windows 2000 DHCP SERVER, use media interviews control (Medium Access Control, referred to as MAC) the next unique dhcp client of sign in address, and distribute to the specific IP of this client address, namely 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 to the identical IP address of active and standby two system assignment, namely distribute the IP address of identical appointment to different MAC Address when configuration.
2) each BTS network element of base station system not only needs to get access to the IP address of self, 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.).
Take Windows 2000 Server commonly used as Dynamic Host Configuration Protocol server as example, 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 for the dhcp client of appointment the IP address of appointment, but for needed other configuration informations of dhcp client, then can't satisfy other configuration informations except self IP address that each dhcp client distributed appointment.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 distribute take action scope as unit.Be under this kind mode, it is identical belonging to other configuration informations that the dhcp client in the same subnet obtains, non-designated.
In addition, for Windows 2000 Server, also can adopt the different user class of (i.e. action scope) definition in a subnet, come the information for each base station assigns appointment; Yet the information of carrying in the yiaddr field in the DHCPOFFER message in this case is the IP address of automatically distributing from the address pool of Dynamic Host Configuration Protocol server, the IP address of namely distributing to dhcp client is non-designated, 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 for correlation technique, adopt the method for MAC Address binding can't satisfy other configuration informations except 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 yet proposed at present.
Summary of the invention
For 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 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 yes, then dhcp client sends DHCP notice message to the Dynamic Host Configuration Protocol server end, wherein, DHCP notice message is used for notice Dynamic Host Configuration Protocol server end IP address, and request Dynamic Host Configuration Protocol server end reports other configuration parameters except 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 for IP address requesting; 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 for the option of sign 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 for the option of sign dhcp client.
Preferably, the required parameter list option further comprises: 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 for being used for the option code of IP address requesting.
Preferably, the Dynamic Host Configuration Protocol server end further comprises for the option of sign dhcp client: 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 the determination result is NO, then dhcp client continues to send DHCP to the Dynamic Host Configuration Protocol server end and finds broadcasting packet, and wherein, DHCP finds that broadcasting packet is used for IP address requesting.
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: the first acquisition module, obtain IP address own; Judge module is for judging whether the IP address that the first acquisition module obtains is available; Sending module, the judged result that is used at judge module is in the situation that is, sends DHCP notice message to the Dynamic Host Configuration Protocol server end, wherein, DHCP notice message is used for notice Dynamic Host Configuration Protocol server end IP address, and request Dynamic Host Configuration Protocol server end reports other configuration parameters except the IP address; Receiver module is used for receiving the DHCP confirmation message that the Dynamic Host Configuration Protocol server end returns, and wherein, carries other configuration parameters in the DHCP confirmation message; The 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 for obtaining whole configuration parameters, and wherein, all configuration parameter comprises: other configuration parameters that the IP address that the first acquisition module obtains and the second acquisition module obtain.
Preferably, the first acquisition module comprises: first obtains submodule, for the IP address that obtains itself from this locality.
Preferably, the first acquisition module comprises: search submodule, for search the IP address from this locality; Send submodule, being used at the lookup result of searching submodule is that the IP address is in 0 the situation, sends DHCP to the Dynamic Host Configuration Protocol server end and finds broadcasting packet, and wherein, DHCP finds that broadcasting packet is used for IP address requesting; Receive submodule, be used for receiving 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 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 a further understanding of the present invention, consists of the application's a part, and illustrative examples of the present invention and explanation thereof are used for explaining the present invention, do not consist of improper restriction 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 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, the method comprises: dhcp client obtains the IP address of itself, and judge whether the IP address is available, if judged result is yes, then dhcp client sends DHCP notice message to the Dynamic Host Configuration Protocol server end, wherein, DHCP notice message is used for notice IP address, and request Dynamic Host Configuration Protocol server end reports other configuration parameters except 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, in the situation that do not conflict, embodiment and the feature among the embodiment among the application can make up mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
Be example with mobile communication base station system (Base Station System is referred to as BSS) hereinafter, set forth the implementation of 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, referred to as BTS), network element base station controller (Base Station Controller, referred to as BSC), (the Operation and Maintenance Centre of NM server operation maintenance center, referred to as OMC) Dynamic Host Configuration Protocol server of being connected with local area network (LAN) connects by Ethernet switch, network element BTS is as the Dynamic Host Configuration Protocol server request relevant configuration data of dhcp client in the 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.
Embodiment of the method
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, the 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 yes, then dhcp client sends DHCP notice message to the Dynamic Host Configuration Protocol server end, wherein, DHCP notice message is used for notice Dynamic Host Configuration Protocol server end IP address, and request Dynamic Host Configuration Protocol server end reports other configuration parameters except the IP address.If the determination result is NO, then dhcp client continues to send DHCP discovery broadcasting packet to the Dynamic Host Configuration Protocol server end, and wherein, DHCP finds that broadcasting packet is used for IP address requesting.Wherein, DHCP notice message can also carry one of following at least: required parameter list option, Dynamic Host Configuration Protocol server end are used for the option of sign 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 for IP address requesting; 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 for the option of sign dhcp client.The required parameter list option may further include: option code and the self-defining option code of the option code of request subnet mask, request gateway address, self-defining option code is for being used for the option code of IP address requesting.Wherein, the Dynamic Host Configuration Protocol server end may further include for the option of sign dhcp client: the electronic bar code information of the MAC Address of dhcp client or 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, will be take Windows 2000 Server systems in the following step as Dynamic Host Configuration Protocol server as example, 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 identified different dhcp clients according to this option, and distributes the configuration of appointment.For the Dynamic Host Configuration Protocol server of other non-Windows 2000 Server systems, this option code may be worth for other, wherein adds the information of energy unique identification client, includes but not limited to the information such as MAC Address, electronic bar code (EID).
Option55 (parameter request list, required parameter list option): insert successively option code 1 herein, 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 network information server in the standard, be used for asking dhcp client IP address herein, option 41 herein is 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 respectively subnet mask, gateway address and self IP address configuration, 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 simultaneously other configuration parameters such as the IP address of the needed BSC of dhcp client and OMC server ip address, 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 the corresponding standard option code 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 successively option code 1 (request subnet mask) herein, 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, the option 6 that utilizes in above step, option 41 and option 44 are user-defined implication, and option that the user can self-defining 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 the existing IP address of client, carries out the operation of configuration ethernet mouth, and rear 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 rear 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, supplier's particular message) whether acceptablely distinguishes this message, from the DHCPOFFER message, obtain the information such as IP address of distributing to self, carry out the operation of configuration ethernet mouth, rear 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;
[C3] dhcp client is in " C: selection mode ", receives overtime event, then carries out the whether overtime 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 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;
[E3] dhcp client is in " E: notify status ", receives overtime event, then carries out the whether overtime 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 be successfully completed, 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: the first acquisition module 2, judge module 4, sending module 6, receiver module 8, the second acquisition module 10, the three acquisition modules 12, the below is described said structure.
The first acquisition module 2 obtains IP address own; Judge module 4 is connected to the first acquisition module 2, for judging whether the IP address that the 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 in the situation that is, send DHCP notice message to Dynamic Host Configuration Protocol server 202 ends, wherein, DHCP notice message is used for notice Dynamic Host Configuration Protocol server end 202IP address, and other configuration parameters of asking Dynamic Host Configuration Protocol server end 202 to report except the IP address; Receiver module 8 is used for receiving the DHCP confirmation message that Dynamic Host Configuration Protocol server 202 ends return, and wherein, carries other configuration parameters in the DHCP confirmation message; The 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 the first acquisition module 2 and the second acquisition module 10, is used for obtaining whole configuration parameters, and wherein, all configuration parameter comprises: other configuration parameters that the IP address that the first acquisition module 2 obtains and the 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, the 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, and the below is described said structure.
First obtains submodule 22, for the IP address that obtains itself from this locality; Search submodule 24, for search the IP address from this locality; Send submodule 26, be connected to and search submodule 24, being used at the lookup result of searching submodule 24 is that the IP address is in 0 the situation, sends DHCP to Dynamic Host Configuration Protocol server end 202 and finds broadcasting packets, and wherein, DHCP finds that broadcasting packet is used for IP address requesting; Receive submodule 28, be used for receiving 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 originally uses 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 from Dynamic Host Configuration Protocol server, and do not use yiaddr in the message (distributing to the IP address of client) field; 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 general calculation element, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and be carried out by calculation element, perhaps they are made into respectively each integrated circuit modules, 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 modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, 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 yes, then described dhcp client sends DHCP notice message to the Dynamic Host Configuration Protocol server end, wherein, described DHCP notice message is used for notifying the described IP of described Dynamic Host Configuration Protocol server end address, and asks described Dynamic Host Configuration Protocol server end to report other configuration parameters except 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:
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 for asking 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 the information of described IP address;
Described dhcp client obtains the information of described IP address from described DHCP response message, and according to the described IP of the acquisition of information address of described IP address.
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 for identifying 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 for identifying the option of described dhcp client.
6. method according to claim 5 is characterized in that, described request parameter list option further comprises:
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 for being used for the option code of IP address requesting.
7. method according to claim 5 is characterized in that, described Dynamic Host Configuration Protocol server end further comprises for the option that identifies described dhcp client:
The electronic bar code information of the MAC Address of described dhcp client or described dhcp client.
8. each described method in 7 according to claim 1 is characterized in that, after judging that described IP address is whether available, described method also comprises:
If the determination result is NO, then described dhcp client continues to send DHCP discovery broadcasting packet to described Dynamic Host Configuration Protocol server end, and wherein, described DHCP finds that broadcasting packet is used for asking described IP address.
9. a dhcp client is characterized in that, comprising:
The first acquisition module obtains IP address own;
Judge module is for judging whether the described IP address that described the first acquisition module obtains is available;
Sending module, the judged result that is used at described judge module is in the situation that is, send DHCP notice message to the Dynamic Host Configuration Protocol server end, wherein, described DHCP notice message is used for notifying the described IP of described Dynamic Host Configuration Protocol server end address, and asks described Dynamic Host Configuration Protocol server end to report other configuration parameters except described IP address;
Receiver module is used for receiving 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;
The 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 for obtaining whole configuration parameters, and wherein, described whole configuration parameters comprise: described other configuration parameters that the described IP address that described the first acquisition module obtains and described the second acquisition module obtain.
10. dhcp client according to claim 9 is characterized in that, described the first acquisition module comprises:
First obtains submodule, for the IP address that obtains itself from this locality.
11. dhcp client according to claim 9 is characterized in that, described the first acquisition module comprises:
Search submodule, for search the IP address from this locality;
Send submodule, being used at the described lookup result of searching submodule is that described IP address is in 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 for asking described IP address;
Receive submodule, be used for receiving the DHCP response message that described Dynamic Host Configuration Protocol server end returns, wherein, described DHCP response message carries the information of described IP address;
Second obtains submodule, is used for obtaining the information of described IP address from the described DHCP response message that described reception submodule receives;
The 3rd obtains submodule, is used for the described IP of the acquisition of information address that obtains the described IP address that submodule obtains according to described second.
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 CN101600001A (en) 2009-12-09
CN101600001B true 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)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600001B (en) * 2009-06-29 2013-01-16 中兴通讯股份有限公司 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
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
CN113542446B (en) * 2021-06-11 2023-04-07 杭州玖欣物联科技有限公司 Gateway equipment IP address remote management method based on lwm m protocol
CN115623607A (en) * 2021-07-13 2023-01-17 中国移动通信集团设计院有限公司 Link establishment method, terminal equipment and storage medium of wireless backhaul base station
CN115604097A (en) * 2022-11-30 2023-01-13 天津聚芯光禾科技有限公司(Cn) Automatic configuration and detection system and method for switch leaving factory
CN116599932A (en) * 2023-06-09 2023-08-15 深圳市广和通无线通信软件有限公司 Subnet mask configuration method and device, storage medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949784A (en) * 2005-10-12 2007-04-18 华为技术有限公司 IP address requesting method for DHCP client by DHCP repeater
CN101227481A (en) * 2008-02-02 2008-07-23 中兴通讯股份有限公司 Apparatus and method of IP access based on DHCP protocol

Family Cites Families (5)

* 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
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
CN101600001B (en) * 2009-06-29 2013-01-16 中兴通讯股份有限公司 Method and device for acquiring configuration information based on dynamic host configuration protocol

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949784A (en) * 2005-10-12 2007-04-18 华为技术有限公司 IP address requesting method for DHCP client by DHCP repeater
CN101227481A (en) * 2008-02-02 2008-07-23 中兴通讯股份有限公司 Apparatus and method of IP access based on DHCP protocol

Also Published As

Publication number Publication date
WO2011000258A1 (en) 2011-01-06
CN101600001A (en) 2009-12-09

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
US7453844B1 (en) Dynamic allocation of channels in a wireless network
JP5331163B2 (en) IP address assignment system, DHCP server, and IP address assignment method
EP2477361B1 (en) Ip address automatic assignment method, equipment and system
CN101577738B (en) Address distribution method and equipment thereof
US10218671B2 (en) Dynamic media access control address allocation and leasing for wireless network
CN102752413B (en) Dynamic Host Configuration Protocol server system of selection and the network equipment
CN102413203A (en) IP (Internet Protocol) address allocation method and device
CN112654049B (en) Method, system, node and medium for configuring a wireless communication coverage extension system
CN101378347B (en) Method for managing terminal roaming and multi-scene
CN105245629A (en) DHCP-based host communication method and device
CN103428681A (en) Base station self-starting configuration parameter acquisition method, base station self-starting method and equipment
CN102769678B (en) A kind of dhcp address distribution method and device
CN102780790A (en) Method and system for dynamically allocating IP (Internet Protocol) address
CA2510053C (en) Power saving in wireless packet based networks
CN101018193A (en) Load distribution method and system and device for allocating the backup packet and virtual IP address
JP2003348136A (en) Router setting method
KR20040032989A (en) Network connection apparatus, connection system, and network connection method
EP2566139B1 (en) Method and device for obtaining remote ip address
CN104468159A (en) Management method and device of dynamic host configuration protocol server and relay
CN103501354A (en) Method and device for obtaining base station self-starting configuration parameters
CN102340553B (en) Method and device for allocating and determining IP addresses
CN101674209A (en) Method and system for implementing network discovery

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