CN105592172A - Dynamic host configuration protocol (DHCP) reconnection method, DHCP server and system - Google Patents

Dynamic host configuration protocol (DHCP) reconnection method, DHCP server and system Download PDF

Info

Publication number
CN105592172A
CN105592172A CN201410571158.4A CN201410571158A CN105592172A CN 105592172 A CN105592172 A CN 105592172A CN 201410571158 A CN201410571158 A CN 201410571158A CN 105592172 A CN105592172 A CN 105592172A
Authority
CN
China
Prior art keywords
configuration protocol
host configuration
message
dynamic host
protocol server
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.)
Withdrawn
Application number
CN201410571158.4A
Other languages
Chinese (zh)
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.)
ZTE Corp
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 CN201410571158.4A priority Critical patent/CN105592172A/en
Priority to PCT/CN2015/092657 priority patent/WO2016062268A1/en
Publication of CN105592172A publication Critical patent/CN105592172A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a dynamic host configuration protocol (DHCP) reconnection method, a DHCP server and a system. The method comprises steps: when a terminal is switched into a second DHCP server from a first DHCP server, a first DHCP request message is broadcasted outwardly; and after the second DHCP server receives the first DHCP request message, if related equipment information for maintaining the terminal is judged not to exist, a DHCPNAK message is returned to the terminal to inform the terminal to open a new reconnection process. Time delay caused by multiple times of DHCPREQUEST retry of hanging equipment can be saved, and the purpose of quick reconnection is achieved.

Description

