CN104410727A - Address distributing method, client terminal, server and address distributing system - Google Patents

Address distributing method, client terminal, server and address distributing system Download PDF

Info

Publication number
CN104410727A
CN104410727A CN201410669722.6A CN201410669722A CN104410727A CN 104410727 A CN104410727 A CN 104410727A CN 201410669722 A CN201410669722 A CN 201410669722A CN 104410727 A CN104410727 A CN 104410727A
Authority
CN
China
Prior art keywords
address
client
configuration protocol
host configuration
dynamic host
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
CN201410669722.6A
Other languages
Chinese (zh)
Other versions
CN104410727B (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201410669722.6A priority Critical patent/CN104410727B/en
Publication of CN104410727A publication Critical patent/CN104410727A/en
Application granted granted Critical
Publication of CN104410727B publication Critical patent/CN104410727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/5046Resolving address allocation conflicts; Testing of addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an address distributing method, a client terminal, a server and an address distributing system. The address distributing method comprises the following steps: the client terminal receives IP address feedback information sent by a dynamic host configuration protocol (DHCP) server, in which the IP address feedback information includes an IP address distributed by the DHCP server for the client terminal; the client terminal carries out address conflict detection to the IP address; if the IP address has a conflict, the client terminal sends declining information to the DHCP server and sends a new IP address application process to the DHCP server; if the IP address has no conflict, the client terminal sends acknowledgement information to the DHCP server. The client terminal carries out the address conflict detection to the IP address of the DHCP server, so that the technical problem of the client terminal incapable of bearing services caused by the repetition of the IP address is solved.

Description

Address distribution method, client, server and address allocation system
Technical field
The present invention relates to the communication technology, particularly relate to a kind of address distribution method, client, server and address allocation system.
Background technology
DHCP (Dynamic Host Configuration Protocol, DHCP) be the procotol of local area network (LAN), adopt client/server (Client/Server is called for short CS) framework, Dynamic Host Configuration Protocol server is mainly used in as client distributing IP address.
As shown in Figure 1, in the prior art, Dynamic Host Configuration Protocol server is that client distributing IP address process is as follows: step 101, client send application IP addresses message; Step 102, receive the Dynamic Host Configuration Protocol server distributing IP address of this application IP addresses message, and this IP address is sent to client; Step 103, client return acknowledge message after receiving this IP address.
But, owing to adopting the method distributing IP address of above-mentioned steps 101 to step 103 in prior art, often cause client cannot the problem of bearer service.
Summary of the invention
The invention provides a kind of address distribution method, client, server and address allocation system, with overcome repeat due to IP address the client that causes in prior art cannot the technical problem of bearer service.
The invention provides a kind of address distribution method, comprising:
Client receives the IP address feedback message that dynamic host configuration protocol DHCP server sends, and it is the IP address that described client is distributed that described IP address feedback message comprises described Dynamic Host Configuration Protocol server;
Described client carries out address conflict detection to described IP address;
If described IP address clashes, then described client sends to described Dynamic Host Configuration Protocol server and refuses message politely, and initiates new IP application IP addresses process to described Dynamic Host Configuration Protocol server;
If described IP address does not clash, then described client sends acknowledge message to described Dynamic Host Configuration Protocol server.
Further, describedly initiate new IP application IP addresses process to described Dynamic Host Configuration Protocol server, specifically comprise:
Described client, after the silence period, initiates new IP application IP addresses process to described Dynamic Host Configuration Protocol server.
Further, described IP address feedback message, also comprises: use the rental period;
Described method, also comprises:
When described client reaches the described use rental period service time to described IP address, described client continues to use described IP address, and described client initiates new IP application IP addresses process to described Dynamic Host Configuration Protocol server.
Further, described client, to after described Dynamic Host Configuration Protocol server initiates new IP application IP addresses process, also comprises:
If through the very first time, described client does not receive the IP address that described Dynamic Host Configuration Protocol server sends, then described client initiates IP application IP addresses process to described Dynamic Host Configuration Protocol server again;
If the second time after the very first time, described client does not receive the IP address that described Dynamic Host Configuration Protocol server sends, then described client initiates IP application IP addresses process to described Dynamic Host Configuration Protocol server again;
Wherein, described second time is greater than the described very first time.
The present invention also provides a kind of address distribution method, comprising:
Dynamic host configuration protocol DHCP server is according to can distributing IP address list be client distributing IP address, and by IP address feedback message, the IP address of distribution is sent to described client, to make described client, address conflict detection is carried out to described IP address;
What receive the transmission of described client refuses message politely, determines that described client does not use described IP address;
Or,
Receive the acknowledge message that described client sends, determine that described client uses described IP address.
Further, described IP address feedback message, also comprises: use the rental period;
Wherein, in the described use rental period, when reaching the described use rental period for making described client, described client continues to use described IP address, and described client initiates new IP application IP addresses process to described Dynamic Host Configuration Protocol server service time to described IP address.
Further, described dynamic host configuration protocol DHCP server, according to can distributing IP address list be client distributing IP address, specifically comprises:
Described Dynamic Host Configuration Protocol server is according to can distributing IP address list and address conflict list be described client distributing IP address;
Wherein, described address conflict list comprises by the IP address used.
Further, receive the acknowledge message of described client transmission at described dhcp client after, also comprise:
Described Dynamic Host Configuration Protocol server, according to described acknowledge message, safeguards described address conflict list.
Further, described can distributing IP address list comprise at least two sons can distributing IP address list;
Described method, also comprises:
After described Dynamic Host Configuration Protocol server is restarted, described Dynamic Host Configuration Protocol server can distributing IP address list be described client distributing IP address according to being different from the son before restarting.
The present invention also provides a kind of client, comprising:
Receiver module, for receiving the IP address feedback message that dynamic host configuration protocol DHCP server sends, it is the IP address that described client is distributed that described IP address feedback message comprises described Dynamic Host Configuration Protocol server;
Collision detection module, for carrying out address conflict detection to described IP address;
Sending module, for when described IP address clashes, sends to described Dynamic Host Configuration Protocol server and refuses message politely, and initiate new IP application IP addresses process to described Dynamic Host Configuration Protocol server, or, for when described IP address does not clash, send acknowledge message to described Dynamic Host Configuration Protocol server.
Further, described sending module, specifically for:
After the silence period, initiate new IP application IP addresses process to described Dynamic Host Configuration Protocol server.
Further, described IP address feedback message, also comprises: use the rental period;
Described sending module, also for:
When reaching the described use rental period to the service time of described IP address, end continues to use described IP address, and, initiate new IP application IP addresses process to described Dynamic Host Configuration Protocol server.
Further, described sending module, specifically for:
After described Dynamic Host Configuration Protocol server initiates new IP application IP addresses process, if through the very first time, do not receive the IP address that described Dynamic Host Configuration Protocol server sends, then again initiate IP application IP addresses process to described Dynamic Host Configuration Protocol server; If the second time after the very first time, do not receive the IP address that described Dynamic Host Configuration Protocol server sends, then again initiate IP application IP addresses process to described Dynamic Host Configuration Protocol server;
Wherein, described second time is greater than the described very first time.
The present invention also provides a kind of dynamic host configuration protocol DHCP server, comprising:
Distribution module can distributing IP address list be client distributing IP address for basis;
Message transmission module, for the IP address of distribution being sent to described client by IP address feedback message, carries out address conflict detection to make described client to described IP address;
Message reception module, for receive described client send refuse message politely, determine that described client does not use described IP address, or, for receive described client send acknowledge message, determine that described client uses described IP address.
Further, described IP address feedback message, also comprises: use the rental period;
Wherein, in the described use rental period, when reaching the described use rental period for making described client, described client continues to use described IP address service time to described IP address, further, described client initiates new IP application IP addresses process to described message reception module.
Further, described distribution module, specifically for:
According to can distributing IP address list and address conflict list be described client distributing IP address;
Wherein, described address conflict list comprises by the IP address used.
Further, also comprise: maintenance module;
Described maintenance module, for receive described client send acknowledge message after, safeguard described address conflict list according to described acknowledge message.
Further, described can distributing IP address list comprise at least two sons can distributing IP address list;
Described distribution module, also for;
Restarting rear basis, to be different from the son before restarting can distributing IP address list be described client distributing IP address.
The present invention also provides a kind of address allocation system, comprising:
As the client according to any one of above-mentioned and as the dynamic host configuration protocol DHCP server according to any one of above-mentioned.
Technique effect of the present invention is: carry out address conflict detection by client to the IP address that Dynamic Host Configuration Protocol server distributes, can determine that whether this IP address that Dynamic Host Configuration Protocol server distributes occupied, thus avoid repeat due to IP address the client that causes cannot the technical problem of bearer service.
Accompanying drawing explanation
Fig. 1 is the flow chart of prior art address distribution method;
Fig. 2 is the flow chart of address distribution method embodiment one of the present invention;
Fig. 3 is the flow chart of address distribution method embodiment two of the present invention;
Fig. 4 is the flow chart of address distribution method embodiment three of the present invention;
Fig. 5 is the structural representation of client embodiment of the present invention;
Fig. 6 is the structural representation of server example one of the present invention;
Fig. 7 is the structural representation of server example two of the present invention;
Fig. 8 is the schematic diagram of address allocation system embodiment of the present invention.
Embodiment
The flow chart of Fig. 2 to be the present invention be address distribution method embodiment one.As shown in Figure 2, the method for the present embodiment can comprise:
Step 201, client receive the IP address feedback message that dynamic host configuration protocol DHCP server sends, and it is the IP address that described client is distributed that described IP address feedback message comprises described Dynamic Host Configuration Protocol server.
Particularly, the executive agent of the present embodiment is client.Wherein, client can be the intelligent terminal of the home gateway of bearer service, IPTV set top box and any bearer service after obtaining IP address.
More specifically, before execution step 201, client can by any prior art and Dynamic Host Configuration Protocol server alternately, thus make Dynamic Host Configuration Protocol server be client distributing IP address, repeats no more herein.
In the present embodiment, the IP address of distribution is sent to client by IP address feedback message by Dynamic Host Configuration Protocol server.Correspondingly, client executing receives the operation of IP address feedback message.After client receives IP address feedback message, the IP address that Dynamic Host Configuration Protocol server distributes can be obtained from this IP address feedback message.
It should be noted that: IP address feedback message can be any message of the prior art, the present embodiment contrast is not construed as limiting.
Step 202, described client carry out address conflict detection to described IP address.
Particularly, after client obtains IP address in secondary IP address feedback message, also address conflict detection is carried out to this IP address, whether occupied to detect this IP address.Applicant in this case finds through test in a large number and repeatedly: due to the reason such as the system failure or assault, this IP address distributed by Dynamic Host Configuration Protocol server may be caused occupied, in this case, client cannot use this IP address to carry out service bearer.This is also cause in existing address allocation procedure to occur that client cannot bearer service reason.
More specifically, after client carries out address conflict detection to this IP address that Dynamic Host Configuration Protocol server distributes, if determine, IP address clashes, and perform step 203, if determine, IP address does not clash, and performs step 204.
If the described IP address of step 203 clashes, then described client sends to described Dynamic Host Configuration Protocol server and refuses message politely, and initiates new IP application IP addresses process to described Dynamic Host Configuration Protocol server.
Particularly, after determining that this IP address that Dynamic Host Configuration Protocol server distributes clashes, client sends to Dynamic Host Configuration Protocol server and refuses message politely, occupied to notify this IP address of Dynamic Host Configuration Protocol server.Client also initiates new IP application IP addresses process to Dynamic Host Configuration Protocol server, distributes new IP address to make Dynamic Host Configuration Protocol server.It will be understood by those skilled in the art that: after Dynamic Host Configuration Protocol server is assigned with new IP address, client still needs to carry out address conflict detection to newly assigned IP address.
It should be noted that: refusing message politely can be any message of the prior art, and such as, DECLINE message etc., the present embodiment is not construed as limiting this.
Preferably, client through one period of silence period, then initiates new IP application IP addresses process to Dynamic Host Configuration Protocol server after refusing message politely to Dynamic Host Configuration Protocol server transmission.The length of silence period can be arranged according to demand, and such as, 5 minutes, half an hour etc., the present embodiment does not limit the length of silence period.
After one period of silence period, initiating new IP application IP addresses process by being limited to, can effectively prevent from impacting the registration message storm of Dynamic Host Configuration Protocol server.
It should be noted that the IP application IP addresses process again initiated after the silence period also may occur applying for unsuccessful situation.In this case, client also can initiate IP application IP addresses process again after one period of silence period.Wherein, secondary silence period can be longer than, equal or be shorter than to the primary silence period.
If the described IP address of step 204 does not clash, then described client sends acknowledge message to described Dynamic Host Configuration Protocol server.
Particularly, after determining that this IP address that Dynamic Host Configuration Protocol server distributes does not clash, client sends acknowledge message to Dynamic Host Configuration Protocol server, to notify that this client of Dynamic Host Configuration Protocol server is by this IP address of use.
It should be noted that: acknowledge message can be any message of the prior art, and the present embodiment is not construed as limiting this.
It will be understood by those skilled in the art that: when client is different, perform step 203 and step 204.
The present embodiment, carries out address conflict detection by client to the IP address that Dynamic Host Configuration Protocol server distributes, thus avoid repeat due to IP address the client that causes cannot the technical problem of bearer service.
On the basis of above-described embodiment, further, described IP address feedback message, also comprises: use the rental period;
Described method, also comprises:
When described client reaches the described use rental period service time to described IP address, described client continues to use described IP address, and described client initiates new IP application IP addresses process to described Dynamic Host Configuration Protocol server.
Particularly, the use rental period is also sent to client by IP address feedback message by Dynamic Host Configuration Protocol server, use the rental period for limiting client to this IP address spendable time, after client to reach use the rental period service time to this IP address, client needs again to apply for new IP address, and, before client determines to use new IP address, also namely before the success of new IP application IP addresses, client uses original IP address to carry out service bearer always, thus ensures the continuity of service bearer.
By in the process of applying for new IP address, client continues to use original IP address, and client can be avoided the interruption of service bearer.
On the basis of above-described embodiment, further, described client, to after described Dynamic Host Configuration Protocol server initiates new IP application IP addresses process, also comprises:
If through the very first time, described client does not receive the IP address that described Dynamic Host Configuration Protocol server sends, then described client initiates IP application IP addresses process to described Dynamic Host Configuration Protocol server again;
If the second time after the very first time, described client does not receive the IP address that described Dynamic Host Configuration Protocol server sends, then described client initiates IP application IP addresses process to described Dynamic Host Configuration Protocol server again;
Wherein, described second time is greater than the described very first time.
Particularly, applicant in this case finds through test in a large number and repeatedly: due to reasons such as Dynamic Host Configuration Protocol server fault, link failures, may cause in the very first time of client after initiating new IP application IP addresses process, fail to receive newly assigned IP address.Continuation uses former IP address to carry out service bearer by client, again initiates new IP application IP addresses process, and continues to wait in second time longer than the very first time whether receiving newly assigned IP address.If still do not receive newly assigned IP address within client second time, then client continues to use former IP address to carry out service bearer, again initiate new IP application IP addresses process, and continue to wait in three time longer than the second time whether receiving newly assigned IP address.
It should be noted that: client can also continue to wait for four time longer than the 3rd time, five time etc. longer than the 4th time.Wherein, the concrete numerical value of the very first time, the second time can pre-set, and also can be that Dynamic Host Configuration Protocol server sends to client by IP address feedback message.
Preferably, when using the rental period for T, the very first time can be 50%T, and the second time was 87.5%T.
More preferably, rental period, the very first time, the second time is used to obey general pine distribution.
It should be noted that, renewed treaty cycle T should be greater than or equal to bearer service and on average keep duration.Due to very first time 50%T, the second time 87.5%T, in order to ensure that renewed treaty cycle T >=bearer service on average keeps duration, so renewed treaty cycle T can equal the average maintenance duration of bearer service, on average keep duration according to business, and by business setting independently Dynamic Host Configuration Protocol server.
It will be understood by those skilled in the art that: when be such as due to Dynamic Host Configuration Protocol server break down cannot for client distributing IP address, Dynamic Host Configuration Protocol server restarts needs the regular hour, during this period of time, client repeatedly initiates IP application IP addresses process can not obtain new IP address, therefore, in the present embodiment, by extending the stand-by period, the number of times that client initiates IP application IP addresses process can be reduced, thus reduce the expense of link.
Fig. 3 is the flow chart of address distribution method embodiment two of the present invention.As shown in Figure 3, the method for the present embodiment can comprise:
Step 301, dynamic host configuration protocol DHCP server are according to can distributing IP address list be client distributing IP address, and by IP address feedback message, the IP address of distribution is sent to described client, to make described client, address conflict detection is carried out to described IP address.
Particularly, the executive agent of the present embodiment is Dynamic Host Configuration Protocol server.
More specifically, can in distributing IP address list, record be allocate the IP address range to Dynamic Host Configuration Protocol server in advance.Dynamic Host Configuration Protocol server, after the IP address assignment request receiving client initiation, can be selected an IP address distributing IP address list from this, and by IP address feedback message, this IP address be sent to client.Client, behind this IP address of acquisition, can carry out address conflict detection to this IP address.
Step 302, receive described client send refuse message politely, determine that described client does not use described IP address; Or, receive the acknowledge message that described client sends, determine that described client uses described IP address.
Particularly, client refuses message or acknowledge message according to the testing result of this IP address politely to Dynamic Host Configuration Protocol server transmission, and correspondingly, Dynamic Host Configuration Protocol server performs the operation refusing message or acknowledge message politely receiving this client and send.
Preferably, Dynamic Host Configuration Protocol server receive client send refuse message politely after, by the interface between Dynamic Host Configuration Protocol server and network management system, this IP address is sent to network management system, to inform that this IP address of webmaster may be illegally occupied.This is because in the event of a large amount of IP address conflict events, this just shows to receive ARP and attacks, the keeper managed network management system needs to take appropriate measures and improves the safety of network.
The present embodiment, carries out address conflict detection by client to the IP address that Dynamic Host Configuration Protocol server distributes, thus avoid repeat due to IP address the client that causes cannot the technical problem of bearer service.
On the basis of above-described embodiment, further, described IP address feedback message, also comprises: use the rental period;
Wherein, in the described use rental period, when reaching the described use rental period for making described client, described client continues to use described IP address, and described client initiates new IP application IP addresses process to described Dynamic Host Configuration Protocol server service time to described IP address.
Particularly, the use rental period is also sent to client by IP address feedback message by Dynamic Host Configuration Protocol server, use the rental period for limiting client to this IP address spendable time, client to reach the service time to this IP address use the rental period time, client needs again to apply for new IP address, and before client determines to use new IP address, client always original IP address carries out service bearer.
By in the process of applying for new IP address, client continues to use original IP address, and client can be avoided the interruption of service bearer.
On the basis of above-described embodiment, further, described dynamic host configuration protocol DHCP server, according to can distributing IP address list be client distributing IP address, specifically comprises:
Described Dynamic Host Configuration Protocol server is according to can distributing IP address list and address conflict list be described client distributing IP address;
Wherein, described address conflict list comprises by the IP address used.
Particularly, first, Dynamic Host Configuration Protocol server is from choosing an IP address distributing IP address list, then, the list of Dynamic Host Configuration Protocol server traversal address conflict, checks whether this IP address is present in address conflict list, if this IP address is present in address conflict list, then show that this IP address is used by other client, then Dynamic Host Configuration Protocol server is again from choosing an IP address again distributing IP address list, again continues the list of traversal address conflict.Until the IP address that Dynamic Host Configuration Protocol server is chosen is not present in address conflict list, and client is handed down in this IP address.
On the basis of above-described embodiment, further, receive the acknowledge message of described client transmission at described Dynamic Host Configuration Protocol server after, also comprise:
Described Dynamic Host Configuration Protocol server, according to described acknowledge message, safeguards described address conflict list.
Particularly, receive the acknowledge message of client transmission at Dynamic Host Configuration Protocol server after, the IP address distributing to this client is added in address conflict list, to show that this IP address is used, can not reallocate to other client, to avoid the IP address conflict distributed.
On the basis of above-described embodiment, further, described can distributing IP address list comprise at least two sons can distributing IP address list;
Described method, also comprises:
After described Dynamic Host Configuration Protocol server is restarted, described Dynamic Host Configuration Protocol server can distributing IP address list be described client distributing IP address according to being different from the son before restarting.
Particularly, can by can distributing IP address list be divided at least two sons can distributing IP address list, after Dynamic Host Configuration Protocol server is restarted owing to breaking down, from being different from the son before restarting, can to choose IP address distributing IP address list be client distributing IP address.
By can distributing IP address list comprise at least two sons can distributing IP address list, and after Dynamic Host Configuration Protocol server is restarted, adopt that to be different from the son before restarting can distributing IP address list be client distributing IP address, the IP address conflict distributing to client can be avoided further.
Fig. 4 is the flow chart of address distribution method embodiment three of the present invention.As shown in Figure 4, the method for the present embodiment can comprise:
Step 401, Dynamic Host Configuration Protocol server are according to can distributing IP address list, address conflict list be client distributing IP address.
Particularly, the present embodiment describes the present embodiment by client and the mutual mode of Dynamic Host Configuration Protocol server.
More specifically, client can adopt any prior art to initiate IP application IP addresses to Dynamic Host Configuration Protocol server, DHCP after receiving the IP application IP addresses that client initiates, historically have can distributing IP address field can distributing IP address list and to record be client distributing IP address by the address conflict list of the IP address used.
Step 402, Dynamic Host Configuration Protocol server send IP address feedback message.
Particularly, the IP address of distribution, by IP address feedback message, is sent to client by Dynamic Host Configuration Protocol server, also comprises and use the rental period in the feedback message of IP address.Use the rental period for after representing that client to reach use the rental period service time to this IP address, need again to apply for new IP address.
Also it should be noted that: Dynamic Host Configuration Protocol server also can send to client by the IP address feedback message including IP address by using the use rental period of this IP address simultaneously.Dynamic Host Configuration Protocol server also after client confirms to use this IP address, can send to client and uses the rental period again.The present embodiment is not construed as limiting this.
Step 403, client carry out address conflict detection to the IP address received.
Particularly, after client receives Dynamic Host Configuration Protocol server transmission IP address feedback message, obtain the IP address of distribution in secondary IP address feedback message, and address conflict detection is carried out to this IP address.
If step 404 does not clash, client sends acknowledge message to Dynamic Host Configuration Protocol server.
Particularly, step 404 is identical with step 204, repeats no more herein.
More specifically, if determine that this IP address clashes after detecting, then client sends to Dynamic Host Configuration Protocol server and refuses message politely, and detailed process, with reference to step 203, repeats no more herein.Wherein, this step is not shown in Figure 4.
Step 405, Dynamic Host Configuration Protocol server safeguard address conflict list.
Particularly, the IP address distributed for this client is added in address conflict list after receiving the determination message of client transmission by Dynamic Host Configuration Protocol server.
Preferably, Dynamic Host Configuration Protocol server, after the acknowledge message receiving client transmission, also will be bound this IP address of client mac address and distribution, to confirm the legitimacy of client.And after the legitimacy confirming client, to confirming that client mac address, the IP address of distribution and the corresponding relation of use rental period three carry out association store.Further, then execute confirm client legitimacy after, also to client send response message.
Step 406, when client uses time of IP address to reach to use the rental period, client initiates IP application IP addresses process to Dynamic Host Configuration Protocol server.
Particularly, client is before determining to use newly assigned IP address, and client uses original IP address always.
If step 407 is within the very first time, client does not receive newly assigned IP address, then client is in the new IP application IP addresses process of secondary initiation.
Particularly, due to reasons such as Dynamic Host Configuration Protocol server fault, link failures, may cause in client a period of time after initiating new IP application IP addresses and cannot obtain newly assigned IP address.In this case, after client initiates new IP application IP addresses process, wait for the very first time, if do not receive newly assigned IP address after the very first time, then client initiates new IP application IP addresses process again.
If in second time of step 408 after the very first time, client does not receive newly assigned IP address, then client initiates new IP application IP addresses process again.
Particularly, after step 407, continue wait second time, if still do not receive newly assigned IP address within the second time, then client initiates new IP application IP addresses process to client again.Wherein, the second time is longer than the very first time.
It should be noted that: the very first time and the second time can be handed down to client by Dynamic Host Configuration Protocol server in IP application IP addresses process, also can be kept in advance in the storage medium of client.
Also it should be noted that: in the usual two kinds of situations of client, initiate IP application IP addresses process.The first is initiated to after date in the use rental period of client, initiates when the second is client start.In a first scenario, client has old IP address, also namely useful life exceedes the IP address using the rental period, client is before successfully new IP address is arrived in application, old IP address is still used to carry out service bearer, thus ensureing the continuity of service bearer, it specifically applies for that the detailed process of new IP address is with reference to the present embodiment.
The present embodiment, carries out address conflict detection by client to the IP address that Dynamic Host Configuration Protocol server distributes, thus avoid repeat due to IP address the client that causes cannot the technical problem of bearer service.
Fig. 5 is the structural representation of client embodiment of the present invention.As shown in Figure 5, client comprises: receiver module 501, collision detection module 502 and sending module 503.
Wherein, receiver module 501, for receiving the IP address feedback message that dynamic host configuration protocol DHCP server sends, it is the IP address that described client is distributed that described IP address feedback message comprises described Dynamic Host Configuration Protocol server.
Collision detection module 502, for carrying out address conflict detection to described IP address.
Sending module 503, for when described IP address clashes, sends to described Dynamic Host Configuration Protocol server and refuses message politely, and initiate new IP application IP addresses process to described Dynamic Host Configuration Protocol server, or, for when described IP address does not clash, send acknowledge message to described Dynamic Host Configuration Protocol server.
The client of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 2, it realizes principle and technique effect is similar, repeats no more herein.
On the basis of above-described embodiment, further, described sending module 503, specifically for:
After the silence period, initiate new IP application IP addresses process to described Dynamic Host Configuration Protocol server.
On the basis of above-described embodiment, further, described IP address feedback message, also comprises: use the rental period;
Described sending module 503, also for:
When reaching the described use rental period to the service time of described IP address, end continues to use described IP address, and, initiate new IP application IP addresses process to described Dynamic Host Configuration Protocol server.
On the basis of above-described embodiment, further, described sending module 503, specifically for:
After described Dynamic Host Configuration Protocol server initiates new IP application IP addresses process, if through the very first time, do not receive the IP address that described Dynamic Host Configuration Protocol server sends, then again initiate IP application IP addresses process to described Dynamic Host Configuration Protocol server; If the second time after the very first time, do not receive the IP address that described Dynamic Host Configuration Protocol server sends, then again initiate IP application IP addresses process to described Dynamic Host Configuration Protocol server;
Wherein, described second time is greater than the described very first time.
Fig. 6 is the structural representation of server example one of the present invention.As shown in Figure 6, Dynamic Host Configuration Protocol server, comprising: distribution module 601, message transmission module 602 and message reception module 603.
Wherein, distribution module 601 can distributing IP address list be client distributing IP address for basis;
Message transmission module 602, for the IP address of distribution being sent to described client by IP address feedback message, carries out address conflict detection to make described client to described IP address;
Message reception module 603, for receive described client send refuse message politely, determine that described client does not use described IP address, or, for receive described client send acknowledge message, determine that described client uses described IP address.
The client of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 3, it realizes principle and technique effect is similar, repeats no more herein.
On the basis of above-described embodiment, further, described IP address feedback message, also comprises: use the rental period;
Wherein, in the described use rental period, when reaching the described use rental period for making described client, described client continues to use described IP address service time to described IP address, further, described client initiates new IP application IP addresses process to described message reception module.
On the basis of above-described embodiment, further, described distribution module 601, specifically for:
According to distributing IP address list and address conflict list being assigned as described client distributing IP address;
Wherein, described address conflict list comprises by the IP address used.
Fig. 7 is the structural representation of server example two of the present invention.As shown in Figure 7, server also comprises: maintenance module 604.
Wherein, maintenance module 604, for receive described client send acknowledge message after, safeguard described address conflict list according to described acknowledge message.
On the basis of above-described embodiment, further, described can distributing IP address list comprise at least two sons can distributing IP address list;
Described distribution module 601, also for;
Restarting rear basis, to be different from the son before restarting can distributing IP address list be described client distributing IP address.
Fig. 8 is the schematic diagram of address allocation system embodiment of the present invention.As shown in Figure 8, address allocation system comprises: as the client 801 in above-described embodiment, as the Dynamic Host Configuration Protocol server 802 in above-described embodiment.
The address allocation system of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 2 to Fig. 4, it realizes principle and technique effect is similar, repeats no more herein.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (11)

1. an address distribution method, is characterized in that, comprising:
Client receives the IP address feedback message that dynamic host configuration protocol DHCP server sends, and it is the IP address that described client is distributed that described IP address feedback message comprises described Dynamic Host Configuration Protocol server;
Described client carries out address conflict detection to described IP address;
If described IP address clashes, then described client sends to described Dynamic Host Configuration Protocol server and refuses message politely, and initiates new IP application IP addresses process to described Dynamic Host Configuration Protocol server;
If described IP address does not clash, then described client sends acknowledge message to described Dynamic Host Configuration Protocol server.
2. method according to claim 1, is characterized in that, described IP address feedback message, also comprises: use the rental period;
Described method, also comprises:
When described client reaches the described use rental period service time to described IP address, described client continues to use described IP address, and described client initiates new IP application IP addresses process to described Dynamic Host Configuration Protocol server.
3. an address distribution method, is characterized in that, comprising:
Dynamic host configuration protocol DHCP server is according to can distributing IP address list be client distributing IP address, and by IP address feedback message, the IP address of distribution is sent to described client, to make described client, address conflict detection is carried out to described IP address;
What receive the transmission of described client refuses message politely, determines that described client does not use described IP address;
Or,
Receive the acknowledge message that described client sends, determine that described client uses described IP address.
4. method according to claim 3, is characterized in that, described IP address feedback message, also comprises: use the rental period;
Wherein, in the described use rental period, when reaching the described use rental period for making described client, described client continues to use described IP address, and described client initiates new IP application IP addresses process to described Dynamic Host Configuration Protocol server service time to described IP address.
5. the method according to claim 3 or 4, is characterized in that, described can distributing IP address list comprise at least two sons can distributing IP address list;
Described method, also comprises:
After described Dynamic Host Configuration Protocol server is restarted, described Dynamic Host Configuration Protocol server can distributing IP address list be described client distributing IP address according to being different from the son before restarting.
6. a client, is characterized in that, comprising:
Receiver module, for receiving the IP address feedback message that dynamic host configuration protocol DHCP server sends, it is the IP address that described client is distributed that described IP address feedback message comprises described Dynamic Host Configuration Protocol server;
Collision detection module, for carrying out address conflict detection to described IP address;
Sending module, for when described IP address clashes, sends to described Dynamic Host Configuration Protocol server and refuses message politely, and initiate new IP application IP addresses process to described Dynamic Host Configuration Protocol server, or, for when described IP address does not clash, send acknowledge message to described Dynamic Host Configuration Protocol server.
7. client according to claim 6, is characterized in that, described IP address feedback message, also comprises: use the rental period;
Described sending module, also for:
When reaching the described use rental period to the service time of described IP address, end continues to use described IP address, and, initiate new IP application IP addresses process to described Dynamic Host Configuration Protocol server.
8. a dynamic host configuration protocol DHCP server, is characterized in that, comprising:
Distribution module can distributing IP address list be client distributing IP address for basis;
Message transmission module, for the IP address of distribution being sent to described client by IP address feedback message, carries out address conflict detection to make described client to described IP address;
Message reception module, for receive described client send refuse message politely, determine that described client does not use described IP address, or, for receive described client send acknowledge message, determine that described client uses described IP address.
9. server according to claim 8, is characterized in that, described IP address feedback message, also comprises: use the rental period;
Wherein, in the described use rental period, when reaching the described use rental period for making described client, described client continues to use described IP address service time to described IP address, further, described client initiates new IP application IP addresses process to described message reception module.
10. server according to claim 8 or claim 9, is characterized in that, described can distributing IP address list comprise at least two sons can distributing IP address list;
Described distribution module, also for;
Restarting rear basis, to be different from the son before restarting can distributing IP address list be described client distributing IP address.
11. 1 kinds of address allocation systems, is characterized in that, comprising:
Client as claimed in claims 6 or 7 and the dynamic host configuration protocol DHCP server according to any one of claim 8 ~ 10.
CN201410669722.6A 2014-11-20 2014-11-20 Address distribution method, client, server and address allocation system Active CN104410727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410669722.6A CN104410727B (en) 2014-11-20 2014-11-20 Address distribution method, client, server and address allocation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410669722.6A CN104410727B (en) 2014-11-20 2014-11-20 Address distribution method, client, server and address allocation system

Publications (2)

Publication Number Publication Date
CN104410727A true CN104410727A (en) 2015-03-11
CN104410727B CN104410727B (en) 2018-03-23

Family

ID=52648322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410669722.6A Active CN104410727B (en) 2014-11-20 2014-11-20 Address distribution method, client, server and address allocation system

Country Status (1)

Country Link
CN (1) CN104410727B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869665A (en) * 2015-04-10 2015-08-26 广东欧珀移动通信有限公司 Network connection control method, router and mobile equipment
CN108712513A (en) * 2018-03-27 2018-10-26 广东欧珀移动通信有限公司 network address setting method, device, terminal device and storage medium
CN113067742A (en) * 2020-01-02 2021-07-02 中国移动通信有限公司研究院 IPoE processing method and device and home gateway

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553350A (en) * 2003-06-06 2004-12-08 鸿富锦精密工业(深圳)有限公司 Dynamic master configurating method
CN1992736A (en) * 2005-12-30 2007-07-04 西门子(中国)有限公司 IP address distribution method and use thereof
CN101656763A (en) * 2009-09-11 2010-02-24 华为技术有限公司 IP address automatic distribution method, client and server
CN101674338A (en) * 2009-10-16 2010-03-17 福建星网锐捷网络有限公司 Recovering method of IP address and DHCP server
CN102244690A (en) * 2011-07-26 2011-11-16 福建星网锐捷网络有限公司 Address allocation method and system of dynamic host configuration protocol (DHCP) as well as client side and servers of same
CN102281333A (en) * 2010-06-11 2011-12-14 中兴通讯股份有限公司 Method and system for avoiding IP address conflict, DHCP server and DHCP client
CN102325200A (en) * 2011-09-22 2012-01-18 杭州华三通信技术有限公司 Method for rapidly acquiring IPv6 (Internet Protocol Version 6) address and DHCP (Dynamic Host Configuration Protocol) snooping equipment
CN102439949A (en) * 2011-10-17 2012-05-02 华为技术有限公司 Method for solving internet protocol address assignment conflict and related device and system
CN104104744A (en) * 2014-07-09 2014-10-15 杭州华三通信技术有限公司 IP address assignment method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553350A (en) * 2003-06-06 2004-12-08 鸿富锦精密工业(深圳)有限公司 Dynamic master configurating method
CN1992736A (en) * 2005-12-30 2007-07-04 西门子(中国)有限公司 IP address distribution method and use thereof
CN101656763A (en) * 2009-09-11 2010-02-24 华为技术有限公司 IP address automatic distribution method, client and server
CN101674338A (en) * 2009-10-16 2010-03-17 福建星网锐捷网络有限公司 Recovering method of IP address and DHCP server
CN102281333A (en) * 2010-06-11 2011-12-14 中兴通讯股份有限公司 Method and system for avoiding IP address conflict, DHCP server and DHCP client
CN102244690A (en) * 2011-07-26 2011-11-16 福建星网锐捷网络有限公司 Address allocation method and system of dynamic host configuration protocol (DHCP) as well as client side and servers of same
CN102325200A (en) * 2011-09-22 2012-01-18 杭州华三通信技术有限公司 Method for rapidly acquiring IPv6 (Internet Protocol Version 6) address and DHCP (Dynamic Host Configuration Protocol) snooping equipment
CN102439949A (en) * 2011-10-17 2012-05-02 华为技术有限公司 Method for solving internet protocol address assignment conflict and related device and system
CN104104744A (en) * 2014-07-09 2014-10-15 杭州华三通信技术有限公司 IP address assignment method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869665A (en) * 2015-04-10 2015-08-26 广东欧珀移动通信有限公司 Network connection control method, router and mobile equipment
CN104869665B (en) * 2015-04-10 2018-11-20 广东欧珀移动通信有限公司 Control method, wireless router and the mobile device of network connection
CN108712513A (en) * 2018-03-27 2018-10-26 广东欧珀移动通信有限公司 network address setting method, device, terminal device and storage medium
CN108712513B (en) * 2018-03-27 2021-09-17 Oppo广东移动通信有限公司 Network address setting method and device, terminal equipment and storage medium
CN113067742A (en) * 2020-01-02 2021-07-02 中国移动通信有限公司研究院 IPoE processing method and device and home gateway

Also Published As

Publication number Publication date
CN104410727B (en) 2018-03-23

Similar Documents

Publication Publication Date Title
CN101330531B (en) Method for processing DHCP address allocation and DHCP relay
CN1845554B (en) Control method for dynamically distributing IP address in 3G network
CN102292963B (en) Method and device for address allocation in a network
WO2020001045A1 (en) Address management method and device
CN102281333B (en) Method and system for avoiding IP address conflict, DHCP server and DHCP client
CN104158917A (en) Method and device for recovering IP (Internet protocol) address of DHCP (dynamic host configuration protocol) client
CN1937632A (en) Address distributing method for broadband wireless access system
CN101924800B (en) Method for obtaining IP address of DHCPv6 server, DHCPv6 server and DHCPv6 communication system
CN101674338A (en) Recovering method of IP address and DHCP server
CN101188514A (en) Method, device and system for automatically discovering network element device
CN107135548B (en) Method and device for updating BSSID and connecting network
CN109548186B (en) Method, device, medium and equipment for relocating PDU session anchor point
CN104410727A (en) Address distributing method, client terminal, server and address distributing system
CN101795449A (en) Wireless network terminal access control method and device thereof
CN107615723B (en) Internet protocol address allocation method and relay equipment
CN102299932A (en) Backup method for DHCP (Dynamic Host Configuration Protocol) server and DHCP server
CN101567908B (en) Address distribution method and device
CN101237460B (en) Processing method, system and device upon lease status change of DHCP Server
CN107517150B (en) Intranet resource access method and device based on virtual private network VPN
CN102238245B (en) Address allocation method and equipment
CN110798546A (en) DUID-based DHCP client access authentication method
US20120008627A1 (en) Method and apparatus for assigning device identifier with collision avoidance
CN101778107B (en) State synchronization processing method and device
CN101304372B (en) Method, equipment and system for collocating access control list
CN105337766A (en) Network element automatic discovery method and system based on DHCP

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant