WO2011153886A1 - Ip地址冲突避让方法、系统和dhcp服务器、客户端 - Google Patents
Ip地址冲突避让方法、系统和dhcp服务器、客户端 Download PDFInfo
- Publication number
- WO2011153886A1 WO2011153886A1 PCT/CN2011/073927 CN2011073927W WO2011153886A1 WO 2011153886 A1 WO2011153886 A1 WO 2011153886A1 CN 2011073927 W CN2011073927 W CN 2011073927W WO 2011153886 A1 WO2011153886 A1 WO 2011153886A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- address
- dhcp
- dhcp server
- conflicting
- address conflict
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 230000008569 process Effects 0.000 claims abstract description 23
- 238000012545 processing Methods 0.000 claims description 18
- 238000001514 detection method Methods 0.000 abstract description 18
- 238000010586 diagram Methods 0.000 description 8
- 230000011664 signaling Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5046—Resolving address allocation conflicts; Testing of addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
Definitions
- IP address conflict avoidance method system and DHCP server, client
- the present invention relates to the field of mobile communications, and in particular, to a network protocol (Internet Protocol, IP) address conflict avoidance method, a system, and a Dynamic Host Configuration Protocol (DHCP) server, a client.
- IP Internet Protocol
- DHCP Dynamic Host Configuration Protocol
- an IP address is an identifier of a network node in an IP network, and is used for forwarding IP packets in a network.
- an IP address is allocated to uniquely identify each network node.
- DHCP can automatically obtain IP addresses from network nodes to avoid IP address conflicts to the greatest extent.
- the DHCP server (Server) is used to centrally manage all IP network configuration parameters, and is responsible for handling DHCP requests from DHCP clients and assigning IP addresses to clients;
- the DHCP client (Client) is used to apply for an IP address from the DHCP server.
- the networking environment of an IP network is complex, and the devices connected to the network are also diverse.
- a new device is connected to the network, it is easy to cause an IP address conflict.
- accessing a new device configured with the same IP address as the DHCP client will cause an IP address conflict between the DHCP client and the new access device, causing the DHCP client to work. Abnormal, and the new access device does not work properly.
- the switching device stores the IP/Media Access Control (MAC) mapping of the DHCP client in the process of obtaining the IP address by the DHCP client.
- the switching device locks the static configuration when a device with a statically configured IP address exists in the network or a new IP address conflict occurs.
- the MAC address of the device with the IP address is set to prevent the device from accessing the network within a certain period of time. This solves the IP address conflict problem.
- the above solution can only ensure the normal operation of the DHCP client when the IP address conflicts are resolved.
- the access device that statically configures the IP address cannot work normally.
- the IP address is statically configured.
- the access device cannot access the network immediately. It must wait for the switching device to expire its lock before it can access normally. Summary of the invention
- the present invention provides an IP address conflict avoidance method, system, and DHCP server and client to solve the problem of IP address conflict between devices in an IP network in the prior art.
- a network protocol address conflict avoidance method includes:
- the dynamic host configuration protocol DHCP server allocates a network protocol IP address to the DHCP client, and processes the IP address conflict in the case where the DHCP client detects that the IP address conflicts with the IP address of another device, Assign an IP address to the DHCP client.
- the process of processing, by the DHCP server, the IP address conflict includes:
- the state of the conflicting IP address is set from the used state to the locked state, and the lockout period is set for the locked state.
- the method further includes:
- the DHCP server determines whether the conflicting IP address is being used
- the DHCP server sets a new locking period for the locked state of the conflicting IP address; If the result of the determination is no, the DHCP server sets the state of the conflicting IP address from the locked state to the available state.
- a network protocol address conflict avoidance method includes:
- the DHCP client requests the DHCP server to allocate an IP address, and determines whether the assigned IP address conflicts with the IP address of the other device. If the judgment result is yes, the DHCP server is notified that an IP address conflict has occurred, and the DHCP server is redirected. The DHCP server requests to assign an IP address.
- the method for notifying the DHCP server that an IP address conflict has occurred is:
- IP address conflict message carrying a conflicting IP address is sent to the DHCP server. After receiving the IP address conflict message, the DHCP server further changes the conflicting IP address from the used state to the locked state.
- a DHCP server including:
- An allocation module configured to allocate an IP address to the DHCP client
- a receiving module configured to: when the DHCP client detects that the IP address conflicts with an IP address of another device, receive an IP address conflict message sent by the DHCP client; and a processing module, configured to use, according to the IP The address conflict message processes the IP address conflict.
- the processing module specifically includes:
- a sub-module configured to obtain a conflicting IP address from the IP address conflict message, where the first setting sub-module is configured to set the acquired status of the conflicting IP address from an used state to a locked state, and The lock status sets the lock period.
- the processing module further includes a determining submodule, a second setting submodule, and/or a third setting submodule; wherein:
- the determining submodule is configured to determine, after the locking period of the conflicting IP address arrives, whether the conflicting IP address is being used;
- the second setting submodule is configured to: when the determining result of the determining submodule is yes Next, setting a new lock period for the locked state of the conflicting IP address;
- the third setting submodule is configured to set the state of the conflicting IP address from a locked state to an available state if the determining result of the determining submodule is negative.
- the method further includes a first calling module, configured to invoke the allocation module after receiving the request of the DHCP client.
- a DHCP client including:
- the application module is configured to apply to the DHCP server to allocate an IP address, and obtain an IP address assigned by the DHCP server.
- the sending module is configured to notify the DHCP server if the determination result of the determining module is yes.
- the method is specifically configured to: send an IP address conflict message carrying a conflicting IP address to the DHCP server.
- the method further includes a second calling module, configured to invoke the application module after the sending module performs the notification.
- the DHCP client After the IP address is obtained from the DHCP server, the DHCP client initiates an IP address conflict detection. If an IP address conflict is found, the device reports to the DHCP server to perform IP address conflict avoidance, and solves the problem of the prior art device in the IP network.
- the problem of conflicts between IP addresses ensures that when an IP address conflict occurs on the network, the DHCP client can quickly detect and perform IP address conflict avoidance, and quickly restore the normal and stable network.
- FIG. 1 is a flowchart of an IP address conflict avoidance method according to Embodiment 1 of the present invention
- FIG. 2 is a flowchart of an IP address conflict avoidance method according to Embodiment 2 of the method of the present invention
- FIG. 3 is an IP address of Embodiment 2 of the method of the present invention
- Signaling flow chart for conflict avoidance 4 is a schematic structural diagram of a DHCP server according to Embodiment 1 of the apparatus of the present invention
- FIG. 5 is a schematic structural diagram of a DHCP client according to Embodiment 2 of the apparatus of the present invention
- FIG. 6 is a schematic structural diagram of a network protocol address conflict avoidance system according to an embodiment of the present invention
- FIG. 7 is a schematic structural diagram of an IP network system supporting a DHCP function according to an embodiment of the present invention.
- the present invention provides an IP address conflict avoidance method, system, DHCP server, and client.
- IP address conflict avoidance method system, DHCP server, and client.
- FIG. 1 is a flowchart of an IP address conflict avoidance method according to Embodiment 1 of the present invention. As shown in FIG. 1, an IP address conflict occurs in the embodiment of the present invention.
- the avoidance method includes the following processing:
- Step 101 The DHCP server allocates a network protocol IP address to the DHCP client according to the request of the DHCP client, and receives the DHCP client to send the DHCP client to detect that the assigned IP address is the same as the IP address of the other device.
- An IP address conflict message carrying a conflicting IP address;
- Step 102 The DHCP server processes the conflicting IP address according to the received IP address conflict message, and re-assigns the IP address to the DHCP client according to the request of the DHCP client.
- the process for the DHCP server to process the conflicting IP address according to the IP address conflict message includes: the DHCP server first needs to obtain the conflicting IP address from the IP address conflict message; subsequently, the DHCP server will obtain the conflicting IP address. The status is set to the locked state by the used state, and the lockout period is set for the locked state. After that, the DHCP client will apply for a new IP address to the DHCP server, and the DHCP server will need to assign a new IP address to the DHCP client.
- the DHCP server needs to determine Whether the conflicting IP address is being used; if the judgment result is yes, the DHCP server sets a new lockout period for the locked state of the conflicting IP address; if the judgment result is no, the DHCP server sets the state of the conflicting IP address from the locked state to the available state. .
- the main role of the DHCP server is to centrally manage conflicting IP addresses.
- the network configuration resource managed by the DHCP server includes network configuration information such as an available IP address, an used IP address, and a locked IP address.
- the conflicting IP address carried in the >3 ⁇ 4 conflict message can be changed from the used state to the locked state, and the conflicting IP address locked by the DHCP server. Conduct centralized management.
- the IP address carried in the IP address conflict message reported by the DHCP client is locked by the DHCP server, the IP address is no longer allowed to be assigned to the DHCP client.
- the lock period of the locked IP address arrives, it is judged by the DHCP server whether the locked IP address is still used. If the IP address is still used, the lock period is re-set for the IP address; otherwise, The IP address is changed from locked to available.
- the DHCP server can receive the conflicting IP address sent by the DHCP client after performing IP address conflict detection, and can lock the conflicting IP address, and can also assign a new IP address to the DHCP client; Ensure that the network can resume normal work as soon as possible after an IP address conflict.
- the IP address locked by the DHCP server will not be reassigned to other DHCP clients until the lock is released. This avoids the repeated introduction of IP address conflicts.
- the process for solving the IP address conflict problem provided by the embodiment of the present invention does not need to add an additional device, and the solution is simple and effective; it can ensure that when an IP address conflict occurs in the network, the DHCP client can quickly detect and perform IP address conflict avoidance. , quickly restore the normal and stable network.
- FIG. 2 is a present invention.
- a flowchart of the IP address conflict avoidance method in the second embodiment of the present invention is as follows: As shown in FIG. 2, the IP address conflict avoidance method in the embodiment of the present invention includes the following processing:
- Step 201 The DHCP client requests the DHCP server to allocate an IP address, and obtains an IP address assigned by the DHCP server.
- Step 202 The DHCP client determines whether the obtained IP address is the same as the IP address of the other device. If the judgment result is yes, the IP address conflict message carrying the conflicting IP address is sent to the DHCP server, and the DHCP server re-sends the message to the DHCP server. Apply for an IP address. If the judgment result is negative, the DHCP client obtains the IP address successfully and enters the normal working state.
- the DHCP client is mainly used for the application of the IP address and the detection of the IP address conflict: First, the DHCP client requests the IP address from the DHCP server; subsequently, the DHCP client starts the IP after obtaining the IP address. Address conflict detection, and IP address conflict avoidance after detecting an IP address conflict.
- the detection of the IP address conflict is initiated. If the DHCP client detects an IP address conflict, the IP address conflict message is reported to the DHCP server, and the reported message carries the information of the conflicting IP address. Finally, the DHCP client restarts the IP address application process and applies for a new DHCP server. IP address.
- IP address conflict when it is determined that the acquired IP address is the same as the IP address of another device, it is considered that an IP address conflict has occurred.
- the method of confirming the IP address conflict may be various, and is not limited to the content described in the embodiment of the present invention.
- FIG. 3 is a signaling flowchart of IP address conflict avoidance in the second embodiment of the present invention. As shown in FIG. 3, after the DHCP client finds an IP address conflict, the DHCP client needs to perform the following processing:
- Step 1 The DHCP client initiates an IP address conflict detection function to detect whether there is a device with the same IP address as the DHCP client in the current network, and finds that the IP address conflicts.
- Step 2 The DHCP client reports the IP address conflict message to the DHCP server.
- Step 3 The DHCP server receives the IP address conflict message and uses the conflicting IP address from the used The status changes to the locked state;
- Step 4 After the DHCP client reports an IP address conflict, start a new DHCP process and apply for a new IP address to the DHCP server.
- Step 5 The DHCP client sends a DHCP Discover message to the DHCP server.
- Step 6 The DHCP server allocates a new available IP address to the DHCP client, and sends a DHCP Offer message to the DHCP client.
- Step 7 The DHCP client sends a DHCP Request message to the DHCP server.
- Step 8 The DHCP server sends a DHCP Ack (Acknowledgement) message to the DHCP client.
- Step 9 The DHCP client performs an IP address conflict detection according to the IP address provided in the DHCP Ack, and determines whether the IP address is related to other devices on the network. IP address conflict;
- Step 10 The DHCP client does not find the device with the IP address conflict, dynamically obtains the new IP address, and restarts the IP address conflict detection.
- the IP address conflict is detected by the DHCP client, and the IP address conflict is avoided immediately after the IP address conflict is found, which can solve the problem of IP address conflict, and ensure that the DHCP client can work normally.
- An access device with an IP address conflict can access the network normally.
- FIG. 4 is a schematic structural diagram of a DHCP server according to Embodiment 1 of the present invention.
- the DHCP server in the embodiment of the present invention includes: an allocating module 40, receiving Module 42, processing module 44, first calling module 46.
- the respective modules of the embodiments of the present invention are described in detail below.
- the allocating module 40 is configured to: allocate a network protocol IP address to the DHCP client according to the request of the DHCP client;
- the receiving module 42 is configured to: when the DHCP client detects that the allocated IP address is the same as the IP address of the other device, receive an IP address conflict message that is sent by the DHCP client and carries the conflicting IP address;
- the processing module 44 is configured to: process the conflicting IP address according to the received IP address conflict message;
- the processing module 44 specifically includes: an acquiring submodule and a first setting submodule.
- the obtaining submodule is configured to: obtain a conflicting IP address from the IP address conflict message;
- the first setting submodule is configured to: set the state of the conflicting IP address from the used state to the locked state, and set the lock for the locked state the term.
- the processing module 44 may further include: a determining submodule, a second setting submodule, and a third setting submodule.
- the determining sub-module is configured to: determine, after the locking period of the conflicting IP address arrives, whether the conflicting IP address is being used;
- the second setting sub-module is configured to: when determining that the determining result of the sub-module is yes, A new locking period is set for the locked state of the conflicting IP address;
- the third setting sub-module is configured to: set the state of the conflicting IP address from the locked state to the available state when the judgment result of the sub-module is negative.
- the main function of the DHCP server is to centrally manage conflicting IP addresses, and the network configuration resources managed by the DHCP server include available IP addresses, used IP addresses, and Network configuration information such as locked IP address.
- the DHCP server receives the IP address conflict message reported by the DHCP client, the DHCP server can change the conflicting IP address carried in the conflicting message from the used state to the locked state, and centrally manage the locked conflicting IP address.
- the IP address carried in the IP address conflict message reported by the DHCP client is locked by the DHCP server, the IP address is no longer allowed to be assigned to the DHCP client.
- the DHCP server determines whether the IP address is still used. If the IP address is still used, re-set the lock period for the IP address; otherwise, the IP address is The address changes from locked to available.
- the first calling module 46 is configured to: after receiving the request of the DHCP client, invoke the allocation module. That is to say, the DHCP server's allocation module 40 needs to assign a new IP address to the DHCP client according to the request of the DHCP client under the call of the first calling module 46.
- the DHCP server can receive the conflicting IP address sent by the DHCP client after the IP address conflict detection, and the DHCP server locks the conflicting IP address, and can also assign a new IP address to the DHCP client.
- the IP address locked by the DHCP server will not be reassigned to other DHCP clients until it is unlocked. This avoids repeatedly introducing IP address conflicts.
- the process for solving the IP address conflict problem provided by the embodiment of the present invention does not need to add an additional device, and the solution is simple and effective; it can ensure that when an IP address conflict occurs in the network, the DHCP client can quickly detect and perform IP address conflict avoidance. , quickly restore the normal and stable network.
- FIG. 5 is a schematic structural diagram of a DHCP client according to Embodiment 2 of the apparatus of the present invention.
- the DHCP client in the embodiment of the present invention includes: The determining module 52, the sending module 54, and the second calling module 56.
- the respective modules of the embodiments of the present invention are described in detail below.
- the application module 50 is configured to: request an IP address from the DHCP server, and obtain an IP address assigned by the DHCP server; the determining module 52 is configured to: determine the IP address obtained by the application module 50 and an IP address of another device.
- the sending module 54 is configured to: when the determining result of the determining module 52 is yes, send an IP address conflict message carrying the conflicting IP address to the DHCP server; the second calling module 56 is configured to: in the sending module After the IP address conflict message is sent, the application module 50 is invoked.
- the DHCP client is mainly used for IP address application and IP address rushing.
- the DHCP client requests the IP address from the DHCP server.
- the DHCP client initiates an IP address conflict detection.
- the IP address conflict avoidance is performed.
- the detection of the IP address conflict is initiated. If the DHCP client detects an IP address conflict, the IP address conflict message is sent to the DHCP server, and the message carries the information of the conflicting IP address. Then, the DHCP client restarts the IP address application process and applies for a new IP address to the DHCP server. address.
- the IP address conflict is detected by the DHCP client, and the IP address conflict is avoided immediately after the IP address conflict is found, which can solve the problem of IP address conflict; and the DHCP client can work normally, and also causes the DHCP client to work normally.
- An access device with an IP address conflict can access the network normally.
- FIG. 6 is a schematic structural diagram of a network protocol address conflict avoidance system according to an embodiment of the present invention. As shown in FIG. 6, the network protocol of the embodiment of the present invention is shown.
- the address conflict avoidance system includes: a DHCP server 60 and a DHCP client 62. The respective modules of the embodiments of the present invention are described in detail below.
- the DHCP server 60 is mainly used to: centrally manage conflicting IP addresses.
- the network configuration resource managed by the DHCP server 60 includes network configuration information such as an available IP address, an used IP address, and a locked IP address.
- the DHCP server 60 receives the IP address conflict message reported by the DHCP client 62, the conflicting IP address carried in the DHCP client 60 can be changed from the used state to the locked state, and the locked conflicting IP address is centrally managed.
- the IP address carried in the IP address conflict message reported by the DHCP client 62 is locked by the DHCP server 60, the IP address is no longer allowed to be allocated to the DHCP client.
- the DHCP server 60 determines whether the locked IP address is still used. If the IP address is still used, re-set the lock period for the IP address; otherwise, The IP address is changed from locked to available. Finally, the DHCP client 62 restarts the IP address application process, and the DHCP server 60 also needs to assign a new IP address to the DHCP client 62.
- the DHCP client 62 is mainly used to: perform IP address application and IP address conflict detection: First, the DHCP client 62 requests the IP address from the DHCP server 60; subsequently, the DHCP client 62 starts the IP address after obtaining the IP address. Collision detection, and after detecting an IP address conflict, IP address conflict avoidance.
- the detection of the IP address conflict is initiated. If the DHCP client 62 detects an IP address conflict, the IP address conflict message is reported to the DHCP server 60, and the message carries the information of the conflicting IP address. Subsequently, the DHCP client 62 restarts the IP address request process to the DHCP server 60. Request a new IP address.
- the IP address dynamic application and the IP address conflict are detected by the DHCP client, and the DHCP server dynamically allocates the IP address and locks the conflicting IP address, thereby solving the problem that the new device is triggered by the IP network.
- the problem of address conflict; and the configuration cost is not increased during the implementation process, and the solution is simple and effective.
- FIG. 7 is a schematic structural diagram of an IP network system supporting a DHCP function according to an embodiment of the present invention. As shown in FIG. 7, the method includes a DHCP client 70, a DHCP server 72, a routing and switching device 74 connecting a DHCP client and a DHCP server, and The DHCP client generates an access device 76 with an IP address conflict.
- the DHCP client 70 is mainly used to: apply for an IP address to the DHCP server 72, and start IP address conflict detection after the IP address is successfully applied.
- the DHCP client 70 finds that there is an IP address conflict with the access device 76 in the network, the IP address conflict is reported to the DHCP server 72.
- the DHCP client 70 acquires and uses the new IP address, and can quickly return to the normal working state, so that the network system has the ability to automatically adjust the fault.
- the DHCP server 72 is mainly used to: manage network configuration resources such as IP addresses, dynamically allocate available IP addresses to the DHCP client 70, and process conflicting IP addresses.
- the DHCP client can initiate an IP address conflict detection after obtaining an IP address from the DHCP server. If an IP address conflict is found, the DHCP client reports to the DHCP server to perform IP address conflict avoidance, which resolves the prior art between devices in the IP network.
- IP address conflict avoidance which resolves the prior art between devices in the IP network.
- the problem of IP address conflicts ensures that when an IP address conflict occurs in the network, the DHCP client can quickly detect and perform IP address conflict avoidance, and quickly restore the normal and stable network.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了IP地址冲突避让方法、系统和DHCP服务器、客户端,均可由DHCP服务器为DHCP客户端分配IP地址,并在所述DHCP客户端探测到所述IP地址与其他设备的IP地址冲突的情况下,对所述IP地址冲突进行处理,重新为所述DHCP客户端分配IP地址。本发明实施例通过DHCP客户端从DHCP服务器获取IP地址后启动IP地址冲突探测,如果发现存在IP地址冲突,则向DHCP服务器报告,进行IP地址冲突避让,解决了现有技术在IP网络中设备之间IP地址冲突的问题,确保当网络中出现IP地址冲突时,DHCP客户端能够迅速探测到并进行IP地址冲突避让,快速地恢复网络的正常和稳定。
Description
IP地址冲突避让方法、 系统和 DHCP服务器、 客户端 技术领域
本发明涉及移动通讯领域,特别是涉及一种网络协议( Internet Protocol, IP ) 地址冲突避让方法、 系统和动态主机配置协议 ( Dynamic Host Configuration Protocol, DHCP )服务器、 客户端。 背景技术
在现有技术中, IP地址是 IP网络中网络节点的一种标识, 用于 IP报 文在网络中的转发, 在 IP网络中, IP地址的分配要能够对各个网络节点进 行唯一的标识。
目前, 釆用 DHCP的方式可以实现网络节点自动获取 IP地址, 在最大 程度上避免 IP地址冲突。 在 DHCP协议模型中有两个最基本的组成部分: 1、 DHCP服务器(Server ), 用于集中管理所有的 IP 网络配置参数, 并负 责处理 DHCP客户端的 DHCP请求, 为客户端分配 IP地址; 2、 DHCP客 户端 (Client ), 用于向 DHCP服务器申请 IP地址。
IP 网络的组网环境很复杂, 网络中接入的设备也是多种多样的。 当在 网络中接入新设备时, 很容易引发 IP地址的冲突。 例如, 在 DHCP客户端 所在的 IP网络中, 再接入与 DHCP客户端配置了相同 IP地址的新设备, 就会引发 DHCP客户端与新接入设备的 IP地址冲突问题,导致 DHCP客户 端工作异常, 并且使得新接入设备也不能正常工作。
目前, 在现有技术中, 解决 IP地址冲突问题主要是通过以下方式: 交 换设备在 DHCP客户端获取 IP地址的过程中, 存储 DHCP客户端的 IP/媒 体接入控制 ( Media Access Control, MAC ) 映射表, 当网络中存在或者新 接入静态配置 IP地址的设备并引发 IP地址冲突时,交换设备锁定该静态配
置 IP地址的设备的 MAC, 使该设备在一定时间内无法接入网络中, 以此 解决 IP地址冲突问题。
上述技术方案在解决 IP地址冲突的问题时, 只能保证 DHCP客户端的 正常工作, 不能保证静态配置 IP地址的接入设备正常工作; 此外, 当 IP地 址冲突问题迅速消失后,静态配置 IP地址的接入设备也不能立即接入网络, 必须等待交换设备对其的锁定过期之后才能正常接入。 发明内容
本发明提供一种 IP地址冲突避让方法、系统和 DHCP服务器、客户端, 以解决现有技术在 IP网络中设备之间 IP地址冲突的问题。
为了解决上述问题, 本发明的技术方案是这样实现的:
一种网络协议地址冲突避让方法, 包括:
动态主机配置协议 DHCP服务器为 DHCP客户端分配网络协议 IP地 址, 并在所述 DHCP客户端探测到所述 IP地址与其他设备的 IP地址冲突 的情况下, 对所述 IP地址冲突进行处理, 重新为所述 DHCP客户端分配 IP 地址。
所述 DHCP服务器对所述 IP地址冲突进行处理的过程包括:
接收所述 DHCP客户端发送的 IP地址冲突消息, 从中获取冲突 IP地 址;
将所述冲突 IP地址的状态由已用状态设置为锁定状态, 并为所述锁定 状态设置锁定期限。
所述方法还包括:
在所述冲突 IP地址的锁定期限到达后, 所述 DHCP服务器判断所述冲 突 IP地址是否正在被使用;
如果判断结果为是, 所述 DHCP服务器为所述冲突 IP地址的锁定状态 设置新的锁定期限;
如果判断结果为否, 所述 DHCP服务器将所述冲突 IP地址的状态由锁 定状态设置为可用状态。
一种网络协议地址冲突避让方法, 包括:
DHCP客户端向 DHCP服务器申请分配 IP地址, 并判断被分配的 IP 地址与其他设备的 IP地址是否冲突, 在判断结果为是的情况下通知所述 DHCP服务器发生了 IP地址冲突,并重新向所述 DHCP服务器申请分配 IP 地址。
通知所述 DHCP服务器发生了 IP地址冲突的方法为:
向所述 DHCP服务器发送携带有冲突 IP地址的 IP地址冲突消息。 在收到所述 IP地址冲突消息后, DHCP服务器进一步将冲突的 IP地址 从已用状态转为锁定状态。
一种 DHCP服务器, 包括:
分配模块, 用于向 DHCP客户端分配 IP地址;
接收模块, 用于在所述 DHCP客户端探测到所述 IP地址与其他设备的 IP地址冲突的情况下, 接收所述 DHCP客户端发送的 IP地址冲突消息; 处理模块, 用于根据所述 IP地址冲突消息对 IP地址冲突进行处理。 所述处理模块具体包括:
获取子模块, 用于从所述 IP地址冲突消息中获取冲突 IP地址; 第一设置子模块, 用于将获取的所述冲突 IP地址的状态由已用状态设 置为锁定状态, 并为所述锁定状态设置锁定期限。
所述处理模块还包括判断子模块、 第二设置子模块和 /或第三设置子模 块; 其中:
所述判断子模块, 用于在所述冲突 IP地址的锁定期限到达后, 判断所 述冲突 IP地址是否正在被使用;
所述第二设置子模块, 用于在所述判断子模块的判断结果为是的情况
下, 为所述冲突 IP地址的锁定状态设置新的锁定期限;
所述第三设置子模块 , 用于在所述判断子模块的判断结果为否的情况 下, 将所述冲突 IP地址的状态由锁定状态设置为可用状态。
进一步包括第一调用模块, 用于在收到所述 DHCP客户端的请求后, 调用所述分配模块。
一种 DHCP客户端, 包括:
申请模块, 用于向 DHCP服务器申请分配 IP地址, 并获取所述 DHCP 服务器分配的 IP地址; 发送模块, 用于在所述判断模块的判断结果为是的情况下, 通知所述 DHCP服务器。
所述发送模块进行所述通知时, 具体用于: 向所述 DHCP服务器发送 携带有冲突 IP地址的 IP地址冲突消息。
进一步包括第二调用模块, 用于在所述发送模块进行所述通知后, 调 用所述申请模块。
本发明有益效果如下:
本发明实施例通过 DHCP客户端从 DHCP服务器获取 IP地址后启动 IP 地址冲突探测, 如果发现存在 IP地址冲突, 则向 DHCP服务器报告, 进行 IP地址冲突避让, 解决了现有技术在 IP网络中设备之间 IP地址冲突的问 题, 确保当网络中出现 IP地址冲突时, DHCP客户端能够迅速探测到并进 行 IP地址冲突避让, 快速地恢复网络的正常和稳定。 附图说明
图 1是本发明方法实施例一的 IP地址冲突避让方法的流程图; 图 2是本发明方法实施例二的 IP地址冲突避让方法的流程图; 图 3是本发明方法实施例二的 IP地址冲突避让的信令流程图;
图 4是本发明装置实施例一的 DHCP服务器的结构示意图; 图 5是本发明装置实施例二的 DHCP客户端的结构示意图;
图 6是本发明系统实施例的网络协议地址冲突避让系统的结构示意图; 图 7是本发明系统实施例的支持 DHCP功能的 IP网络系统结构示意图。 具体实施方式
为了解决现有技术在 IP网络中设备之间 IP地址冲突的问题,本发明提 供了一种 IP地址冲突避让方法、 系统和 DHCP服务器、 客户端。 以下结合 附图以及实施例, 对本发明进行进一步详细说明。
方法实施例一
根据本发明的实施例, 提供了一种 IP地址冲突避让方法, 图 1是本发 明方法实施例一的 IP地址冲突避让方法的流程图, 如图 1所示, 本发明实 施例的 IP地址冲突避让方法包括如下处理:
步骤 101 , DHCP服务器根据 DHCP客户端的请求向 DHCP客户端分 配网络协议 IP地址, 并在 DHCP客户端探测到分配的所述 IP地址与其他 设备的 IP地址相同的情况下, 接收 DHCP客户端发送的携带有冲突 IP地 址的 IP地址冲突消息;
步骤 102, DHCP服务器根据收到的 IP地址冲突消息对冲突 IP地址进 行处理, 并根据 DHCP客户端的请求重新为 DHCP客户端分配 IP地址。
在步骤 102中, DHCP服务器根据所述 IP地址冲突消息对冲突 IP地址 进行处理的过程包括: DHCP服务器首先需要从 IP地址冲突消息中获取冲 突 IP地址; 随后, DHCP服务器将获取的冲突 IP地址的状态由已用状态设 置为锁定状态, 并为该锁定状态设置锁定期限。 之后, DHCP客户端会向 DHCP服务器申请新的 IP地址, DHCP服务器则需要为 DHCP客户端分配 新的 IP地址。
优选地, 在冲突 IP地址的锁定期限到达后, DHCP服务器还需要判断
冲突 IP地址是否正在被使用; 如果判断结果为是, DHCP服务器为冲突 IP 地址的锁定状态设置新的锁定期限; 如果判断结果为否, DHCP服务器将 冲突 IP地址的状态由锁定状态设置为可用状态。
可见, DHCP服务器的主要作用是对冲突的 IP地址进行集中管理。 具 体地, DHCP服务器管理的网络配置资源中包含可用的 IP地址、 已用的 IP 地址和被锁定的 IP地址等网络配置信息。当 DHCP服务器收到 DHCP客户 端上 ^的 IP地址冲突消息时,可以将上>¾冲突消息中所携带的冲突 IP地址 由已用状态转为锁定状态, 并由 DHCP服务器对锁定的冲突 IP地址进行集 中管理。
当 DHCP客户端上报的 IP地址冲突消息中所携带的 IP地址被 DHCP 服务器锁定后, 该 IP地址不再被允许分配给 DHCP客户端。 当被锁定的 IP 地址的锁定期限到达后, 由 DHCP服务器判断被锁定的所述 IP地址是否仍 被使用, 如果该 IP地址仍被使用, 那么重新为该 IP地址设定锁定期限; 否 则, 将该 IP地址从锁定状态转为可用状态。
从上述处理可以看出, DHCP服务器可以接收 DHCP客户端在进行 IP 地址冲突探测后所发送的冲突 IP地址, 并可以锁定所述冲突 IP地址 ,还可 以为 DHCP客户端分配新的 IP地址; 以保证在出现 IP地址冲突后 , 网络 能尽快恢复正常工作。 此外, 被 DHCP服务器锁定的 IP地址在没有解除锁 定前, 不会被重新分配给其它的 DHCP客户端, 这样可以避免重复引入 IP 地址冲突。 本发明实施例所提供的解决 IP地址冲突问题的过程不需要添加 额外的设备, 解决方式简单有效; 能够确保当网络中出现 IP地址冲突时, DHCP客户端能够迅速探测到并进行 IP地址冲突避让, 快速地恢复网络的 正常和稳定。
方法实施例二
根据本发明的实施例, 提供了一种 IP地址冲突避让方法, 图 2是本发
明方法实施例二的 IP地址冲突避让方法的流程图, 如图 2所示, 本发明实 施例的 IP地址冲突避让方法包括如下处理:
步骤 201 , DHCP客户端向 DHCP服务器申请分配 IP地址 ,并获取 DHCP 服务器分配的 IP地址;
步骤 202 , DHCP客户端判断获取的所述 IP地址与其他设备的 IP地址 是否相同, 在判断结果为是的情况下向 DHCP服务器发送携带有冲突 IP地 址的 IP地址冲突消息, 并重新向 DHCP服务器申请分配 IP地址; 在判断 结果为否的情况下, DHCP客户端获取 IP地址成功, 进入正常工作状态。
在本发明实施例中, DHCP客户端主要用于 IP地址的申请和 IP地址冲 突的探测: 首先, 由 DHCP客户端向 DHCP服务器申请 IP地址; 随后, DHCP客户端在获取到 IP地址后启动 IP地址冲突探测 , 并在探测到 IP地 址冲突后进行 IP地址冲突避让。
具体地, 当 DHCP客户端处于正常工作状态时, 会启动 IP地址冲突的 探测。如果 DHCP客户端探测到 IP地址冲突,那么向 DHCP服务器上报 IP 地址冲突消息, 上报的消息中携带有冲突 IP地址的信息; 最后, DHCP客 户端重新启动 IP地址申请过程 , 向 DHCP服务器申请新的 IP地址。
由上述可见, 一般情况下, 当判断出所获取的所述 IP地址与其他设备 的 IP地址相同时, 即认为发生了 IP地址冲突。 当然, 确认 IP地址冲突的 方法可能多种多样, 并不限于本发明实施例中所描述的内容。
图 3是本发明方法实施例二的 IP地址冲突避让的信令流程图, 如图 3 所示, DHCP客户端发现 IP地址冲突后, 需要进行如下处理:
步骤 1 , DHCP客户端启动 IP地址冲突探测功能, 检测当前网络中是 否存在与 DHCP客户端的 IP地址相同的设备, 并发现 IP地址冲突;
步骤 2, DHCP客户端将 IP地址冲突消息上报给 DHCP服务器; 步骤 3 , DHCP服务器收到 IP地址冲突消息, 将冲突的 IP地址从已用
状态转为锁定状态;
步骤 4 , DHCP客户端上报 IP地址冲突后, 启动新的 DHCP流程 , 向 DHCP服务器申请新的 IP地址;
步骤 5 , DHCP客户端向 DHCP服务器发送 DHCP Discover (发现 )消 息;
步骤 6 , DHCP服务器向 DHCP客户端分配新的可用 IP地址,并向 DHCP 客户端发送 DHCP Offer (提供) 消息;
步骤 7, DHCP客户端向 DHCP服务器发送 DHCP Request (请求 ) 消 息;
步骤 8 , DHCP服务器向 DHCP客户端发送 DHCP Ack (确认) 消息; 步骤 9, DHCP客户端根据 DHCP Ack中所提供的 IP地址进行 IP地址 冲突的检测, 判断该 IP地址是否与网络中其它设备的 IP地址冲突;
步骤 10 , DHCP客户端未发现存在 IP地址冲突的设备, 动态获取新的 IP地址成功 , 重新启动 IP地址冲突探测。
本发明实施例通过 DHCP客户端探测 IP地址冲突, 在发现 IP地址冲 突后立即进行 IP地址冲突的避让, 可以解决 IP地址冲突的问题, 并且在保 证 DHCP客户端能够正常工作的同时, 也使得引发 IP地址冲突的接入设备 能够正常接入网络。
装置实施例一
根据本发明的实施例, 提供了一种 DHCP服务器, 图 4是本发明装置 实施例一的 DHCP服务器的结构示意图, 如图 4 所示, 本发明实施例的 DHCP服务器包括: 分配模块 40、 接收模块 42、 处理模块 44、 第一调用模 块 46。 以下对本发明实施例的各个模块进行详细的说明。
具体地,分配模块 40用于:根据 DHCP客户端的请求向 DHCP客户端 分配网络协议 IP地址;
接收模块 42用于: 在 DHCP客户端探测到分配的所述 IP地址与其他 设备的 IP地址相同的情况下, 接收 DHCP客户端发送的携带有冲突 IP地 址的 IP地址冲突消息;
处理模块 44用于: 根据收到的 IP地址冲突消息对冲突 IP地址进行处 理;
其中, 处理模块 44具体包括: 获取子模块、 第一设置子模块。 其中, 获取子模块用于: 从 IP地址冲突消息中获取冲突 IP地址; 第一设置子模块 用于: 将所述冲突 IP地址的状态由已用状态设置为锁定状态, 并为锁定状 态设置锁定期限。
优选地, 在本发明实施例中, 处理模块 44还可以包括: 判断子模块、 第二设置子模块以及第三设置子模块。 其中, 判断子模块用于: 在冲突 IP 地址的锁定期限到达后, 判断所述冲突 IP地址是否正在被使用; 第二设置 子模块用于: 在判断子模块的判断结果为是的情况下, 为冲突 IP地址的锁 定状态设置新的锁定期限; 第三设置子模块用于: 在判断子模块的判断结 果为否的情况下, 将冲突 IP地址的状态由锁定状态设置为可用状态。
从上述描述可以看出, 在本发明实施例中, DHCP服务器的主要作用 是对冲突的 IP地址进行集中管理, DHCP服务器管理的网络配置资源中包 含可用的 IP地址、 已用的 IP地址和被锁定的 IP地址等网络配置信息。 当 DHCP服务器收到 DHCP客户端上报的 IP地址冲突消息时, 可以将上报冲 突消息中所携带的冲突 IP地址由已用状态转为锁定状态, 并对锁定的冲突 IP地址进行集中管理。
当 DHCP客户端上报的 IP地址冲突消息中携带的 IP地址被 DHCP服 务器锁定后, 该 IP地址不再被允许分配给 DHCP客户端。 当被锁定的 IP 地址的锁定期限到达后, 由 DHCP服务器判断该 IP地址是否仍被使用, 如 果该 IP地址仍被使用, 那么重新为该 IP地址设定锁定期限; 否则, 将该 IP
地址从锁定状态转为可用状态。
第一调用模块 46用于:在收到 DHCP客户端的请求后,调用分配模块。 也就是说, DHCP服务器的分配模块 40在第一调用模块 46的调用下, 需 要根据 DHCP客户端的请求, 为 DHCP客户端分配新的 IP地址。
从上述处理可以看出, DHCP服务器可以接收 DHCP客户端在进行 IP 地址冲突探测后所发送的冲突 IP地址, 并由 DHCP服务器锁定该冲突 IP 地址, 还可以为 DHCP客户端分配新的 IP地址; 以保证在出现 IP地址冲 突后, 网络能尽快恢复正常工作。 此外, 被 DHCP服务器锁定的 IP地址在 没有解除锁定前, 不会被重新分配给其它的 DHCP客户端, 这样可以避免 重复引入 IP地址冲突。本发明实施例所提供的解决 IP地址冲突问题的过程 不需要添加额外的设备, 解决方式简单有效; 能够确保当网络中出现 IP地 址冲突时, DHCP客户端能够迅速探测到并进行 IP地址冲突避让, 快速地 恢复网络的正常和稳定。
装置实施例二
根据本发明的实施例, 提供了一种 DHCP客户端, 图 5是本发明装置 实施例二的 DHCP客户端的结构示意图, 如图 5 所示, 本发明实施例的 DHCP客户端包括: 申请模块 50、 判断模块 52、 发送模块 54、 第二调用模 块 56。 以下对本发明实施例的各个模块进行详细的说明。
具体地, 申请模块 50用于: 向 DHCP服务器申请分配 IP地址, 并获 取所述 DHCP服务器分配的 IP地址; 判断模块 52用于: 判断申请模块 50 获取的所述 IP地址与其他设备的 IP地址是否相同; 发送模块 54用于: 在 判断模块 52的判断结果为是的情况下,向所述 DHCP服务器发送携带有冲 突 IP地址的 IP地址冲突消息; 第二调用模块 56用于: 在发送模块 54发送 所述 IP地址冲突消息之后, 调用申请模块 50。
在本发明实施例中, DHCP客户端主要用于 IP地址的申请和 IP地址冲
突的探测: 首先, 由 DHCP客户端向 DHCP服务器申请 IP地址; 随后, DHCP客户端在获取到 IP地址后启动 IP地址冲突探测 , 并在探测到 IP地 址冲突后, 进行 IP地址冲突避让。
具体地, 当 DHCP客户端处于正常工作状态时, 会启动 IP地址冲突的 探测。如果 DHCP客户端探测到 IP地址冲突,那么向 DHCP服务器上报 IP 地址冲突消息, 该消息中携带有冲突 IP地址的信息; 随后, DHCP客户端 重新启动 IP地址申请过程 , 向 DHCP服务器申请新的 IP地址。
DHCP客户端进行 IP地址冲突避让处理的过程可以参照图 3进行理解, 在此不再赘述。
本发明实施例通过 DHCP客户端探测 IP地址冲突, 在发现 IP地址冲 突后立即进行 IP地址冲突的避让, 可以解决 IP地址冲突的问题; 并且在保 证 DHCP客户端能够正常工作的同时, 也使得引发 IP地址冲突的接入设备 能够正常接入网络。
系统实施例
根据本发明的实施例, 提供了一种网络协议地址冲突避让系统, 图 6 是本发明系统实施例的网络协议地址冲突避让系统的结构示意图, 如图 6 所示, 本发明实施例的网络协议地址冲突避让系统包括: DHCP服务器 60、 DHCP客户端 62。 以下对本发明实施例的各个模块进行详细的说明。
DHCP服务器 60主要用于: 对冲突 IP地址进行集中管理。 DHCP服务 器 60管理的网络配置资源中包含可用的 IP地址、 已用的 IP地址和被锁定 的 IP地址等网络配置信息。当 DHCP服务器 60收到 DHCP客户端 62上报 的 IP地址冲突消息时,可以将其中所携带的冲突 IP地址由已用状态转为锁 定状态, 并对锁定的冲突 IP地址进行集中管理。
当 DHCP客户端 62上报的 IP地址冲突消息中携带的 IP地址被 DHCP 服务器 60锁定后, 该 IP地址不再被允许分配给 DHCP客户端。 当被锁定
的 IP地址的锁定期限到达后, 由 DHCP服务器 60判断被锁定的所述 IP地 址其是否仍被使用,如果该 IP地址仍被使用, 那么重新为该 IP地址设定锁 定期限; 否则, 将该 IP地址从锁定状态转为可用状态。 最后, DHCP客户 端 62重新启动 IP地址申请过程, DHCP服务器 60还需要为 DHCP客户端 62分配新的 IP地址。
DHCP客户端 62主要用于:进行 IP地址的申请和 IP地址冲突的探测: 首先, 由 DHCP客户端 62向 DHCP服务器 60申请 IP地址; 随后, DHCP 客户端 62在获取到 IP地址后启动 IP地址冲突探测 ,并在探测到 IP地址冲 突后, 进行 IP地址冲突避让。
具体地, 当 DHCP客户端 62处于正常工作状态时, 会启动 IP地址冲 突的探测。 如果 DHCP客户端 62探测到 IP地址冲突, 那么向 DHCP服务 器 60上报 IP地址冲突消息, 该消息中携带有冲突 IP地址的信息; 随后, DHCP客户端 62重新启动 IP地址申请过程 , 向 DHCP服务器 60申请新的 IP地址。
本发明实施例通过 DHCP客户端进行 IP地址动态申请和 IP地址冲突 的探测, 还可以由 DHCP服务器进行 IP地址动态分配和冲突 IP地址的锁 定,解决了在 IP网络中接入新的设备引发 IP地址冲突的问题; 并且实施过 程中不增加配置成本, 解决方案简单有效。
图 7是本发明系统实施例的支持 DHCP功能的 IP网络系统结构示意图, 如图 7所示, 包括 DHCP客户端 70、 DHCP服务器 72、 连接 DHCP客户端 和 DHCP服务器的路由和交换设备 74、 与 DHCP客户端产生 IP地址冲突 的接入设备 76。
DHCP客户端 70主要用于: 向 DHCP服务器 72申请 IP地址, 在申请 IP地址成功之后启动 IP地址冲突探测。 当 DHCP客户端 70发现与网络中 接入设备 76存在 IP地址冲突后, 向 DHCP服务器 72上报 IP地址冲突消
息, 并启动新的 DHCP流程, 以申请新的 IP地址, 然后重新启动 IP地址 冲突探测。 DHCP客户端 70获取并使用新的 IP地址,可以迅速恢复为正常 工作状态, 使得网络系统具备自动调节故障的能力。
DHCP服务器 72主要用于: 管理 IP地址等网络配置资源, 向 DHCP 客户端 70动态分配可用的 IP地址, 并对冲突的 IP地址进行处理。
可见, DHCP客户端从 DHCP服务器获取 IP地址后能够启动 IP地址冲 突探测, 如果发现存在 IP地址冲突, 则向 DHCP服务器报告, 进行 IP地 址冲突避让,解决了现有技术在 IP网络中设备之间 IP地址冲突的问题; 能 够确保当网络中出现 IP地址冲突时, DHCP客户端能够迅速探测到并进行 IP地址冲突避让, 快速地恢复网络的正常和稳定。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围, 凡在本发明的精神和原则之内所作的任何修改、 等同替换和改进 等, 均应包含在本发明的保护范围之内。
Claims
1、 一种网络协议地址冲突避让方法, 其特征在于, 包括:
动态主机配置协议 DHCP服务器为 DHCP客户端分配网络协议 IP地 址, 并在所述 DHCP客户端探测到所述 IP地址与其他设备的 IP地址冲突 的情况下, 对所述 IP地址冲突进行处理, 重新为所述 DHCP客户端分配 IP 地址。
2、 如权利要求 1所述的方法, 其特征在于, 所述 DHCP服务器对所述 IP地址冲突进行处理的过程包括:
接收所述 DHCP客户端发送的 IP地址冲突消息, 从中获取冲突 IP地 址;
将所述冲突 IP地址的状态由已用状态设置为锁定状态, 并为所述锁定 状态设置锁定期限。
3、 如权利要求 2所述的方法, 其特征在于, 所述方法还包括: 在所述冲突 IP地址的锁定期限到达后, 所述 DHCP服务器判断所述冲 突 IP地址是否正在被使用;
如果判断结果为是, 所述 DHCP服务器为所述冲突 IP地址的锁定状态 设置新的锁定期限;
如果判断结果为否, 所述 DHCP服务器将所述冲突 IP地址的状态由锁 定状态设置为可用状态。
4、 一种网络协议地址冲突避让方法, 其特征在于, 包括:
DHCP客户端向 DHCP服务器申请分配 IP地址, 并判断被分配的 IP 地址与其他设备的 IP地址是否冲突, 在判断结果为是的情况下通知所述 DHCP服务器发生了 IP地址冲突,并重新向所述 DHCP服务器申请分配 IP 地址。
5、 如权利要求 4所述的方法, 其特征在于, 通知所述 DHCP服务器发 生了 IP地址冲突的方法为:
向所述 DHCP服务器发送携带有冲突 IP地址的 IP地址冲突消息。
6、 如权利要求 5所述的方法, 其特征在于, 在收到所述 IP地址冲突 消息后, DHCP服务器进一步将冲突的 IP地址从已用状态转为锁定状态。
7、 一种 DHCP服务器, 其特征在于, 包括:
分配模块, 用于向 DHCP客户端分配 IP地址;
接收模块, 用于在所述 DHCP客户端探测到所述 IP地址与其他设备的 IP地址冲突的情况下, 接收所述 DHCP客户端发送的 IP地址冲突消息; 处理模块, 用于根据所述 IP地址冲突消息对 IP地址冲突进行处理。
8、 如权利要求 7所述的 DHCP服务器, 其特征在于, 所述处理模块具 体包括:
获取子模块, 用于从所述 IP地址冲突消息中获取冲突 IP地址; 第一设置子模块, 用于将获取的所述冲突 IP地址的状态由已用状态设 置为锁定状态, 并为所述锁定状态设置锁定期限。
9、 如权利要求 8所述的 DHCP服务器, 其特征在于, 所述处理模块还 包括判断子模块、 第二设置子模块和 /或第三设置子模块; 其中:
所述判断子模块, 用于在所述冲突 IP地址的锁定期限到达后, 判断所 述冲突 IP地址是否正在被使用;
所述第二设置子模块 , 用于在所述判断子模块的判断结果为是的情况 下, 为所述冲突 IP地址的锁定状态设置新的锁定期限;
所述第三设置子模块 , 用于在所述判断子模块的判断结果为否的情况 下, 将所述冲突 IP地址的状态由锁定状态设置为可用状态。
10、 如权利要求 7至 9任一项所述的 DHCP服务器, 其特征在于, 进 一步包括第一调用模块, 用于在收到所述 DHCP客户端的请求后, 调用所 述分配模块。
11、 一种 DHCP客户端, 其特征在于, 包括:
申请模块, 用于向 DHCP服务器申请分配 IP地址, 并获取所述 DHCP 服务器分配的 IP地址; 发送模块, 用于在所述判断模块的判断结果为是的情况下, 通知所述 DHCP服务器。
12、 如权利要求 11所述的 DHCP客户端, 其特征在于, 所述发送模块 进行所述通知时, 具体用于: 向所述 DHCP服务器发送携带有冲突 IP地址 的 IP地址冲突消息。
13、 如权利要求 11或 12所述的 DHCP客户端, 其特征在于, 进一步 包括第二调用模块, 用于在所述发送模块进行所述通知后, 调用所述申请 模块。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010197916.2A CN102281333B (zh) | 2010-06-11 | 2010-06-11 | Ip地址冲突避让方法、系统、dhcp服务器、dhcp客户端 |
CN201010197916.2 | 2010-06-11 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2011153886A1 true WO2011153886A1 (zh) | 2011-12-15 |
Family
ID=45097519
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2011/073927 WO2011153886A1 (zh) | 2010-06-11 | 2011-05-11 | Ip地址冲突避让方法、系统和dhcp服务器、客户端 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102281333B (zh) |
WO (1) | WO2011153886A1 (zh) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113206879A (zh) * | 2021-04-29 | 2021-08-03 | 广州朗国电子科技有限公司 | 一种终端ip地址自动同步方法、电子设备和存储介质 |
CN113612867A (zh) * | 2021-08-05 | 2021-11-05 | 北京千丁互联科技有限公司 | 社区组网通信方法、设备及可读存储介质 |
CN113746950A (zh) * | 2021-09-07 | 2021-12-03 | 中国联合网络通信集团有限公司 | Ip地址冲突预检测方法、系统、计算机设备及存储介质 |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104378455B (zh) * | 2014-11-13 | 2018-02-09 | 新华三技术有限公司 | Ip地址分配方法以及装置 |
CN104410727B (zh) * | 2014-11-20 | 2018-03-23 | 中国联合网络通信集团有限公司 | 地址分配方法、客户端、服务器及地址分配系统 |
KR102001486B1 (ko) | 2015-04-22 | 2019-07-18 | 캐논 가부시끼가이샤 | 복수의 외부 장치와 통신을 행하는 화상 형성장치, 이 장치의 제어방법, 및 기억매체 |
CN105872130A (zh) * | 2016-06-14 | 2016-08-17 | 浪潮电子信息产业股份有限公司 | 一种ip地址分配方法及云管理平台 |
CN106131235A (zh) * | 2016-06-28 | 2016-11-16 | 上海斐讯数据通信技术有限公司 | 一种ip地址配置方法 |
CN106254571B (zh) * | 2016-08-05 | 2020-12-18 | 新华三技术有限公司 | 一种客户端ip地址分配方法及装置 |
CN106878485B (zh) * | 2017-02-28 | 2020-07-07 | 新华三技术有限公司 | 一种报文处理方法及装置 |
CN110989567B (zh) * | 2019-12-31 | 2022-01-25 | 潍柴动力股份有限公司 | 控制器刷写方法、控制器及上位机 |
CN112261173A (zh) * | 2020-10-20 | 2021-01-22 | 四川天邑康和通信股份有限公司 | 一种涉及融合网关的dhcp服务器分配地址冲突检测方法 |
CN113411690A (zh) * | 2021-06-01 | 2021-09-17 | 江西山水光电科技股份有限公司 | 一种otn设备上线管理方法 |
CN114422481B (zh) * | 2021-12-13 | 2024-03-15 | 科华数据股份有限公司 | 一种网络设备管理方法及相关装置 |
CN116896543B (zh) * | 2023-09-11 | 2024-05-24 | 中移(苏州)软件技术有限公司 | 一种ip地址的分配方法、装置、电子设备及存储介质 |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1437360A (zh) * | 2002-02-07 | 2003-08-20 | 华为技术有限公司 | 通过点对点协议上网的用户获取互联网协议地址的方法 |
CN1845554A (zh) * | 2005-12-06 | 2006-10-11 | 华为技术有限公司 | 一种在3g网络中动态分配ip地址的控制方法 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20080026318A (ko) * | 2006-09-20 | 2008-03-25 | 삼성전자주식회사 | 인터넷 프로토콜 주소 설정 방법 및 장치 |
CN101335744B (zh) * | 2007-06-29 | 2013-06-05 | 华为技术有限公司 | 一种加密生成地址的配置方法、系统和装置 |
-
2010
- 2010-06-11 CN CN201010197916.2A patent/CN102281333B/zh not_active Expired - Fee Related
-
2011
- 2011-05-11 WO PCT/CN2011/073927 patent/WO2011153886A1/zh active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1437360A (zh) * | 2002-02-07 | 2003-08-20 | 华为技术有限公司 | 通过点对点协议上网的用户获取互联网协议地址的方法 |
CN1845554A (zh) * | 2005-12-06 | 2006-10-11 | 华为技术有限公司 | 一种在3g网络中动态分配ip地址的控制方法 |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113206879A (zh) * | 2021-04-29 | 2021-08-03 | 广州朗国电子科技有限公司 | 一种终端ip地址自动同步方法、电子设备和存储介质 |
CN113612867A (zh) * | 2021-08-05 | 2021-11-05 | 北京千丁互联科技有限公司 | 社区组网通信方法、设备及可读存储介质 |
CN113746950A (zh) * | 2021-09-07 | 2021-12-03 | 中国联合网络通信集团有限公司 | Ip地址冲突预检测方法、系统、计算机设备及存储介质 |
CN113746950B (zh) * | 2021-09-07 | 2023-11-21 | 中国联合网络通信集团有限公司 | Ip地址冲突预检测方法、系统、计算机设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN102281333B (zh) | 2015-06-03 |
CN102281333A (zh) | 2011-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2011153886A1 (zh) | Ip地址冲突避让方法、系统和dhcp服务器、客户端 | |
US9729501B2 (en) | System and data card for stateless automatic configuration of IPv6 address and method for implementing the same | |
US10122679B2 (en) | Method, relay agent, and system for acquiring internet protocol address in network | |
CN102685270B (zh) | 动态地址分配方法和设备 | |
WO2012163007A1 (zh) | 解决网际协议地址分配冲突的方法及相关设备和系统 | |
CN107465556B (zh) | 一种主备服务器的切换方法、装置及系统 | |
CN102244690B (zh) | 动态主机配置协议地址分配方法、系统、客户端及服务器 | |
CN101304330B (zh) | 一种资源配置方法、服务器、及网络系统 | |
CN102123105B (zh) | Vrrp标准协议与vrrp负载均衡协议之间的切换方法和设备 | |
WO2009012709A1 (fr) | Procédé et dispositif pour demander et distribuer l'adresse d'un point de connexion | |
CN105959282A (zh) | Dhcp攻击的防护方法及装置 | |
JPWO2010064644A1 (ja) | クラスタ制御システム、クラスタ制御方法、及びプログラム | |
CN108933844B (zh) | 提供dhcp服务的方法及设备 | |
WO2015149625A1 (zh) | 一种多实例并行的网元接入方法和系统 | |
JP2011129968A (ja) | 通信端末装置 | |
CN103535015A (zh) | 公网地址资源的管理方法、端口控制协议服务器及客户端 | |
CN114650317A (zh) | 一种微服务系统以及微服务注册、发现和保活方法 | |
CN115174528A (zh) | 一种设备地址管控方法、装置及系统 | |
US7948983B2 (en) | Method, computer program product, and apparatus for providing passive automated provisioning | |
WO2016086544A1 (zh) | 网络设备的网口配置方法、装置及存储介质 | |
CN108667957B (zh) | Ip地址分配方法、第一电子设备以及第一服务器 | |
CN104410727B (zh) | 地址分配方法、客户端、服务器及地址分配系统 | |
CN104025490B (zh) | 资源请求的方法、服务器及资源分配系统 | |
CN113992685B (zh) | 一种服务控制器确定方法、系统及装置 | |
US20150124584A1 (en) | Method and apparatus for improved handling of ims node blacklisting |
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: 11791877 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: 11791877 Country of ref document: EP Kind code of ref document: A1 |