DHCP reconnection method, Dynamic Host Configuration Protocol server and system
Technical field
The present invention relates to network communications technology field, relate in particular to a kind of DHCP side of reconnectingMethod, Dynamic Host Configuration Protocol server and system.
Background technology
DHCP (DHCP, DynamicHostConfigurationProtocol) is oneThe procotol of individual LAN, is used udp protocol work, based on Client/Server mode of operation, forOn internet, main frame provides IP address and configuration parameter, mainly contains two purposes: give internal network or networkService supplier's automatic IP address allocation, gives user or internal network keeper as to all computersMake the means of central management.
At present, along with hanging standby extensive use under mobile phone etc., obtain address by DHCP mode and becomeMore and more important, if hang the standby DHCPServer of switching still, see off for hanging preparation under thisDHCPREQUEST message, DHCPServer will carry out quiet according to RFC2131 specification 4.3.2 jointSilent processing, object is the situation (referring to Fig. 1) that reply has multiple DHCPServer on same circuit.This hangs the multiple DHCPREQUEST of standby transmission continuously and can not get response under just causing, can only wait for retryFinish, resend DHCPDISCOVER message and open new connection procedure ability address acquisition,Thus, under causing, hang that standby to reconnect time delay larger, experience poor to user.
Summary of the invention
Main purpose of the present invention is to provide a kind of DHCP reconnection method, DHCP clothesBusiness device and system, be intended to hang and obtain address time delay for what cause because of switching Dynamic Host Configuration Protocol server under solvingLarge problem, hangs standby DHCP Fast reconnect under realization.
In order to achieve the above object, the present invention proposes a kind of DHCP reconnection method, comprising:
Terminal, in the time being switched to the second Dynamic Host Configuration Protocol server from the first Dynamic Host Configuration Protocol server, outwards broadcasts firstDHCP request message;
Described the second Dynamic Host Configuration Protocol server is receiving after a described DHCP request message, if through judgementDo not safeguard the relevant device information of described terminal, return to DHCPNAK message to described terminal, withInform that described terminal opens a new reconnect procedure.
Preferably, the method also comprises:
Described terminal, receiving after described DHCPNAK message, is sent out to described the second Dynamic Host Configuration Protocol serverSend the 2nd DHCP request message, confirm to select described the second Dynamic Host Configuration Protocol server;
Described the second Dynamic Host Configuration Protocol server returns to DHCPACK message to described terminal.
Preferably, the method also comprises:
Described terminal, receiving after described DHCPNAK message, is outwards broadcasted DISCOVER message;
Described the second Dynamic Host Configuration Protocol server, receiving after described DISCOVER message, returns to described terminalReturn DHCPOFFER message;
Described terminal receives after described DHCPOFFER message, sends out to described the second Dynamic Host Configuration Protocol serverSend the 2nd DHCP request message, confirm to select described the second Dynamic Host Configuration Protocol server;
Described the second Dynamic Host Configuration Protocol server returns to DHCPACK message to described terminal.
Preferably, described terminal in the time being switched to the second Dynamic Host Configuration Protocol server from the first Dynamic Host Configuration Protocol server,Outwards before the step of broadcast the one DHCP request message, also comprise:
Described terminal accesses after described the first Dynamic Host Configuration Protocol server, outwards broadcasts DISCOVER message;
Described the first Dynamic Host Configuration Protocol server, receiving after described DISCOVER message, returns to described terminalReturn DHCPOFFER message;
Described terminal receives after described DHCPOFFER message, sends out to described the first Dynamic Host Configuration Protocol serverSend the 2nd DHCP request message, confirm to select described the first Dynamic Host Configuration Protocol server;
Described the first Dynamic Host Configuration Protocol server returns to DHCPACK message to described terminal.
The embodiment of the present invention also proposes a kind of DHCP reconnection method, comprising:
Dynamic Host Configuration Protocol server receiving terminal is a DHCP request message of broadcast outwards;
According to a described DHCP request message, judging whether to safeguard has the relevant device of described terminal letterBreath;
If do not safeguard the relevant device information of described terminal, return to DHCPNAK report to described terminalLiterary composition, to inform that described terminal opens a new reconnect procedure.
Preferably, the method also comprises:
Receive the 2nd DHCP request message that described terminal sends, described the 2nd DHCP request message is trueRecognize and select described Dynamic Host Configuration Protocol server;
Return to DHCPACK message to described terminal.
Preferably, the method also comprises:
Receive the outwards DISCOVER message of broadcast of described terminal;
According to described DISCOVER message, return to DHCPOFFER message to described terminal;
Receive the 2nd DHCP request message that described terminal sends, described the 2nd DHCP request message is trueRecognize and select described Dynamic Host Configuration Protocol server;
Return to DHCPACK message to described terminal.
The embodiment of the present invention also proposes the Dynamic Host Configuration Protocol server that a kind of DHCP reconnects, and comprising:
Receiver module, for an outwards DHCP request message of broadcast of receiving terminal;
Judge module, for according to a described DHCP request message, judges whether that maintenance has described endThe relevant device information of end;
Sending module, in the time that the relevant device information of described terminal is not safeguarded in judge module judgement,Return to DHCPNAK message to described terminal, to inform that described terminal opens a new reconnect procedure.
Preferably, receiver module described in the method, the 2nd DHCP also sending for receiving described terminalRequest message, described the 2nd DHCP request message confirms to select described Dynamic Host Configuration Protocol server;
Described sending module, also for returning to DHCPACK message to described terminal.
Preferably, the method
Described receiver module, also for receiving the outwards DISCOVER message of broadcast of described terminal;
Described sending module, also, for according to described DISCOVER message, returns to described terminalDHCPOFFER message;
Described receiver module, the 2nd DHCP request message also sending for receiving described terminal, described inThe 2nd DHCP request message confirms to select described Dynamic Host Configuration Protocol server;
Described sending module, also for returning to DHCPACK message to described terminal.
The embodiment of the present invention also proposes the system that a kind of DHCP reconnects, and comprises a DHCPServer, the second Dynamic Host Configuration Protocol server and with described the first Dynamic Host Configuration Protocol server, the second Dynamic Host Configuration Protocol serverThe terminal of communication connection respectively; Wherein:
Described the second Dynamic Host Configuration Protocol server is the Dynamic Host Configuration Protocol server described in any one in claim 8-10;
Described terminal, in the time being switched to the second Dynamic Host Configuration Protocol server from the first Dynamic Host Configuration Protocol server, toOuter broadcast the one DHCP request message; And receive that described the second Dynamic Host Configuration Protocol server returnsDHCPNAK message, and open a new reconnect procedure according to described DHCPNAK message.
A kind of DHCP reconnection method, Dynamic Host Configuration Protocol server that the embodiment of the present invention proposes andSystem, there will not be for a terminal (under hang standby) feelings that simultaneously connect multiple Dynamic Host Configuration Protocol serverCondition, if under hang preparation and send DHCPREQUEST request message, Dynamic Host Configuration Protocol server is not through judgementHave and safeguard relevant facility information, directly reply DHCPNAK message, under impelling, hang for sending out immediatelySend DHCPDISCOVER, open and newly once obtain address process, thus under having saved, hang standby repeatedlyThe time delay that DHCPREQUEST retry causes, has reached the object of Fast reconnect.
Brief description of the drawings
When Fig. 1 is existing terminal handover network, DHCP is by the interaction diagrams of specification;
Fig. 2 is the schematic flow sheet of DHCP reconnection method one embodiment of the present invention;
Fig. 3 is the schematic flow sheet of another embodiment of DHCP reconnection method of the present invention;
Fig. 4 is the DHCP reconnection method of the present invention schematic flow sheet of an embodiment again;
Fig. 5 is the detailed process schematic diagram of the DHCP reconnection method embodiment shown in Fig. 4;
Fig. 6 is the schematic flow sheet of the another embodiment of DHCP reconnection method of the present invention;
Fig. 7 is the schematic flow sheet of the another embodiment of DHCP reconnection method of the present invention;
Fig. 8 is the schematic flow sheet of the another embodiment of DHCP reconnection method of the present invention;
Fig. 9 is the schematic flow sheet of the another embodiment of DHCP reconnection method of the present invention;
Figure 10 is the Dynamic Host Configuration Protocol server one embodiment functional module that DHCP of the present invention reconnectsSchematic diagram;
Figure 11 is the structural representation of system one embodiment that reconnects of DHCP of the present invention.
The structural representation of one embodiment;
Fig. 5 is that the intelligent subscriber that the present invention is based on the large data platform of Internet of Things draws a portrait another embodiment's of deviceStructural representation.
In order to make technical scheme of the present invention clearer, clear, do further in detail below in conjunction with accompanying drawingState.
Detailed description of the invention
The solution of the embodiment of the present invention is mainly: there will not be for a terminal (under hang standby)Connect the situation of multiple Dynamic Host Configuration Protocol server simultaneously, if under hang preparation send DHCPREQUEST pleaseAsk message, Dynamic Host Configuration Protocol server is not safeguarded relevant facility information through judgement, directly replysDHCPNAK message, hangs the standby DHCPDISCOVER that sends immediately under impelling, open and newly once obtainGet address process, time hang the standby time delay that repeatedly DHCPREQUEST retry causes thereby saved, reachArrive the object of Fast reconnect.
First the implementation of existing terminal switching Dynamic Host Configuration Protocol server is once described.
With reference to Fig. 1, when Fig. 1 is terminal (under hang standby) handover network, DHCP is by the interactive stream of specificationCheng Tu, concrete handling process is as follows:
Step 1, lower extension device A is used wireless or wired mode to access DHCPServer1 (firstDynamic Host Configuration Protocol server) place equipment;
Step 2, lower extension device A sends DHCPDISCOVER message;
Step 3, DHCPServer1 replys DHCPOFFER message;
Step 4, lower extension device A sends DHCPREQUEST message, confirms to select DHCPServer1;
Step 5, DHCPServer1 replys DHCPACK message, lower extension device A address acquisition;
Step 6, lower extension device A is switched Dynamic Host Configuration Protocol server, is switched to DHCPServer2 (the 2nd DHCPServer) place equipment; Application scenarios in reality is: mobile phone switches WIFI focus, and AC switches APDeng;
Step 7, switches after Dynamic Host Configuration Protocol server, and lower extension device A can be sent DHCPREQUEST message;
Step 8, according to the code requirement of RFC2131, the DHCPServer2 processing of will mourning in silence herein;
Step 9, hangs the multiple DHCPREQUEST messages of the continuous transmission of device A and can not get after response, etc.Treat that retry finishes, send DISCOVER message;
Step 10, DHCPServer2 replys DHCPOFFER message;
Step 11, lower extension device A sends DHCPREQUEST message, confirms to select DHCPServer2;
Step 12, DHCPServer2 replys DHCPACK message, lower extension device A address acquisition.
From above-mentioned flow process, existingly hang standby handover network implementation under this, can cause lower extensionEquipment sends continuously multiple DHCPREQUEST and can not get response, can only wait for that retry finishes, and again sends outSend DHCPDISCOVER message to open new connection procedure ability address acquisition, thus, under causingHang that standby to reconnect time delay larger, experience poor to user.
The present embodiment scheme under while hanging the standby DHCPServer of switching, if the DHCPServer of new accessDo not safeguard under this and hang standby relevant information, directly reply DHCPNAK message, allow down hang standbyOpen immediately a new reconnect procedure, hang standby repeatedly DHCPREQUEST retry and cause thereby save downTime delay, reach the object of Fast reconnect.
Based on above-mentioned analysis, DHCP reconnection method embodiment of the present invention is proposed.
Particularly, as shown in Figure 2, one embodiment of the invention proposes a kind of DHCP and reconnectsMethod, comprising:
Step S101, terminal in the time being switched to the second Dynamic Host Configuration Protocol server from the first Dynamic Host Configuration Protocol server, toOuter broadcast the one DHCP request message;
Step S102, described the second Dynamic Host Configuration Protocol server is receiving after a described DHCP request message,If do not safeguard the relevant device information of described terminal through judgement, return to DHCPNAK to described terminalMessage, to inform that described terminal opens a new reconnect procedure.
In the present embodiment, terminal in the time being switched to the second Dynamic Host Configuration Protocol server from the first Dynamic Host Configuration Protocol server,Outwards broadcast the one DHCPREQUEST message, externally to inform that this terminal need to be from a DHCPServer switching is to the second Dynamic Host Configuration Protocol server, and in a DHCPREQUEST message, carried terminal is worked asThe IP address of front use.
The second Dynamic Host Configuration Protocol server is receiving after a DHCP request message of terminal transmission, and judgement originallyWhether ground safeguards the relevant device information of this terminal, if do not safeguard that through judgement the relevant of described terminal establishStandby information, the second Dynamic Host Configuration Protocol server returns to DHCPNAK message to described terminal, to inform terminalOpen a new reconnect procedure, that is to say, the second Dynamic Host Configuration Protocol server is accused by DHCPNAK messageKnow terminal: current logic parameter cannot meet the request of terminal, cannot provide corresponding service to terminal,Need terminal to reopen and obtain address process.
Like this, terminal is just without sending continuously multiple DHCPREQUEST wait-for-responses, heavy without waiting forExamination finishes, and opens a new connection procedure but can directly resend DHCPDISCOVER messageAddress acquisition, thus the terminal time delay that repeatedly DHCPREQUEST retry causes saved, reach quick weightThe object connecting.
As shown in Figure 3, another embodiment of the present invention proposes a kind of DHCP reconnection method,Based on the embodiment shown in above-mentioned Fig. 2, also comprise that terminal opens the corresponding steps of a new reconnect procedure,Specifically comprise:
Step S103, described terminal is receiving after described DHCPNAK message, to described the 2nd DHCPServer sends the 2nd DHCP request message, confirms to select described the second Dynamic Host Configuration Protocol server;
Step S104, described the second Dynamic Host Configuration Protocol server returns to DHCPACK message to described terminal.
Compare the embodiment shown in above-mentioned Fig. 2, the present embodiment also comprises that terminal opens a new reconnect procedureConcrete scheme.
First, terminal is receiving after the DHCPNAK message that the second Dynamic Host Configuration Protocol server returns, directlySend the 2nd DHCP request message to the second Dynamic Host Configuration Protocol server, the 2nd DHCP request message carriesThere is selected the second Dynamic Host Configuration Protocol server to obtain the information of relevant IP address, confirm to select the 2nd DHCP clothesBusiness device.
The second Dynamic Host Configuration Protocol server is receiving after the 2nd DHCP request message of terminal transmission, to terminalReturn to DHCPACK message, this DHCPACK message, as confirmation message, carries and distributes to terminalThe information such as the IP address of equipment, route, subnet mask, DNS, rental period, terminal gets online thusThe key messages such as the IP address, route, subnet mask, DNS, rental period needing, reconnect procedure finishes.
As shown in Figure 4, yet another embodiment of the invention proposes a kind of DHCP reconnection method,Based on the embodiment shown in above-mentioned Fig. 2, also comprise that terminal opens the corresponding steps of a new reconnect procedure,It is different that its implementation and the terminal shown in above-mentioned Fig. 3 are opened a new reconnect procedure. Specifically comprise:
Step S105, described terminal is receiving after described DHCPNAK message, outwards broadcastDISCOVER message;
Step S106, described the second Dynamic Host Configuration Protocol server is receiving after described DISCOVER message,Return to DHCPOFFER message to described terminal;
Step S1031, described terminal receives after described DHCPOFFER message, to described secondDynamic Host Configuration Protocol server sends the 2nd DHCP request message, confirms to select described the second Dynamic Host Configuration Protocol server;
Step S1041, described the second Dynamic Host Configuration Protocol server returns to DHCPACK message to described terminal.
Compare the embodiment shown in above-mentioned Fig. 2, the present embodiment also comprises that terminal opens a new reconnect procedureConcrete scheme.
First, terminal, receiving after the DHCPNAK message that the second Dynamic Host Configuration Protocol server returns, is notDirectly send the 2nd DHCP request message to the second Dynamic Host Configuration Protocol server, but overseas broadcastDISCOVER message. This DISCOVER message carry terminal device identification, vender class mark,Host name, and a series of solicited message, this solicited message comprise but be not limited to subnet mask, route,Domain name, and the information such as DNS.
The second Dynamic Host Configuration Protocol server, receiving after described DISCOVER message, returns to terminalDHCPOFFER message, provides the letters such as IP address, route, subnet mask, DNS, rental period to terminalBreath.
Terminal is receiving after the DHCPOFFER message of the second Dynamic Host Configuration Protocol server transmission, to secondDynamic Host Configuration Protocol server sends the 2nd DHCP request message, and the 2nd DHCP request message carries selectedThe second Dynamic Host Configuration Protocol server obtains the information of relevant IP address, confirms to select the second Dynamic Host Configuration Protocol server.
The second Dynamic Host Configuration Protocol server is receiving after the 2nd DHCP request message of terminal transmission, to terminalReturn to DHCPACK message, this DHCPACK message, as confirmation message, carries and distributes to terminalThe information such as the IP address of equipment, route, subnet mask, DNS, rental period, terminal gets online thusThe key messages such as the IP address, route, subnet mask, DNS, rental period needing, reconnect procedure finishes.
Elaborate the handling process of the present embodiment below in conjunction with Fig. 5:
With reference to Fig. 5, Fig. 5 is in the present embodiment, interaction flow when terminal (under hang standby) handover networkFigure, concrete handling process is as follows:
Step 1, lower extension device A (terminal) is used wireless or wired mode to access DHCPServer1(the first Dynamic Host Configuration Protocol server) place equipment;
Step 2, lower extension device A sends DHCPDISCOVER message;
Step 3, DHCPServer1 replys DHCPOFFER message; Herein can by under hang standby receiptsThe DHCPOFFER message source of arriving, judges whether to meet the application scenarios that the present invention proposes: under oneHang standby multiple DHCPServer that can simultaneously not access. If only have a source, according to the inventionApplication scenarios; If have multiple sources, do not meet;
Step 4, lower extension device A sends DHCPREQUEST message, confirms to select DHCPServer1;
Step 5, DHCPServer1 replys DHCPACK message, lower extension device A address acquisition;
Step 6, lower extension device A is switched Dynamic Host Configuration Protocol server, is switched to DHCPServer2 (the 2nd DHCPServer) place equipment; Application scenarios in reality is: mobile phone switches WIFI focus, and AC switches APDeng;
Step 7, switches after Dynamic Host Configuration Protocol server, and lower extension device A can be sent DHCPREQUEST message;
Step 8, according to the code requirement of RFC2131, the DHCPServer2 processing of will mourning in silence herein;And according to requirement of the present invention, DHCPServer2 directly replys DHCPNAK message, allow down hang standbyStart immediately newly once to obtain address process, thereby saved the retry time of DHCPREQUEST;
Step 9, lower extension device A is received after DHCPNAK message, sends DISCOVER message;
Step 10, DHCPServer2 replys DHCPOFFER message;
Step 11, lower extension device A sends DHCPREQUEST message, confirms to select DHCPServer2;
Step 12, DHCPServer2 replys DHCPACK message, lower extension device A address acquisition.
The present embodiment is by such scheme, there will not be simultaneously and connects for a terminal (under hang standby)The situation of multiple Dynamic Host Configuration Protocol server, if under hang preparation and send DHCPREQUEST request message,Dynamic Host Configuration Protocol server is not safeguarded relevant facility information through judgement, directly replys DHCPNAK reportLiterary composition, hangs the standby DHCPDISCOVER that sends immediately under impelling, open the address process of newly once obtaining,Thereby save and time hung the standby time delay that repeatedly DHCPREQUEST retry causes, reached Fast reconnectObject.
As shown in Figure 6, further embodiment of this invention proposes a kind of DHCP reconnection method,Based on the embodiment shown in above-mentioned Fig. 4, terminal is being switched to the 2nd DHCP from the first Dynamic Host Configuration Protocol serverWhen server, the step of outwards broadcasting a DHCP request message also comprises before:
Step S107, described terminal accesses after described the first Dynamic Host Configuration Protocol server, outwards broadcasts DISCOVERMessage;
Step S108, described the first Dynamic Host Configuration Protocol server is receiving after described DISCOVER message,Return to DHCPOFFER message to described terminal;
Step S109, described terminal receives after described DHCPOFFER message, to a described DHCPServer sends the 2nd DHCP request message, confirms to select described the first Dynamic Host Configuration Protocol server;
Step S110, described the first Dynamic Host Configuration Protocol server returns to DHCPACK message to described terminal.
Compare above-described embodiment, the present embodiment also comprises that terminal accesses the scheme of the first Dynamic Host Configuration Protocol server,This process is identical with existing DHCP specification, can be with reference to the idiographic flow shown in Fig. 1, at this no longerRepeat.
It should be noted that, the present embodiment can also combine reality with the embodiment shown in above-mentioned Fig. 2 and Fig. 3Execute, do not repeat them here.
Shown in Fig. 7, further embodiment of this invention proposes a kind of DHCP reconnection method, isThe embodiment of the method proposing from Dynamic Host Configuration Protocol server side, the method comprises:
Step S201, Dynamic Host Configuration Protocol server receiving terminal is a DHCP request message of broadcast outwards;
Step S202, according to a described DHCP request message, judging whether to safeguard has described terminalRelevant device information;
Step S203, if do not safeguard the relevant device information of described terminal, returns to described terminalDHCPNAK message, to inform that described terminal opens a new reconnect procedure.
Particularly, in the present embodiment, terminal is being switched to the 2nd DHCP from the first Dynamic Host Configuration Protocol serverWhen server, outwards broadcast a DHCPREQUEST message, externally to inform that this terminal need to be fromOne Dynamic Host Configuration Protocol server is switched to the second Dynamic Host Configuration Protocol server, in a DHCPREQUEST messageThe IP address of the current use of carried terminal.
The second Dynamic Host Configuration Protocol server is receiving after a DHCP request message of terminal transmission, and judgement originallyWhether ground safeguards the relevant device information of this terminal, if do not safeguard that through judgement the relevant of described terminal establishStandby information, the second Dynamic Host Configuration Protocol server returns to DHCPNAK message to described terminal, to inform terminalOpen a new reconnect procedure, that is to say, the second Dynamic Host Configuration Protocol server is accused by DHCPNAK messageKnow terminal: current logic parameter cannot meet the request of terminal, cannot provide corresponding service to terminal,Need terminal to reopen and obtain address process.
Like this, terminal is just without sending continuously multiple DHCPREQUEST wait-for-responses, heavy without waiting forExamination finishes, and opens a new connection procedure but can directly resend DHCPDISCOVER messageAddress acquisition, thus the terminal time delay that repeatedly DHCPREQUEST retry causes saved, reach quick weightThe object connecting.
Shown in Fig. 8, further embodiment of this invention proposes a kind of DHCP reconnection method, baseIn the embodiment shown in above-mentioned Fig. 7, also comprise:
Step S204, receives the 2nd DHCP request message that described terminal sends, described the 2nd DHCPRequest message confirms to select described Dynamic Host Configuration Protocol server;
Step S205, returns to DHCPACK message to described terminal.
Compare the embodiment shown in above-mentioned Fig. 7, the present embodiment also comprises that terminal opens a new reconnect procedureConcrete scheme.
First, terminal is receiving after the DHCPNAK message that the second Dynamic Host Configuration Protocol server returns, directlySend the 2nd DHCP request message to the second Dynamic Host Configuration Protocol server, the 2nd DHCP request message carriesThere is selected the second Dynamic Host Configuration Protocol server to obtain the information of relevant IP address, confirm to select the 2nd DHCP clothesBusiness device.
The second Dynamic Host Configuration Protocol server is receiving after the 2nd DHCP request message of terminal transmission, to terminalReturn to DHCPACK message, this DHCPACK message, as confirmation message, carries and distributes to terminalThe information such as the IP address of equipment, route, subnet mask, DNS, rental period, terminal gets online thusThe key messages such as the IP address, route, subnet mask, DNS, rental period needing, reconnect procedure finishes.
Shown in Fig. 9, further embodiment of this invention proposes a kind of DHCP reconnection method, baseIn the embodiment shown in above-mentioned Fig. 7, also comprise that terminal opens the corresponding steps of a new reconnect procedure, itsIt is different that implementation and the terminal shown in above-mentioned Fig. 8 are opened a new reconnect procedure. Specifically also comprise:
Step S206, receives the outwards DISCOVER message of broadcast of described terminal;
Step S207, according to described DISCOVER message, returns to DHCPOFFER to described terminalMessage;
Step S208, receives the 2nd DHCP request message that described terminal sends, described the 2nd DHCPRequest message confirms to select described Dynamic Host Configuration Protocol server;
Step S209, returns to DHCPACK message to described terminal.
First, terminal, receiving after the DHCPNAK message that the second Dynamic Host Configuration Protocol server returns, is notDirectly send the 2nd DHCP request message to the second Dynamic Host Configuration Protocol server, but overseas broadcastDISCOVER message. This DISCOVER message carry terminal device identification, vender class mark,Host name, and a series of solicited message, this solicited message comprise but be not limited to subnet mask, route,Domain name, and the information such as DNS.
The second Dynamic Host Configuration Protocol server, receiving after described DISCOVER message, returns to terminalDHCPOFFER message, provides the letters such as IP address, route, subnet mask, DNS, rental period to terminalBreath.
Terminal is receiving after the DHCPOFFER message of the second Dynamic Host Configuration Protocol server transmission, to secondDynamic Host Configuration Protocol server sends the 2nd DHCP request message, and the 2nd DHCP request message carries selectedThe second Dynamic Host Configuration Protocol server obtains the information of relevant IP address, confirms to select the second Dynamic Host Configuration Protocol server.
The second Dynamic Host Configuration Protocol server is receiving after the 2nd DHCP request message of terminal transmission, to terminalReturn to DHCPACK message, this DHCPACK message, as confirmation message, carries and distributes to terminalThe information such as the IP address of equipment, route, subnet mask, DNS, rental period, terminal gets online thusThe key messages such as the IP address, route, subnet mask, DNS, rental period needing, reconnect procedure finishes.
The present embodiment is by such scheme, there will not be simultaneously and connects for a terminal (under hang standby)The situation of multiple Dynamic Host Configuration Protocol server, if under hang preparation and send DHCPREQUEST request message,Dynamic Host Configuration Protocol server is not safeguarded relevant facility information through judgement, directly replys DHCPNAK reportLiterary composition, hangs the standby DHCPDISCOVER that sends immediately under impelling, open the address process of newly once obtaining,Thereby save and time hung the standby time delay that repeatedly DHCPREQUEST retry causes, reached Fast reconnectObject.
The embodiment of the Dynamic Host Configuration Protocol server that accordingly, proposition DHCP of the present invention reconnects.
Particularly, as shown in figure 10, one embodiment of the invention proposes a kind of DHCP and reconnectsDynamic Host Configuration Protocol server, comprising: receiver module 301, judge module 302, sending module 303, wherein:
Receiver module 301, for an outwards DHCP request message of broadcast of receiving terminal;
Judge module 302, for according to a described DHCP request message, judges whether to safeguard to some extentState the relevant device information of terminal;
Sending module 303, for not safeguarding the relevant device information of described terminal in judge module judgementTime, return to DHCPNAK message to described terminal, to inform that described terminal opens a new reconnect procedure.
Particularly, in the present embodiment, terminal is being switched to the 2nd DHCP from the first Dynamic Host Configuration Protocol serverWhen server, outwards broadcast a DHCPREQUEST message, externally to inform that this terminal need to be fromOne Dynamic Host Configuration Protocol server is switched to the second Dynamic Host Configuration Protocol server, in a DHCPREQUEST messageThe IP address of the current use of carried terminal.
The second Dynamic Host Configuration Protocol server is receiving after a DHCP request message of terminal transmission, and judgement originallyWhether ground safeguards the relevant device information of this terminal, if do not safeguard that through judgement the relevant of described terminal establishStandby information, the second Dynamic Host Configuration Protocol server returns to DHCPNAK message to described terminal, to inform terminalOpen a new reconnect procedure, that is to say, the second Dynamic Host Configuration Protocol server is accused by DHCPNAK messageKnow terminal: current logic parameter cannot meet the request of terminal, cannot provide corresponding service to terminal,Need terminal to reopen and obtain address process.
Like this, terminal is just without sending continuously multiple DHCPREQUEST wait-for-responses, heavy without waiting forExamination finishes, and opens a new connection procedure but can directly resend DHCPDISCOVER messageAddress acquisition, thus the terminal time delay that repeatedly DHCPREQUEST retry causes saved, reach quick weightThe object connecting.
Further, open the implementation of a new reconnect procedure as a kind of terminal, described reception mouldPiece 301, the 2nd DHCP request message also sending for receiving described terminal, described the 2nd DHCPRequest message confirms to select described Dynamic Host Configuration Protocol server;
Described sending module 303, also for returning to DHCPACK message to described terminal.
The present embodiment also comprises that terminal opens the concrete scheme of a new reconnect procedure.
First, terminal is receiving after the DHCPNAK message that the second Dynamic Host Configuration Protocol server returns, directlySend the 2nd DHCP request message to the second Dynamic Host Configuration Protocol server, the 2nd DHCP request message carriesThere is selected the second Dynamic Host Configuration Protocol server to obtain the information of relevant IP address, confirm to select the 2nd DHCP clothesBusiness device.
The second Dynamic Host Configuration Protocol server is receiving after the 2nd DHCP request message of terminal transmission, to terminalReturn to DHCPACK message, this DHCPACK message, as confirmation message, carries and distributes to terminalThe information such as the IP address of equipment, route, subnet mask, DNS, rental period, terminal gets online thusThe key messages such as the IP address, route, subnet mask, DNS, rental period needing, reconnect procedure finishes.
Further, open the implementation of a new reconnect procedure as another kind of terminal, described receptionModule 301, also for receiving the outwards DISCOVER message of broadcast of described terminal;
Described sending module 303, also, for according to described DISCOVER message, returns to described terminalDHCPOFFER message;
Described receiver module 301, the 2nd DHCP request message also sending for receiving described terminal,Described the 2nd DHCP request message confirms to select described Dynamic Host Configuration Protocol server;
Described sending module 303, also for returning to DHCPACK message to described terminal.
First, terminal, receiving after the DHCPNAK message that the second Dynamic Host Configuration Protocol server returns, is notDirectly send the 2nd DHCP request message to the second Dynamic Host Configuration Protocol server, but overseas broadcastDISCOVER message. This DISCOVER message carry terminal device identification, vender class mark,Host name, and a series of solicited message, this solicited message comprise but be not limited to subnet mask, route,Domain name, and the information such as DNS.
The second Dynamic Host Configuration Protocol server, receiving after described DISCOVER message, returns to terminalDHCPOFFER message, provides the letters such as IP address, route, subnet mask, DNS, rental period to terminalBreath.
Terminal is receiving after the DHCPOFFER message of the second Dynamic Host Configuration Protocol server transmission, to secondDynamic Host Configuration Protocol server sends the 2nd DHCP request message, and the 2nd DHCP request message carries selectedThe second Dynamic Host Configuration Protocol server obtains the information of relevant IP address, confirms to select the second Dynamic Host Configuration Protocol server.
The second Dynamic Host Configuration Protocol server is receiving after the 2nd DHCP request message of terminal transmission, to terminalReturn to DHCPACK message, this DHCPACK message, as confirmation message, carries and distributes to terminalThe information such as the IP address of equipment, route, subnet mask, DNS, rental period, terminal gets online thusThe key messages such as the IP address, route, subnet mask, DNS, rental period needing, reconnect procedure finishes.
The present embodiment is by such scheme, there will not be simultaneously and connects for a terminal (under hang standby)The situation of multiple Dynamic Host Configuration Protocol server, if under hang preparation and send DHCPREQUEST request message,Dynamic Host Configuration Protocol server is not safeguarded relevant facility information through judgement, directly replys DHCPNAK reportLiterary composition, hangs the standby DHCPDISCOVER that sends immediately under impelling, open the address process of newly once obtaining,Thereby save and time hung the standby time delay that repeatedly DHCPREQUEST retry causes, reached Fast reconnectObject.
In addition, as shown in figure 11, one embodiment of the invention also proposes a kind of DHCP and reconnectsSystem, comprise the first Dynamic Host Configuration Protocol server 401, the second Dynamic Host Configuration Protocol server 402 and with described firstThe terminal 403 that Dynamic Host Configuration Protocol server 401, the second Dynamic Host Configuration Protocol server 402 communicate to connect respectively; Wherein:
Described the second Dynamic Host Configuration Protocol server 402 can be the Dynamic Host Configuration Protocol server described in above-described embodiment;
Described terminal 403, for being switched to the 2nd DHCP service from the first Dynamic Host Configuration Protocol server 401When device 402, outwards broadcast a DHCP request message; And receive described the second Dynamic Host Configuration Protocol serverThe 402 DHCPNAK messages that return, and open and newly once reconnected according to described DHCPNAK messageJourney.
Wherein, the first Dynamic Host Configuration Protocol server 401, the second Dynamic Host Configuration Protocol server 402 and terminal 403 are mutualRealize the process that DHCP reconnects, please refer to the various embodiments described above, do not repeat them here.
Embodiment of the present invention DHCP reconnection method, Dynamic Host Configuration Protocol server and system, forTerminal 403 (under hang standby) there will not be the situation that simultaneously connects multiple Dynamic Host Configuration Protocol server, asUnder fruit, hang preparation and send DHCPREQUEST request message, Dynamic Host Configuration Protocol server is not safeguarded through judgementRelevant facility information, directly replys DHCPNAK message, hangs standby transmission immediately under impellingDHCPDISCOVER, opens and newly once obtains address process, thus under having saved, hang standby repeatedlyThe time delay that DHCPREQUEST retry causes, has reached the object of Fast reconnect.
The foregoing is only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention,Everyly utilize equivalent structure or the flow process conversion that description of the present invention and accompanying drawing content do, or directly orConnect and be used in other relevant technical field, be all in like manner included in scope of patent protection of the present invention.

