WO2017000128A1 - 一种互联网协议地址分配方法和中继设备 - Google Patents

一种互联网协议地址分配方法和中继设备 Download PDF

Info

Publication number
WO2017000128A1
WO2017000128A1 PCT/CN2015/082678 CN2015082678W WO2017000128A1 WO 2017000128 A1 WO2017000128 A1 WO 2017000128A1 CN 2015082678 W CN2015082678 W CN 2015082678W WO 2017000128 A1 WO2017000128 A1 WO 2017000128A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
dhcp
address
message
relay device
Prior art date
Application number
PCT/CN2015/082678
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to PCT/CN2015/082678 priority Critical patent/WO2017000128A1/zh
Priority to EP15896659.8A priority patent/EP3301875B1/en
Priority to CN201580080111.0A priority patent/CN107615723B/zh
Publication of WO2017000128A1 publication Critical patent/WO2017000128A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5053Lease time; Renewal aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Definitions

  • the embodiments of the present invention relate to the field of communication technologies, and in particular, to an Internet Protocol address allocation method and relay equipment.
  • Dynamic Host Configuration Protocol is a dynamic address allocation scheme based on TCP/IP (Transmission Control Protocol/Internet Protocol, Transmission Control Protocol/Internet Protocol) protocol. Compared with manual configuration of IP address, DHCP can automatically configure TCP/IP parameters (including IP address, subnet mask, default gateway, DNS waiting), and the assigned IP address has a lease period and can be recycled after the lease period. Use and other advantages. In this way, all the configuration information of the TCP/IP protocol can be stored on the DHCP server in a centralized manner. The centralized storage and management can avoid IP address conflicts, and at the same time free the administrator from the heavy manual configuration labor. With the larger the scale of the current network, the more obvious advantages of DHCP.
  • the DHCP server and the DHCP client are not directly connected, and generally pass through the access device.
  • the access device used to relay and forward HDCP packets is a DHCP relay device.
  • IP address Internet Protocol address
  • different clients may be assigned the same IP address. In this case, the client’s business will be affected due to ARP (Address Resolution Protocol) conflicts.
  • ARP Address Resolution Protocol
  • some relay devices cannot recognize the IP address conflict, and the user side cannot recognize the IP address conflict due to user isolation and other reasons.
  • relay devices that can identify the IP address conflicts between the users who go online later and the users who go online first, but after identifying the IP address conflicts, the relay devices can only discard the packets that the DHCP server assigns IP addresses to the users who go online later. It will cause users who go online later to be unable to dial successfully. Even if the relay device initiates ARP detection for the user who goes online first, because the user who goes online first is an online user, it will also respond to the ARP detection, so that the user who goes online first cannot be deleted.
  • an embodiment of the present invention provides an IP address allocation method, including: a relay device receives an IP address allocated to a first user from a DHCP server; and the relay device detects the allocation to the first user.
  • the IP address of one user is the same as the IP address assigned to the second user by the DHCP server, and the IP address assigned to the second user is still within the lease period; wherein the relay device stores the IP address The IP address that has been allocated to the second user and the lease period of the IP address that has been allocated to the second user; the relay device sends a mandatory update message to the second user, the mandatory update message
  • the text instructs the second user to request an IP address update, the mandatory update message carries the IP address of the DHCP server; the relay device receives the DHCP update request message sent by the second user, The DHCP update request message is transmitted to the DHCP server; wherein the DHCP update request message is used to trigger the DHCP server to update the IP address of the second user; the relay device receives from the DHCP
  • an embodiment of the present invention provides an IP address allocation method, including: a relay device receives an IP address allocated to a first user from a DHCP server; the relay device detects that the allocation to the first user The IP address of is the same as the IP address that the DHCP server has assigned to the second user, and the IP address that has been assigned to the second user is still within the lease period; wherein the relay device stores the assigned IP address The IP address for the second user and the lease period of the IP address that has been allocated to the second user; the relay device sends a DHCP rejection message to the DHCP server, and the DHCP rejection message is used for notification The IP address allocated to the first user by the DHCP server is unavailable, and the DHCP reject message carries the IP address allocated to the first user and the media access control MAC address of the first user; The relay device interacts with the first user and the DHCP server to redistribute an IP address to the first user, the IP address redistributed to the first user and the IP address that has
  • an embodiment of the present invention provides a relay device, including: a transceiver module, configured to receive an IP address allocated to a first user from a DHCP dynamic host configuration protocol server; a detection module, configured to detect the Whether the IP address of the first user is the same as the IP address assigned to the second user by the DHCP server, and whether the IP address assigned to the second user is still within the lease term; wherein the relay device The IP address that has been assigned to the second user and the IP address that has been assigned to To Lease period of the IP address of the second user; the transceiver module is further configured to: the detection module detects that the IP address assigned to the first user and the IP address assigned to the second user by the DHCP server If it is repeated, and the IP address that has been allocated to the second user is still within the lease period, send a mandatory update message to the second user, the mandatory update message instructing the second user to request IP address update, the mandatory update message carries the IP address of the DHCP server; receiving a DHCP update
  • an embodiment of the present invention provides a relay device, including: a transceiver module, configured to receive an IP address allocated to a first user from a DHCP dynamic host configuration protocol server; a detection module, configured to detect the Whether the IP address of the first user is the same as the IP address assigned to the second user by the DHCP server, and whether the IP address assigned to the second user is still within the lease term; wherein the relay device The IP address that has been allocated to the second user and the lease period of the IP address that has been allocated to the second user are stored; the transceiver module is also used to: detect the allocation to When the IP address of the first user is the same as the IP address assigned to the second user by the DHCP server, and the IP address assigned to the second user is still within the lease period, send a DHCP to the DHCP server A rejection message, the DHCP rejection message is used to notify the DHCP server that the IP address assigned to the first user is unavailable, and the DHCP rejection message carries the IP address assigned to
  • the relay device in the embodiment of the present invention stores the IP address assigned to the user and the lease period of the IP address assigned to the user, can identify IP address conflicts, and resolve IP address conflict scenarios through message forwarding behavior To The problem that some users cannot go online reduces the operation and maintenance costs of existing network equipment in this scenario, improves the user’s business experience, and enhances the competitiveness of relay equipment.
  • FIG. 1 is a diagram of interaction between a user, a relay device, and a server in the process of IP address allocation according to an embodiment of the present invention
  • FIG. 2 is a diagram of interaction between a user, a relay device, and a server during the IP address allocation process in the second embodiment of the present invention
  • Fig. 3 is a flowchart of an IP address allocation method according to the third embodiment of the present invention.
  • Fig. 4 is a flowchart of an IP address allocation method according to the fourth embodiment of the present invention.
  • Fig. 5 is a flowchart of an IP address allocation method according to the fifth embodiment of the present invention.
  • FIG. 6 is a structural diagram of a relay device provided by Embodiment 6 of the present invention.
  • FIG. 1 is a diagram of the interaction between a user, a relay device, and a server during the IP address allocation process according to the first embodiment of the present invention.
  • user A requests an IP address from the server through the relay device, and the server sends an IP address to user A in step S102.
  • the IP address IP-A is assigned to user A.
  • user A can send a DHCP discovery (DHCP discovery) message to the DHCP server through the relay device.
  • the DHCP discovery message is used to discover the DHCP server, and the DHCP server feeds back a DHCP offer to user A through the relay device.
  • DHCP discovery DHCP discovery
  • the DHCP suggestion packet carries the IP address suggested by the DHCP server, and then user A will send DHCP to the DHCP server through the relay device
  • the DHCP request message requests the DHCP server to assign the IP address suggested by the DHCP server
  • the DHCP server will send a DHCP ACK message to user A through the relay device
  • the DHCP response message confirms Assign the IP address suggested by the DHCP server to user A.
  • step S103-S107 user B tries to obtain the IP address IP-A
  • user B first sends a DHCP discovery message to the DHCP server, the DHCP server sends a DHCP suggestion message to user B through the relay device, and user B then relays
  • the device sends a DHCP request message to the DHCP server.
  • the DHCP server sends a DHCP response message to user B through the relay device.
  • the DHCP response message carries the IP address IP-A.
  • the relay device finds that the IP address IP-A assigned by the server to user B conflicts with the IP address IP-A of user A, and the relay device discards the DHCP response message.
  • the relay device After the relay device discards the DHCP response message in step S107, it will return to step S103, and user B will initiate a DHCP discovery message to the server again. After that, the interaction between user B, the relay device and the server will be repeated Steps S104, S105, S106 and S107, and loop.
  • the relay device needs to save the IP address that has been allocated to user A and the lease period of the IP address that has been allocated to user A, so that the relay device can check again after discovering an IP address conflict Whether the IP address assigned to user A is within the lease term. If the relay device detects that the IP address assigned to user B is duplicated with the IP address assigned to user A by the DHCP server, and the IP address assigned to user A is still within the lease period, in step S108: The relay device simulates a server and sends a DHCP forced renew (Force Renew) message to user B.
  • the DHCP forced renew message carries not the IP address of the relay device itself, but the IP address of the server.
  • step S109 client A sends a DHCP update request message to the DHCP server through the relay device, requesting the DHCP server to assign an IP to client A.
  • step S110 the DHCP server feeds back a DHCP response message to client A and assigns another IP address IP-C to client A.
  • the relay device saves client A's new IP address IP-C.
  • step S111 client B requests an IP address through the relay device again, and the DHCP server allocates IP-A to client B in step S112. It should be noted that in step 112, the DHCP server may also assign other IP addresses different from IP-A and IP-C to client B.
  • the DHCP server Before performing step S110, after receiving the DHCP update request message, the DHCP server can send a DHCP NAK message to user A, which informs user A of the IP previously assigned to user A The address is not available, then user A can pass through the relay To Send a DHCP discovery message to the DHCP server.
  • the DHCP discovery message is used to discover the DHCP server.
  • the DHCP server feeds back a DHCP proposal message to user A through the relay device.
  • the DHCP proposal message carries another IP address suggested by the DHCP server.
  • -C then user A will send a DHCP request message to the DHCP server through the relay device, the DHCP request message requests the DHCP server to assign the IP-C address suggested by the DHCP server.
  • the DHCP server sends a DHCP response message to user A through the relay device, and the DHCP response message confirms the assignment of the IP address IP-C suggested by the DHCP server to user A
  • the relay device can check whether user A is online, and if online, it executes step S108 to send a mandatory update message to user A. If user A is not online, you can delete user A's data and assign IP-A to user B directly.
  • FIG. 2 is a diagram of the interaction between the user, the relay device and the server in the IP address allocation process in the second embodiment of the present invention.
  • Steps S101 to S108 in the second embodiment are the same as the first embodiment.
  • the relay device simulates a server and sends a DHCP mandatory update message to user A.
  • the DHCP mandatory update message carries the server’s IP address
  • client A does not support DHCP mandatory update.
  • the relay device will not send a DHCP request message to the server.
  • the relay device After the relay device has not received the DHCP request message for a predetermined time, it sends a DHCP rejection message to the server in step S109 to notify the server of the IP-A IP address. unavailable.
  • step S110 client B requests an IP address through the relay device again, and the server allocates IP-C to client B in step S111.
  • the time that the relay device waits for the DHCP request message can be determined according to factors such as the number of server IP addresses, the number of clients requesting IP addresses, etc., or it can be determined according to the priority of client B, which is not specifically limited here.
  • the process of assigning an IP address to client B in step S110 and step S111 can also be detailed into four steps of DHCP discovery, DHCP suggestion, DHCP request and DHCP response.
  • Fig. 3 is a flowchart of an IP address allocation method according to the third embodiment of the present invention, and the method includes:
  • the relay device receives the IP address allocated to the first user from the DHCP dynamic host configuration protocol server.
  • the relay device detects that the IP address assigned to the first user is duplicated with the IP address assigned to the second user by the DHCP server, and the IP address assigned to the second user is still under lease. within.
  • the relay device stores the IP address that has been allocated to the second user and the To The lease period of the IP address assigned to the second user.
  • the relay device sends a mandatory update message to the second user, where the mandatory update message instructs the second user to request an IP address update.
  • the mandatory update message carries the IP address of the DHCP server.
  • the IP address allocation method of the third embodiment may further include: the relay device checks whether the second user is online, and if it is online, then The second user sends a mandatory update message.
  • the relay device receives the DHCP update request message sent by the second user, and transmits the DHCP update request message to the DHCP server.
  • the DHCP update request message is used to trigger the DHCP server to update the IP address of the second user.
  • the request to update the IP address of the second user may include at least one of the following two situations: request to assign a new IP address to the second user, or request to extend the lease of the IP address currently in use by the second user. period.
  • the relay device receives a DHCP NAK message sent by the DHCP server in response to the DHCP update request message from the DHCP server, where the DHCP NAK message notifies the second The IP address of one user that has been assigned to the second user is unavailable.
  • the relay device interacts with the first user and the DHCP server to reassign an IP address to the first user.
  • the interaction of the relay device with the first user and the DHCP server to reassign an IP address to the first user may include: the relay device receives a DHCP discovery message from the first user, and The DHCP discovery message is sent to the DHCP server, the DHCP discovery message is used to discover the DHCP server; the relay device receives the DHCP proposal message from the DHCP server, and the relay device sends the DHCP A suggestion message is sent to the first user, and the DHCP suggestion message carries the IP address suggested by the DHCP server; the relay device receives a DHCP request message from the first user, and sends the DHCP A request message is sent to a DHCP server, and the DHCP request message requests the DHCP server to allocate an IP address suggested by the DHCP server; the relay device receives a DHCP response message from the DHCP server, and the DHCP response message confirms Distribution To The IP address suggested by the DHCP server is given to the first user.
  • the relay device interacts with the second user and the DHCP server to reassign an IP address to the second user.
  • the interaction of the relay device with the second user and the DHCP server to reassign an IP address to the second user may include: the relay device receives a DHCP discovery message from the second user, and The DHCP discovery message is sent to the DHCP server, the DHCP discovery message is used to discover the DHCP server; the relay device receives the DHCP proposal message from the DHCP server, and the relay device sends the DHCP
  • the suggestion message is sent to the second user, and the DHCP suggestion message carries the IP address suggested by the DHCP server; the relay device receives the DHCP request message from the second user, and sends the DHCP request message
  • the DHCP request message is sent to the DHCP server, and the DHCP request message requests the DHCP server to allocate the IP address suggested by the DHCP server; the relay device receives a DHCP response message from the DHCP server, the DHCP response message
  • the text confirms that the IP address suggested by the DHCP server is allocated to the
  • the IP address reassigned to the second user is different from the IP address already assigned to the second user, the IP address reassigned to the first user and the IP address already assigned to the second user different.
  • the IP address reassigned to the second user is the same as the IP address already assigned to the second user, and the IP address reassigned to the first user is the same as the IP address already assigned to the second user.
  • the IP address of the second user is different.
  • the IP address reassigned to the second user is different from the IP address already assigned to the second user, and the IP address reassigned to the first user is different from the IP address already assigned to the second user.
  • the IP address of the second user is the same.
  • the relay device of the embodiment of the present invention saves the IP address assigned to the user and the lease period of the IP address assigned to the user, can identify IP address conflicts, and resolve IP address conflict scenarios through message forwarding.
  • the problem of not being able to go online reduces the operation and maintenance cost of the existing network equipment in this scenario, improves the user's business experience, and enhances the competitiveness of the relay equipment.
  • Fig. 4 is a flowchart of an IP address allocation method according to the fourth embodiment of the present invention, and the method includes: To
  • the relay device receives the IP address allocated to the first user from the DHCP dynamic host configuration protocol server.
  • the relay device detects that the IP address assigned to the first user is duplicated with the IP address assigned to the second user by the DHCP server, and the IP address assigned to the second user is still under lease. within.
  • the relay device stores the IP address that has been allocated to the second user and the lease period of the IP address that has been allocated to the second user.
  • the relay device sends a DHCP rejection message to the DHCP server, where the DHCP rejection message is used to notify the DHCP server that the IP address allocated to the first user is unavailable.
  • the DHCP rejection message carries the IP address allocated to the first user and the MAC (Media Access Control, media access control) address of the first user.
  • the IP address allocation method of the fourth embodiment may further include: the relay device checks whether the second user is online, and if it is online, the DHCP server Send the DHCP rejection message.
  • the relay device interacts with the first user and the DHCP server to re-allocate an IP address to the first user, the IP address re-allocated to the first user and the IP address that has been allocated to the second user The IP address is different.
  • the relay device interacting with the first user and the DHCP server to reassign an IP address to the first user may include: the relay device receives a DHCP discovery message from the first user, and transfers the The DHCP discovery message is sent to the DHCP server, the DHCP discovery message is used to discover the DHCP server; the relay device receives the DHCP suggestion message from the DHCP server, and the relay device sends the DHCP suggestion message To the first user, the DHCP suggestion message carries the IP address suggested by the DHCP server; the relay device receives the DHCP request message from the first user, and sends the DHCP request message To the DHCP server, the DHCP request message requests the DHCP server to allocate the IP address suggested by the DHCP server; the relay device receives a DHCP response message from the DHCP server, and the DHCP response message confirms the allocation of the DHCP The IP address suggested by the server to the first user.
  • the embodiment of the present invention may further include: To
  • the relay device sends a mandatory update message to the second user, where the mandatory update message instructs the second user to request an IP address update.
  • the mandatory update message carries the IP address of the DHCP server.
  • the relay device waits for a predetermined time, and determines that the DHCP update request message of the second user is not received within the predetermined time.
  • the DHCP update request message is used to request the DHCP server to update the IP address of the second user. In this case, the relay device will confirm that it has not received the DHCP request message from the second user before the DHCP server sends a DHCP rejection message.
  • Fig. 5 is a flowchart of an IP address allocation method according to the fifth embodiment of the present invention, and the method includes:
  • the relay device receives the IP address allocated to the first user from the DHCP dynamic host configuration protocol server.
  • the relay device detects that the IP address assigned to the first user is duplicated with the IP address assigned to the second user by the DHCP server, and the IP address assigned to the second user is still under lease. within.
  • the relay device stores the IP address that has been allocated to the second user and the lease period of the IP address that has been allocated to the second user.
  • the relay device sends a mandatory update message to the second user, where the mandatory update message instructs the second user to request an IP address update.
  • the mandatory update message carries the IP address of the DHCP server.
  • the IP address allocation method of the fifth embodiment may further include: the relay device checks whether the second user is online, and if it is online, then The second user sends a mandatory update message.
  • S504 The relay device waits for a predetermined time.
  • the relay device If the relay device receives the DHCP update request message sent by the second user within a predetermined time, the relay device will transmit the DHCP update request message to the DHCP server. At this time, the IP address allocation method of this embodiment will execute steps S505-S507.
  • the DHCP update request message is used to request the DHCP server to update the IP address of the second user.
  • the request to update the IP address of the second user may include at least one of the following two situations: request to assign a new IP address to the second user, or request to extend the lease of the IP address currently in use by the second user. period.
  • the relay device receives from the DHCP server a DHCP denial response message sent by the DHCP server in response to the DHCP update request message, where the DHCP denial response message informs the second user of the The IP address already assigned to the second user is not available.
  • the relay device interacts with the first user and the DHCP server to reassign an IP address to the first user.
  • the relay device interacts with the second user and the DHCP server to reassign an IP address to the second user.
  • the IP address reassigned to the second user is different from the IP address already assigned to the second user, the IP address reassigned to the first user and the IP address already assigned to the second user different.
  • the IP address reassigned to the second user is the same as the IP address already assigned to the second user, and the IP address reassigned to the first user is the same as the IP address already assigned to the second user.
  • the IP address of the second user is different.
  • the IP address reassigned to the second user is different from the IP address already assigned to the second user, and the IP address reassigned to the first user is different from the IP address already assigned to the second user.
  • the IP address of the second user is the same.
  • the relay device does not receive the DHCP update request message of the second user within a predetermined time, the IP address allocation method of this embodiment will execute steps S508-S509 at this time.
  • the relay device sends a DHCP rejection message to the DHCP server, where the DHCP rejection message is used to notify the DHCP server that the IP address allocated to the first user is unavailable.
  • the relay device interacts with the first user and the DHCP server to re-allocate an IP address to the first user, the IP address re-allocated to the first user and the The IP address already assigned to the second user is different.
  • FIG. 6 is a structural diagram of a relay device provided by Embodiment 6 of the present invention, and the relay device includes:
  • the transceiver module 601 is configured to receive the IP address assigned to the first user from the DHCP dynamic host configuration protocol server;
  • the detection module 602 is used to detect whether the IP address assigned to the first user is compatible with the DHCP server To The IP address assigned to the second user by the server is duplicated, and whether the IP address assigned to the second user is still within the lease term; wherein the relay device can be stored in the included storage module There is a lease period of the IP address that has been allocated to the second user and the IP address that has been allocated to the second user, and the storage module may be a memory;
  • the transceiver module 601 is further configured to: the detection module 602 detects that the IP address assigned to the first user is duplicated with the IP address assigned to the second user by the DHCP server, and the IP address assigned to the second user is When the IP addresses of the two users are still within the lease period, a mandatory update message is sent to the second user, the mandatory update message instructs the second user to request an IP address update, and the mandatory update message
  • the text carries the IP address of the DHCP server;
  • DHCP denial reply message sent by the DHCP server for the DHCP update request message, the DHCP denial reply message notifying the second user that the second user has been allocated The IP address is unavailable;
  • transceiver module 601 interacts with the second user and the DHCP server to re-allocate an IP address to the second user includes:
  • the transceiver module 601 receives a DHCP discovery message from the second user, and sends the DHCP discovery message to the DHCP server, where the DHCP discovery message is used to discover the DHCP server;
  • the transceiver module 601 receives a DHCP suggestion message from the DHCP server, the relay device sends the DHCP suggestion message to the second user, and the DHCP suggestion message carries the IP address suggested by the DHCP server ;
  • the transceiver module 601 receives a DHCP request message from the second user, sends the DHCP request message to the DHCP server, and the DHCP request message requests the DHCP server to allocate the DHCP server proposal IP address;
  • the transceiver module 601 receives a DHCP response message from the DHCP server, and the DHCP response message confirms that the IP address suggested by the DHCP server is allocated to the second user.
  • the interaction between the transceiver module 601 and the first user and the DHCP server to re-allocate an IP address to the first user includes:
  • the transceiver module 601 receives a DHCP discovery message from the first user, and sends the DHCP discovery message to the DHCP server, where the DHCP discovery message is used to discover the DHCP server;
  • the transceiver module 601 receives a DHCP suggestion message from the DHCP server, the relay device sends the DHCP suggestion message to the first user, and the DHCP suggestion message carries the IP address suggested by the DHCP server ;
  • the transceiver module 601 receives a DHCP request message from the first user, sends the DHCP request message to a DHCP server, and the DHCP request message requests the DHCP server to allocate the IP address suggested by the DHCP server;
  • the transceiver module 601 receives a DHCP response message from the DHCP server, and the DHCP response message confirms that the IP address suggested by the DHCP server is allocated to the first user.
  • the IP address reassigned to the second user is different from the IP address already assigned to the second user, and the IP address reassigned to the first user is different from the IP address assigned to the second user.
  • the user's IP address is different.
  • the seventh embodiment of the present invention provides a relay device, including:
  • the transceiver module is used to receive the IP address assigned to the first user from the DHCP dynamic host configuration protocol server;
  • the detection module is used to detect whether the IP address allocated to the first user is duplicated with the IP address allocated to the second user by the DHCP server, and whether the IP address allocated to the second user is still leased Within the period; wherein the relay device may include a storage module, the storage module saves To The IP address that has been allocated to the second user and the lease term of the IP address that has been allocated to the second user;
  • the transceiver module is further configured to: detect in the detection module that the IP address assigned to the first user is duplicated with the IP address assigned to the second user by the DHCP server, and the IP address assigned to the second user When the user's IP address is still within the lease period, sending a DHCP rejection message to the DHCP server, where the DHCP rejection message is used to notify the DHCP server that the IP address assigned to the first user is unavailable, The DHCP rejection message carries the IP address allocated to the first user and the media access control MAC address of the first user;
  • IP address Interact with the first user and the DHCP server to reassign an IP address to the first user, the reassignment of the IP address to the first user, and the reassignment of the IP address to the second user
  • the IP address is different.
  • the transceiver module is further configured to send a mandatory update message to the second user before sending a DHCP rejection message to the DHCP server, where the mandatory update message indicates the second user
  • the user requests an IP address update, and the mandatory update message carries the IP address of the DHCP server
  • the detection module is further configured to: after the transceiver module sends a mandatory update message to the second user, wait for a predetermined To detect whether the DHCP update request message of the second user is received within a predetermined time, and the DHCP update request message is used to request to update the IP address of the second user;
  • the DHCP update request message of the second user is not received within the time, and the transceiver module is instructed to send a DHCP rejection message to the DHCP server.
  • the transceiver module may specifically be a transceiver, and the detection module may specifically be a processor.
  • the relay device of the embodiment of the present invention saves the IP address assigned to the user and the lease period of the IP address assigned to the user, can identify IP address conflicts, and resolve IP address conflict scenarios through message forwarding.
  • the problem of not being able to go online reduces the operation and maintenance costs of existing network equipment in this scenario, improves the user's business experience, and enhances the competitiveness of relay equipment.
  • the foregoing program can be stored in a computer readable storage medium.
  • the execution includes The steps of the foregoing method embodiment; and the foregoing storage medium may be at least one of the following media: read-only memory (Read-Only Memory, ROM), To Various media that can store program codes, such as RAM, magnetic disks, or optical disks.

