WO2016062268A1 - Dynamic host configuration protocol reconnection method, dhcp server and system - Google Patents

Dynamic host configuration protocol reconnection method, dhcp server and system Download PDF

Info

Publication number
WO2016062268A1
WO2016062268A1 PCT/CN2015/092657 CN2015092657W WO2016062268A1 WO 2016062268 A1 WO2016062268 A1 WO 2016062268A1 CN 2015092657 W CN2015092657 W CN 2015092657W WO 2016062268 A1 WO2016062268 A1 WO 2016062268A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
dhcp server
dhcp
message
request message
Prior art date
Application number
PCT/CN2015/092657
Other languages
French (fr)
Chinese (zh)
Inventor
韩斌
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016062268A1 publication Critical patent/WO2016062268A1/en

Links

Images

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

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a dynamic host configuration protocol reconnection method, a DHCP server, and a system.
  • DHCP Dynamic Host Configuration Protocol
  • the DHCP server sends the DHCPREQUEST packet to the device.
  • the DHCP server is based on RFC2131.
  • the specification 4.3.2 is silent, in order to deal with multiple DHCP Servers on the same line (see Figure 1). This causes the attached device to continuously send multiple DHCPREQUESTs without receiving a response. It can only wait for the retry to end. Resend the DHCPDISCOVER packet to open a new connection process to obtain the address. As a result, the reconnecting device has a large reconnection delay. , giving the user a poor experience.
  • the embodiment of the present invention provides a dynamic host configuration protocol reconnection method, a DHCP server, and a system, which are designed to at least solve the problem that the access device has a large delay in obtaining an address caused by switching the DHCP server, and realize the DHCP of the attached device. Reconnection.
  • the embodiment of the present invention provides a dynamic host configuration protocol reconnection method, including:
  • the terminal When the terminal switches from the first DHCP server to the second DHCP server, the terminal broadcasts the first DHCP request message;
  • the second DHCP server After receiving the first DHCP request message, the second DHCP server determines that if the related device information of the terminal is not maintained, the device returns a DHCPNAK message to the terminal to notify the terminal to start a new one. Reconnect process.
  • the method also includes:
  • the terminal After receiving the DHCPNAK message, the terminal sends a second DHCP request message to the second DHCP server, and confirms that the second DHCP server is selected;
  • the second DHCP server returns a DHCPACK message to the terminal.
  • the method also includes:
  • the terminal After receiving the DHCPNAK packet, the terminal broadcasts a DISCOVER packet;
  • the second DHCP server After receiving the DISCOVER message, the second DHCP server returns a DHCPOFFER message to the terminal;
  • the terminal After receiving the DHCPOFFER message, the terminal sends a second DHCP request message to the second DHCP server, and confirms that the second DHCP server is selected;
  • the second DHCP server returns a DHCPACK message to the terminal.
  • the step of the terminal broadcasting the first DHCP request message before the step of switching from the first DHCP server to the second DHCP server further includes:
  • the terminal After the terminal accesses the first DHCP server, the terminal broadcasts a DISCOVER message;
  • the first DHCP server After receiving the DISCOVER message, the first DHCP server returns a DHCPOFFER message to the terminal;
  • the terminal After receiving the DHCPOFFER message, the terminal sends a second DHCP request message to the first DHCP server, and confirms that the first DHCP server is selected;
  • the first DHCP server returns a DHCPACK message to the terminal.
  • the embodiment of the invention further provides a dynamic host configuration protocol reconnection method, including:
  • the DHCP server receives the first DHCP request message broadcasted by the terminal;
  • the DHCPNAK packet is returned to the terminal to notify the terminal to start a new reconnection process.
  • the method also includes:
  • the method also includes:
  • the embodiment of the invention further provides a DHCP server reconnected by the dynamic host configuration protocol, including:
  • a receiving module configured to receive a first DHCP request message broadcasted by the terminal
  • the determining module is configured to determine, according to the first DHCP request message, whether to maintain related device information of the terminal;
  • the sending module is configured to: when the determining module determines that the related device information of the terminal is not maintained, return a DHCPNAK message to the terminal to notify the terminal to start a new reconnection process.
  • the receiving module is further configured to receive a second DHCP request message sent by the terminal, where the second DHCP request message confirms selection of the DHCP server;
  • the sending module is further configured to return a DHCPACK message to the terminal.
  • the receiving module is further configured to receive a DISCOVER packet broadcasted by the terminal.
  • the sending module is further configured to: return a DHCPOFFER message to the terminal according to the DISCOVER message;
  • the receiving module is further configured to receive a second DHCP request message sent by the terminal, where the second DHCP request message confirms selection of the DHCP server;
  • the sending module is further configured to return a DHCPACK message to the terminal.
  • the embodiment of the present invention further provides a system for reconnecting a dynamic host configuration protocol, including a first DHCP server, a second DHCP server, and a terminal that is respectively connected to the first DHCP server and the second DHCP server; wherein:
  • the second DHCP server is the above DHCP server
  • the terminal is configured to: when the first DHCP server is switched to the second DHCP server, broadcast the first DHCP request message; and receive the DHCPNAK message returned by the second DHCP server, and according to the DHCPNAK report This article opens a new reconnection process.
  • a method for reconnecting a dynamic host configuration protocol, a DHCP server, and a system for a terminal (a connected device) does not appear to be connected to multiple DHCP servers at the same time, if the attached device sends a DHCPREQUEST request message.
  • the DHCP server determines that the related device information is not maintained, the DHCPNAK packet is directly replied to the DHCP device to immediately send the DHCPDISCOVER to start the new address acquisition process, thereby eliminating the delay caused by the DHCPREQUEST retry of the attached device.
  • the purpose of rapid reconnection was achieved.
  • 1 is a flow chart of interaction between DHCP according to specifications when an existing terminal switches networks
  • FIG. 2 is a schematic flowchart of an embodiment of a method for reconnecting a dynamic host configuration protocol according to the present invention
  • FIG. 3 is a schematic flowchart of another embodiment of a dynamic host configuration protocol reconnection method according to the present invention.
  • FIG. 4 is a schematic flow chart of still another embodiment of a dynamic host configuration protocol reconnection method according to the present invention.
  • FIG. 5 is a detailed flow chart of an embodiment of a dynamic host configuration protocol reconnection method shown in FIG. 4;
  • FIG. 6 is a schematic flowchart of still another embodiment of a dynamic host configuration protocol reconnection method according to the present invention.
  • FIG. 7 is a schematic flowchart of still another embodiment 2 of a dynamic host configuration protocol reconnection method according to the present invention.
  • FIG. 8 is a schematic flowchart diagram of still another third embodiment of a dynamic host configuration protocol reconnection method according to the present invention.
  • FIG. 9 is a schematic flowchart diagram of still another fourth embodiment of a dynamic host configuration protocol reconnection method according to the present invention.
  • FIG. 10 is a schematic diagram of functional modules of an embodiment of a DHCP server reconnected by a dynamic host configuration protocol according to the present invention
  • FIG. 11 is a schematic structural diagram of an embodiment of a system for reconnecting a dynamic host configuration protocol according to the present invention.
  • the solution of the embodiment of the present invention is mainly: for a terminal (the attached device), the connection between multiple DHCP servers does not occur at the same time. If the downlink device sends a DHCPREQUEST request packet, the DHCP server determines that the related device is not maintained. The information directly replies to the DHCPNAK message, prompting the attached device to immediately send a DHCPDISCOVER, and start a new acquisition of the address process, thereby eliminating the delay caused by the repeated DHCPREQUEST retry of the attached device, and achieving the purpose of fast reconnection.
  • FIG. 1 is a flow chart of interaction between DHCP according to specifications when a terminal (subsidiary device) switches networks, and the specific processing flow is as follows:
  • Step 1 The device A is connected to the device where the DHCP server 1 (the first DHCP server) is located.
  • Step 2 Device A sends a DHCPDISCOVER packet.
  • Step 3 DHCP Server 1 replies to the DHCPOFFER message
  • Step 4 The device A sends a DHCPREQUEST packet to confirm the selection of DHCP Server1.
  • Step 5 DHCP Server 1 replies with a DHCPACK packet, and device A obtains an address
  • Step 6 The device A is switched to the DHCP server and switched to the device where the DHCP server 2 (the second DHCP server) is located.
  • the actual application scenario is: the mobile phone switches the WIFI hotspot, and the AC switches the AP.
  • Step 7 After switching the DHCP server, device A will send a DHCPREQUEST packet.
  • Step 8 According to the requirements of RFC2131, DHCP Server2 needs to perform silent processing here.
  • Step 9 After the device A continuously sends multiple DHCPREQUEST messages and fails to respond, the device waits for the retry to end and sends a DISCOVER message.
  • Step 10 DHCP Server 2 replies to the DHCPOFFER message
  • Step 11 The device A sends a DHCPREQUEST packet to confirm the selection of DHCP Server2.
  • step 12 the DHCP server 2 replies to the DHCPACK packet, and the device A receives the address.
  • the existing network switching mode of the connected device causes the downlink device to continuously send multiple DHCPREQUESTs without receiving a response, and can only wait for the retry to end, and resend the DHCPDISCOVER message to start a new connection process.
  • the reconnection delay of the connected device is large, and the user experience is poor.
  • the DHCPNAK packet is directly replied to the device to immediately restart the reconnection process.
  • the delay caused by multiple DHCPREQUEST retry attempts to disconnect the device to achieve the purpose of fast reconnection.
  • an embodiment of the present invention provides a dynamic host configuration protocol reconnection method, including:
  • Step S101 When the terminal switches from the first DHCP server to the second DHCP server, the terminal broadcasts the first DHCP request message.
  • Step S102 After receiving the first DHCP request message, the second DHCP server determines, if the related device information of the terminal is not maintained, returns a DHCPNAK message to the terminal to notify the terminal. Start a new reconnection process.
  • the terminal when the terminal switches from the first DHCP server to the second DHCP server, the terminal broadcasts the first DHCPREQUEST packet to notify the terminal that the terminal needs to be switched from the first DHCP server to the second DHCP server.
  • a DHCPREQUEST packet carries the IP address currently used by the terminal.
  • the second DHCP server After receiving the first DHCP request message sent by the terminal, the second DHCP server determines whether the related device information of the terminal is maintained locally, and if it is determined that the related device information of the terminal is not maintained, the second DHCP server The terminal returns a DHCPNAK message to inform the terminal to initiate a new reconnection process. That is, the second DHCP server informs the terminal through the DHCPNAK message that the current logical parameter cannot satisfy the request of the terminal, and cannot provide the corresponding service to the terminal. The terminal re-opens the process of obtaining an address.
  • the terminal does not need to continuously send multiple DHCPREQUEST wait responses, and does not need to wait for the retry to end, but can directly resend the DHCPDISCOVER message to open a new connection process to obtain an address, thereby eliminating the delay caused by the DHCPReQUEST retry of the terminal multiple times. Achieve the goal of rapid reconnection.
  • FIG. 3 another embodiment of the present invention provides a dynamic host configuration protocol reconnection method.
  • the method according to the foregoing embodiment of FIG. 2 further includes a corresponding step of the terminal to start a new reconnection process, which specifically includes:
  • Step S103 After receiving the DHCPNAK message, the terminal sends a second DHCP request message to the second DHCP server to confirm selection of the second DHCP server.
  • Step S104 The second DHCP server returns a DHCPACK message to the terminal.
  • the embodiment further includes a specific solution for the terminal to start a new reconnection process.
  • the terminal After receiving the DHCPNAK message returned by the second DHCP server, the terminal directly sends a second DHCP request message to the second DHCP server, where the second DHCP request message carries the selected second DHCP server to obtain the relevant IP address.
  • the information that confirms the selection of the second DHCP server is not limited to the DHCPNAK message returned by the second DHCP server.
  • the second DHCP server After receiving the second DHCP request message sent by the terminal, the second DHCP server returns a DHCPACK message to the terminal, where the DHCPACK message is used as an acknowledgement message, carrying the IP address, route, and subnet mask assigned to the terminal device.
  • the DNS, lease, and other information the terminal obtains the key information such as the IP address, route, subnet mask, DNS, and lease period required for the Internet access, and the reconnection process ends.
  • another embodiment of the present invention provides a dynamic host configuration protocol reconnection method.
  • the method further includes a corresponding step of the terminal to start a new reconnection process, and the implementation manner thereof is
  • the terminal shown in FIG. 3 above is different in starting a new reconnection process. Specifically include:
  • Step S105 After receiving the DHCPNAK packet, the terminal broadcasts a DISCOVER packet.
  • Step S106 After receiving the DISCOVER message, the second DHCP server returns a DHCPOFFER message to the terminal.
  • Step S1031 After receiving the DHCPOFFER message, the terminal sends a second DHCP request message to the second DHCP server, and confirms that the second DHCP server is selected.
  • Step S1041 The second DHCP server returns a DHCPACK message to the terminal.
  • the embodiment further includes a specific solution for the terminal to start a new reconnection process.
  • the terminal After receiving the DHCPNAK message returned by the second DHCP server, the terminal does not directly send the second DHCP request message to the second DHCP server, but broadcasts the DISCOVER message to the outside.
  • the DISCOVER packet carries the device identifier of the terminal, the vendor category identifier, the host name, and a series of request information, including but not limited to subnet mask, routing, domain name, and DNS.
  • the second DHCP server After receiving the DISCOVER message, the second DHCP server returns a DHCPOFFER message to the terminal, and provides the terminal with information such as an IP address, a route, a subnet mask, a DNS, a lease, and the like.
  • the terminal After receiving the DHCPOFFER message sent by the second DHCP server, the terminal sends a second DHCP request message to the second DHCP server, where the second DHCP request message carries information about the selected second DHCP server to obtain the relevant IP address. That is, it is confirmed that the second DHCP server is selected.
  • the second DHCP server After receiving the second DHCP request message sent by the terminal, the second DHCP server returns a DHCPACK message to the terminal, where the DHCPACK message is used as an acknowledgement message, carrying the IP address, route, and subnet mask assigned to the terminal device.
  • the DNS, lease, and other information the terminal obtains the key information such as the IP address, route, subnet mask, DNS, and lease period required for the Internet access, and the reconnection process ends.
  • FIG. 5 is a flow chart of interaction when a terminal (subscribing device) switches a network according to the embodiment.
  • the specific processing procedure is as follows:
  • Step 1 The device A (terminal) connected to the device is connected to the device where the DHCP server 1 (the first DHCP server) is located.
  • Step 2 Device A sends a DHCPDISCOVER packet.
  • Step 3 The DHCP server 1 replies to the DHCPOFFER packet; the source of the DHCPOFFER packet received by the device is determined by the device to determine whether the application scenario is consistent with the embodiment of the present invention: a connected device does not access multiple DHCP servers at the same time. . If there is only one source, the application scenario is consistent with the embodiment of the present invention; if there are multiple sources, the content is not met;
  • Step 4 The device A sends a DHCPREQUEST packet to confirm the selection of DHCP Server1.
  • Step 5 DHCP Server 1 replies with a DHCPACK packet, and device A obtains an address
  • Step 6 The device A is switched to the DHCP server and switched to the device where the DHCP server 2 (the second DHCP server) is located.
  • the actual application scenario is: the mobile phone switches the WIFI hotspot, and the AC switches the AP.
  • Step 7 After switching the DHCP server, device A will send a DHCPREQUEST packet.
  • Step 8 in accordance with the specifications of RFC2131, where DHCP Server 2 is to perform silent processing;
  • the DHCP server 2 directly responds to the DHCPNAK packet, so that the connected device immediately starts a new address acquisition process, thereby saving the DHCPREQUEST retry time;
  • Step 9 After receiving the DHCPNAK packet, the device A sends a DISCOVER packet.
  • Step 10 DHCP Server 2 replies to the DHCPOFFER message
  • Step 11 The device A sends a DHCPREQUEST packet to confirm the selection of DHCP Server2.
  • step 12 the DHCP server 2 replies to the DHCPACK packet, and the device A receives the address.
  • the above scenario does not occur when one terminal (the attached device) does not have multiple DHCP servers connected to each other. If the DHCP device sends a DHCPREQUEST request packet, the DHCP server determines that the related device information is not maintained. Directly replying to the DHCPNAK packet, prompting the connected device to immediately send a DHCPDISCOVER to start a new acquisition of the address process, thereby eliminating the delay caused by multiple DHCPREQUEST retry attempts of the attached device, and achieving the purpose of fast reconnection.
  • another embodiment of the present invention provides a method for reconnecting a dynamic host configuration protocol. Based on the embodiment shown in FIG. 4, when the terminal switches from the first DHCP server to the second DHCP server, the terminal is outward. Before the step of broadcasting the first DHCP request message, the method further includes:
  • Step S107 After the terminal accesses the first DHCP server, the terminal broadcasts a DISCOVER message.
  • Step S108 After receiving the DISCOVER message, the first DHCP server returns a DHCPOFFER message to the terminal.
  • Step S109 After receiving the DHCPOFFER message, the terminal sends a second DHCP request message to the first DHCP server, and confirms that the first DHCP server is selected.
  • Step S110 The first DHCP server returns a DHCPACK message to the terminal.
  • the embodiment further includes a scheme in which the terminal accesses the first DHCP server, and the process is the same as the existing DHCP specification, and the specific process shown in FIG. 1 may be referred to, and details are not described herein again.
  • another embodiment 2 of the present invention provides a dynamic host configuration protocol reconnection method, which is a DHCP service.
  • a dynamic host configuration protocol reconnection method which is a DHCP service.
  • Step S201 The DHCP server receives the first DHCP request message broadcasted by the terminal.
  • Step S202 determining, according to the first DHCP request message, whether to maintain related device information of the terminal;
  • Step S203 If the related device information of the terminal is not maintained, return a DHCPNAK message to the terminal to notify the terminal to start a new reconnection process.
  • the terminal when the terminal switches from the first DHCP server to the second DHCP server, the terminal broadcasts the first DHCPREQUEST packet to notify the terminal that the terminal needs to switch from the first DHCP server to the second DHCP server.
  • the first DHCPREQUEST packet carries the IP address currently used by the terminal.
  • the second DHCP server After receiving the first DHCP request message sent by the terminal, the second DHCP server determines whether the related device information of the terminal is maintained locally, and if it is determined that the related device information of the terminal is not maintained, the second DHCP server The terminal returns a DHCPNAK message to inform the terminal to initiate a new reconnection process. That is, the second DHCP server informs the terminal through the DHCPNAK message that the current logical parameter cannot satisfy the request of the terminal, and cannot provide the corresponding service to the terminal. The terminal re-opens the process of obtaining an address.
  • the terminal does not need to continuously send multiple DHCPREQUEST wait responses, and does not need to wait for the retry to end, but can directly resend the DHCPDISCOVER message to open a new connection process to obtain an address, thereby eliminating the delay caused by the DHCPReQUEST retry of the terminal multiple times. Achieve the goal of rapid reconnection.
  • another embodiment 3 of the present invention provides a dynamic host configuration protocol reconnection method. Based on the foregoing embodiment shown in FIG. 7, the method further includes:
  • Step S204 Receive a second DHCP request message sent by the terminal, where the second DHCP request message confirms selection of the DHCP server.
  • Step S205 returning a DHCPACK message to the terminal.
  • the embodiment further includes a specific solution for the terminal to start a new reconnection process.
  • the terminal After receiving the DHCPNAK message returned by the second DHCP server, the terminal directly sends a second DHCP request message to the second DHCP server, where the second DHCP request message carries the selected second DHCP server to obtain the relevant IP address.
  • the information that confirms the selection of the second DHCP server is not limited to the DHCPNAK message returned by the second DHCP server.
  • the second DHCP server After receiving the second DHCP request message sent by the terminal, the second DHCP server returns a DHCPACK message to the terminal, where the DHCPACK message is used as an acknowledgement message, carrying the IP address, route, and subnet mask assigned to the terminal device.
  • the DNS, lease, and other information the terminal obtains the key information such as the IP address, route, subnet mask, DNS, and lease period required for the Internet access, and the reconnection process ends.
  • another embodiment 4 of the present invention provides a dynamic host configuration protocol reconnection method.
  • the method further includes a corresponding step of the terminal to start a new reconnection process, and the implementation manner thereof is
  • the terminal shown in FIG. 8 is different in starting a new reconnection process. Specifically, it also includes:
  • Step S206 receiving a DISCOVER message broadcasted by the terminal to the outside;
  • Step S207 returning a DHCPOFFER message to the terminal according to the DISCOVER message
  • Step S208 receiving a second DHCP request message sent by the terminal, where the second DHCP request message confirms selection of the DHCP server;
  • Step S209 returning a DHCPACK message to the terminal.
  • the terminal After receiving the DHCPNAK message returned by the second DHCP server, the terminal does not directly send the second DHCP request message to the second DHCP server, but broadcasts the DISCOVER message to the outside.
  • the DISCOVER packet carries the device identifier of the terminal, the vendor category identifier, the host name, and a series of request information, including but not limited to subnet mask, routing, domain name, and DNS.
  • the second DHCP server After receiving the DISCOVER message, the second DHCP server returns a DHCPOFFER message to the terminal, and provides the terminal with information such as an IP address, a route, a subnet mask, a DNS, a lease, and the like.
  • the terminal After receiving the DHCPOFFER message sent by the second DHCP server, the terminal sends a second DHCP request message to the second DHCP server, where the second DHCP request message carries information about the selected second DHCP server to obtain the relevant IP address. That is, it is confirmed that the second DHCP server is selected.
  • the second DHCP server After receiving the second DHCP request message sent by the terminal, the second DHCP server returns a DHCPACK message to the terminal, where the DHCPACK message is used as an acknowledgement message, carrying the IP address, route, and subnet mask assigned to the terminal device.
  • the DNS, lease, and other information the terminal obtains the key information such as the IP address, route, subnet mask, DNS, and lease period required for the Internet access, and the reconnection process ends.
  • the above scenario does not occur when one terminal (the attached device) does not have multiple DHCP servers connected to each other. If the DHCP device sends a DHCPREQUEST request packet, the DHCP server determines that the related device information is not maintained. Directly replying to the DHCPNAK packet, prompting the connected device to immediately send a DHCPDISCOVER to start a new acquisition of the address process, thereby eliminating the delay caused by multiple DHCPREQUEST retry attempts of the attached device, and achieving the purpose of fast reconnection.
  • an embodiment of the present invention provides a DHCP server that is reconnected by a dynamic host configuration protocol, and includes: a receiving module 301, a determining module 302, and a sending module 303, where:
  • the receiving module 301 is configured to receive a first DHCP request message that is broadcasted by the terminal.
  • the determining module 302 is configured to determine, according to the first DHCP request message, whether to maintain the related device of the terminal Preparation information
  • the sending module 303 is configured to: when the determining module determines that the related device information of the terminal is not maintained, return a DHCPNAK message to the terminal to notify the terminal to start a new reconnection process.
  • the terminal when the terminal switches from the first DHCP server to the second DHCP server, the terminal broadcasts the first DHCPREQUEST packet to notify the terminal that the terminal needs to switch from the first DHCP server to the second DHCP server.
  • the first DHCPREQUEST packet carries the IP address currently used by the terminal.
  • the second DHCP server After receiving the first DHCP request message sent by the terminal, the second DHCP server determines whether the related device information of the terminal is maintained locally, and if it is determined that the related device information of the terminal is not maintained, the second DHCP server The terminal returns a DHCPNAK message to inform the terminal to initiate a new reconnection process. That is, the second DHCP server informs the terminal through the DHCPNAK message that the current logical parameter cannot satisfy the request of the terminal, and cannot provide the corresponding service to the terminal. The terminal re-opens the process of obtaining an address.
  • the terminal does not need to continuously send multiple DHCPREQUEST wait responses, and does not need to wait for the retry to end, but can directly resend the DHCPDISCOVER message to open a new connection process to obtain an address, thereby eliminating the delay caused by the DHCPReQUEST retry of the terminal multiple times. Achieve the goal of rapid reconnection.
  • the receiving module 301 is further configured to receive a second DHCP request message sent by the terminal, where the second DHCP request message confirms the selection.
  • the sending module 303 is further configured to return a DHCPACK message to the terminal.
  • This embodiment further includes a specific scheme in which the terminal starts a new reconnection process.
  • the terminal After receiving the DHCPNAK message returned by the second DHCP server, the terminal directly sends a second DHCP request message to the second DHCP server, where the second DHCP request message carries the selected second DHCP server to obtain the relevant IP address.
  • the information that confirms the selection of the second DHCP server is not limited to the DHCPNAK message returned by the second DHCP server.
  • the second DHCP server After receiving the second DHCP request message sent by the terminal, the second DHCP server returns a DHCPACK message to the terminal, where the DHCPACK message is used as an acknowledgement message, carrying the IP address, route, and subnet mask assigned to the terminal device.
  • the DNS, lease, and other information the terminal obtains the key information such as the IP address, route, subnet mask, DNS, and lease period required for the Internet access, and the reconnection process ends.
  • the receiving module 301 is further configured to receive the DISCOVER packet broadcasted by the terminal, as another implementation manner of the terminal re-opening the new re-connection process;
  • the sending module 303 is further configured to: return a DHCPOFFER message to the terminal according to the DISCOVER message;
  • the receiving module 301 is further configured to receive a second DHCP request message sent by the terminal, where the second DHCP request message confirms selection of the DHCP server;
  • the sending module 303 is further configured to return a DHCPACK message to the terminal.
  • the terminal After receiving the DHCPNAK message returned by the second DHCP server, the terminal does not directly send the second DHCP request message to the second DHCP server, but broadcasts the DISCOVER message to the outside.
  • the DISCOVER packet carries the device identifier of the terminal, the vendor category identifier, the host name, and a series of request information, including but not limited to subnet mask, routing, domain name, and DNS.
  • the second DHCP server After receiving the DISCOVER message, the second DHCP server returns a DHCPOFFER message to the terminal, and provides the terminal with information such as an IP address, a route, a subnet mask, a DNS, a lease, and the like.
  • the terminal After receiving the DHCPOFFER message sent by the second DHCP server, the terminal sends a second DHCP request message to the second DHCP server, where the second DHCP request message carries information about the selected second DHCP server to obtain the relevant IP address. That is, it is confirmed that the second DHCP server is selected.
  • the second DHCP server After receiving the second DHCP request message sent by the terminal, the second DHCP server returns a DHCPACK message to the terminal, where the DHCPACK message is used as an acknowledgement message, carrying the IP address, route, and subnet mask assigned to the terminal device.
  • the DNS, lease, and other information the terminal obtains the key information such as the IP address, route, subnet mask, DNS, and lease period required for the Internet access, and the reconnection process ends.
  • the above scenario does not occur when one terminal (the attached device) does not have multiple DHCP servers connected to each other. If the DHCP device sends a DHCPREQUEST request packet, the DHCP server determines that the related device information is not maintained. Directly replying to the DHCPNAK packet, prompting the connected device to immediately send a DHCPDISCOVER to start a new acquisition of the address process, thereby eliminating the delay caused by multiple DHCPREQUEST retry attempts of the attached device, and achieving the purpose of fast reconnection.
  • an embodiment of the present invention further provides a system for reconnecting a dynamic host configuration protocol, including a first DHCP server 401, a second DHCP server 402, and the first DHCP server 401, and a second The DHCP server 402 communicates with the connected terminal 403; wherein:
  • the second DHCP server 402 may be the DHCP server described in the foregoing embodiment
  • the terminal 403 is configured to: when the first DHCP server 401 is switched to the second DHCP server 402, broadcast the first DHCP request message; and receive the DHCPNAK message returned by the second DHCP server 402, and according to The DHCPNAK message initiates a new reconnection process.
  • the process of re-linking the dynamic host configuration protocol is implemented by the first DHCP server 401, the second DHCP server 402, and the terminal 403.
  • the first DHCP server 401 the second DHCP server 402, and the terminal 403.
  • the dynamic host configuration protocol reconnection method, the DHCP server, and the system in the embodiment of the present invention for a terminal 403 (the attached device) does not appear to be connected to multiple DHCP servers at the same time, if the downlink device sends a DHCPREQUEST request message, the DHCP server After judging that the relevant device information is not maintained, the DHCPNAK message is directly replied, prompting the attached device to immediately send a DHCPDISCOVER, and a new process of obtaining the address is started, thereby eliminating the delay caused by multiple DHCPREQUEST retry attempts of the attached device.
  • the purpose of fast reconnection for a terminal 403 (the attached device) does not appear to be connected to multiple DHCP servers at the same time, if the downlink device sends a DHCPREQUEST request message, the DHCP server After judging that the relevant device information is not maintained, the DHCPNAK message is directly replied, prompting the attached device to immediately send a DHCPDISCOVER, and
  • the dynamic host configuration protocol reconnection method As described above, the dynamic host configuration protocol reconnection method, the DHCP server, and the system provided by the embodiments of the present invention have the following beneficial effects: for a terminal (the attached device), there is no case where multiple DHCP servers are simultaneously connected. If the DHCP server sends a DHCPREQUEST request packet, the DHCP server determines that it does not maintain the related device information, and directly responds to the DHCPNAK packet, prompting the connected device to immediately send a DHCPDISCOVER, and then start a new address acquisition process, thereby eliminating the need to hang up. The delay caused by the DHCPREQUEST retry of the device has reached the goal of fast reconnection.