Claims (11)

1. a DHCP reconnection method, is characterized in that, comprising:
Terminal, in the time being switched to the second Dynamic Host Configuration Protocol server from the first Dynamic Host Configuration Protocol server, outwards broadcasts firstDHCP request message;
Described the second Dynamic Host Configuration Protocol server is receiving after a described DHCP request message, if through judgementDo not safeguard the relevant device information of described terminal, return to DHCPNAK message to described terminal, withInform that described terminal opens a new reconnect procedure.
2. method according to claim 1, is characterized in that, also comprises:
Described terminal, receiving after described DHCPNAK message, is sent out to described the second Dynamic Host Configuration Protocol serverSend the 2nd DHCP request message, confirm to select described the second Dynamic Host Configuration Protocol server;
Described the second Dynamic Host Configuration Protocol server returns to DHCPACK message to described terminal.
3. method according to claim 1, is characterized in that, also comprises:
Described terminal, receiving after described DHCPNAK message, is outwards broadcasted DISCOVER message;
Described the second Dynamic Host Configuration Protocol server, receiving after described DISCOVER message, returns to described terminalReturn DHCPOFFER message;
Described terminal receives after described DHCPOFFER message, sends out to described the second Dynamic Host Configuration Protocol serverSend the 2nd DHCP request message, confirm to select described the second Dynamic Host Configuration Protocol server;
Described the second Dynamic Host Configuration Protocol server returns to DHCPACK message to described terminal.
4. method according to claim 1, is characterized in that, described terminal is from a DHCPServer switching is during to the second Dynamic Host Configuration Protocol server, outwards broadcast a DHCP request message step itBefore also comprise:
Described terminal accesses after described the first Dynamic Host Configuration Protocol server, outwards broadcasts DISCOVER message;
Described the first Dynamic Host Configuration Protocol server, receiving after described DISCOVER message, returns to described terminalReturn DHCPOFFER message;
Described terminal receives after described DHCPOFFER message, sends out to described the first Dynamic Host Configuration Protocol serverSend the 2nd DHCP request message, confirm to select described the first Dynamic Host Configuration Protocol server;
Described the first Dynamic Host Configuration Protocol server returns to DHCPACK message to described terminal.
5. a DHCP reconnection method, is characterized in that, comprising:
Dynamic Host Configuration Protocol server receiving terminal is a DHCP request message of broadcast outwards;
According to a described DHCP request message, judging whether to safeguard has the relevant device of described terminal letterBreath;
If do not safeguard the relevant device information of described terminal, return to DHCPNAK report to described terminalLiterary composition, to inform that described terminal opens a new reconnect procedure.
6. method according to claim 5, is characterized in that, also comprises:
Receive the 2nd DHCP request message that described terminal sends, described the 2nd DHCP request message is trueRecognize and select described Dynamic Host Configuration Protocol server;
Return to DHCPACK message to described terminal.
7. method according to claim 5, is characterized in that, also comprises:
Receive the outwards DISCOVER message of broadcast of described terminal;
According to described DISCOVER message, return to DHCPOFFER message to described terminal;
Receive the 2nd DHCP request message that described terminal sends, described the 2nd DHCP request message is trueRecognize and select described Dynamic Host Configuration Protocol server;
Return to DHCPACK message to described terminal.
8. the Dynamic Host Configuration Protocol server that DHCP reconnects, is characterized in that, comprising:
Receiver module, for an outwards DHCP request message of broadcast of receiving terminal;
Judge module, for according to a described DHCP request message, judges whether that maintenance has described endThe relevant device information of end;
Sending module, in the time that the relevant device information of described terminal is not safeguarded in judge module judgement,Return to DHCPNAK message to described terminal, to inform that described terminal opens a new reconnect procedure.
9. Dynamic Host Configuration Protocol server according to claim 8, is characterized in that,
Described receiver module, the 2nd DHCP request message also sending for receiving described terminal, described inThe 2nd DHCP request message confirms to select described Dynamic Host Configuration Protocol server;
Described sending module, also for returning to DHCPACK message to described terminal.
10. Dynamic Host Configuration Protocol server according to claim 8, is characterized in that,
Described receiver module, also for receiving the outwards DISCOVER message of broadcast of described terminal;
Described sending module, also, for according to described DISCOVER message, returns to described terminalDHCPOFFER message;
Described receiver module, the 2nd DHCP request message also sending for receiving described terminal, described inThe 2nd DHCP request message confirms to select described Dynamic Host Configuration Protocol server;
Described sending module, also for returning to DHCPACK message to described terminal.
11. 1 kinds of systems that DHCP reconnects, is characterized in that, comprise a DHCPServer, the second Dynamic Host Configuration Protocol server and with described the first Dynamic Host Configuration Protocol server, the second Dynamic Host Configuration Protocol serverThe terminal of communication connection respectively; Wherein:
Described the second Dynamic Host Configuration Protocol server is the Dynamic Host Configuration Protocol server described in any one in claim 8-10;
Described terminal, in the time being switched to the second Dynamic Host Configuration Protocol server from the first Dynamic Host Configuration Protocol server, toOuter broadcast the one DHCP request message; And receive that described the second Dynamic Host Configuration Protocol server returnsDHCPNAK message, and open a new reconnect procedure according to described DHCPNAK message.
CN201410571158.4A 2014-10-23 2014-10-23 Dynamic host configuration protocol (DHCP) reconnection method, DHCP server and system Withdrawn CN105592172A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410571158.4A CN105592172A (en) 2014-10-23 2014-10-23 Dynamic host configuration protocol (DHCP) reconnection method, DHCP server and system
PCT/CN2015/092657 WO2016062268A1 (en) 2014-10-23 2015-10-23 Dynamic host configuration protocol reconnection method, dhcp server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410571158.4A CN105592172A (en) 2014-10-23 2014-10-23 Dynamic host configuration protocol (DHCP) reconnection method, DHCP server and system