Landscapes

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

Abstract

本发明实施例公开了一种互联网协议地址分配方法和对应的中继设备,该方法包括:中继设备从DHCP动态主机配置协议服务器接收分配给第一个用户的IP地址;中继设备检测到分配给第一个用户的IP地址与所保存的DHCP服务器已经分配给第二个用户的IP地址冲突后,给所述第二个用户发送强制更新报文;中继设备接收第二个用户发送的DHCP更新请求报文,从DHCP服务器接收DHCP服务器针对所述DHCP更新请求报文所发出的DHCP否认应答报文;中继设备与第一个用户,DHCP服务器交互以给所述第一个用户重新分配IP地址;中继设备与第二个用户,DHCP服务器交互以给第二个用户重新分配IP地址。本发明实施例可以识别IP地址冲突,通过报文转发行为,解决IP地址冲突场景下,部分用户不能上线的问题。

Description

一种互联网协议地址分配方法和中继设备 技术领域
本发明实施例涉及通信技术领域,特别涉及一种互联网协议地址分配方法和中继设备。
背景技术
动态主机配置协议(Dynamic Host Configuration Protocol,DHCP)是基于TCP/IP(Transmission Control Protocol/Internet Protocol,传输控制协议/互联网协议)协议的一种动态地址分配方案。与手工配置IP地址相比,DHCP具有可自动配置TCP/IP参数(包括IP地址、子网掩码、缺省网关、DNS等待),分配的IP地址有租借期限以及到租期后可回收重新使用等优点。这样,可把所有TCP/IP协议的配置信息集中的存储到DHCP服务器上,集中存储和管理能避免IP地址的冲突,同时把管理员从繁重的手工配置劳动中解放出来。随着目前网络的规模越大,DHCP的优势就越明显。
现网的组网中,DHCP的服务器和DHCP用户端不直接相连,普遍会经过接入设备,用于中继转发HDCP报文的接入设备为DHCP中继(DHCP relay)设备。在因特网协议地址(IP地址)分配过程中,不同的用户端可能会被分配相同的IP地址,这种情况下用户端会因为ARP(Address Resolution Protocol,地址解析协议)冲突导致用户的业务受到影响。现有的中继设备中,有部分中继设备无法识别IP地址冲突,用户端也因为用户隔离等原因无法识别出IP地址冲突。还有部分中继设备可以识别出后上线的用户和先上线的用户IP地址冲突,但是识别出IP地址冲突之后,中继设备只能丢弃DHCP服务器给后上线的用户分配IP地址的报文,会导致后上线的用户一直无法拨号成功。即便中继设备给先上线的用户发起ARP探测,因为先上线的用户是在线用户,也会响应该ARP探测,导致先上线的用户无法被删除。
发明内容
一方面,本发明实施例提供一种IP地址分配方法,包括:中继设备从DHCP服务器接收分配给第一个用户的IP地址;所述中继设备检测到所述分配给第一 个用户的IP地址与DHCP服务器已经分配给第二个用户的IP地址重复,且所述已经分配给第二个用户的IP地址还在租期之内;其中所述中继设备保存有所述已经分配给第二个用户的IP地址和所述已经分配给第二个用户的IP地址的租期;所述中继设备给所述第二个用户发送强制更新报文,所述强制更新报文指示所述第二个用户请求IP地址更新,所述强制更新报文携带所述DHCP服务器的IP地址;所述中继设备接收所述第二个用户发送的DHCP更新请求报文,将所述DHCP更新请求报文传送给所述DHCP服务器;其中所述DHCP更新请求报文用于触发所述DHCP服务器更新所述第二个用户的IP地址;所述中继设备从所述DHCP服务器接收所述DHCP服务器针对所述DHCP更新请求报文所发出的DHCP否认应答报文,所述DHCP否认应答报文通知所述第二个用户所述已经分配给第二个用户的IP地址不可用;所述中继设备与所述第一个用户,DHCP服务器交互以给所述第一个用户重新分配IP地址;所述中继设备与所述第二个用户,DHCP服务器交互以给所述第二个用户重新分配IP地址。
另一方面,本发明实施例提供一种IP地址分配方法,包括:中继设备从DHCP服务器接收分配给第一个用户的IP地址;所述中继设备检测到所述分配给第一个用户的IP地址与DHCP服务器已经分配给第二个用户的IP地址重复,且所述已经分配给第二个用户的IP地址还在租期之内;其中所述中继设备保存有所述已经分配给第二个用户的IP地址和所述已经分配给第二个用户的IP地址的租期;所述中继设备给所述DHCP服务器发送DHCP拒绝报文,所述DHCP拒绝报文用于通知所述DHCP服务器所述分配给第一个用户的IP地址不可用,所述DHCP拒绝报文携带所述分配给第一个用户的IP地址和所述第一个用户的媒体访问控制MAC地址;所述中继设备与所述第一个用户,所述DHCP服务器交互,以给所述第一个用户重新分配IP地址,所述重新分配给第一个用户的IP地址和所述已经分配给第二个用户的IP地址不同。
另一方面,本发明实施例提供一种中继设备,包括:收发模块,用于从DHCP动态主机配置协议服务器接收分配给第一个用户的IP地址;检测模块,用于检测所述分配给第一个用户的IP地址是否与DHCP服务器已经分配给第二个用户的IP地址重复,且所述已经分配给第二个用户的IP地址是否还在租期之内;其中所述中继设备保存有所述已经分配给第二个用户的IP地址和所述已经分配给 第二个用户的IP地址的租期;所述收发模块还用于:在所述检测模块检测到所述分配给第一个用户的IP地址与DHCP服务器已经分配给第二个用户的IP地址重复,且所述已经分配给第二个用户的IP地址还在租期之内时,给所述第二个用户发送强制更新报文,所述强制更新报文指示所述第二个用户请求IP地址更新,所述强制更新报文携带所述DHCP服务器的IP地址;接收所述第二个用户发送的DHCP更新请求报文,将所述DHCP更新请求报文传送给所述DHCP服务器;其中所述DHCP更新请求报文用于触发所述DHCP服务器更新所述第二个用户的IP地址;从所述DHCP服务器接收所述DHCP服务器针对所述DHCP更新请求报文所发出的DHCP否认应答报文,所述DHCP否认应答报文通知所述第二个用户所述已经分配给第二个用户的IP地址不可用;与所述第一个用户,DHCP服务器交互以给所述第一个用户重新分配IP地址;与所述第二个用户,DHCP服务器交互以给所述第二个用户重新分配IP地址。
另一方面,本发明实施例提供一种中继设备,包括:收发模块,用于从DHCP动态主机配置协议服务器接收分配给第一个用户的IP地址;检测模块,用于检测所述分配给第一个用户的IP地址是否与DHCP服务器已经分配给第二个用户的IP地址重复,且所述已经分配给第二个用户的IP地址是否还在租期之内;其中所述中继设备保存有所述已经分配给第二个用户的IP地址和所述已经分配给第二个用户的IP地址的租期;所述收发模块还用于:在所述检测模检测到所述分配给第一个用户的IP地址与DHCP服务器已经分配给第二个用户的IP地址重复,且所述已经分配给第二个用户的IP地址还在租期之内时,给所述DHCP服务器发送DHCP拒绝报文,所述DHCP拒绝报文用于通知所述DHCP服务器所述分配给第一个用户的IP地址不可用,所述DHCP拒绝报文携带所述分配给第一个用户的IP地址和所述第一个用户的媒体访问控制MAC地址;与所述第一个用户,和所述DHCP服务器交互,以给所述第一个用户重新分配IP地址,所述重新分配给第一个用户的IP地址和所述已经分配给第二个用户的IP地址不同。
本发明实施例的中继设备保存有已分配给用户的IP地址和已分配给用户的IP地址的租期,可以识别IP地址冲突,通过报文转发行为,解决IP地址冲突场景 下,部分用户不能上线的问题,降低了该场景下现网设备的运行维护成本,提高了用户的业务体验,提升了中继设备的竞争力。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为本发明实施例一IP地址分配过程中用户,中继设备和服务器之间的交互图;
图2为本发明实施例二IP地址分配过程中用户,中继设备和服务器之间的交互图;
图3为本发明实施例三的IP地址分配方法流程图;
图4为本发明实施例四的IP地址分配方法流程图;
图5是本发明实施例五的IP地址分配方法流程图;
图6是本发明实施例六提供的中继设备的结构图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
图1为本发明实施例一IP地址分配过程中用户,中继设备和服务器之间的交互图,在步骤S101,用户A通过中继设备向服务器请求IP地址,服务器在步骤S102对用户A的请求作出响应,分配IP地址IP-A给用户A。具体地,用户A可以通过中继设备给DHCP服务器发送DHCP发现(DHCP discovery)报文,该DHCP发现报文用于发现DHCP服务器,DHCP服务器通过中继设备给用户A反馈DHCP建议(DHCP offer)报文,该DHCP建议报文携带DHCP服务器建议的IP地址,之后用户A会通过中继设备给DHCP服务器发送DHCP 请求(DHCP request)报文,该DHCP请求报文请求DHCP服务器分配DHCP服务器建议的IP地址,DHCP服务器会通过中继设备给用户A发送DHCP应答(DHCP ACK)报文,该DHCP应答报文确认分配DHCP服务器建议的IP地址给用户A。
在步骤S103-S107中,用户B尝试获取IP地址IP-A,用户B首先向DHCP服务器发送DHCP发现报文,DHCP服务器通过中继设备向用户B发送DHCP建议报文,用户B再通过中继设备向DHCP服务器发送DHCP请求报文,DHCP服务器通过中继设备向用户B发送DHCP应答报文,DHCP应答报文中携带IP地址IP-A,在DHCP应答报文到达中继设备时,中继设备发现服务器给用户B分配的IP地址IP-A与用户A的IP地址IP-A冲突,中继设备丢弃DHCP应答报文。
如果按常规的做法,在步骤S107中继设备丢弃DHCP应答报文之后,会返回到步骤S103,用户B会再次向服务器发起DHCP发现报文,之后用户B,中继设备和服务器的交互会重复步骤S104,S105,S106和S107,并进行循环。
本发明的实施例中,中继设备需要保存已经分配给用户A的IP地址,和已经分配给用户A的IP地址的租期,这样中继设备在发现IP地址冲突后,还可以再检查下分配给用户A的IP地址是否在租期之内。如果所述中继设备检测到所述分配给用户B的IP地址与DHCP服务器已经分配给用户A的IP地址重复,且所述已经分配给用户A的IP地址还在租期之内,在步骤S108,中继设备会模拟服务器,给用户B发送一个DHCP强制更新(Force Renew)报文,DHCP强制更新报文中携带的不是中继设备自己的IP地址,而是服务器的IP地址。在步骤S109,客户A通过中继设备向DHCP服务器发送DHCP更新请求报文,请求DHCP服务器给客户A分配IP。DHCP服务器在S110步骤给客户A反馈DHCP应答报文,给客户A分配另一个IP地址IP-C,此时中继设备保存客户A的新IP地址IP-C。在步骤S111,客户B再次通过中继设备请求IP地址,DHCP服务器在步骤S112将IP-A分配给客户B。需要注意的是,在步骤112,DHCP服务器也可以给客户B分配不同于IP-A和IP-C的其他IP地址。
在执行步骤S110之前,DHCP服务器在收到DHCP更新请求报文后,可以给用户A发送DHCP否应应答(DHCP NAK)报文,该DHCP否认应答报文通知用户A之前分配给用户A的IP地址不可用,之后用户A可以通过中继设备 给DHCP服务器发送DHCP发现报文,该DHCP发现报文用于发现DHCP服务器,DHCP服务器通过中继设备给用户A反馈DHCP建议报文,该DHCP建议报文携带DHCP服务器建议的另一个IP地址IP-C,之后用户A会通过中继设备给DHCP服务器发送DHCP请求报文,该DHCP请求报文请求DHCP服务器分配DHCP服务器建议的IP-C地址。然后DHCP服务器才会通过中继设备给用户A发送DHCP应答报文,该DHCP应答报文确认分配DHCP服务器建议的IP地址IP-C给用户A。
在本发明的实施例中,执行步骤S108之前,中继设备可以检查用户A是否在线,如果在线,才执行步骤S108给用户A发送强制更新报文。如果用户A不在线,则可以删除用户A的数据,直接把IP-A分配给用户B。
图2为本发明实施例二IP地址分配过程中用户,中继设备和服务器之间的交互图,实施例二中步骤S101-步骤S108与实施例一相同。不同与实施例一的是,在S108步骤中继设备模拟服务器,给用户A发送一个DHCP强制更新报文,DHCP强制更新报文中携带服务器的IP地址后,客户A由于不支持DHCP强制更新,不会通过中继设备向服务器发送DHCP请求报文,中继设备在等待预定的时间未收到DHCP请求报文之后,在步骤S109向服务器发送DHCP拒绝报文,通知服务器IP-A这个IP地址不可用。在步骤S110,客户B再次通过中继设备请求IP地址,服务器在步骤S111将IP-C分配给客户B。应该容易理解,中继设备等待DHCP请求报文的时间可以根据服务器IP地址数量,请求IP地址的客户数量等因素确定,也可以根据客户B的优先级来确定,在这里不做具体限定。容易理解,跟实施例一类似,步骤S110和步骤S111中给客户B分配IP地址的过程也可以细化为DHCP发现,DHCP建议,DHCP请求和DHCP应答这四个步骤。
图3为本发明实施例三的IP地址分配方法流程图,该方法包括:
S301、中继设备从DHCP动态主机配置协议服务器接收分配给第一个用户的IP地址。
S302、中继设备检测到所述分配给第一个用户的IP地址与DHCP服务器已经分配给第二个用户的IP地址重复,且所述已经分配给第二个用户的IP地址还在租期之内。
在这里,中继设备保存有所述已经分配给第二个用户的IP地址和所述已经 分配给第二个用户的IP地址的租期。
S303、中继设备给所述第二个用户发送强制更新报文,所述强制更新报文指示所述第二个用户请求IP地址更新。
其中强制更新报文携带所述DHCP服务器的IP地址。
在中继设备给所述第二个用户发送强制更新报文之前,实施例三的IP地址分配方法还可以包括:中继设备检查所述第二个用户是否在线,如果在线,则给所述第二个用户发送强制更新报文。
S304、中继设备接收所述第二个用户发送的DHCP更新请求报文,将所述DHCP更新请求报文传送给所述DHCP服务器。
其中所述DHCP更新请求报文用于触发所述DHCP服务器更新所述第二个用户的IP地址。
其中,请求更新第二个用户的IP地址可以包括下边两种情况中的至少一种:请求给第二个用户分配新的IP地址,或者请求延长第二个用户当前在用的IP地址的租期。
S305、所述中继设备从所述DHCP服务器接收所述DHCP服务器针对所述DHCP更新请求报文所发出的DHCP否认应答(DHCP NAK)报文,所述DHCP否认应答报文通知所述第二个用户所述已经分配给第二个用户的IP地址不可用。
S306、所述中继设备与所述第一个用户,DHCP服务器交互以给所述第一个用户重新分配IP地址。
所述中继设备与所述第一个用户,DHCP服务器交互以给所述第一个用户重新分配IP地址可以包括:所述中继设备从所述第一个用户接收DHCP发现报文,将所述DHCP发现报文发送给所述DHCP服务器,所述DHCP发现报文用于发现DHCP服务器;所述中继设备从所述DHCP服务器接收DHCP建议报文,所述中继设备将所述DHCP建议报文发送给所述第一个用户,所述DHCP建议报文携带所述DHCP服务器建议的IP地址;所述中继设备从所述第一个用户接收DHCP请求报文,将所述DHCP请求报文发送给DHCP服务器,所述DHCP请求报文请求DHCP服务器分配所述DHCP服务器建议的IP地址;所述中继设备从所述DHCP服务器接收DHCP应答报文,所述DHCP应答报文确认分配所 述DHCP服务器建议的IP地址给所述第一个用户。
S307、所述中继设备与所述第二个用户,DHCP服务器交互以给所述第二个用户重新分配IP地址。
所述中继设备与所述第二个用户,DHCP服务器交互以给所述第二个用户重新分配IP地址可以包括:所述中继设备从所述第二个用户接收DHCP发现报文,将所述DHCP发现报文发送给所述DHCP服务器,所述DHCP发现报文用于发现DHCP服务器;所述中继设备从所述DHCP服务器接收DHCP建议报文,所述中继设备将所述DHCP建议报文发送给所述第二个用户,所述DHCP建议报文携带DHCP服务器建议的IP地址;所述中继设备从所述第二个用户接收DHCP请求报文,将所述DHCP请求报文发送给所述DHCP服务器,所述DHCP请求报文请求所述DHCP服务器分配所述DHCP服务器建议的IP地址;所述中继设备从所述DHCP服务器接收DHCP应答报文,所述DHCP应答报文确认分配所述DHCP服务器建议的IP地址给所述第二个用户。
在一种情况下,重新分配给第二个用户的IP地址和已经分配给第二个用户的IP地址不同,重新分配给第一个用户的IP地址和已经分配给第二个用户的IP地址不同。
可选地,在另一种情况下,重新分配给第二个用户的IP地址和所述已经分配给第二个用户的IP地址相同,重新分配给第一个用户的IP地址和已经分配给第二个用户的IP地址不同。
可选地,在另一种情况下,重新分配给第二个用户的IP地址和已经分配给第二个用户的IP地址不同,重新分配给第一个用户的IP地址和所述已经分配给第二个用户的IP地址相同。
本发明实施例的中继设备保存有已分配给用户的IP地址和已分配给用户的IP地址的租期,可以识别IP地址冲突,通过报文转发行为,解决IP地址冲突场景下,部分用户不能上线的问题,降低了该场景下现网设备的运行维护成本,提高了用户的业务体验,提升了中继设备的竞争力。
图4为本发明实施例四的IP地址分配方法流程图,该方法包括:
S401、中继设备从DHCP动态主机配置协议服务器接收分配给第一个用户的IP地址。
S402、中继设备检测到所述分配给第一个用户的IP地址与DHCP服务器已经分配给第二个用户的IP地址重复,且所述已经分配给第二个用户的IP地址还在租期之内。
在这里,中继设备保存有所述已经分配给第二个用户的IP地址和所述已经分配给第二个用户的IP地址的租期。
S403、所述中继设备给所述DHCP服务器发送DHCP拒绝报文,所述DHCP拒绝报文用于通知所述DHCP服务器所述分配给第一个用户的IP地址不可用。
其中,所述DHCP拒绝报文携带所述分配给第一个用户的IP地址和所述第一个用户的MAC(Media Access Control,媒体访问控制)地址。
在中继设备给所述DHCP服务器发送DHCP拒绝报文之前,实施例四的IP地址分配方法还可以包括:中继设备检查所述第二个用户是否在线,如果在线,则给所述DHCP服务器发送所述DHCP拒绝报文。
S404、中继设备与第一个用户和DHCP服务器交互,给所述第一个用户重新分配IP地址,所述重新分配给第一个用户的IP地址和所述已经分配给第二个用户的IP地址不同。
中继设备与所述第一个用户,DHCP服务器交互以给所述第一个用户重新分配IP地址可以包括:所述中继设备从所述第一个用户接收DHCP发现报文,将所述DHCP发现报文发送给DHCP服务器,所述DHCP发现报文用于发现DHCP服务器;所述中继设备从所述DHCP服务器接收DHCP建议报文,所述中继设备将所述DHCP建议报文发送给所述第一个用户,所述DHCP建议报文携带所述DHCP服务器建议的IP地址;所述中继设备从所述第一个用户接收DHCP请求报文,将所述DHCP请求报文发送给DHCP服务器,所述DHCP请求报文请求DHCP服务器分配所述DHCP服务器建议的IP地址;所述中继设备从所述DHCP服务器接收DHCP应答报文,所述DHCP应答报文确认分配所述DHCP服务器建议的IP地址给所述第一个用户。
在本发明实施例步骤S403之前,即所述中继设备给所述DHCP服务器发送DHCP拒绝报文之前,本发明实施例还可以包括:
S4031、中继设备给所述第二个用户发送强制更新报文,所述强制更新报文指示所述第二个用户请求IP地址更新。
其中强制更新报文携带所述DHCP服务器的IP地址。
S4032、所述中继设备等待预定的时间,确定在预定的时间内未接收到所述第二个用户的DHCP更新请求报文。其中所述DHCP更新请求报文用于请求所述DHCP服务器更新所述第二个用户的IP地址。中继设备在这种情况下会在确认未收到第二个用户的DHCP请求报文后才所述DHCP服务器发送DHCP拒绝报文
图5是本发明实施例五的IP地址分配方法流程图,该方法包括:
S501、中继设备从DHCP动态主机配置协议服务器接收分配给第一个用户的IP地址。
S502、中继设备检测到所述分配给第一个用户的IP地址与DHCP服务器已经分配给第二个用户的IP地址重复,且所述已经分配给第二个用户的IP地址还在租期之内。
在这里,中继设备保存有所述已经分配给第二个用户的IP地址和所述已经分配给第二个用户的IP地址的租期。
S503、中继设备给所述第二个用户发送强制更新报文,所述强制更新报文指示所述第二个用户请求IP地址更新。
其中强制更新报文携带所述DHCP服务器的IP地址。
在中继设备给所述第二个用户发送强制更新报文之前,实施例五的IP地址分配方法还可以包括:中继设备检查所述第二个用户是否在线,如果在线,则给所述第二个用户发送强制更新报文。
S504、所述中继设备等待预定的时间。
如果所述中继设备在预定的时间内接收到所述第二个用户发送的DHCP更新请求报文,中继设备会将所述DHCP更新请求报文传送给所述DHCP服务器。此时本实施例的IP地址分配方法会执行步骤S505-S507。
其中所述DHCP更新请求报文用于请求所述DHCP服务器更新所述第二个用户的IP地址。其中,请求更新第二个用户的IP地址可以包括下边两种情况中的至少一种:请求给第二个用户分配新的IP地址,或者请求延长第二个用户当前在用的IP地址的租期。
S505、所述中继设备从所述DHCP服务器接收所述DHCP服务器针对所述DHCP更新请求报文所发出的DHCP否认应答报文,所述DHCP否认应答报文通知所述第二个用户所述已经分配给第二个用户的IP地址不可用。
S506、所述中继设备与所述第一个用户,DHCP服务器交互以给所述第一个用户重新分配IP地址。
S507、所述中继设备与所述第二个用户,DHCP服务器交互以给所述第二个用户重新分配IP地址。
在一种情况下,重新分配给第二个用户的IP地址和已经分配给第二个用户的IP地址不同,重新分配给第一个用户的IP地址和已经分配给第二个用户的IP地址不同。
可选地,在另一种情况下,重新分配给第二个用户的IP地址和所述已经分配给第二个用户的IP地址相同,重新分配给第一个用户的IP地址和已经分配给第二个用户的IP地址不同。
可选地,在另一种情况下,重新分配给第二个用户的IP地址和已经分配给第二个用户的IP地址不同,重新分配给第一个用户的IP地址和所述已经分配给第二个用户的IP地址相同。
如果步骤504后,所述中继设备在预定的时间内未接收到所述第二个用户的DHCP更新请求报文,此时本实施例的IP地址分配方法会执行步骤S508-S509。
S508、所述中继设备给所述DHCP服务器发送DHCP拒绝报文,所述DHCP拒绝报文用于通知所述DHCP服务器所述分配给第一个用户的IP地址不可用。
S509、所述中继设备与所述第一个用户,和所述DHCP服务器交互,以给所述第一个用户重新分配IP地址,所述重新分配给第一个用户的IP地址和所述已经分配给第二个用户的IP地址不同。
图6是本发明实施例六提供的中继设备的结构图,该中继设备包括:
收发模块601,用于从DHCP动态主机配置协议服务器接收分配给第一个用户的IP地址;
检测模块602,用于检测所述分配给第一个用户的IP地址是否与DHCP服 务器已经分配给第二个用户的IP地址重复,且所述已经分配给第二个用户的IP地址是否还在租期之内;其中所述中继设备可以在所包括的存储模块中保存有所述已经分配给第二个用户的IP地址和所述已经分配给第二个用户的IP地址的租期,存储模块可以是个存储器;
所述收发模块601还用于:在所述检测模块602检测到所述分配给第一个用户的IP地址与DHCP服务器已经分配给第二个用户的IP地址重复,且所述已经分配给第二个用户的IP地址还在租期之内时,给所述第二个用户发送强制更新报文,所述强制更新报文指示所述第二个用户请求IP地址更新,所述强制更新报文携带所述DHCP服务器的IP地址;
接收所述第二个用户发送的DHCP更新请求报文,将所述DHCP更新请求报文传送给所述DHCP服务器;其中所述DHCP更新请求报文用于触发所述DHCP服务器更新所述第二个用户的IP地址;
从所述DHCP服务器接收所述DHCP服务器针对所述DHCP更新请求报文所发出的DHCP否认应答报文,所述DHCP否认应答报文通知所述第二个用户所述已经分配给第二个用户的IP地址不可用;
与所述第一个用户,DHCP服务器交互以给所述第一个用户重新分配IP地址;
与所述第二个用户,DHCP服务器交互以给所述第二个用户重新分配IP地址。
其中收发模块601与所述第二个用户,DHCP服务器交互以给所述第二个用户重新分配IP地址包括:
所述收发模块601从所述第二个用户接收DHCP发现报文,将所述DHCP发现报文发送给所述DHCP服务器,所述DHCP发现报文用于发现DHCP服务器;
所述收发模块601从所述DHCP服务器接收DHCP建议报文,所述中继设备将所述DHCP建议报文发送给所述第二个用户,所述DHCP建议报文携带DHCP服务器建议的IP地址;
所述收发模块601从所述第二个用户接收DHCP请求报文,将所述DHCP请求报文发送给所述DHCP服务器,所述DHCP请求报文请求所述DHCP服务器分配所述DHCP服务器建议的IP地址;
所述收发模块601从所述DHCP服务器接收DHCP应答报文,所述DHCP应答报文确认分配所述DHCP服务器建议的IP地址给所述第二个用户。
所述收发模块601与所述第一个用户,DHCP服务器交互以给所述第一个用户重新分配IP地址包括:
收发模块601从所述第一个用户接收DHCP发现报文,将所述DHCP发现报文发送给所述DHCP服务器,所述DHCP发现报文用于发现DHCP服务器;
收发模块601从所述DHCP服务器接收DHCP建议报文,所述中继设备将所述DHCP建议报文发送给所述第一个用户,所述DHCP建议报文携带所述DHCP服务器建议的IP地址;
收发模块601从所述第一个用户接收DHCP请求报文,将所述DHCP请求报文发送给DHCP服务器,所述DHCP请求报文请求DHCP服务器分配所述DHCP服务器建议的IP地址;
收发模块601从所述DHCP服务器接收DHCP应答报文,所述DHCP应答报文确认分配所述DHCP服务器建议的IP地址给所述第一个用户。
其中,所述重新分配给第二个用户的IP地址和所述已经分配给第二个用户的IP地址不同,所述重新分配给第一个用户的IP地址和所述已经分配给第二个用户的IP地址不同。
本发明实施例七提供一种中继设备,包括:
收发模块,用于从DHCP动态主机配置协议服务器接收分配给第一个用户的IP地址;
检测模块,用于检测所述分配给第一个用户的IP地址是否与DHCP服务器已经分配给第二个用户的IP地址重复,且所述已经分配给第二个用户的IP地址是否还在租期之内;其中所述中继设备可以包括存储模块,存储模块保存有所 述已经分配给第二个用户的IP地址和所述已经分配给第二个用户的IP地址的租期;
所述收发模块还用于:在所述检测模检测到所述分配给第一个用户的IP地址与DHCP服务器已经分配给第二个用户的IP地址重复,且所述已经分配给第二个用户的IP地址还在租期之内时,给所述DHCP服务器发送DHCP拒绝报文,所述DHCP拒绝报文用于通知所述DHCP服务器所述分配给第一个用户的IP地址不可用,所述DHCP拒绝报文携带所述分配给第一个用户的IP地址和所述第一个用户的媒体访问控制MAC地址;
与所述第一个用户,和所述DHCP服务器交互,以给所述第一个用户重新分配IP地址,所述重新分配给第一个用户的IP地址和所述已经分配给第二个用户的IP地址不同。
可选地,所述收发模块还用于,在给所述DHCP服务器发送DHCP拒绝报文之前,给所述第二个用户发送强制更新报文,所述强制更新报文指示所述第二个用户请求IP地址更新,所述强制更新报文携带所述DHCP服务器的IP地址;所述检测模块还用于:在所述收发模块给所述第二个用户发送强制更新报文之后,等待预定的时间,检测在预定的时间内是否接收到所述第二个用户的DHCP更新请求报文,所述DHCP更新请求报文用于请求更新所述第二个用户的IP地址;如果在预定的时间内未接收到所述第二个用户的DHCP更新请求报文,指示所述收发模块给所述DHCP服务器发送DHCP拒绝报文。
收发模块可以具体为收发器,检测模块可以具体为处理器。
本发明实施例的中继设备保存有已分配给用户的IP地址和已分配给用户的IP地址的租期,可以识别IP地址冲突,通过报文转发行为,解决IP地址冲突场景下,部分用户不能上线的问题,降低了该场景下现网设备的运行维护成本,提高了用户的业务体验,提升了中继设备的竞争力。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质可以是下述介质中的至少一种:只读存储器(Read-Only Memory,ROM)、 RAM、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上实施例仅用以示例性说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明及本发明带来的有益效果进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明权利要求的范围。