Landscapes

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

Abstract

Disclosed are a dynamic host configuration protocol (DHCP) reconnection method, DHCP server and system. The method comprises: when a terminal switches from a first DHCP server to a second DHCP server, broadcasting outward a first DHCP request message; after the second DHCP server receives the first DHCP request message, and if related device information for maintaining the terminal is determined to be absent, returning a DHCPNAK message to the terminal for instructing the terminal to start a new reconnection. The present invention reduces the time delay caused by repeated attempts of DHCPREQUEST of feedthrough device, thus enabling fast reconnection.

Description

动态主机配置协议重连方法、DHCP服务器及系统Dynamic host configuration protocol reconnection method, DHCP server and system 技术领域Technical field
本发明涉及网络通信技术领域,尤其涉及一种动态主机配置协议重连方法、DHCP服务器及系统。The present invention relates to the field of network communication technologies, and in particular, to a dynamic host configuration protocol reconnection method, a DHCP server, and a system.
背景技术Background technique
动态主机配置协议(DHCP,Dynamic Host Configuration Protocol)是一个局域网的网络协议,使用UDP协议工作,基于Client/Server工作模式,为互联网上主机提供IP地址和配置参数,主要有两个用途:给内部网络或网络服务供应商自动分配IP地址,给用户或者内部网络管理员作为对所有计算机作中央管理的手段。Dynamic Host Configuration Protocol (DHCP) is a LAN network protocol that works with UDP protocol. Based on the Client/Server working mode, it provides IP addresses and configuration parameters for hosts on the Internet. There are two main purposes: to internal The network or network service provider automatically assigns an IP address to the user or internal network administrator as a means of centrally managing all computers.
目前,随着手机等下挂设备的广泛应用,通过DHCP方式获取地址变得越来越重要,但是下挂设备如果切换DHCP Server,对于该下挂设备发送出去的DHCPREQUEST报文,DHCP Server根据RFC2131规范4.3.2节要进行静默处理,目的是应对在同一线路上有多个DHCP Server的情况(参见图1)。这就导致下挂设备连续发送多个DHCPREQUEST得不到响应,只能等待重试结束,重新发送DHCPDISCOVER报文开启新一次连接过程才能获得地址,由此,导致下挂设备重连延时较大,给用户体验较差。At present, it is more and more important to obtain the address through the DHCP device, and the DHCP server sends the DHCPREQUEST packet to the device. The DHCP server is based on RFC2131. The specification 4.3.2 is silent, in order to deal with multiple DHCP Servers on the same line (see Figure 1). This causes the attached device to continuously send multiple DHCPREQUESTs without receiving a response. It can only wait for the retry to end. Resend the DHCPDISCOVER packet to open a new connection process to obtain the address. As a result, the reconnecting device has a large reconnection delay. , giving the user a poor experience.
发明内容Summary of the invention
本发明实施例提供了一种动态主机配置协议重连方法、DHCP服务器及系统,旨在至少解决下挂设备因切换DHCP服务器造成的获取地址延时较大的问题,实现下挂设备的DHCP快速重连。The embodiment of the present invention provides a dynamic host configuration protocol reconnection method, a DHCP server, and a system, which are designed to at least solve the problem that the access device has a large delay in obtaining an address caused by switching the DHCP server, and realize the DHCP of the attached device. Reconnection.
为了至少达到上述目的,本发明实施例提出一种动态主机配置协议重连方法,包括:In order to achieve the above objectives, the embodiment of the present invention provides a dynamic host configuration protocol reconnection method, including:
终端在从第一DHCP服务器切换到第二DHCP服务器时,向外广播第一DHCP请求报文;When the terminal switches from the first DHCP server to the second DHCP server, the terminal broadcasts the first DHCP request message;
所述第二DHCP服务器在接收到所述第一DHCP请求报文后,经判断若没有维护所述终端的相关设备信息,则向所述终端返回DHCPNAK报文,以告知所述终端开启新一次重连过程。After receiving the first DHCP request message, the second DHCP server determines that if the related device information of the terminal is not maintained, the device returns a DHCPNAK message to the terminal to notify the terminal to start a new one. Reconnect process.
该方法还包括:The method also includes:
所述终端在接收到所述DHCPNAK报文后,向所述第二DHCP服务器发送第二DHCP请求报文,确认选择所述第二DHCP服务器;After receiving the DHCPNAK message, the terminal sends a second DHCP request message to the second DHCP server, and confirms that the second DHCP server is selected;
所述第二DHCP服务器向所述终端返回DHCPACK报文。The second DHCP server returns a DHCPACK message to the terminal.
该方法还包括: The method also includes:
所述终端在接收到所述DHCPNAK报文后,向外广播DISCOVER报文;After receiving the DHCPNAK packet, the terminal broadcasts a DISCOVER packet;
所述第二DHCP服务器在接收到所述DISCOVER报文后,向所述终端返回DHCPOFFER报文;After receiving the DISCOVER message, the second DHCP server returns a DHCPOFFER message to the terminal;
所述终端接收到所述DHCPOFFER报文后,向所述第二DHCP服务器发送第二DHCP请求报文,确认选择所述第二DHCP服务器;After receiving the DHCPOFFER message, the terminal sends a second DHCP request message to the second DHCP server, and confirms that the second DHCP server is selected;
所述第二DHCP服务器向所述终端返回DHCPACK报文。The second DHCP server returns a DHCPACK message to the terminal.
所述终端在从第一DHCP服务器切换到第二DHCP服务器时,向外广播第一DHCP请求报文的步骤之前还包括:The step of the terminal broadcasting the first DHCP request message before the step of switching from the first DHCP server to the second DHCP server further includes:
所述终端接入所述第一DHCP服务器后,向外广播DISCOVER报文;After the terminal accesses the first DHCP server, the terminal broadcasts a DISCOVER message;
所述第一DHCP服务器在接收到所述DISCOVER报文后,向所述终端返回DHCPOFFER报文;After receiving the DISCOVER message, the first DHCP server returns a DHCPOFFER message to the terminal;
所述终端接收到所述DHCPOFFER报文后,向所述第一DHCP服务器发送第二DHCP请求报文,确认选择所述第一DHCP服务器;After receiving the DHCPOFFER message, the terminal sends a second DHCP request message to the first DHCP server, and confirms that the first DHCP server is selected;
所述第一DHCP服务器向所述终端返回DHCPACK报文。The first DHCP server returns a DHCPACK message to the terminal.
本发明实施例还提出一种动态主机配置协议重连方法,包括:The embodiment of the invention further provides a dynamic host configuration protocol reconnection method, including:
DHCP服务器接收终端向外广播的第一DHCP请求报文;The DHCP server receives the first DHCP request message broadcasted by the terminal;
根据所述第一DHCP请求报文,判断是否维护有所述终端的相关设备信息;Determining whether the related device information of the terminal is maintained according to the first DHCP request message;
若没有维护所述终端的相关设备信息,则向所述终端返回DHCPNAK报文,以告知所述终端开启新一次重连过程。If the related device information of the terminal is not maintained, the DHCPNAK packet is returned to the terminal to notify the terminal to start a new reconnection process.
该方法还包括:The method also includes:
接收所述终端发送的第二DHCP请求报文,所述第二DHCP请求报文确认选择所述DHCP服务器;Receiving a second DHCP request message sent by the terminal, where the second DHCP request message confirms selection of the DHCP server;
向所述终端返回DHCPACK报文。Returning a DHCPACK message to the terminal.
该方法还包括:The method also includes:
接收所述终端向外广播的DISCOVER报文;Receiving a DISCOVER message broadcasted by the terminal to the outside;
根据所述DISCOVER报文,向所述终端返回DHCPOFFER报文;Returning a DHCPOFFER message to the terminal according to the DISCOVER message;
接收所述终端发送的第二DHCP请求报文,所述第二DHCP请求报文确认选择所述DHCP服务器; Receiving a second DHCP request message sent by the terminal, where the second DHCP request message confirms selection of the DHCP server;
向所述终端返回DHCPACK报文。Returning a DHCPACK message to the terminal.
本发明实施例还提出一种动态主机配置协议重连的DHCP服务器,包括:The embodiment of the invention further provides a DHCP server reconnected by the dynamic host configuration protocol, including:
接收模块,设置为接收终端向外广播的第一DHCP请求报文;a receiving module, configured to receive a first DHCP request message broadcasted by the terminal;
判断模块,设置为根据所述第一DHCP请求报文,判断是否维护有所述终端的相关设备信息;The determining module is configured to determine, according to the first DHCP request message, whether to maintain related device information of the terminal;
发送模块,设置为在判断模块判断没有维护所述终端的相关设备信息时,向所述终端返回DHCPNAK报文,以告知所述终端开启新一次重连过程。The sending module is configured to: when the determining module determines that the related device information of the terminal is not maintained, return a DHCPNAK message to the terminal to notify the terminal to start a new reconnection process.
所述接收模块,还设置为接收所述终端发送的第二DHCP请求报文,所述第二DHCP请求报文确认选择所述DHCP服务器;The receiving module is further configured to receive a second DHCP request message sent by the terminal, where the second DHCP request message confirms selection of the DHCP server;
所述发送模块,还设置为向所述终端返回DHCPACK报文。The sending module is further configured to return a DHCPACK message to the terminal.
其中,所述接收模块,还设置为接收所述终端向外广播的DISCOVER报文;The receiving module is further configured to receive a DISCOVER packet broadcasted by the terminal.
所述发送模块,还设置为根据所述DISCOVER报文,向所述终端返回DHCPOFFER报文;The sending module is further configured to: return a DHCPOFFER message to the terminal according to the DISCOVER message;
所述接收模块,还设置为接收所述终端发送的第二DHCP请求报文,所述第二DHCP请求报文确认选择所述DHCP服务器;The receiving module is further configured to receive a second DHCP request message sent by the terminal, where the second DHCP request message confirms selection of the DHCP server;
所述发送模块,还设置为向所述终端返回DHCPACK报文。The sending module is further configured to return a DHCPACK message to the terminal.
本发明实施例还提出一种动态主机配置协议重连的系统,包括第一DHCP服务器、第二DHCP服务器和与所述第一DHCP服务器、第二DHCP服务器分别通信连接的终端;其中:The embodiment of the present invention further provides a system for reconnecting a dynamic host configuration protocol, including a first DHCP server, a second DHCP server, and a terminal that is respectively connected to the first DHCP server and the second DHCP server; wherein:
所述第二DHCP服务器为上述的DHCP服务器;The second DHCP server is the above DHCP server;
所述终端,设置为在从第一DHCP服务器切换到第二DHCP服务器时,向外广播第一DHCP请求报文;以及接收所述第二DHCP服务器返回的DHCPNAK报文,并根据所述DHCPNAK报文开启新一次重连过程。The terminal is configured to: when the first DHCP server is switched to the second DHCP server, broadcast the first DHCP request message; and receive the DHCPNAK message returned by the second DHCP server, and according to the DHCPNAK report This article opens a new reconnection process.
本发明实施例提出的一种动态主机配置协议重连方法、DHCP服务器及系统,针对一个终端(下挂设备)不会出现同时连接多个DHCP服务器的情况,如果下挂设备发送DHCPREQUEST请求报文,DHCP服务器经判断并没有维护相关的设备信息,则直接回复DHCPNAK报文,促使下挂设备立即发送DHCPDISCOVER,开启新一次获取地址过程,从而省去了下挂设备多次DHCPREQUEST重试导致的延时,达到了快速重连的目的。 A method for reconnecting a dynamic host configuration protocol, a DHCP server, and a system for a terminal (a connected device) does not appear to be connected to multiple DHCP servers at the same time, if the attached device sends a DHCPREQUEST request message. After the DHCP server determines that the related device information is not maintained, the DHCPNAK packet is directly replied to the DHCP device to immediately send the DHCPDISCOVER to start the new address acquisition process, thereby eliminating the delay caused by the DHCPREQUEST retry of the attached device. At the time, the purpose of rapid reconnection was achieved.
附图说明DRAWINGS
图1是现有的终端切换网络时DHCP按规范的交互流程图;1 is a flow chart of interaction between DHCP according to specifications when an existing terminal switches networks;
图2是本发明动态主机配置协议重连方法一实施例的流程示意图;2 is a schematic flowchart of an embodiment of a method for reconnecting a dynamic host configuration protocol according to the present invention;
图3是本发明动态主机配置协议重连方法另一实施例的流程示意图;3 is a schematic flowchart of another embodiment of a dynamic host configuration protocol reconnection method according to the present invention;
图4是本发明动态主机配置协议重连方法再一实施例的流程示意图;4 is a schematic flow chart of still another embodiment of a dynamic host configuration protocol reconnection method according to the present invention;
图5是图4所示的动态主机配置协议重连方法实施例的详细流程示意图;5 is a detailed flow chart of an embodiment of a dynamic host configuration protocol reconnection method shown in FIG. 4;
图6是本发明动态主机配置协议重连方法又一实施例的流程示意图;6 is a schematic flowchart of still another embodiment of a dynamic host configuration protocol reconnection method according to the present invention;
图7是本发明动态主机配置协议重连方法又一实施例二的流程示意图;7 is a schematic flowchart of still another embodiment 2 of a dynamic host configuration protocol reconnection method according to the present invention;
图8是本发明动态主机配置协议重连方法又一实施例三的流程示意图;FIG. 8 is a schematic flowchart diagram of still another third embodiment of a dynamic host configuration protocol reconnection method according to the present invention; FIG.
图9是本发明动态主机配置协议重连方法又一实施例四的流程示意图;FIG. 9 is a schematic flowchart diagram of still another fourth embodiment of a dynamic host configuration protocol reconnection method according to the present invention; FIG.
图10是本发明动态主机配置协议重连的DHCP服务器一实施例功能模块示意图;10 is a schematic diagram of functional modules of an embodiment of a DHCP server reconnected by a dynamic host configuration protocol according to the present invention;
图11是本发明动态主机配置协议重连的系统一实施例的结构示意图。FIG. 11 is a schematic structural diagram of an embodiment of a system for reconnecting a dynamic host configuration protocol according to the present invention.
为了使本发明的技术方案更加清楚、明了,下面将结合附图作进一步详述。In order to make the technical solutions of the present invention clearer and clearer, the following will be further described in detail with reference to the accompanying drawings.
具体实施方式detailed description
本发明实施例的解决方案主要是:针对一个终端(下挂设备)不会出现同时连接多个DHCP服务器的情况,如果下挂设备发送DHCPREQUEST请求报文,DHCP服务器经判断并没有维护相关的设备信息,则直接回复DHCPNAK报文,促使下挂设备立即发送DHCPDISCOVER,开启新一次获取地址过程,从而省去了下挂设备多次DHCPREQUEST重试导致的延时,达到了快速重连的目的。The solution of the embodiment of the present invention is mainly: for a terminal (the attached device), the connection between multiple DHCP servers does not occur at the same time. If the downlink device sends a DHCPREQUEST request packet, the DHCP server determines that the related device is not maintained. The information directly replies to the DHCPNAK message, prompting the attached device to immediately send a DHCPDISCOVER, and start a new acquisition of the address process, thereby eliminating the delay caused by the repeated DHCPREQUEST retry of the attached device, and achieving the purpose of fast reconnection.
首先说明一下现有的终端切换DHCP服务器的实现方式。First, the implementation of the existing terminal switching DHCP server will be explained.
参照图1,图1为终端(下挂设备)切换网络时DHCP按规范的交互流程图,具体处理流程如下:Referring to FIG. 1, FIG. 1 is a flow chart of interaction between DHCP according to specifications when a terminal (subsidiary device) switches networks, and the specific processing flow is as follows:
步骤1,下挂设备A使用无线或有线的方式接入DHCP Server1(第一DHCP服务器)所在设备;Step 1: The device A is connected to the device where the DHCP server 1 (the first DHCP server) is located.
步骤2,下挂设备A发送DHCPDISCOVER报文; Step 2: Device A sends a DHCPDISCOVER packet.
步骤3,DHCP Server1回复DHCPOFFER报文;Step 3: DHCP Server 1 replies to the DHCPOFFER message;
步骤4,下挂设备A发送DHCPREQUEST报文,确认选择DHCP Server1;Step 4: The device A sends a DHCPREQUEST packet to confirm the selection of DHCP Server1.
步骤5,DHCP Server1回复DHCPACK报文,下挂设备A获得地址;Step 5: DHCP Server 1 replies with a DHCPACK packet, and device A obtains an address;
步骤6,下挂设备A切换DHCP服务器,切换到DHCP Server2(第二DHCP服务器)所在设备;现实中的应用场景为:手机切换WIFI热点,AC切换AP等;Step 6: The device A is switched to the DHCP server and switched to the device where the DHCP server 2 (the second DHCP server) is located. The actual application scenario is: the mobile phone switches the WIFI hotspot, and the AC switches the AP.
步骤7,切换DHCP服务器后,下挂设备A会发出DHCPREQUEST报文;Step 7: After switching the DHCP server, device A will send a DHCPREQUEST packet.
步骤8,按照RFC2131的规范要求,此处DHCP Server2要进行静默处理;Step 8. According to the requirements of RFC2131, DHCP Server2 needs to perform silent processing here.
步骤9,挂设备A连续发送多个DHCPREQUEST报文得不到响应后,等待重试结束,发送DISCOVER报文;Step 9: After the device A continuously sends multiple DHCPREQUEST messages and fails to respond, the device waits for the retry to end and sends a DISCOVER message.
步骤10,DHCP Server2回复DHCPOFFER报文;Step 10: DHCP Server 2 replies to the DHCPOFFER message;
步骤11,下挂设备A发送DHCPREQUEST报文,确认选择DHCP Server2;Step 11: The device A sends a DHCPREQUEST packet to confirm the selection of DHCP Server2.
步骤12,DHCP Server2回复DHCPACK报文,下挂设备A获得地址。In step 12, the DHCP server 2 replies to the DHCPACK packet, and the device A receives the address.
由上述流程可知,现有的这种下挂设备切换网络实现方式,会导致下挂设备连续发送多个DHCPREQUEST得不到响应,只能等待重试结束,重新发送DHCPDISCOVER报文开启新一次连接过程才能获得地址,由此,导致下挂设备重连延时较大,给用户体验较差。It can be seen from the above process that the existing network switching mode of the connected device causes the downlink device to continuously send multiple DHCPREQUESTs without receiving a response, and can only wait for the retry to end, and resend the DHCPDISCOVER message to start a new connection process. In order to obtain an address, the reconnection delay of the connected device is large, and the user experience is poor.
本实施例方案在下挂设备切换DHCP Server时,若新接入的DHCP Server没有维护此下挂设备的相关信息,则直接回复DHCPNAK报文,让下挂设备立即开启新一次重连过程,从而省去下挂设备多次DHCPREQUEST重试导致的延时,达到快速重连的目的。In this embodiment, when the DHCP server is switched to the DHCP server, if the newly accessed DHCP server does not maintain the related information of the device, the DHCPNAK packet is directly replied to the device to immediately restart the reconnection process. The delay caused by multiple DHCPREQUEST retry attempts to disconnect the device to achieve the purpose of fast reconnection.
基于上述分析,提出本发明实施例动态主机配置协议重连方法实施例。Based on the foregoing analysis, an embodiment of a dynamic host configuration protocol reconnection method according to an embodiment of the present invention is proposed.
具体地,如图2所示,本发明一实施例提出一种动态主机配置协议重连方法,包括:Specifically, as shown in FIG. 2, an embodiment of the present invention provides a dynamic host configuration protocol reconnection method, including:
步骤S101,终端在从第一DHCP服务器切换到第二DHCP服务器时,向外广播第一DHCP请求报文;Step S101: When the terminal switches from the first DHCP server to the second DHCP server, the terminal broadcasts the first DHCP request message.
步骤S102,所述第二DHCP服务器在接收到所述第一DHCP请求报文后,经判断若没有维护所述终端的相关设备信息,则向所述终端返回DHCPNAK报文,以告知所述终端开启新一次重连过程。Step S102: After receiving the first DHCP request message, the second DHCP server determines, if the related device information of the terminal is not maintained, returns a DHCPNAK message to the terminal to notify the terminal. Start a new reconnection process.
在本实施例中,终端在从第一DHCP服务器切换到第二DHCP服务器时,向外广播第一DHCPREQUEST报文,以对外告知该终端需要从第一DHCP服务器切换到第二DHCP服务器,该第一DHCPREQUEST报文中携带终端当前使用的IP地址。 In this embodiment, when the terminal switches from the first DHCP server to the second DHCP server, the terminal broadcasts the first DHCPREQUEST packet to notify the terminal that the terminal needs to be switched from the first DHCP server to the second DHCP server. A DHCPREQUEST packet carries the IP address currently used by the terminal.
第二DHCP服务器在接收到终端发送的第一DHCP请求报文后,判断本地是否维护有该终端的相关设备信息,经判断若没有维护所述终端的相关设备信息,则第二DHCP服务器向所述终端返回DHCPNAK报文,以告知终端开启新一次重连过程,也就是说,第二DHCP服务器通过DHCPNAK报文告知终端:当前逻辑参数无法满足终端的请求,无法向终端提供相应的服务,需要终端重新开启获取地址过程。After receiving the first DHCP request message sent by the terminal, the second DHCP server determines whether the related device information of the terminal is maintained locally, and if it is determined that the related device information of the terminal is not maintained, the second DHCP server The terminal returns a DHCPNAK message to inform the terminal to initiate a new reconnection process. That is, the second DHCP server informs the terminal through the DHCPNAK message that the current logical parameter cannot satisfy the request of the terminal, and cannot provide the corresponding service to the terminal. The terminal re-opens the process of obtaining an address.
这样,终端就无需连续发送多个DHCPREQUEST等待响应,无需等待重试结束,而是可以直接重新发送DHCPDISCOVER报文开启新一次连接过程获得地址,从而省去终端多次DHCPREQUEST重试导致的延时,达到快速重连的目的。In this way, the terminal does not need to continuously send multiple DHCPREQUEST wait responses, and does not need to wait for the retry to end, but can directly resend the DHCPDISCOVER message to open a new connection process to obtain an address, thereby eliminating the delay caused by the DHCPReQUEST retry of the terminal multiple times. Achieve the goal of rapid reconnection.
如图3所示,本发明另一实施例提出一种动态主机配置协议重连方法,基于上述图2所示的实施例,还包括终端开启新一次重连过程的相应步骤,具体包括:As shown in FIG. 3, another embodiment of the present invention provides a dynamic host configuration protocol reconnection method. The method according to the foregoing embodiment of FIG. 2 further includes a corresponding step of the terminal to start a new reconnection process, which specifically includes:
步骤S103,所述终端在接收到所述DHCPNAK报文后,向所述第二DHCP服务器发送第二DHCP请求报文,确认选择所述第二DHCP服务器;Step S103: After receiving the DHCPNAK message, the terminal sends a second DHCP request message to the second DHCP server to confirm selection of the second DHCP server.
步骤S104,所述第二DHCP服务器向所述终端返回DHCPACK报文。Step S104: The second DHCP server returns a DHCPACK message to the terminal.
相比上述图2所示的实施例,本实施例还包括终端开启新一次重连过程的具体方案。Compared with the embodiment shown in FIG. 2 above, the embodiment further includes a specific solution for the terminal to start a new reconnection process.
首先,终端在接收到第二DHCP服务器返回的DHCPNAK报文后,直接向第二DHCP服务器发送第二DHCP请求报文,该第二DHCP请求报文携带有选定第二DHCP服务器获取相关IP地址的信息,即确认选择第二DHCP服务器。First, after receiving the DHCPNAK message returned by the second DHCP server, the terminal directly sends a second DHCP request message to the second DHCP server, where the second DHCP request message carries the selected second DHCP server to obtain the relevant IP address. The information that confirms the selection of the second DHCP server.
第二DHCP服务器在接收到终端发送的第二DHCP请求报文后,向终端返回DHCPACK报文,该DHCPACK报文作为确认报文,携带有分配给终端设备的IP地址、路由、子网掩码、DNS、租期等信息,终端由此获取到上网需要的IP地址、路由、子网掩码、DNS、租期等关键信息,重连过程结束。After receiving the second DHCP request message sent by the terminal, the second DHCP server returns a DHCPACK message to the terminal, where the DHCPACK message is used as an acknowledgement message, carrying the IP address, route, and subnet mask assigned to the terminal device. The DNS, lease, and other information, the terminal obtains the key information such as the IP address, route, subnet mask, DNS, and lease period required for the Internet access, and the reconnection process ends.
如图4所示,本发明再一实施例提出一种动态主机配置协议重连方法,基于上述图2所示的实施例,还包括终端开启新一次重连过程的相应步骤,其实现方式与上述图3所示的终端开启新一次重连过程不同。具体包括:As shown in FIG. 4, another embodiment of the present invention provides a dynamic host configuration protocol reconnection method. Based on the embodiment shown in FIG. 2, the method further includes a corresponding step of the terminal to start a new reconnection process, and the implementation manner thereof is The terminal shown in FIG. 3 above is different in starting a new reconnection process. Specifically include:
步骤S105,所述终端在接收到所述DHCPNAK报文后,向外广播DISCOVER报文;Step S105: After receiving the DHCPNAK packet, the terminal broadcasts a DISCOVER packet.
步骤S106,所述第二DHCP服务器在接收到所述DISCOVER报文后,向所述终端返回DHCPOFFER报文;Step S106: After receiving the DISCOVER message, the second DHCP server returns a DHCPOFFER message to the terminal.
步骤S1031,所述终端接收到所述DHCPOFFER报文后,向所述第二DHCP服务器发送第二DHCP请求报文,确认选择所述第二DHCP服务器;Step S1031: After receiving the DHCPOFFER message, the terminal sends a second DHCP request message to the second DHCP server, and confirms that the second DHCP server is selected.
步骤S1041,所述第二DHCP服务器向所述终端返回DHCPACK报文。 Step S1041: The second DHCP server returns a DHCPACK message to the terminal.
相比上述图2所示的实施例,本实施例还包括终端开启新一次重连过程的具体方案。Compared with the embodiment shown in FIG. 2 above, the embodiment further includes a specific solution for the terminal to start a new reconnection process.
首先,终端在接收到第二DHCP服务器返回的DHCPNAK报文后,不是直接向第二DHCP服务器发送第二DHCP请求报文,而是对外广播DISCOVER报文。该DISCOVER报文携带有终端的设备标识、厂商类别标识、主机名,以及一系列请求信息,该请求信息包括但不限于子网掩码、路由、域名,以及DNS等信息。First, after receiving the DHCPNAK message returned by the second DHCP server, the terminal does not directly send the second DHCP request message to the second DHCP server, but broadcasts the DISCOVER message to the outside. The DISCOVER packet carries the device identifier of the terminal, the vendor category identifier, the host name, and a series of request information, including but not limited to subnet mask, routing, domain name, and DNS.
第二DHCP服务器在接收到所述DISCOVER报文后,向终端返回DHCPOFFER报文,向终端提供IP地址、路由、子网掩码、DNS、租期等信息。After receiving the DISCOVER message, the second DHCP server returns a DHCPOFFER message to the terminal, and provides the terminal with information such as an IP address, a route, a subnet mask, a DNS, a lease, and the like.
终端在接收到第二DHCP服务器发送的DHCPOFFER报文后,向第二DHCP服务器发送第二DHCP请求报文,该第二DHCP请求报文携带有选定第二DHCP服务器获取相关IP地址的信息,即确认选择第二DHCP服务器。After receiving the DHCPOFFER message sent by the second DHCP server, the terminal sends a second DHCP request message to the second DHCP server, where the second DHCP request message carries information about the selected second DHCP server to obtain the relevant IP address. That is, it is confirmed that the second DHCP server is selected.
第二DHCP服务器在接收到终端发送的第二DHCP请求报文后,向终端返回DHCPACK报文,该DHCPACK报文作为确认报文,携带有分配给终端设备的IP地址、路由、子网掩码、DNS、租期等信息,终端由此获取到上网需要的IP地址、路由、子网掩码、DNS、租期等关键信息,重连过程结束。After receiving the second DHCP request message sent by the terminal, the second DHCP server returns a DHCPACK message to the terminal, where the DHCPACK message is used as an acknowledgement message, carrying the IP address, route, and subnet mask assigned to the terminal device. The DNS, lease, and other information, the terminal obtains the key information such as the IP address, route, subnet mask, DNS, and lease period required for the Internet access, and the reconnection process ends.
下面结合图5详细阐述本实施例的处理流程:The processing flow of this embodiment is described in detail below with reference to FIG. 5:
参照图5,图5为本实施例中,终端(下挂设备)切换网络时的交互流程图,具体处理流程如下:Referring to FIG. 5, FIG. 5 is a flow chart of interaction when a terminal (subscribing device) switches a network according to the embodiment. The specific processing procedure is as follows:
步骤1,下挂设备A(终端)使用无线或有线的方式接入DHCP Server1(第一DHCP服务器)所在设备;Step 1: The device A (terminal) connected to the device is connected to the device where the DHCP server 1 (the first DHCP server) is located.
步骤2,下挂设备A发送DHCPDISCOVER报文;Step 2: Device A sends a DHCPDISCOVER packet.
步骤3,DHCP Server1回复DHCPOFFER报文;此处可通过下挂设备收到的DHCPOFFER报文来源,判断是否符合本发明实施例提出的应用场景:一个下挂设备不会同时接入多个DHCP Server。如果只有一个来源,则符合本发明实施例的应用场景;如果有多个来源,则不符合;Step 3: The DHCP server 1 replies to the DHCPOFFER packet; the source of the DHCPOFFER packet received by the device is determined by the device to determine whether the application scenario is consistent with the embodiment of the present invention: a connected device does not access multiple DHCP servers at the same time. . If there is only one source, the application scenario is consistent with the embodiment of the present invention; if there are multiple sources, the content is not met;
步骤4,下挂设备A发送DHCPREQUEST报文,确认选择DHCP Server1;Step 4: The device A sends a DHCPREQUEST packet to confirm the selection of DHCP Server1.
步骤5,DHCP Server1回复DHCPACK报文,下挂设备A获得地址;Step 5: DHCP Server 1 replies with a DHCPACK packet, and device A obtains an address;
步骤6,下挂设备A切换DHCP服务器,切换到DHCP Server2(第二DHCP服务器)所在设备;现实中的应用场景为:手机切换WIFI热点,AC切换AP等;Step 6: The device A is switched to the DHCP server and switched to the device where the DHCP server 2 (the second DHCP server) is located. The actual application scenario is: the mobile phone switches the WIFI hotspot, and the AC switches the AP.
步骤7,切换DHCP服务器后,下挂设备A会发出DHCPREQUEST报文;Step 7: After switching the DHCP server, device A will send a DHCPREQUEST packet.
步骤8,按照RFC2131的规范要求,此处DHCP Server2要进行静默处理;而按照本发明 实施例的要求,DHCP Server2直接回复DHCPNAK报文,让下挂设备立即开始新一次获取地址过程,从而节省了DHCPREQUEST的重试时间;Step 8, in accordance with the specifications of RFC2131, where DHCP Server 2 is to perform silent processing; In the embodiment, the DHCP server 2 directly responds to the DHCPNAK packet, so that the connected device immediately starts a new address acquisition process, thereby saving the DHCPREQUEST retry time;
步骤9,下挂设备A收到DHCPNAK报文后,发送DISCOVER报文;Step 9: After receiving the DHCPNAK packet, the device A sends a DISCOVER packet.
步骤10,DHCP Server2回复DHCPOFFER报文;Step 10: DHCP Server 2 replies to the DHCPOFFER message;
步骤11,下挂设备A发送DHCPREQUEST报文,确认选择DHCP Server2;Step 11: The device A sends a DHCPREQUEST packet to confirm the selection of DHCP Server2.
步骤12,DHCP Server2回复DHCPACK报文,下挂设备A获得地址。In step 12, the DHCP server 2 replies to the DHCPACK packet, and the device A receives the address.
本实施例通过上述方案,针对一个终端(下挂设备)不会出现同时连接多个DHCP服务器的情况,如果下挂设备发送DHCPREQUEST请求报文,DHCP服务器经判断并没有维护相关的设备信息,则直接回复DHCPNAK报文,促使下挂设备立即发送DHCPDISCOVER,开启新一次获取地址过程,从而省去了下挂设备多次DHCPREQUEST重试导致的延时,达到了快速重连的目的。In this embodiment, the above scenario does not occur when one terminal (the attached device) does not have multiple DHCP servers connected to each other. If the DHCP device sends a DHCPREQUEST request packet, the DHCP server determines that the related device information is not maintained. Directly replying to the DHCPNAK packet, prompting the connected device to immediately send a DHCPDISCOVER to start a new acquisition of the address process, thereby eliminating the delay caused by multiple DHCPREQUEST retry attempts of the attached device, and achieving the purpose of fast reconnection.
如图6所示,本发明又一实施例提出一种动态主机配置协议重连方法,基于上述图4所示的实施例,终端在从第一DHCP服务器切换到第二DHCP服务器时,向外广播第一DHCP请求报文的步骤之前还包括:As shown in FIG. 6, another embodiment of the present invention provides a method for reconnecting a dynamic host configuration protocol. Based on the embodiment shown in FIG. 4, when the terminal switches from the first DHCP server to the second DHCP server, the terminal is outward. Before the step of broadcasting the first DHCP request message, the method further includes:
步骤S107,所述终端接入所述第一DHCP服务器后,向外广播DISCOVER报文;Step S107: After the terminal accesses the first DHCP server, the terminal broadcasts a DISCOVER message.
步骤S108,所述第一DHCP服务器在接收到所述DISCOVER报文后,向所述终端返回DHCPOFFER报文;Step S108: After receiving the DISCOVER message, the first DHCP server returns a DHCPOFFER message to the terminal.
步骤S109,所述终端接收到所述DHCPOFFER报文后,向所述第一DHCP服务器发送第二DHCP请求报文,确认选择所述第一DHCP服务器;Step S109: After receiving the DHCPOFFER message, the terminal sends a second DHCP request message to the first DHCP server, and confirms that the first DHCP server is selected.
步骤S110,所述第一DHCP服务器向所述终端返回DHCPACK报文。Step S110: The first DHCP server returns a DHCPACK message to the terminal.
相比上述实施例,本实施例还包括终端接入第一DHCP服务器的方案,该过程与现有的DHCP规范相同,可以参照图1所示的具体流程,在此不再赘述。Compared with the foregoing embodiment, the embodiment further includes a scheme in which the terminal accesses the first DHCP server, and the process is the same as the existing DHCP specification, and the specific process shown in FIG. 1 may be referred to, and details are not described herein again.
需要说明的是,本实施例还可以与上述图2及图3所示的实施例组合实施,在此不再赘述。It should be noted that this embodiment can also be implemented in combination with the foregoing embodiment shown in FIG. 2 and FIG. 3, and details are not described herein again.
图7所示,本发明又一实施例二提出一种动态主机配置协议重连方法,是从DHCP服务 器侧提出的方法实施例,该方法包括:As shown in FIG. 7, another embodiment 2 of the present invention provides a dynamic host configuration protocol reconnection method, which is a DHCP service. An embodiment of the method proposed by the device side, the method comprising:
步骤S201,DHCP服务器接收终端向外广播的第一DHCP请求报文;Step S201: The DHCP server receives the first DHCP request message broadcasted by the terminal.
步骤S202,根据所述第一DHCP请求报文,判断是否维护有所述终端的相关设备信息;Step S202, determining, according to the first DHCP request message, whether to maintain related device information of the terminal;
步骤S203,若没有维护所述终端的相关设备信息,则向所述终端返回DHCPNAK报文,以告知所述终端开启新一次重连过程。Step S203: If the related device information of the terminal is not maintained, return a DHCPNAK message to the terminal to notify the terminal to start a new reconnection process.
具体地,在本实施例中,终端在从第一DHCP服务器切换到第二DHCP服务器时,向外广播第一DHCPREQUEST报文,以对外告知该终端需要从第一DHCP服务器切换到第二DHCP服务器,该第一DHCPREQUEST报文中携带终端当前使用的IP地址。Specifically, in this embodiment, when the terminal switches from the first DHCP server to the second DHCP server, the terminal broadcasts the first DHCPREQUEST packet to notify the terminal that the terminal needs to switch from the first DHCP server to the second DHCP server. The first DHCPREQUEST packet carries the IP address currently used by the terminal.
第二DHCP服务器在接收到终端发送的第一DHCP请求报文后,判断本地是否维护有该终端的相关设备信息,经判断若没有维护所述终端的相关设备信息,则第二DHCP服务器向所述终端返回DHCPNAK报文,以告知终端开启新一次重连过程,也就是说,第二DHCP服务器通过DHCPNAK报文告知终端:当前逻辑参数无法满足终端的请求,无法向终端提供相应的服务,需要终端重新开启获取地址过程。After receiving the first DHCP request message sent by the terminal, the second DHCP server determines whether the related device information of the terminal is maintained locally, and if it is determined that the related device information of the terminal is not maintained, the second DHCP server The terminal returns a DHCPNAK message to inform the terminal to initiate a new reconnection process. That is, the second DHCP server informs the terminal through the DHCPNAK message that the current logical parameter cannot satisfy the request of the terminal, and cannot provide the corresponding service to the terminal. The terminal re-opens the process of obtaining an address.
这样,终端就无需连续发送多个DHCPREQUEST等待响应,无需等待重试结束,而是可以直接重新发送DHCPDISCOVER报文开启新一次连接过程获得地址,从而省去终端多次DHCPREQUEST重试导致的延时,达到快速重连的目的。In this way, the terminal does not need to continuously send multiple DHCPREQUEST wait responses, and does not need to wait for the retry to end, but can directly resend the DHCPDISCOVER message to open a new connection process to obtain an address, thereby eliminating the delay caused by the DHCPReQUEST retry of the terminal multiple times. Achieve the goal of rapid reconnection.
图8所示,本发明又一实施例三提出一种动态主机配置协议重连方法,基于上述图7所示的实施例,还包括:As shown in FIG. 8, another embodiment 3 of the present invention provides a dynamic host configuration protocol reconnection method. Based on the foregoing embodiment shown in FIG. 7, the method further includes:
步骤S204,接收所述终端发送的第二DHCP请求报文,所述第二DHCP请求报文确认选择所述DHCP服务器;Step S204: Receive a second DHCP request message sent by the terminal, where the second DHCP request message confirms selection of the DHCP server.
步骤S205,向所述终端返回DHCPACK报文。Step S205, returning a DHCPACK message to the terminal.
相比上述图7所示的实施例,本实施例还包括终端开启新一次重连过程的具体方案。Compared with the embodiment shown in FIG. 7 above, the embodiment further includes a specific solution for the terminal to start a new reconnection process.
首先,终端在接收到第二DHCP服务器返回的DHCPNAK报文后,直接向第二DHCP服务器发送第二DHCP请求报文,该第二DHCP请求报文携带有选定第二DHCP服务器获取相关IP地址的信息,即确认选择第二DHCP服务器。First, after receiving the DHCPNAK message returned by the second DHCP server, the terminal directly sends a second DHCP request message to the second DHCP server, where the second DHCP request message carries the selected second DHCP server to obtain the relevant IP address. The information that confirms the selection of the second DHCP server.
第二DHCP服务器在接收到终端发送的第二DHCP请求报文后,向终端返回DHCPACK报文,该DHCPACK报文作为确认报文,携带有分配给终端设备的IP地址、路由、子网掩码、DNS、租期等信息,终端由此获取到上网需要的IP地址、路由、子网掩码、DNS、租期等关键信息,重连过程结束。 After receiving the second DHCP request message sent by the terminal, the second DHCP server returns a DHCPACK message to the terminal, where the DHCPACK message is used as an acknowledgement message, carrying the IP address, route, and subnet mask assigned to the terminal device. The DNS, lease, and other information, the terminal obtains the key information such as the IP address, route, subnet mask, DNS, and lease period required for the Internet access, and the reconnection process ends.
图9所示,本发明又一实施例四提出一种动态主机配置协议重连方法,基于上述图7所示的实施例,还包括终端开启新一次重连过程的相应步骤,其实现方式与上述图8所示的终端开启新一次重连过程不同。具体还包括:As shown in FIG. 9, another embodiment 4 of the present invention provides a dynamic host configuration protocol reconnection method. Based on the foregoing embodiment shown in FIG. 7, the method further includes a corresponding step of the terminal to start a new reconnection process, and the implementation manner thereof is The terminal shown in FIG. 8 is different in starting a new reconnection process. Specifically, it also includes:
步骤S206,接收所述终端向外广播的DISCOVER报文;Step S206, receiving a DISCOVER message broadcasted by the terminal to the outside;
步骤S207,根据所述DISCOVER报文,向所述终端返回DHCPOFFER报文;Step S207, returning a DHCPOFFER message to the terminal according to the DISCOVER message;
步骤S208,接收所述终端发送的第二DHCP请求报文,所述第二DHCP请求报文确认选择所述DHCP服务器;Step S208, receiving a second DHCP request message sent by the terminal, where the second DHCP request message confirms selection of the DHCP server;
步骤S209,向所述终端返回DHCPACK报文。Step S209, returning a DHCPACK message to the terminal.
首先,终端在接收到第二DHCP服务器返回的DHCPNAK报文后,不是直接向第二DHCP服务器发送第二DHCP请求报文,而是对外广播DISCOVER报文。该DISCOVER报文携带有终端的设备标识、厂商类别标识、主机名,以及一系列请求信息,该请求信息包括但不限于子网掩码、路由、域名,以及DNS等信息。First, after receiving the DHCPNAK message returned by the second DHCP server, the terminal does not directly send the second DHCP request message to the second DHCP server, but broadcasts the DISCOVER message to the outside. The DISCOVER packet carries the device identifier of the terminal, the vendor category identifier, the host name, and a series of request information, including but not limited to subnet mask, routing, domain name, and DNS.
第二DHCP服务器在接收到所述DISCOVER报文后,向终端返回DHCPOFFER报文,向终端提供IP地址、路由、子网掩码、DNS、租期等信息。After receiving the DISCOVER message, the second DHCP server returns a DHCPOFFER message to the terminal, and provides the terminal with information such as an IP address, a route, a subnet mask, a DNS, a lease, and the like.
终端在接收到第二DHCP服务器发送的DHCPOFFER报文后,向第二DHCP服务器发送第二DHCP请求报文,该第二DHCP请求报文携带有选定第二DHCP服务器获取相关IP地址的信息,即确认选择第二DHCP服务器。After receiving the DHCPOFFER message sent by the second DHCP server, the terminal sends a second DHCP request message to the second DHCP server, where the second DHCP request message carries information about the selected second DHCP server to obtain the relevant IP address. That is, it is confirmed that the second DHCP server is selected.
第二DHCP服务器在接收到终端发送的第二DHCP请求报文后,向终端返回DHCPACK报文,该DHCPACK报文作为确认报文,携带有分配给终端设备的IP地址、路由、子网掩码、DNS、租期等信息,终端由此获取到上网需要的IP地址、路由、子网掩码、DNS、租期等关键信息,重连过程结束。After receiving the second DHCP request message sent by the terminal, the second DHCP server returns a DHCPACK message to the terminal, where the DHCPACK message is used as an acknowledgement message, carrying the IP address, route, and subnet mask assigned to the terminal device. The DNS, lease, and other information, the terminal obtains the key information such as the IP address, route, subnet mask, DNS, and lease period required for the Internet access, and the reconnection process ends.
本实施例通过上述方案,针对一个终端(下挂设备)不会出现同时连接多个DHCP服务器的情况,如果下挂设备发送DHCPREQUEST请求报文,DHCP服务器经判断并没有维护相关的设备信息,则直接回复DHCPNAK报文,促使下挂设备立即发送DHCPDISCOVER,开启新一次获取地址过程,从而省去了下挂设备多次DHCPREQUEST重试导致的延时,达到了快速重连的目的。In this embodiment, the above scenario does not occur when one terminal (the attached device) does not have multiple DHCP servers connected to each other. If the DHCP device sends a DHCPREQUEST request packet, the DHCP server determines that the related device information is not maintained. Directly replying to the DHCPNAK packet, prompting the connected device to immediately send a DHCPDISCOVER to start a new acquisition of the address process, thereby eliminating the delay caused by multiple DHCPREQUEST retry attempts of the attached device, and achieving the purpose of fast reconnection.
对应地,提出本发明实施例动态主机配置协议重连的DHCP服务器的实施例。Correspondingly, an embodiment of a DHCP server reconnected by the dynamic host configuration protocol in the embodiment of the present invention is proposed.
具体地,如图10所示,本发明一实施例提出一种动态主机配置协议重连的DHCP服务器,包括:接收模块301、判断模块302、发送模块303,其中:Specifically, as shown in FIG. 10, an embodiment of the present invention provides a DHCP server that is reconnected by a dynamic host configuration protocol, and includes: a receiving module 301, a determining module 302, and a sending module 303, where:
接收模块301,设置为接收终端向外广播的第一DHCP请求报文;The receiving module 301 is configured to receive a first DHCP request message that is broadcasted by the terminal.
判断模块302,设置为根据所述第一DHCP请求报文,判断是否维护有所述终端的相关设 备信息;The determining module 302 is configured to determine, according to the first DHCP request message, whether to maintain the related device of the terminal Preparation information
发送模块303,设置为在判断模块判断没有维护所述终端的相关设备信息时,向所述终端返回DHCPNAK报文,以告知所述终端开启新一次重连过程。The sending module 303 is configured to: when the determining module determines that the related device information of the terminal is not maintained, return a DHCPNAK message to the terminal to notify the terminal to start a new reconnection process.
具体地,在本实施例中,终端在从第一DHCP服务器切换到第二DHCP服务器时,向外广播第一DHCPREQUEST报文,以对外告知该终端需要从第一DHCP服务器切换到第二DHCP服务器,该第一DHCPREQUEST报文中携带终端当前使用的IP地址。Specifically, in this embodiment, when the terminal switches from the first DHCP server to the second DHCP server, the terminal broadcasts the first DHCPREQUEST packet to notify the terminal that the terminal needs to switch from the first DHCP server to the second DHCP server. The first DHCPREQUEST packet carries the IP address currently used by the terminal.
第二DHCP服务器在接收到终端发送的第一DHCP请求报文后,判断本地是否维护有该终端的相关设备信息,经判断若没有维护所述终端的相关设备信息,则第二DHCP服务器向所述终端返回DHCPNAK报文,以告知终端开启新一次重连过程,也就是说,第二DHCP服务器通过DHCPNAK报文告知终端:当前逻辑参数无法满足终端的请求,无法向终端提供相应的服务,需要终端重新开启获取地址过程。After receiving the first DHCP request message sent by the terminal, the second DHCP server determines whether the related device information of the terminal is maintained locally, and if it is determined that the related device information of the terminal is not maintained, the second DHCP server The terminal returns a DHCPNAK message to inform the terminal to initiate a new reconnection process. That is, the second DHCP server informs the terminal through the DHCPNAK message that the current logical parameter cannot satisfy the request of the terminal, and cannot provide the corresponding service to the terminal. The terminal re-opens the process of obtaining an address.
这样,终端就无需连续发送多个DHCPREQUEST等待响应,无需等待重试结束,而是可以直接重新发送DHCPDISCOVER报文开启新一次连接过程获得地址,从而省去终端多次DHCPREQUEST重试导致的延时,达到快速重连的目的。In this way, the terminal does not need to continuously send multiple DHCPREQUEST wait responses, and does not need to wait for the retry to end, but can directly resend the DHCPDISCOVER message to open a new connection process to obtain an address, thereby eliminating the delay caused by the DHCPReQUEST retry of the terminal multiple times. Achieve the goal of rapid reconnection.
进一步地,作为一种终端开启新一次重连过程的实现方式,所述接收模块301,还设置为接收所述终端发送的第二DHCP请求报文,所述第二DHCP请求报文确认选择所述DHCP服务器;Further, the receiving module 301 is further configured to receive a second DHCP request message sent by the terminal, where the second DHCP request message confirms the selection. Said DHCP server;
所述发送模块303,还设置为向所述终端返回DHCPACK报文。The sending module 303 is further configured to return a DHCPACK message to the terminal.
本实施例还包括终端开启新一次重连过程的具体方案。This embodiment further includes a specific scheme in which the terminal starts a new reconnection process.
首先,终端在接收到第二DHCP服务器返回的DHCPNAK报文后,直接向第二DHCP服务器发送第二DHCP请求报文,该第二DHCP请求报文携带有选定第二DHCP服务器获取相关IP地址的信息,即确认选择第二DHCP服务器。First, after receiving the DHCPNAK message returned by the second DHCP server, the terminal directly sends a second DHCP request message to the second DHCP server, where the second DHCP request message carries the selected second DHCP server to obtain the relevant IP address. The information that confirms the selection of the second DHCP server.
第二DHCP服务器在接收到终端发送的第二DHCP请求报文后,向终端返回DHCPACK报文,该DHCPACK报文作为确认报文,携带有分配给终端设备的IP地址、路由、子网掩码、DNS、租期等信息,终端由此获取到上网需要的IP地址、路由、子网掩码、DNS、租期等关键信息,重连过程结束。After receiving the second DHCP request message sent by the terminal, the second DHCP server returns a DHCPACK message to the terminal, where the DHCPACK message is used as an acknowledgement message, carrying the IP address, route, and subnet mask assigned to the terminal device. The DNS, lease, and other information, the terminal obtains the key information such as the IP address, route, subnet mask, DNS, and lease period required for the Internet access, and the reconnection process ends.
进一步地,作为另一种终端开启新一次重连过程的实现方式,所述接收模块301,还设置为接收所述终端向外广播的DISCOVER报文;Further, the receiving module 301 is further configured to receive the DISCOVER packet broadcasted by the terminal, as another implementation manner of the terminal re-opening the new re-connection process;
所述发送模块303,还设置为根据所述DISCOVER报文,向所述终端返回DHCPOFFER报文; The sending module 303 is further configured to: return a DHCPOFFER message to the terminal according to the DISCOVER message;
所述接收模块301,还设置为接收所述终端发送的第二DHCP请求报文,所述第二DHCP请求报文确认选择所述DHCP服务器;The receiving module 301 is further configured to receive a second DHCP request message sent by the terminal, where the second DHCP request message confirms selection of the DHCP server;
所述发送模块303,还设置为向所述终端返回DHCPACK报文。The sending module 303 is further configured to return a DHCPACK message to the terminal.
首先,终端在接收到第二DHCP服务器返回的DHCPNAK报文后,不是直接向第二DHCP服务器发送第二DHCP请求报文,而是对外广播DISCOVER报文。该DISCOVER报文携带有终端的设备标识、厂商类别标识、主机名,以及一系列请求信息,该请求信息包括但不限于子网掩码、路由、域名,以及DNS等信息。First, after receiving the DHCPNAK message returned by the second DHCP server, the terminal does not directly send the second DHCP request message to the second DHCP server, but broadcasts the DISCOVER message to the outside. The DISCOVER packet carries the device identifier of the terminal, the vendor category identifier, the host name, and a series of request information, including but not limited to subnet mask, routing, domain name, and DNS.
第二DHCP服务器在接收到所述DISCOVER报文后,向终端返回DHCPOFFER报文,向终端提供IP地址、路由、子网掩码、DNS、租期等信息。After receiving the DISCOVER message, the second DHCP server returns a DHCPOFFER message to the terminal, and provides the terminal with information such as an IP address, a route, a subnet mask, a DNS, a lease, and the like.
终端在接收到第二DHCP服务器发送的DHCPOFFER报文后,向第二DHCP服务器发送第二DHCP请求报文,该第二DHCP请求报文携带有选定第二DHCP服务器获取相关IP地址的信息,即确认选择第二DHCP服务器。After receiving the DHCPOFFER message sent by the second DHCP server, the terminal sends a second DHCP request message to the second DHCP server, where the second DHCP request message carries information about the selected second DHCP server to obtain the relevant IP address. That is, it is confirmed that the second DHCP server is selected.
第二DHCP服务器在接收到终端发送的第二DHCP请求报文后,向终端返回DHCPACK报文,该DHCPACK报文作为确认报文,携带有分配给终端设备的IP地址、路由、子网掩码、DNS、租期等信息,终端由此获取到上网需要的IP地址、路由、子网掩码、DNS、租期等关键信息,重连过程结束。After receiving the second DHCP request message sent by the terminal, the second DHCP server returns a DHCPACK message to the terminal, where the DHCPACK message is used as an acknowledgement message, carrying the IP address, route, and subnet mask assigned to the terminal device. The DNS, lease, and other information, the terminal obtains the key information such as the IP address, route, subnet mask, DNS, and lease period required for the Internet access, and the reconnection process ends.
本实施例通过上述方案,针对一个终端(下挂设备)不会出现同时连接多个DHCP服务器的情况,如果下挂设备发送DHCPREQUEST请求报文,DHCP服务器经判断并没有维护相关的设备信息,则直接回复DHCPNAK报文,促使下挂设备立即发送DHCPDISCOVER,开启新一次获取地址过程,从而省去了下挂设备多次DHCPREQUEST重试导致的延时,达到了快速重连的目的。In this embodiment, the above scenario does not occur when one terminal (the attached device) does not have multiple DHCP servers connected to each other. If the DHCP device sends a DHCPREQUEST request packet, the DHCP server determines that the related device information is not maintained. Directly replying to the DHCPNAK packet, prompting the connected device to immediately send a DHCPDISCOVER to start a new acquisition of the address process, thereby eliminating the delay caused by multiple DHCPREQUEST retry attempts of the attached device, and achieving the purpose of fast reconnection.
此外,如图11所示,本发明一实施例还提出一种动态主机配置协议重连的系统,包括第一DHCP服务器401、第二DHCP服务器402和与所述第一DHCP服务器401、第二DHCP服务器402分别通信连接的终端403;其中:In addition, as shown in FIG. 11, an embodiment of the present invention further provides a system for reconnecting a dynamic host configuration protocol, including a first DHCP server 401, a second DHCP server 402, and the first DHCP server 401, and a second The DHCP server 402 communicates with the connected terminal 403; wherein:
所述第二DHCP服务器402可以为上述实施例所述的DHCP服务器;The second DHCP server 402 may be the DHCP server described in the foregoing embodiment;
所述终端403,设置为在从第一DHCP服务器401切换到第二DHCP服务器402时,向外广播第一DHCP请求报文;以及接收所述第二DHCP服务器402返回的DHCPNAK报文,并根据所述DHCPNAK报文开启新一次重连过程。The terminal 403 is configured to: when the first DHCP server 401 is switched to the second DHCP server 402, broadcast the first DHCP request message; and receive the DHCPNAK message returned by the second DHCP server 402, and according to The DHCPNAK message initiates a new reconnection process.
其中,第一DHCP服务器401、第二DHCP服务器402和终端403交互实现动态主机配置协议重连的过程,请参照上述各实施例,在此不再赘述。 The process of re-linking the dynamic host configuration protocol is implemented by the first DHCP server 401, the second DHCP server 402, and the terminal 403. For details, refer to the foregoing embodiments, and details are not described herein.
本发明实施例动态主机配置协议重连方法、DHCP服务器及系统,针对一个终端403(下挂设备)不会出现同时连接多个DHCP服务器的情况,如果下挂设备发送DHCPREQUEST请求报文,DHCP服务器经判断并没有维护相关的设备信息,则直接回复DHCPNAK报文,促使下挂设备立即发送DHCPDISCOVER,开启新一次获取地址过程,从而省去了下挂设备多次DHCPREQUEST重试导致的延时,达到了快速重连的目的。The dynamic host configuration protocol reconnection method, the DHCP server, and the system in the embodiment of the present invention, for a terminal 403 (the attached device) does not appear to be connected to multiple DHCP servers at the same time, if the downlink device sends a DHCPREQUEST request message, the DHCP server After judging that the relevant device information is not maintained, the DHCPNAK message is directly replied, prompting the attached device to immediately send a DHCPDISCOVER, and a new process of obtaining the address is started, thereby eliminating the delay caused by multiple DHCPREQUEST retry attempts of the attached device. The purpose of fast reconnection.
以上所述仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or process changes made by the specification and the drawings of the present invention may be directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.
工业实用性Industrial applicability
如上所述,本发明实施例提供的一种动态主机配置协议重连方法、DHCP服务器及系统,具有以下有益效果:针对一个终端(下挂设备)不会出现同时连接多个DHCP服务器的情况,如果下挂设备发送DHCPREQUEST请求报文,DHCP服务器经判断并没有维护相关的设备信息,则直接回复DHCPNAK报文,促使下挂设备立即发送DHCPDISCOVER,开启新一次获取地址过程,从而省去了下挂设备多次DHCPREQUEST重试导致的延时,达到了快速重连的目的。 As described above, the dynamic host configuration protocol reconnection method, the DHCP server, and the system provided by the embodiments of the present invention have the following beneficial effects: for a terminal (the attached device), there is no case where multiple DHCP servers are simultaneously connected. If the DHCP server sends a DHCPREQUEST request packet, the DHCP server determines that it does not maintain the related device information, and directly responds to the DHCPNAK packet, prompting the connected device to immediately send a DHCPDISCOVER, and then start a new address acquisition process, thereby eliminating the need to hang up. The delay caused by the DHCPREQUEST retry of the device has reached the goal of fast reconnection.