Publications (1)

Publication Number Publication Date
CN105592172A true CN105592172A (en) 2016-05-18

Family

ID=55760315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410571158.4A Withdrawn CN105592172A (en) 2014-10-23 2014-10-23 Dynamic host configuration protocol (DHCP) reconnection method, DHCP server and system

Country Status (2)

Country Link
CN (1) CN105592172A (en)
WO (1) WO2016062268A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109347994A (en) * 2018-10-19 2019-02-15 Oppo广东移动通信有限公司 Internet protocol address acquisition methods, device, storage medium and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115002077B (en) * 2021-03-01 2024-03-22 炬芯科技股份有限公司 Method for DHCP client to acquire IP address and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043465A (en) * 2006-06-20 2007-09-26 华为技术有限公司 Dynamic host configuration protocol service managing method and system thereof
CN101350809A (en) * 2007-07-19 2009-01-21 华为技术有限公司 Method and system for implementing authentication
CN101778103A (en) * 2009-12-30 2010-07-14 中兴通讯股份有限公司 Method for wireless terminal to assign IP addresses to PCs
CN103944867A (en) * 2013-01-23 2014-07-23 华为技术有限公司 Dynamic host configuration protocol (DHCP) message processing method, device and system
US20140280467A1 (en) * 2013-03-13 2014-09-18 Everfocus Electronics Corp. Method of managing port dhcp server protocol addresses

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043465A (en) * 2006-06-20 2007-09-26 华为技术有限公司 Dynamic host configuration protocol service managing method and system thereof
CN101350809A (en) * 2007-07-19 2009-01-21 华为技术有限公司 Method and system for implementing authentication
CN101778103A (en) * 2009-12-30 2010-07-14 中兴通讯股份有限公司 Method for wireless terminal to assign IP addresses to PCs
CN103944867A (en) * 2013-01-23 2014-07-23 华为技术有限公司 Dynamic host configuration protocol (DHCP) message processing method, device and system
US20140280467A1 (en) * 2013-03-13 2014-09-18 Everfocus Electronics Corp. Method of managing port dhcp server protocol addresses

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109347994A (en) * 2018-10-19 2019-02-15 Oppo广东移动通信有限公司 Internet protocol address acquisition methods, device, storage medium and electronic equipment
CN109347994B (en) * 2018-10-19 2021-02-09 Oppo广东移动通信有限公司 Internet protocol IP address obtaining method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
WO2016062268A1 (en) 2016-04-28