Claims (17)

  1. 一种因特网协议IP地址分配方法,其特征在于,包括:
    中继设备从DHCP动态主机配置协议服务器接收分配给第一个用户的IP地址;
    所述中继设备检测到所述分配给第一个用户的IP地址与DHCP服务器已经分配给第二个用户的IP地址重复,且所述已经分配给第二个用户的IP地址还在租期之内;其中所述中继设备保存有所述已经分配给第二个用户的IP地址和所述已经分配给第二个用户的IP地址的租期;
    所述中继设备给所述第二个用户发送强制更新报文,所述强制更新报文指示所述第二个用户请求IP地址更新,所述强制更新报文携带所述DHCP服务器的IP地址;
    所述中继设备接收所述第二个用户发送的DHCP更新请求报文,将所述DHCP更新请求报文传送给所述DHCP服务器;其中所述DHCP更新请求报文用于触发所述DHCP服务器更新所述第二个用户的IP地址;
    所述中继设备从所述DHCP服务器接收所述DHCP服务器针对所述DHCP更新请求报文所发出的DHCP否认应答报文,所述DHCP否认应答报文通知所述第二个用户所述已经分配给第二个用户的IP地址不可用;
    所述中继设备与所述第一个用户,DHCP服务器交互以给所述第一个用户重新分配IP地址;
    所述中继设备与所述第二个用户,DHCP服务器交互以给所述第二个用户重新分配IP地址。
  2. 如权利要求1所述的方法,其特征在于,所述中继设备与所述第二个用户,DHCP服务器交互以给所述第二个用户重新分配IP地址包括:
    所述中继设备从所述第二个用户接收DHCP发现报文,将所述DHCP发现报文发送给所述DHCP服务器,所述DHCP发现报文用于发现DHCP服务器;
    所述中继设备从所述DHCP服务器接收DHCP建议报文,所述中继设备将所述DHCP建议报文发送给所述第二个用户,所述DHCP建议报文携带DHCP服务器建议的IP地址;
    所述中继设备从所述第二个用户接收DHCP请求报文,将所述DHCP请求报文发送给所述DHCP服务器,所述DHCP请求报文请求所述DHCP服务器分配所述DHCP服务器建议的IP地址;
    所述中继设备从所述DHCP服务器接收DHCP应答报文,所述DHCP应答报文确认分配所述DHCP服务器建议的IP地址给所述第二个用户。
  3. 如权利要求1所述的方法,其特征在于,所述中继设备与所述第一个用户,DHCP服务器交互以给所述第一个用户重新分配IP地址包括:
    所述中继设备从所述第一个用户接收DHCP发现报文,将所述DHCP发现报文发送给所述DHCP服务器,所述DHCP发现报文用于发现DHCP服务器;
    所述中继设备从所述DHCP服务器接收DHCP建议报文,所述中继设备将所述DHCP建议报文发送给所述第一个用户,所述DHCP建议报文携带所述DHCP服务器建议的IP地址;
    所述中继设备从所述第一个用户接收DHCP请求报文,将所述DHCP请求报文发送给DHCP服务器,所述DHCP请求报文请求DHCP服务器分配所述DHCP服务器建议的IP地址;
    所述中继设备从所述DHCP服务器接收DHCP应答报文,所述DHCP应答报文确认分配所述DHCP服务器建议的IP地址给所述第一个用户。
  4. 如权利要求1所述的方法,其特征在于,在所述中继设备给所述第二个用户发送强制更新报文之前,所述方法还包括:
    所述中继设备检查所述第二个用户是否在线,如果在线,则给所述第二个用户发送强制更新报文。
  5. 如权利要求1-4中任一权利要求所述的方法,其特征在于:
    所述重新分配给第二个用户的IP地址和所述已经分配给第二个用户的IP地 址不同,所述重新分配给第一个用户的IP地址和所述已经分配给第二个用户的IP地址不同。
  6. 如权利要求1-4中任一权利要求所述的方法,其特征在于:
    所述重新分配给第二个用户的IP地址和所述已经分配给第二个用户的IP地址相同,所述重新分配给第一个用户的IP地址和所述已经分配给第二个用户的IP地址不同。
  7. 如权利要求1-4中任一权利要求所述的方法,其特征在于:
    所述重新分配给第二个用户的IP地址和所述已经分配给第二个用户的IP地址不同,所述重新分配给第一个用户的IP地址和所述已经分配给第二个用户的IP地址相同。
  8. 一种因特网协议IP地址分配方法,其特征在于,包括:
    中继设备从DHCP动态主机配置协议服务器接收分配给第一个用户的IP地址;
    所述中继设备检测到所述分配给第一个用户的IP地址与DHCP服务器已经分配给第二个用户的IP地址重复,且所述已经分配给第二个用户的IP地址还在租期之内;其中所述中继设备保存有所述已经分配给第二个用户的IP地址和所述已经分配给第二个用户的IP地址的租期;
    所述中继设备给所述DHCP服务器发送DHCP拒绝报文,所述DHCP拒绝报文用于通知所述DHCP服务器所述分配给第一个用户的IP地址不可用,所述DHCP拒绝报文携带所述分配给第一个用户的IP地址和所述第一个用户的媒体访问控制MAC地址;
    所述中继设备与所述第一个用户,所述DHCP服务器交互,以给所述第一个用户重新分配IP地址,所述重新分配给第一个用户的IP地址和所述已经分配给第二个用户的IP地址不同。
  9. 如权利要求8所述的方法,其特征在于,所述中继设备给所述DHCP服务器发送DHCP拒绝报文之前,还包括:
    所述中继设备给所述第二个用户发送强制更新报文,所述强制更新报文指示所述第二个用户请求IP地址更新,所述强制更新报文携带所述DHCP服务器的IP地址;
    所述中继设备等待预定的时间,确定在预定的时间内未接收到所述第二个用户的DHCP更新请求报文,所述DHCP更新请求报文用于请求更新所述第二个用户的IP地址。
  10. 如权利要求8或9所述的方法,其特征在于,在所述中继设备给所述DHCP服务器发送DHCP拒绝报文之前,所述方法还包括:
    所述中继设备检查所述第二个用户是否在线,如果在线,则给所述DHCP服务器发送所述DHCP拒绝报文。
  11. 一种中继设备,其特征在于,包括:
    收发模块,用于从DHCP动态主机配置协议服务器接收分配给第一个用户的IP地址;
    检测模块,用于检测所述分配给第一个用户的IP地址是否与所保存的DHCP服务器已经分配给第二个用户的IP地址重复,且所述已经分配给第二个用户的IP地址是否还在所保存的租期之内;
    所述收发模块还用于:在所述检测模块检测到所述分配给第一个用户的IP地址与DHCP服务器已经分配给第二个用户的IP地址重复,且所述已经分配给第二个用户的IP地址还在租期之内时,给所述第二个用户发送强制更新报文,所述强制更新报文指示所述第二个用户请求IP地址更新,所述强制更新报文携带所述DHCP服务器的IP地址;
    接收所述第二个用户发送的DHCP更新请求报文,将所述DHCP更新请求报文传送给所述DHCP服务器;其中所述DHCP更新请求报文用于触发所述DHCP服务器更新所述第二个用户的IP地址;
    从所述DHCP服务器接收所述DHCP服务器针对所述DHCP更新请求报文所发出的DHCP否认应答报文,所述DHCP否认应答报文通知所述第二个用户所述已经分配给第二个用户的IP地址不可用;
    与所述第一个用户,DHCP服务器交互以给所述第一个用户重新分配IP地址;
    与所述第二个用户,DHCP服务器交互以给所述第二个用户重新分配IP地址。
  12. 如权利要求11所述的中继设备,其特征在于,所述收发模块与所述第二个用户,DHCP服务器交互以给所述第二个用户重新分配IP地址包括:
    所述收发模块从所述第二个用户接收DHCP发现报文,将所述DHCP发现报文发送给DHCP服务器,所述DHCP发现报文用于发现DHCP服务器;
    所述收发模块从所述DHCP服务器接收DHCP建议报文,所述中继设备将所述DHCP建议报文发送给所述第二个用户,所述DHCP建议报文携带DHCP服务器建议的IP地址;
    所述收发模块从所述第二个用户接收DHCP请求报文,将所述DHCP请求报文发送给所述DHCP服务器,所述DHCP请求报文请求所述DHCP服务器分配所述DHCP服务器建议的IP地址;
    所述收发模块从所述DHCP服务器接收DHCP应答报文,所述DHCP应答报文确认分配所述DHCP服务器建议的IP地址给所述第二个用户。
  13. 如权利要求11所述的中继设备,其特征在于:
    所述重新分配给第二个用户的IP地址和所述已经分配给第二个用户的IP地址不同,所述重新分配给第一个用户的IP地址和所述已经分配给第二个用户的IP地址不同。
  14. 如权利要求11-13中任一权利要求所述的中继设备,其特征在于:
    所述收发模块为收发器,所述检测模块为处理器。
  15. 一种中继设备,其特征在于,包括:
    收发模块,用于从DHCP动态主机配置协议服务器接收分配给第一个用户的IP地址;
    检测模块,用于检测所述分配给第一个用户的IP地址是否与所保存的DHCP服务器已经分配给第二个用户的IP地址重复,且所述已经分配给第二个用户的IP地址是否还在所保存的租期之内;
    所述收发模块还用于:在所述检测模检测到所述分配给第一个用户的IP地址与DHCP服务器已经分配给第二个用户的IP地址重复,且所述已经分配给第二个用户的IP地址还在租期之内时,给所述DHCP服务器发送DHCP拒绝报文,所述DHCP拒绝报文用于通知所述DHCP服务器所述分配给第一个用户的IP地址不可用,所述DHCP拒绝报文携带所述分配给第一个用户的IP地址和所述第一个用户的媒体访问控制MAC地址;
    与所述第一个用户,和所述DHCP服务器交互,以给所述第一个用户重新分配IP地址,所述重新分配给第一个用户的IP地址和所述已经分配给第二个用户的IP地址不同。
  16. 如权利要求15所述的中继设备,其特征在于,所述收发模块还用于,在给所述DHCP服务器发送DHCP拒绝报文之前,给所述第二个用户发送强制更新报文,所述强制更新报文指示所述第二个用户请求IP地址更新,所述强制更新报文携带所述DHCP服务器的IP地址;
    所述检测模块还用于:在所述收发模块给所述第二个用户发送强制更新报文之后,等待预定的时间,检测在预定的时间内是否接收到所述第二个用户的DHCP更新请求报文,所述DHCP更新请求报文用于请求更新所述第二个用户的IP地址;如果在预定的时间内未接收到所述第二个用户的DHCP请求报文,指示所述收发模块给所述DHCP服务器发送DHCP拒绝报文。
  17. 如权利要求15或16所述的中继设备,其特征在于:
    所述收发模块为收发器,所述检测模块为处理器。