Claims (11)

  1. 一种动态主机配置协议重连方法,包括:A dynamic host configuration protocol reconnection method includes:
    终端在从第一DHCP服务器切换到第二DHCP服务器时,向外广播第一DHCP请求报文;When the terminal switches from the first DHCP server to the second DHCP server, the terminal broadcasts the first DHCP request message;
    所述第二DHCP服务器在接收到所述第一DHCP请求报文后,经判断若没有维护所述终端的相关设备信息,则向所述终端返回DHCPNAK报文,以告知所述终端开启新一次重连过程。After receiving the first DHCP request message, the second DHCP server determines that if the related device information of the terminal is not maintained, the device returns a DHCPNAK message to the terminal to notify the terminal to start a new one. Reconnect process.
  2. 根据权利要求1所述的方法,其中,还包括:The method of claim 1 further comprising:
    所述终端在接收到所述DHCPNAK报文后,向所述第二DHCP服务器发送第二DHCP请求报文,确认选择所述第二DHCP服务器;After receiving the DHCPNAK message, the terminal sends a second DHCP request message to the second DHCP server, and confirms that the second DHCP server is selected;
    所述第二DHCP服务器向所述终端返回DHCPACK报文。The second DHCP server returns a DHCPACK message to the terminal.
  3. 根据权利要求1所述的方法,其中,还包括:The method of claim 1 further comprising:
    所述终端在接收到所述DHCPNAK报文后,向外广播DISCOVER报文;After receiving the DHCPNAK packet, the terminal broadcasts a DISCOVER packet;
    所述第二DHCP服务器在接收到所述DISCOVER报文后,向所述终端返回DHCPOFFER报文;After receiving the DISCOVER message, the second DHCP server returns a DHCPOFFER message to the terminal;
    所述终端接收到所述DHCPOFFER报文后,向所述第二DHCP服务器发送第二DHCP请求报文,确认选择所述第二DHCP服务器;After receiving the DHCPOFFER message, the terminal sends a second DHCP request message to the second DHCP server, and confirms that the second DHCP server is selected;
    所述第二DHCP服务器向所述终端返回DHCPACK报文。The second DHCP server returns a DHCPACK message to the terminal.
  4. 根据权利要求1所述的方法,其中,所述终端在从第一DHCP服务器切换到第二DHCP服务器时,向外广播第一DHCP请求报文的步骤之前还包括:The method of claim 1, wherein the step of the terminal broadcasting the first DHCP request message before the step of switching from the first DHCP server to the second DHCP server further comprises:
    所述终端接入所述第一DHCP服务器后,向外广播DISCOVER报文;After the terminal accesses the first DHCP server, the terminal broadcasts a DISCOVER message;
    所述第一DHCP服务器在接收到所述DISCOVER报文后,向所述终端返回DHCPOFFER报文;After receiving the DISCOVER message, the first DHCP server returns a DHCPOFFER message to the terminal;
    所述终端接收到所述DHCPOFFER报文后,向所述第一DHCP服务器发送第二DHCP请求报文,确认选择所述第一DHCP服务器;After receiving the DHCPOFFER message, the terminal sends a second DHCP request message to the first DHCP server, and confirms that the first DHCP server is selected;
    所述第一DHCP服务器向所述终端返回DHCPACK报文。 The first DHCP server returns a DHCPACK message to the terminal.
  5. 一种动态主机配置协议重连方法,包括:A dynamic host configuration protocol reconnection method includes:
    DHCP服务器接收终端向外广播的第一DHCP请求报文;The DHCP server receives the first DHCP request message broadcasted by the terminal;
    根据所述第一DHCP请求报文,判断是否维护有所述终端的相关设备信息;Determining whether the related device information of the terminal is maintained according to the first DHCP request message;
    若没有维护所述终端的相关设备信息,则向所述终端返回DHCPNAK报文,以告知所述终端开启新一次重连过程。If the related device information of the terminal is not maintained, the DHCPNAK packet is returned to the terminal to notify the terminal to start a new reconnection process.
  6. 根据权利要求5所述的方法,其中,还包括:The method of claim 5, further comprising:
    接收所述终端发送的第二DHCP请求报文,所述第二DHCP请求报文确认选择所述DHCP服务器;Receiving a second DHCP request message sent by the terminal, where the second DHCP request message confirms selection of the DHCP server;
    向所述终端返回DHCPACK报文。Returning a DHCPACK message to the terminal.
  7. 根据权利要求5所述的方法,其中,还包括:The method of claim 5, further comprising:
    接收所述终端向外广播的DISCOVER报文;Receiving a DISCOVER message broadcasted by the terminal to the outside;
    根据所述DISCOVER报文,向所述终端返回DHCPOFFER报文;Returning a DHCPOFFER message to the terminal according to the DISCOVER message;
    接收所述终端发送的第二DHCP请求报文,所述第二DHCP请求报文确认选择所述DHCP服务器;Receiving a second DHCP request message sent by the terminal, where the second DHCP request message confirms selection of the DHCP server;
    向所述终端返回DHCPACK报文。Returning a DHCPACK message to the terminal.
  8. 一种动态主机配置协议重连的DHCP服务器,包括:A DHCP server reconnected by a dynamic host configuration protocol, including:
    接收模块,设置为接收终端向外广播的第一DHCP请求报文;a receiving module, configured to receive a first DHCP request message broadcasted by the terminal;
    判断模块,设置为根据所述第一DHCP请求报文,判断是否维护有所述终端的相关设备信息;The determining module is configured to determine, according to the first DHCP request message, whether to maintain related device information of the terminal;
    发送模块,设置为在判断模块判断没有维护所述终端的相关设备信息时,向所述终端返回DHCPNAK报文,以告知所述终端开启新一次重连过程。The sending module is configured to: when the determining module determines that the related device information of the terminal is not maintained, return a DHCPNAK message to the terminal to notify the terminal to start a new reconnection process.
  9. 根据权利要求8所述的DHCP服务器,其中,The DHCP server according to claim 8, wherein
    所述接收模块,还设置为接收所述终端发送的第二DHCP请求报文,所述第二DHCP请求报文确认选择所述DHCP服务器; The receiving module is further configured to receive a second DHCP request message sent by the terminal, where the second DHCP request message confirms selection of the DHCP server;
    所述发送模块,还设置为向所述终端返回DHCPACK报文。The sending module is further configured to return a DHCPACK message to the terminal.
  10. 根据权利要求8所述的DHCP服务器,其中,The DHCP server according to claim 8, wherein
    所述接收模块,还设置为接收所述终端向外广播的DISCOVER报文;The receiving module is further configured to receive a DISCOVER packet broadcasted by the terminal;
    所述发送模块,还设置为根据所述DISCOVER报文,向所述终端返回DHCPOFFER报文;The sending module is further configured to: return a DHCPOFFER message to the terminal according to the DISCOVER message;
    所述接收模块,还设置为接收所述终端发送的第二DHCP请求报文,所述第二DHCP请求报文确认选择所述DHCP服务器;The receiving module is further configured to receive a second DHCP request message sent by the terminal, where the second DHCP request message confirms selection of the DHCP server;
    所述发送模块,还设置为向所述终端返回DHCPACK报文。The sending module is further configured to return a DHCPACK message to the terminal.
  11. 一种动态主机配置协议重连的系统,包括第一DHCP服务器、第二DHCP服务器和与所述第一DHCP服务器、第二DHCP服务器分别通信连接的终端;其中:A dynamic host configuration protocol reconnection system includes a first DHCP server, a second DHCP server, and a terminal communicably connected to the first DHCP server and the second DHCP server; wherein:
    所述第二DHCP服务器为权利要求8-10中任一项所述的DHCP服务器;The second DHCP server is the DHCP server according to any one of claims 8-10;
    所述终端,设置为在从第一DHCP服务器切换到第二DHCP服务器时,向外广播第一DHCP请求报文;以及接收所述第二DHCP服务器返回的DHCPNAK报文,并根据所述DHCPNAK报文开启新一次重连过程。 The terminal is configured to: when the first DHCP server is switched to the second DHCP server, broadcast the first DHCP request message; and receive the DHCPNAK message returned by the second DHCP server, and according to the DHCPNAK report This article opens a new reconnection process.