Similar Documents

Publication Publication Date Title
CN101296203B (en) Device, system and method for automatically configuring application terminal in family network
CN101883158B (en) Method and client for acquiring VLAN (Virtual Local Area Network) IDs (Identifiers) and network protocol addresses
EP2919444B1 (en) Method, relay device, and system for acquiring internet protocol address in network
CN101179603B (en) Method and device for controlling user network access in IPv6 network
EP2579519A1 (en) Method, network device and system for automatically configuring network device in internet protocol version 6 network
CN102752413B (en) Dynamic Host Configuration Protocol server system of selection and the network equipment
CN103312708B (en) A kind of IP establishing method based on lease file and system
CN103873472A (en) Method for automatically having access to network
CN102769678B (en) A kind of dhcp address distribution method and device
EP2765743A1 (en) Layer 2 inter-connecting method, apparatus and system based on ipv6
CN102957759A (en) Distribution method and system for IPv6 (internet protocol version 6) address prefixes
CN103259671B (en) The method of automatic logging in chat room, device, electronic equipment and chat room server
CN1960380B (en) Method for obtaining service IP address and base station
CN101120580A (en) Method for establishing a communication link in at least one communications network
CN102594839A (en) Method for distinguishing pseudo dynamic host configuration protocol (DHCP) servers and switchboards
CN104852835B (en) Smart machine WIFI communication systems and its control method
CN105592172A (en) Dynamic host configuration protocol (DHCP) reconnection method, DHCP server and system
CN107257558B (en) Message forwarding method and device
CN103987098A (en) Method and system for switching between IPV4 network and IPV6 network
CN105827420A (en) Method and device for identifying illegal servers
CN102438051A (en) Method and system for realizing dynamic host configuration protocol (DHCP) relay of two-layer network switch equipment
CN104767765A (en) Method for improving on-line speed of user and access equipment for broadband to get access to server remotely
CN102480476A (en) Multi-service access method based on DHCP protocol extension
US10666614B2 (en) Multicast security control method and device based on DNS
CN103392333A (en) Authentication method, device and system in access network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20160518