PCT/CN2015/082678 2015-06-29 2015-06-29 一种互联网协议地址分配方法和中继设备 WO2017000128A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/CN2015/082678 WO2017000128A1 (zh) 2015-06-29 2015-06-29 一种互联网协议地址分配方法和中继设备
EP15896659.8A EP3301875B1 (en) 2015-06-29 2015-06-29 Internet protocol address allocation method and relay device
CN201580080111.0A CN107615723B (zh) 2015-06-29 2015-06-29 一种互联网协议地址分配方法和中继设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/082678 WO2017000128A1 (zh) 2015-06-29 2015-06-29 一种互联网协议地址分配方法和中继设备

Publications (1)

Publication Number Publication Date
WO2017000128A1 true WO2017000128A1 (zh) 2017-01-05

Family

ID=57607345

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/082678 WO2017000128A1 (zh) 2015-06-29 2015-06-29 一种互联网协议地址分配方法和中继设备

Country Status (3)

Country Link
EP (1) EP3301875B1 (zh)
CN (1) CN107615723B (zh)
WO (1) WO2017000128A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108712514A (zh) * 2018-04-28 2018-10-26 新华三技术有限公司 Ip地址管理方法、装置以及电子设备
CN113206879A (zh) * 2021-04-29 2021-08-03 广州朗国电子科技有限公司 一种终端ip地址自动同步方法、电子设备和存储介质
CN113206894A (zh) * 2021-05-08 2021-08-03 腾讯科技(深圳)有限公司 Dns服务器的发现方法、装置、计算机设备及存储介质
CN114520965A (zh) * 2020-11-19 2022-05-20 瑞昱半导体股份有限公司 无线中继装置及用于无线中继装置的配置方法

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113411690A (zh) * 2021-06-01 2021-09-17 江西山水光电科技股份有限公司 一种otn设备上线管理方法
CN115150363B (zh) * 2022-06-27 2024-05-10 中兴通讯股份有限公司 Ip地址更新方法、网关设备、网关下挂设备和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070002833A1 (en) * 2005-06-30 2007-01-04 Symbol Technologies, Inc. Method, system and apparatus for assigning and managing IP addresses for wireless clients in wireless local area networks (WLANs)
CN101510902A (zh) * 2009-03-25 2009-08-19 杭州华三通信技术有限公司 防止无线客户端在上网过程中掉线的方法、系统和设备
CN101951417A (zh) * 2010-09-21 2011-01-19 北京星网锐捷网络技术有限公司 多服务器地址分配方法、系统及中继设备
CN102439949A (zh) * 2011-10-17 2012-05-02 华为技术有限公司 解决网际协议地址分配冲突的方法及相关设备和系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1718032B1 (en) * 2005-04-25 2008-09-10 Alcatel Lucent Detection of duplicated network addresses by a proxy
CN100493102C (zh) * 2005-12-01 2009-05-27 中国科学院计算技术研究所 一种宽带无线城域网中ip地址的分配方法
US8966270B2 (en) * 2006-12-29 2015-02-24 Alcatel Lucent Methods and systems for providing controlled access to the internet
KR20100040658A (ko) * 2008-10-10 2010-04-20 삼성전자주식회사 UPnP 네트워크의 원격 접속 서비스에서 아이피 주소 충돌 해결 방법 및 장치

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070002833A1 (en) * 2005-06-30 2007-01-04 Symbol Technologies, Inc. Method, system and apparatus for assigning and managing IP addresses for wireless clients in wireless local area networks (WLANs)
CN101510902A (zh) * 2009-03-25 2009-08-19 杭州华三通信技术有限公司 防止无线客户端在上网过程中掉线的方法、系统和设备
CN101951417A (zh) * 2010-09-21 2011-01-19 北京星网锐捷网络技术有限公司 多服务器地址分配方法、系统及中继设备
CN102439949A (zh) * 2011-10-17 2012-05-02 华为技术有限公司 解决网际协议地址分配冲突的方法及相关设备和系统

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108712514A (zh) * 2018-04-28 2018-10-26 新华三技术有限公司 Ip地址管理方法、装置以及电子设备
CN114520965A (zh) * 2020-11-19 2022-05-20 瑞昱半导体股份有限公司 无线中继装置及用于无线中继装置的配置方法
CN114520965B (zh) * 2020-11-19 2024-03-01 瑞昱半导体股份有限公司 无线中继装置及用于无线中继装置的配置方法
CN113206879A (zh) * 2021-04-29 2021-08-03 广州朗国电子科技有限公司 一种终端ip地址自动同步方法、电子设备和存储介质
CN113206894A (zh) * 2021-05-08 2021-08-03 腾讯科技(深圳)有限公司 Dns服务器的发现方法、装置、计算机设备及存储介质
US11855957B2 (en) 2021-05-08 2023-12-26 Tencent Technology (Shenzhen) Company Limited Discovery method and apparatus for DNS server, computer device, computer-readable storage medium and computer program product
CN113206894B (zh) * 2021-05-08 2024-04-23 腾讯科技(深圳)有限公司 Dns服务器的发现方法、装置、计算机设备及存储介质