PCT/CN2015/092657 2014-10-23 2015-10-23 Dynamic host configuration protocol reconnection method, dhcp server and system WO2016062268A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410571158.4 2014-10-23
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
WO2016062268A1 true WO2016062268A1 (en) 2016-04-28

Family

ID=55760315

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/092657 WO2016062268A1 (en) 2014-10-23 2015-10-23 Dynamic host configuration protocol 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
CN115002077A (en) * 2021-03-01 2022-09-02 炬芯科技股份有限公司 Method for DHCP client to obtain IP address and related equipment

Families Citing this family (1)

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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
US20140280467A1 (en) * 2013-03-13 2014-09-18 Everfocus Electronics Corp. Method of managing port dhcp server protocol addresses

Family Cites Families (2)

* 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
CN103944867B (en) * 2013-01-23 2017-09-12 华为技术有限公司 Processing method, the device and system of dynamic host configuration protocol message

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
CN115002077A (en) * 2021-03-01 2022-09-02 炬芯科技股份有限公司 Method for DHCP client to obtain IP address and related equipment
CN115002077B (en) * 2021-03-01 2024-03-22 炬芯科技股份有限公司 Method for DHCP client to acquire IP address and related equipment

Also Published As

Publication number Publication date
CN105592172A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
US9756052B2 (en) Method and apparatus for dual stack access
US9967254B2 (en) Dynamically selecting a DHCP server for a client terminal
EP2536108B1 (en) Method, system and apparatus for acquiring ipv6 configuration information in ipv6 transient network
US10289504B2 (en) Access control method and system, and access point
US20120324063A1 (en) Method, network device, and system for automatically configuring network device in ipv6 network
US20140313933A1 (en) Method, apparatus, and system for layer 2 interworking based on ipv6
WO2015018069A1 (en) Method, device and system for acquiring service by network terminal
CN110995886A (en) Network address management method, device, electronic equipment and medium
WO2012174914A1 (en) Method and device for controlling address configuration manner
EP3420707A1 (en) Printer with dual media acess control interfaces and uninterupted interface change
US20140280467A1 (en) Method of managing port dhcp server protocol addresses
CN101325587A (en) Method for monitoring DHCP conversation
WO2016062268A1 (en) Dynamic host configuration protocol reconnection method, dhcp server and system
WO2013113201A1 (en) Sip server address acquisition method and device
JP2013509837A (en) Method and system for realizing identity and location mapping
EP3048756B1 (en) Management method and apparatus for dynamic host configuration protocol server and relay
WO2016177185A1 (en) Method and apparatus for processing media access control (mac) address
US10666614B2 (en) Multicast security control method and device based on DNS
WO2015139397A1 (en) Nat64 resource acquisition method and acquisition/distribution apparatus
EP3021529A1 (en) Method and device for implementing layer 3 virtual private network
WO2015131567A1 (en) Ipv6 address management method, device and terminal
CN106375224B (en) Router and method for network connection by using same
EP2914037B1 (en) Bng-pool-based response method, system and relevant device
WO2016161765A1 (en) Method and apparatus for sending, transferring and acquiring capability
US20140344421A1 (en) Method for configuring dhcpv6 client, dhcpv6 client, network device, and network system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15852622

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15852622

Country of ref document: EP

Kind code of ref document: A1