Also Published As

Publication number Publication date
CN107615723B (zh) 2020-04-14
EP3301875B1 (en) 2019-08-21
EP3301875A4 (en) 2018-05-23
EP3301875A1 (en) 2018-04-04
CN107615723A (zh) 2018-01-19

Similar Documents

Publication Publication Date Title
WO2017000128A1 (zh) 一种互联网协议地址分配方法和中继设备
US10122679B2 (en) Method, relay agent, and system for acquiring internet protocol address in network
JP6585837B2 (ja) ユーザの移行
KR101352852B1 (ko) Dhcp를 이용한 화상형성장치의 ip 주소 할당 방법, 그 화상형성장치, 및 dhcp를 이용한 ip주소 할당 시스템
US9479611B2 (en) Method, device, and system for implementing communication after virtual machine migration
CN108429824B (zh) 一种地址分配方法及装置
KR102128357B1 (ko) 주소 할당 방법, 게이트웨이 및 시스템
EP3358785B1 (en) Method and device for acquiring resource
CN108989476B (zh) 一种地址分配方法以及装置
US20160119278A1 (en) Method to distribute a centralized service
JP5714182B2 (ja) 通信装置および通信システム
JP4662477B2 (ja) 複数のdhcpサーバにおけるアドレス管理方法、dhcpサーバ及びプログラム
CN107786682B (zh) 一种dhcp request请求报文的处理方法及装置
KR100977399B1 (ko) 동적 아이피 주소 할당시 네트워크 부하 감소를 위한 dhcp 패킷 처리 방법 및 장치
JP5678590B2 (ja) ゲートウェイ装置、およびゲートウェイ装置におけるip通信中継方法
CN111586153B (zh) 一种用于云平台的通信方法及装置
KR101068207B1 (ko) Dhcp 이중화 시스템 및 방법
CN114615322B (zh) 电子设备以及前端装置
KR100891288B1 (ko) Ip 주소의 중복 할당을 방지하는 방법 및 장치
WO2018180661A1 (ja) 通信装置及び通信システム
KR20160124546A (ko) 적어도 하나 이상의 중계기와 적어도 하나 이상의 네트워크 단말기 간의 통신방법
JP2014023099A (ja) 通信装置、通信システム及び無線アクセスポイント接続方法

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2015896659

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE