WO2012163007A1 - 解决网际协议地址分配冲突的方法及相关设备和系统 - Google Patents

解决网际协议地址分配冲突的方法及相关设备和系统 Download PDF

Info

Publication number
WO2012163007A1
WO2012163007A1 PCT/CN2011/080830 CN2011080830W WO2012163007A1 WO 2012163007 A1 WO2012163007 A1 WO 2012163007A1 CN 2011080830 W CN2011080830 W CN 2011080830W WO 2012163007 A1 WO2012163007 A1 WO 2012163007A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
host configuration
configuration protocol
dynamic host
user terminal
Prior art date
Application number
PCT/CN2011/080830
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/CN2011/080830 priority Critical patent/WO2012163007A1/zh
Priority to CN2011800020743A priority patent/CN102439949A/zh
Publication of WO2012163007A1 publication Critical patent/WO2012163007A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • 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]

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and a related device and system for solving an Internet Protocol address allocation conflict. Background technique
  • the Dynamic Host Configuration Protocol (DHCP) server includes a DHCPv4 (DHCP for Internet Protocol-v4) server and a DHCPv6 (IPv6 Dynamic Host Configuration Protocol) server.
  • the DHCP server is used to assign Internet Protocol (IP) addresses (such as IPv4 addresses or IPv6 addresses) to user terminals in the network.
  • IP Internet Protocol
  • the user terminal When a user terminal needs to access the network through the access device, the user terminal applies for an IP address to the DHCP server, and the DHCP server returns an IP address assigned to the user terminal.
  • the DHCP server may sometimes assign a user terminal the same IP address as the IP address assigned to other user terminals, and if two user terminals are assigned the same IP address, it may be due to IP address conflict. Caused communication to be abnormal. Summary of the invention
  • Embodiments of the present invention provide a method and a related device and system for solving an Internet Protocol IP address allocation conflict, in order to solve the problem of a DHCP server assigning an IP address conflict, thereby improving system communication reliability.
  • the technical solution provided by the embodiment of the present invention is as follows:
  • a method for solving an internet protocol address allocation conflict includes:
  • the relay device receives a request message sent by the user terminal for requesting allocation of an internet protocol IP address
  • a relay device comprising:
  • a first receiving module configured to receive a request message sent by the user terminal for requesting to allocate an IP address
  • a first sending module configured to forward the request message to a dynamic host configuration protocol server
  • a second receiving module configured to receive a request response message sent by the dynamic host configuration protocol server, where the request response message carries Describe an IP address assigned by the dynamic host configuration protocol server to the user terminal;
  • a conflict detection module configured to detect, according to user online information, whether the IP address has an allocation rush
  • a conflict control module configured to: when the conflict detection module detects that the IP address has an allocation conflict, terminate the request response message and notify the dynamic host configuration protocol server of the IP address allocation conflict.
  • a communication system comprising:
  • a relay device as described in the embodiment of the present invention is a relay device as described in the embodiment of the present invention.
  • the relay device of the embodiment of the present invention detects whether the IP address has an allocation conflict according to the online information of the user; If there is an allocation conflict, the request response message is terminated and the DHCP server is notified of the IP address allocation conflict. The relay device terminates the request response message sent to the user terminal carrying the IP address of the allocation conflict, and notifies the DHCP server.
  • the IP address allocation conflicts are notifies.
  • the user terminal does not obtain the IP address to which the conflict is assigned, and the DHCP server also learns the IP address allocation conflict, so that the DHCP server can be prevented from subsequently assigning the conflicting IP address to the user terminal. It can be seen that the solution of the embodiment of the present invention can effectively solve the problem that the DHCP server allocates IP address conflicts, thereby improving system communication reliability.
  • FIG. 1 is a schematic flowchart of a method for resolving an IP address allocation conflict of an internet protocol according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a network connection of a user terminal and a DHCP server according to an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of a network connection topology of another user terminal and a DHCP server according to an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart of another method for resolving an IP address allocation conflict of an internet protocol according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a relay device according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of another relay device according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic diagram of a communication system according to an embodiment of the present invention. detailed description
  • the embodiments of the present invention provide a method and a related device and system for solving an IP address allocation conflict of an internet protocol, which can solve the problem of a DHCP server assigning an IP address conflict, thereby improving system communication reliability.
  • An embodiment of the present invention for resolving an IP address allocation conflict may include: receiving, by a relay device, a request message sent by a user terminal for requesting allocation of an IP address; forwarding the request message to a DHCP server; receiving a request sent by the DHCP server a response message, the request response message carries an IP address assigned by the DHCP server to the user terminal; detecting, according to the online information of the user, whether the IP address has an allocation conflict; if there is an allocation conflict, terminating the request response message and notifying The above DHCP server has an IP address allocation conflict.
  • a method for resolving an IP address allocation conflict may include: 101.
  • a relay device receives a request message sent by a user terminal for requesting an IP address to be allocated.
  • the relay device referred to in the embodiment may be, for example, an access device (corresponding network architecture such as shown in FIG. 2-a), an edge router (corresponding network architecture such as shown in FIG. 2-b), a Bras server, or deployed in a DHCP server.
  • Other devices that can relay DHCP messages with the user terminal.
  • a user terminal may send a request message for requesting allocation of an IP address during a network access procedure to request a DHCP server to assign an IP address to it.
  • the relay device deployed between the user terminal and the DHCP server may receive a request message sent by the user terminal for requesting to allocate an IP address, where the request message for requesting the allocation of the IP address may be, for example, a dynamic host configuration protocol.
  • the relay device forwards the request message to a DHCP server.
  • the DHCP server allocates an IP address to the user terminal after receiving the request message for requesting the assignment of the IP address. If the DHCP server is a DHCPv4 server, the DHCPv4 server can allocate an IPv4 address to the user terminal. If the DHCP server is a DHCPv6 server, the DHCPv6 server can allocate an IPv6 address to the user terminal.
  • the DHCP server may allocate the request message to the user terminal after receiving the request message for requesting the IP address.
  • a conflicting IP address for example, the DHCP server active/standby switchover, system restart, IP address allocation algorithm failure, or DHCP server system failure.
  • the relay device receives a request response message sent by the DHCP server.
  • the request response message carries an IP address assigned by the DHCP server to the user terminal. If the DHCP server is a DHCPv4 server, and the DHCPv4 server allocates an IPv4 address to the user terminal, requesting a response message (such as an ACK message) ) carrying the IP v4 address assigned by the DHCP v4 server to the user terminal; if the DHCP server is a DHCPv6 server, The DHCPv6 server allocates an IPv6 address to the user terminal, and the request response message (for example, a Reply message or a Relay_Reply message) may carry an IP v6 address allocated by the DHCP v6 server to the user terminal.
  • a response message such as an ACK message
  • the relay device detects, according to the online information of the user, whether there is an allocation conflict in the IP address.
  • the relay device can obtain the online information of the user that is currently accessing the network through the user terminal, where the user online information may include the user.
  • the IP address of the terminal may also include a communication port number of the user terminal, a media access control (MAC, Media Access Control) address, a virtual local area network (VLAN) identifier, and the like.
  • the relay device (for example, the access device, etc.) can, for example, maintain a user data management table, which can record the user online information of the user terminal through which the network is accessed, in the user data management table, and then utilize the user data management. Table to maintain management user online information.
  • the relay device can detect, for example, whether at least one of the IP addresses of the user terminals currently accessing the network is the same as the IP address carried by the request response message; if yes, indicating the IP carried by the request response message.
  • the address has an allocation conflict; if not, it indicates that there is no allocation conflict in the IP address carried in the request response message.
  • step 105 is performed;
  • step 106 is performed.
  • the relay device terminates the request response message and notifies the DHCP server of the IP address allocation conflict.
  • the relay device may send, for example, a DECLINE message carrying the IP with the allocation conflict to the DHCP server, to notify the DHCP server of the IP address allocation conflict by using the DECLINE message, of course, the relay device
  • the DHCP server may also send another text carrying the IP with the allocation conflict to notify the DHCP server of the IP address allocation conflict by using the other text.
  • the DHCP server may mark the IP address of the assigned conflict as assigned to avoid subsequent assignment of the IP address to the user terminal.
  • the relay device may resend the request message for requesting the allocation of the IP address, for example, after a predetermined time period, to re-request the DHCP server. Assign an IP address to it.
  • the relay device may send an event alarm message to the network management server, where the event alarm message carries the indication information that the DHCP server has an IP address allocation conflict fault; the network management server can learn the above.
  • the DHCP server has an IP address allocation conflict fault and can initiate a corresponding troubleshooting mechanism.
  • the relay device forwards the request response message to the user terminal.
  • the user terminal may obtain an IP address assigned by the DHCP server from the request response message.
  • the relay device in the embodiment detects whether the IP address has an allocation conflict according to the online information of the user. If there is an allocation conflict, the request response message is terminated and the DHCP server is notified of the IP address allocation conflict. The relay device terminates the request response message sent to the user terminal carrying the IP address of the allocation conflict, and notifies the DHCP server.
  • the IP address allocation conflicts Therefore, the user terminal does not obtain the IP address to which the conflict is assigned, and the DHCP server also learns the IP address allocation conflict, so that the DHCP server can be prevented from subsequently assigning the conflicting IP address to the user terminal.
  • the solution in this embodiment can effectively solve the problem that the DHCP server allocates IP address conflicts, thereby improving system communication reliability.
  • the following is taken as an example in the implementation of the network architecture shown in FIG.
  • another method for resolving IP address allocation conflicts may include:
  • the user terminal sends a discovery (Discover) message.
  • discovery Discover
  • the access device forwards the foregoing Discover message to the DHCP server.
  • the DHCP server After receiving the Discover message, the DHCP server sends an offer message.
  • the access device forwards the foregoing offer message to the user terminal.
  • the user terminal sends a DHCP Request message.
  • the DHCP Request ⁇ text may carry information such as a user identifier.
  • the access device forwards the DHCP Request message to the DHCP server.
  • the server allocates an IP address to the user terminal.
  • the DHCP server may allocate the request message to the user terminal after receiving the request message for requesting the IP address.
  • a conflicting IP address for example, the DHCP server active/standby switchover, system restart, IP address allocation algorithm failure, or DHCP server system failure.
  • the DHCP server sends a request response message carrying an IP address assigned to the user terminal. If the DHCP server is a DHCPv4 server, the DHCPv4 server allocates an IPv4 address to the user terminal, and the DHCP server can send the user as a user.
  • the ACK message of the IPv4 address assigned by the terminal that is, the request response message is an ACK message
  • the DHCP server is a DHCPv6 server
  • the DHCPv6 server allocates an IPv6 address to the user terminal, and the DHCP server can send and carry the user terminal for distribution.
  • the Reply message or the Relay_Reply message of the IPv6 address that is, the request response message is a Reply message or a Relay_Reply message).
  • the access device receives the request response packet carrying the IP address allocated by the DHCP server for the user terminal, and detects, according to the online information of the user, whether the IP address assigned by the DHCP server to the user terminal has an allocation conflict.
  • the user terminals on the user side of the access device are separated by Layer 2, and the user terminals cannot detect IP conflicts themselves and may affect each other. Therefore, this embodiment is considered to be excluded
  • the access device can quickly locate the IP address allocation conflict, and try to avoid the problem that the DHCP server allocates address conflicts and affects communication.
  • the access device can obtain the online information of the user that is currently accessing the network through the user terminal, where the online information of the user can include the IP address of the user terminal, the communication port number of the user terminal, and the media access. Control MAC address, virtual LAN VLAN ID, and so on.
  • the access device can, for example, maintain a user data management table, which can record the user online information of the user terminal through which the network is accessed, in the user data management table, and then use the user data management table to maintain the management user online information.
  • the access device can detect, for example, whether at least one of the IP addresses of the user terminals currently accessing the network is the same as the IP address carried by the request response message; if yes, indicating the IP carried by the request response message.
  • the address has an allocation conflict; if not, it indicates that there is no allocation conflict in the IP address carried in the request response message.
  • step 310 is performed; If there is no allocation conflict, step 312 is performed.
  • the access device terminates the request response message and sends a DECLINE message carrying the IP address of the allocated conflict to the DHCP server.
  • the access device may send, for example, a DECLINE message carrying an IP address with a conflicting assignment to the DHCP server, to notify the DHCP server of the IP address allocation conflict through the DECLINE message, and of course, the access device device also
  • the DHCP server may send another text carrying the IP address of the allocation conflict to notify the DHCP server of the IP address allocation conflict by using the other text.
  • the DHCP server may mark the IP address of the allocation conflict as allocated to avoid The IP address is then assigned to the user terminal.
  • the user terminal cannot receive the request response message, and the user terminal may resend the DHCP Request message after the predetermined time, for example, to request the DHCP server to allocate an IP address for the DHCP server. .
  • the access device sends an event alarm message to the network management server.
  • the event alarm message carries the indication information that the DHCP server has an IP address allocation conflict fault.
  • the network management server can learn from the above that the DHCP server has an IP address allocation conflict, and can initiate a corresponding troubleshooting mechanism.
  • step 310 there is no inevitable sequence between step 310 and step 311.
  • the access device forwards the request response message to the user terminal.
  • the user terminal can obtain an IP address assigned by the DHCP server from the request response message, and then the IP address can be used for communication.
  • the solution for solving the IP address allocation conflict is solved by using an access device as an example, and is used, for example, between an edge router, a Bras server, or a DHCP server and a user terminal.
  • Other devices that can relay DHCP messages to solve the DHCP server IP address allocation conflict can be deduced.
  • the access device in this embodiment is sent by the DHCP server.
  • the DHCP server After the DHCP server sends a request response message to the IP address assigned by the user terminal, detecting whether the IP address has an allocation conflict according to the online information of the user; if there is an allocation conflict, terminating the request response message and notifying the DHCP server of the IP address allocation conflict.
  • the access device terminates the transmission to the user terminal Carrying a request response message with a conflicting IP address, and notifying the DHCP server of the IP address allocation conflict, therefore, the user terminal does not obtain the IP address to which the conflict is assigned, and the DHCP server is also aware of the IP address allocation conflict, and thus It can be avoided that the DHCP server subsequently allocates the conflicting IP address to the user terminal. It can be seen that the solution in this embodiment can effectively solve the problem that the DHCP server allocates IP address conflicts, thereby improving system communication reliability.
  • an embodiment of the present invention provides a relay device 400, which may include: a first receiving module 410, a first sending module 420, a second receiving module 430, a conflict detecting module 440, and a conflict control module 450.
  • the first receiving module 410 is configured to receive a request message sent by the user terminal for requesting to allocate an IP address.
  • the first sending module 420 is configured to forward the request message to the dynamic host configuration protocol server
  • the second receiving module 430 is configured to receive the request response message sent by the dynamic host configuration protocol server, where the request response message carries the foregoing dynamic The IP address assigned by the host configuration protocol server to the user terminal;
  • the DHCPv4 server can allocate an IPv4 address to the user terminal, and the request response message (such as an ACK message) received by the second receiving module 430 can carry the DHCP v4 server as the If the DHCP server is a DHCPv6 server, and the DHCPv6 server allocates an IPv6 address to the user terminal, the second receiving module 430 receives the request response message (for example, a Reply message or a Relay_Reply message).
  • the IP v6 address assigned by the DHCP v6 server to the user terminal may be carried.
  • the conflict detection module 440 is configured to detect, according to the online information of the user, whether the IP address has an allocation conflict
  • the conflict control module 450 is configured to: when the conflict detection module 440 detects that the IP address has an allocation conflict, terminate the request response message and notify the dynamic host configuration protocol server of the IP address allocation conflict.
  • the user online information may include, for example, an IP address of a user terminal currently accessing the network through the relay device 400;
  • the conflict detection module 440 is specifically configured to: detect whether at least one of the IP addresses of the user terminals currently accessing the network through the relay device 400 is the same as the IP address carried in the request response message; if yes, the request response message carries There is an allocation conflict in the IP address; if not, it means that there is no allocation conflict in the IP address carried in the request response message.
  • the relay device 400 further includes:
  • the alarm module 460 is configured to: when the conflict detection module 440 detects that there is an allocation conflict, send an event alarm message to the network management server, where the event alarm message carries the indication information that the dynamic host configuration protocol server has an IP address allocation conflict fault.
  • the second receiving module 430 is specifically configured to receive the ACK packet sent by the dynamic host configuration protocol server, where the ACK packet carries the dynamic host configuration protocol server allocated to the user terminal. And receiving the relay Reply message or the Relay_Reply message sent by the dynamic host configuration protocol server, where the Reply message or the Relay_Reply message carries the IPv6 address allocated by the dynamic host configuration protocol server for the user terminal.
  • the relay device 400 can be, for example, an access device, an edge router, or a Bras server or other device that can be used to relay DHCP messages between the DHCP server and the user terminal.
  • relay device 400 of the present embodiment can be implemented as the relay device in the foregoing method embodiment, and the functions of the foregoing functional modules can be specifically implemented according to the method described in the foregoing method embodiment.
  • the related descriptions in the above embodiments are not described herein again.
  • the relay device 400 in the embodiment detects whether the IP address has an allocation conflict according to the online information of the user. If there is an allocation conflict, the request response message is terminated and the DHCP server is notified of the IP address allocation conflict, because the relay device 400 terminates the request response message addressed to the user terminal carrying the IP address of the allocation conflict, and notifies the above
  • the DHCP server has a conflict in the IP address allocation. Therefore, the user terminal does not obtain the IP address to which the conflict is assigned.
  • the DHCP server also learns the IP address allocation conflict, so the DHCP service can be avoided. The server then assigns the conflicting IP address to the user terminal, thereby improving system communication reliability.
  • the embodiment of the invention further provides a communication system, which may include: a relay device 400.
  • an embodiment of the present invention further provides a communication system, including:
  • the relay device 510 is configured to receive a request message sent by the user terminal for requesting to allocate an IP address, forward the request message to the DHCP server 520, and receive a request response message sent by the DHCP server 520, where the request response message carries
  • the DHCP server 520 allocates an IP address to the user terminal; detects whether the IP address has an allocation conflict according to the user online information; if there is an allocation conflict, terminates the request response message and notifies the DHCP server 520 of the IP address allocation conflict.
  • the relay device 510 may also send an event alarm message to the network management server, where the event alarm message carries the indication information that the DHCP server 520 has an IP address allocation conflict fault; the network management server can learn from this.
  • the DHCP server 520 has an IP address allocation conflict failure and can initiate a corresponding troubleshooting mechanism.
  • the relay device 510 of this embodiment can be the relay device 400 in the above embodiment.
  • the relay device in the embodiment of the present invention detects whether the IP address has an allocation conflict according to the online information of the user; If there is an allocation conflict, the request response message is terminated and the DHCP server is notified of the IP address allocation conflict. The relay device terminates the request response message sent to the user terminal carrying the IP address of the allocation conflict, and notifies the DHCP server.
  • the IP address allocation conflicts Therefore, the user terminal does not obtain the IP address to which the conflict is assigned, and the DHCP server also learns the IP address allocation conflict, so that the DHCP server can be prevented from subsequently being the user terminal. Assign the conflicting IP address to improve system communication reliability.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: Read-only memory, random access memory, disk or optical disk, etc.

Abstract

一种解决网际协议IP地址分配冲突的方法及相关设备和系统。其中,一种解决网际协议地址分配冲突的方法,包括:中继设备接收用户终端发送的用于请求分配网际协议IP地址的请求消息;向动态主机配置协议服务器转发请求消息;接收动态主机配置协议服务器发送的请求响应消息,该请求响应消息携带动态主机配置协议服务器为用户终端分配的IP地址;根据用户上线信息检测IP地址是否存在分配冲突;若存在分配冲突,则终结请求响应消息并通知动态主机配置协议服务器IP地址分配冲突。本发明实施例提供的技术方案能够解决DHCP服务器分配IP地址冲突的问题,进而提高系统通信可靠性。

Description

解决网际协议地址分配沖突的方法及相关设备和系统 技术领域
本发明涉及通信技术领域,具体涉及解决网际协议地址分配沖突的方法及 相关设备和系统。 背景技术
目前, 动态主机配置十办议(DHCP, Dynamic Host Configuration Protocol ) 服务器包括 DHCPv4 ( DHCP for Internet Protocol- v4 , IPv4动态主机配置协议 ) 服务器和 DHCPv6 ( DHCP for IPv6, IPv6动态主机配置协议)服务器等。 DHCP 服务器用于为网络中的用户终端分配网际协议( IP, Internet Protocol )地址(例 如 IPv4地址或 IPv6地址)。
当某一用户终端需通过接入设备接入网络时, 该用户终端向 DHCP服务器 申请分配 IP地址, DHCP服务器向该用户终端返回为其分配的 IP地址。 实践过 程中发现, DHCP服务器有时可能为某用户终端分配一个与已分配给其它用户 终端的 IP地址相同的 IP地址, 而若两个用户终端分配相同 IP地址, 就 ^艮可能因 IP地址沖突而造成通信异常。 发明内容
本发明实施例提供一种解决网际协议 IP地址分配沖突的方法及相关设备 和系统, 以期解决 DHCP服务器分配 IP地址沖突的问题, 进而提高系统通信可 靠性。
为解决上述技术问题, 本发明实施例提供的技术方案如下:
一种解决网际协议地址分配沖突的方法, 包括:
中继设备接收用户终端发送的用于请求分配网际协议 IP 地址的请求消 息;
向动态主机配置协议服务器转发所述请求消息;
接收所述动态主机配置协议服务器发送的请求响应消息,该请求响应消息 携带所述动态主机配置协议服务器为所述用户终端分配的 IP地址;
根据用户上线信息检测所述 IP地址是否存在分配沖突; 若存在分配沖突,则终结所述请求响应消息并通知所述动态主机配置协议 服务器所述 IP地址分配沖突。
一种中继设备, 包括:
第一接收模块, 用于接收用户终端发送的用于请求分配 IP地址的请求消 息;
第一发送模块, 用于向动态主机配置协议服务器转发所述请求消息; 第二接收模块,用于接收所述动态主机配置协议服务器发送的请求响应消 息, 其中, 所述请求响应消息携带有所述动态主机配置协议服务器为所述用户 终端分配的 IP地址;
沖突检测模块, 用于根据用户上线信息检测所述 IP地址是否存在分配沖
·
沖突控制模块, 用于当所述沖突检测模块检测出所述 IP地址存在分配沖 突时, 终结所述请求响应消息并通知所述动态主机配置协议服务器所述 IP地 址分配沖突。
一种通信系统, 包括:
如本发明实施例所述的中继设备。
由上可见, 本发明实施例的中继设备在接收到 DHCP服务器发送的携带有 该 DHCP服务器为用户终端分配的 IP地址的请求响应消息后; 根据用户上线信 息检测该 IP地址是否存在分配沖突; 若存在分配沖突, 则终结该请求响应消息 并通知上述 DHCP服务器该 IP地址分配沖突, 由于中继设备终结了发往用户终 端的携带有分配沖突的 IP地址的请求响应消息, 并通知上述 DHCP服务器该 IP 地址分配沖突, 因此, 用户终端不会获得分配沖突的 IP地址, DHCP服务器也 因获知了该 IP地址分配沖突, 故而能够避免该 DHCP服务器后续再为该用户终 端分配该沖突的 IP地址, 可见, 本发明实施例方案能够有效解决 DHCP服务器 分配 IP地址沖突的问题, 进而提高系统通信可靠性。 附图说明
为了更清楚地说明本发明实施例和现有技术中的技术方案,下面将对实施 例和现有技术描述中所需要使用的附图作筒单地介绍,显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲,在不付 出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明实施例提供的一种解决网际协议 IP地址分配沖突的方法的流 程示意图;
图 2-a是本发明实施例提供的一种用户终端和 DHCP服务器的网络连接拓 朴结构示意图;
图 2-b是本发明实施例提供的另一种用户终端和 DHCP服务器的网络连接 拓朴结构示意图;
图 3是本发明实施例提供的另一种解决网际协议 IP地址分配沖突的方法的 流程示意图;
图 4-a是本发明实施例提供的一种中继设备结构示意图;
图 4-b是本发明实施例提供的另一种中继设备结构示意图;
图 5是本发明实施例提供的一种通信系统示意图。 具体实施方式
本发明实施例提供一种解决网际协议 IP地址分配沖突的方法及相关设备 和系统, 能够解决 DHCP服务器分配 IP地址沖突的问题, 进而提高系统通信可 靠性。
为使得本发明的发明目的、 特征、 优点能够更加的明显和易懂, 下面将结 合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 下面所描述的实施例仅仅是本发明一部分实施例, 而非全部的实施 例。基于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提 下所获得的所有其它实施例, 都属于本发明保护的范围。
下面通过具体实施例, 分别进行详细的说明。 本发明解决 IP地址分配沖突的方法的一个实施例, 可包括: 中继设备接 收用户终端发送的用于请求分配 IP地址的请求消息; 向 DHCP服务器转发该 请求消息; 接收该 DHCP服务器发送的请求响应消息, 该请求响应消息携带 有该 DHCP服务器为所述用户终端分配的 IP地址; 根据用户上线信息检测该 IP地址是否存在分配沖突; 若存在分配沖突, 则终结该请求响应消息并通知 上述 DHCP服务器该 IP地址分配沖突。
参见图 1、 本发明实施例提供的一种解决 IP地址分配沖突的方法, 可包括: 101、 中继设备接收用户终端发送的用于请求分配 IP地址的请求消息; 需要说明的是, 本发明实施例中所指的中继设备例如可为接入设备 (对应 网络架构例如图 2-a所示)、 边缘路由器(对应网络架构例如图 2-b所示)、 Bras 服务器或部署于 DHCP服务器与用户终端之间的其它可对 DHCP消息进行中继 的设备。
在一种应用场景下, 用户终端(如个人电脑、 移动终端或其它类型的用户 终端)在网络接入过程中可发送用于请求分配 IP地址的请求消息,以请求 DHCP 服务器为其分配 IP地址。 部署在用户终端和 DHCP服务器之间的中继设备可接 收到该用户终端发送的用于请求分配 IP地址的请求消息, 其中, 该用于请求分 配 IP地址的请求消息例如可为动态主机配置协议请求( DHCP Request )消息或 者其它用于请求分配 IP地址的请求消息, 其中, 该请求消息可携带例如用户标 识等信息。
102、 中继设备向 DHCP服务器转发该请求消息;
其中, DHCP服务器接收到该用于请求分配 IP地址的请求消息后, 为用户 终端分配 IP地址。 若该 DHCP服务器为 DHCPv4服务器, 则该 DHCPv4服务器可 为上述用户终端分配一个 IPv4地址, 若 DHCP服务器为 DHCPv6服务器, 则该 DHCPv6服务器可为上述用户终端分配一个 IPv6地址。
实践过程中发现, 例如 DHCP服务器主备切换、 系统重启、 IP地址分配算 法故障或 DHCP服务器系统故障等场景下, 接收到用于请求分配 IP地址的请求 消息后, DHCP服务器可能会为用户终端分配一个沖突的 IP地址。
103、 中继设备接收该 DHCP服务器发送的请求响应消息;
其中, 该请求响应消息携带有该 DHCP服务器为上述用户终端分配的 IP地 址; 若该 DHCP服务器为 DHCPv4服务器, 该 DHCPv4服务器为上述用户终端分 配了一个 IPv4地址, 则请求响应消息(如 ACK报文)可携带有该 DHCP v4服务 器为上述用户终端分配的 IP v4地址; 若 DHCP服务器为 DHCPv6服务器, 该 DHCPv6服务器为上述用户终端分配了一个 IPv6地址, 则该请求响应消息 (例 如 Reply报文或 Relay_Reply报文)可携带有该 DHCP v6服务器为上述用户终端 分配的 IP v6地址。
104、 中继设备根据用户上线信息检测该 IP地址是否存在分配沖突; 在实际应用中,中继设备能够获得当前通过其接入网络的用户终端的用户 上线信息, 其中, 用户上线信息可包括用户终端的 IP地址、 还可包括该用户终 端的通信端口号、 介质访问控制 (MAC, Media Access Control )地址、 虚拟 局域网 ( VLAN, Virtual Local Area Network )标识等。 中继设备 (例如接入设 备等 )例如可一张维护用户数据管理表, 其可将通过其接入网络的用户终端的 用户上线信息记录在该用户数据管理表中,进而利用该用户数据管理表来维护 管理用户上线信息。
在实际应用中, 中继设备例如可检测当前通过其接入网络的用户终端的 IP 地址中的至少一个是否与上述请求响应消息携带的 IP地址相同; 若是, 则表示 该请求响应消息携带的 IP地址存在分配沖突; 若否, 则表示该请求响应消息携 带的 IP地址不存在分配沖突。
若存在分配沖突, 则执行步骤 105;
若不存在分配沖突, 则执行步骤 106。
105、中继设备终结该请求响应消息并通知上述 DHCP服务器该 IP地址分配 沖突;
在实际应用中, 中继设备例如可向上述 DHCP服务器发送携带有分配沖突 的 IP的拒绝( DECLINE )报文, 以通过该 DECLINE报文通知上述 DHCP服务器 该 IP地址分配沖突, 当然, 中继设备亦可向 DHCP服务器发送携带有分配沖突 的 IP的其它 文, 以通过该其它 文来通知上述 DHCP良务器该 IP地址分配沖 突。 DHCP服务器可将该分配沖突的 IP地址标记为已分配, 以避免后续再为用 户终端分配该 IP地址。
若中继设备终结了上述请求响应消息,则上述用户终端就不能接收到该请 求响应消息,该用户终端例如可在预定时长后重新发送用于请求分配 IP地址的 请求消息, 以重新请求 DHCP服务器为其分配 IP地址。 此外, 若检测到存在分配沖突, 中继设备还可向网管服务器发送事件告警 消息, 其中, 该事件告警消息携带有上述 DHCP服务器存在 IP地址分配沖突故 障的指示信息; 网管服务器可据此获知上述 DHCP服务器存在 IP地址分配沖突 故障, 并可启动相应的故障排除机制。
106、 中继设备向用户终端转发该请求响应消息。
用户终端若接收到该请求响应消息, 则可从该请求响应消息中获得 DHCP 服务器为其分配的 IP地址。
由上可见, 本实施例中的中继设备在接收到 DHCP服务器发送的携带有该 DHCP服务器为用户终端分配的 IP地址的请求响应消息后; 根据用户上线信息 检测该 IP地址是否存在分配沖突; 若存在分配沖突, 则终结该请求响应消息并 通知上述 DHCP服务器该 IP地址分配沖突, 由于中继设备终结了发往用户终端 的携带有分配沖突的 IP地址的请求响应消息, 并通知上述 DHCP服务器该 IP地 址分配沖突, 因此, 用户终端不会获得分配沖突的 IP地址, DHCP服务器也因 获知了该 IP地址分配沖突, 故而能够避免该 DHCP服务器后续再为该用户终端 分配该沖突的 IP地址, 可见, 本实施例方案能够有效解决 DHCP服务器分配 IP 地址沖突的问题, 进而提高系统通信可靠性。 为更好的理解和实施本发明实施例的技术方案, 下面以在例如 2-a所示网 络架构中实施方案为例进行介绍。
参见图 3, 本发明实施例提供的另一种解决 IP地址分配沖突的方法, 可包 括:
301、 用户终端发送发现(Discover )报文;
302、 接入设备向 DHCP服务器转发上述 Discover报文;
303、 DHCP服务器接收到上述 Discover报文后, 发送要约 (offer )报文;
304、 接入设备向用户终端转发上述 offer报文;
305、 用户终端发送 DHCP Request报文;
其中, DHCP Request^文中可携带例如用户标识等等信息。
306、 接入设备向 DHCP服务器转发上述 DHCP Request报文;
307、 务器为用户终端分配 IP地址; 实践过程中发现, 例如 DHCP服务器主备切换、 系统重启、 IP地址分配算 法故障或 DHCP服务器系统故障等场景下, 接收到用于请求分配 IP地址的请求 消息后, DHCP服务器可能会为用户终端分配一个沖突的 IP地址。
308、 DHCP服务器发送携带有为用户终端分配的 IP地址的请求响应报文; 其中, 若 DHCP服务器为 DHCPv4服务器, 该 DHCPv4服务器为上述用户终 端分配了一个 IPv4地址, DHCP服务器可发送有携带为用户终端分配的 IPv4地 址的 ACK报文(即请求响应报文为 ACK报文); 若 DHCP服务器为 DHCPv6服务 器, 该 DHCPv6服务器为上述用户终端分配了一个 IPv6地址, DHCP服务器可 发送携带为用户终端分配的 IPv6地址的 Reply报文或 Relay_Reply报文(即请求 响应报文为 Reply报文或 Relay_Reply报文 )。
309、接入设备接收携带有 DHCP服务器为用户终端分配的 IP地址的请求响 应报文, 根据用户上线信息检测该 DHCP服务器为用户终端分配的 IP地址是否 存在分配沖突;
其中, 由于接入设备用户侧的用户终端之间是二层隔离的, 用户终端自身 无法检测出 IP沖突因而可能相互影响通信。 因此, 本实施例考虑在既需排除
DHCP服务器故障, 接入设备上也可迅速定位 IP地址分配沖突故障, 进而尽量 规避 DHCP服务器分配地址沖突导致影响通信的问题。
在实际应用中,接入设备能够获得当前通过其接入网络的用户终端的用户 上线信息, 其中, 用户上线信息可包括用户终端的 IP地址、 还可包括该用户终 端的通信端口号、介质访问控制 MAC地址、虚拟局域网 VLAN标识等。接入设 备例如可一张维护用户数据管理表,其可将通过其接入网络的用户终端的用户 上线信息记录在该用户数据管理表中,进而利用用户数据管理表来维护管理用 户上线信息。
在实际应用中,接入设备例如可检测当前通过其接入网络的用户终端的 IP 地址中的至少一个是否与上述请求响应消息携带的 IP地址相同; 若是, 则表示 该请求响应消息携带的 IP地址存在分配沖突; 若否, 则表示该请求响应消息携 带的 IP地址不存在分配沖突。
若存在分配沖突, 则执行步骤 310; 若不存在分配沖突, 则执行步骤 312。
310、 接入设备终结该请求响应消息并向 DHCP服务器发送携带该分配沖 突的 IP地址的拒绝(DECLINE )报文;
在实际应用中, 接入设备例如可向上述 DHCP服务器发送携带有分配沖突 的 IP地址的 DECLINE报文,以通过该 DECLINE"^文通知上述 DHCP服务器该 IP 地址分配沖突, 当然接入设备设备亦可向 DHCP服务器发送携带有分配沖突的 IP地址的其它 文, 以通过该其它 文通知上述 DHCP良务器该 IP地址分配沖 突。 DHCP服务器可将该分配沖突的 IP地址标记为已分配, 以避免后续再为用 户终端分配该 IP地址。
若接入设备终结了上述请求响应消息,则上述用户终端就不能接收到该请 求响应消息,该用户终端例如可在预定时长后重新发送 DHCP Request^文, 以 重新请求 DHCP服务器为其分配 IP地址。
311、 接入设备向网管服务器发送事件告警消息;
其中, 该事件告警消息携带有上述 DHCP服务器存在 IP地址分配沖突故障 的指示信息。 网管服务器则可据此获知上述 DHCP服务器存在 IP地址分配沖突 故障, 并可启动相应的故障排除机制。
可以理解, 步骤 310和步骤 311之间没有必然的先后顺序。
312、 接入设备向用户终端转发该请求响应消息。
用户终端若接收到该请求响应消息, 则可从该请求响应消息中获得 DHCP 服务器为其分配的 IP地址, 后续便可利用该 IP地址进行通信。
需要说明的是,本实施例中主要是以利用接入设备来解决解决 IP地址分配 沖突的方案为例进行描述的, 而利用例如边缘路由器、 Bras服务器或部署于 DHCP服务器与用户终端之间的其它可对 DHCP消息进行中继的设备, 来解决 解决 DHCP服务器 IP地址分配沖突的方案可以此类推。
由上可见, 本实施例中的接入设备在接收到 DHCP服务器发送的携带有该
DHCP服务器为用户终端分配的 IP地址的请求响应消息后; 根据用户上线信息 检测该 IP地址是否存在分配沖突; 若存在分配沖突, 则终结该请求响应消息并 通知上述 DHCP服务器该 IP地址分配沖突, 由于接入设备终结了发往用户终端 的携带有分配沖突的 IP地址的请求响应消息, 并通知上述 DHCP服务器该 IP地 址分配沖突, 因此, 用户终端不会获得分配沖突的 IP地址, DHCP服务器也因 获知了该 IP地址分配沖突, 故而能够避免该 DHCP服务器后续再为该用户终端 分配该沖突的 IP地址, 可见, 本实施例方案能够有效解决 DHCP服务器分配 IP 地址沖突的问题, 进而提高系统通信可靠性。
为便于更好的实施本发明实施例的上述方案,下面还提供用于实施上述方 法的相关装置。 参见图 4-a、 本发明实施例提供一种中继设备 400, 可以包括: 第一接收模 块 410、 第一发送模块 420、 第二接收模块 430、 沖突检测模块 440和沖突控制模 块 450。
其中, 第一接收模块 410, 用于接收用户终端发送的用于请求分配 IP地 址的请求消息;
第一发送模块 420 , 用于向动态主机配置协议服务器转发上述请求消息; 第二接收模块 430, 用于接收上述动态主机配置协议服务器发送的请求响 应消息, 其中, 上述请求响应消息携带有上述动态主机配置协议服务器为上述 用户终端分配的 IP地址;
其中, 若该 DHCP服务器为 DHCPv4服务器, 该 DHCPv4服务器可为用 户终端分配了一个 IPv4地址,则第二接收模块 430接收到的请求响应消息(如 ACK报文)可携带有该 DHCP v4服务器为该用户终端分配的 IP v4地址; 若 DHCP服务器为 DHCPv6服务器, 该 DHCPv6服务器为上述用户终端分配了 一个 IPv6地址, 则第二接收模块 430接收到的该请求响应消息 (例如 Reply 报文或 Relay_Reply报文)可携带有该 DHCP v6服务器为上述用户终端分配的 IP v6地址。
沖突检测模块 440, 用于根据用户上线信息检测上述 IP地址是否存在分 配沖突;
沖突控制模块 450, 用于当沖突检测模块 440检测出上述 IP地址存在分 配沖突时,终结上述请求响应消息并通知上述动态主机配置协议服务器上述 IP 地址分配沖突。 在一种应用场景下, 用户上线信息例如可包括: 当前通过中继设备 400 接入网络的用户终端的 IP地址;
沖突检测模块 440可具体用于,检测当前通过中继设备 400接入网络的用 户终端的 IP地址中的至少一个是否与上述请求响应消息携带的 IP地址相同; 若是, 则表示上述请求响应消息携带的 IP地址存在分配沖突; 若否, 则表示 上述请求响应消息携带的 IP地址不存在分配沖突。
参见图 4-b, 在一种应用场景下, 中继设备 400还包括:
告警模块 460, 用于当沖突检测模块 440检测出存在分配沖突时, 向网管 服务器发送事件告警消息, 其中, 该事件告警消息携带上述动态主机配置协议 服务器存在 IP地址分配沖突故障的指示信息。
在一种应用场景下, 第二接收模块 430可具体用于,接收上述动态主机配 置协议服务器发送的 ACK报文, 其中, 上述 ACK报文携带有上述动态主机 配置协议服务器为上述用户终端分配的 IPv4地址; 或者, 接收上述动态主机 配置协议服务器发送的中继 Reply报文或 Relay_Reply报文, 该 Reply报文或 Relay_Reply报文携带有上述动态主机配置协议服务器为上述用户终端分配的 IPv6地址。
在一种应用场景下, 中继设备 400例如可为接入设备、边缘路由器或 Bras 服务器或部署于 DHCP服务器与用户终端之间的其它可对 DHCP消息进行中 继的设备。
可以理解的是,本实施例的中继设备 400可如上述方法实施例中的中继设 备, 其各个功能模块上述的功能可以根据上述方法实施例介绍的方法具体实 现, 其具体实现过程可以参见上述实施例中的相关描述, 在此不再赘述。
由上可见, 本实施例中的中继设备 400在接收到 DHCP服务器发送的携 带有该 DHCP服务器为用户终端分配的 IP地址的请求响应消息后; 根据用户 上线信息检测该 IP地址是否存在分配沖突; 若存在分配沖突, 则终结该请求 响应消息并通知上述 DHCP服务器该 IP地址分配沖突, 由于中继设备 400终 结了发往用户终端的携带有分配沖突的 IP地址的请求响应消息, 并通知上述 DHCP服务器该 IP地址分配沖突, 因此, 用户终端不会获得分配沖突的 IP地 址, DHCP服务器也因获知了该 IP地址分配沖突, 故而能够避免该 DHCP服 务器后续再为该用户终端分配该沖突的 IP地址, 进而提高系统通信可靠性。 本发明实施例还提供一种通信系统, 可包括: 中继设备 400。
参见图 5、 本发明实施例还提供一种通信系统, 包括:
中继设备 510和 DHCP服务器 520;
其中, 中继设备 510, 用于接收用户终端发送的用于请求分配 IP地址的请 求消息; 向 DHCP服务器 520转发该请求消息; 接收该 DHCP服务器 520发送的 请求响应消息,该请求响应消息携带有该 DHCP服务器 520为用户终端分配的 IP 地址; 根据用户上线信息检测该 IP地址是否存在分配沖突; 若存在分配沖突, 则终结该请求响应消息并通知 DHCP服务器 520该 IP地址分配沖突。
此外, 若检测到存在分配沖突, 中继设备 510还可向网管服务器发送事件 告警消息,其中,该事件告警消息携带有 DHCP服务器 520存在 IP地址分配沖突 故障的指示信息;网管服务器可据此获知 DHCP服务器 520存在 IP地址分配沖突 故障, 并可启动相应的故障排除机制。
本实施例的中继设备 510可如上述实施例中的中继设备 400。
需要说明的是, 对于前述的各方法实施例, 为了筒单描述, 故将其都表述 为一系列的动作组合,但是本领域技术人员应该知悉, 本发明实施例并不受所 描述的动作顺序的限制, 因为依据本发明实施例, 某些步骤可以采用其他顺序 或者同时进行。 其次, 本领域技术人员也应该知悉, 说明书中所描述的实施例 均属于优选实施例, 所涉及的动作和模块并不一定是本发明所必须的。
在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没 有详述的部分, 可以参见其他实施例的相关描述。
综上, 本发明实施例中的中继设备在接收到 DHCP服务器发送的携带有该 DHCP服务器为用户终端分配的 IP地址的请求响应消息后; 根据用户上线信息 检测该 IP地址是否存在分配沖突; 若存在分配沖突, 则终结该请求响应消息并 通知上述 DHCP服务器该 IP地址分配沖突, 由于中继设备终结了发往用户终端 的携带有分配沖突的 IP地址的请求响应消息, 并通知上述 DHCP服务器该 IP地 址分配沖突, 因此, 用户终端不会获得分配沖突的 IP地址, DHCP服务器也因 获知了该 IP地址分配沖突, 故而能够避免该 DHCP服务器后续再为该用户终端 分配该沖突的 IP地址, 进而提高系统通信可靠性。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步 骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读 存储介质中, 存储介质可以包括: 只读存储器、 随机存储器、 磁盘或光盘等。
以上对本发明实施例所提供的解决网际协议 IP地址分配沖突的方法及相 方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心 思想; 同时, 对于本领域的一般技术人员, 依据本发明的思想, 在具体实施方 式及应用范围上均会有改变之处, 综上, 本说明书内容不应理解为对本发明的 限制。

Claims

权 利 要 求
1、 一种解决网际协议地址分配沖突的方法, 其特征在于, 包括: 中继设备接收用户终端发送的用于请求分配网际协议 IP 地址的请求消 息;
向动态主机配置协议服务器转发所述请求消息;
接收所述动态主机配置协议服务器发送的请求响应消息,该请求响应消息 携带所述动态主机配置协议服务器为所述用户终端分配的 IP地址;
根据用户上线信息检测所述 IP地址是否存在分配沖突;
若存在分配沖突,则终结所述请求响应消息并通知所述动态主机配置协议 服务器所述 IP地址分配沖突。
2、 根据权利要求 1所述的方法, 其特征在于,
所述用户上线信息包括:
当前通过所述中继设备接入网络的用户终端的 IP地址;
所述根据用户上线信息检测所述 IP地址是否存在分配沖突, 包括: 检测所述当前通过所述中继设备接入网络的用户终端的 IP地址中的至少 一个是否与所述请求响应消息携带的 IP地址相同; 若是, 则表示所述请求响 应消息携带的 IP地址存在分配沖突; 若否, 则表示所述请求响应消息携带的 IP地址不存在分配沖突。
3、 根据权利要求 1所述的方法, 其特征在于,
所述方法还包括:
若检测到存在分配沖突, 向网管服务器发送事件告警消息, 其中, 所述事 件告警消息携带有所述动态主机配置协议服务器存在 IP地址分配沖突故障的 指示信息。
4、 根据权利要求 1至 3任一项所述的方法, 其特征在于,
所述通知所述动态主机配置协议服务器所述 IP地址分配沖突, 包括: 向所述动态主机配置协议服务器发送携带有为所述用户终端分配的 IP地 址的拒绝 Decline报文。
5、 根据权利要求 1至 3任一项所述的方法, 其特征在于, 所述接收所述 动态主机配置协议服务器发送的请求响应消息,所述请求响应消息携带所述动 态主机配置协议服务器为所述用户终端分配的 IP地址, 包括:
接收所述动态主机配置协议服务器发送的 ACK报文, 所述 ACK报文携 带有所述动态主机配置协议服务器为所述用户终端分配的 IPv4地址;
或者,
接收所述动态主机配置协议服务器发送的中继 Reply报文或 Relay_Reply 报文, 其中, 所述 Reply报文或 Relay_Reply报文携带有所述动态主机配置协 议服务器为所述用户终端分配的 IPv6地址。
6、 一种中继设备, 其特征在于, 包括:
第一接收模块, 用于接收用户终端发送的用于请求分配 IP地址的请求消 息;
第一发送模块, 用于向动态主机配置协议服务器转发所述请求消息; 第二接收模块,用于接收所述动态主机配置协议服务器发送的请求响应消 息, 其中, 所述请求响应消息携带有所述动态主机配置协议服务器为所述用户 终端分配的 IP地址;
沖突检测模块, 用于根据用户上线信息检测所述 IP地址是否存在分配沖
·
沖突控制模块, 用于当所述沖突检测模块检测出所述 IP地址存在分配沖 突时, 终结所述请求响应消息并通知所述动态主机配置协议服务器所述 IP地 址分配沖突。
7、 根据权利要求 6所述的中继设备, 其特征在于,
所述用户上线信息包括:
当前通过所述中继设备接入网络的用户终端的 IP地址;
所述沖突检测模块具体用于,检测所述当前通过所述中继设备接入网络的 用户终端的 IP地址中的至少一个是否与所述请求响应消息携带的 IP地址相 同; 若是, 则表示所述请求响应消息携带的 IP地址存在分配沖突; 若否, 则 表示所述请求响应消息携带的 IP地址不存在分配沖突。
8、 根据权利要求 6所述的中继设备, 其特征在于, 还包括:
告警模块, 用于当所述沖突检测模块检测出存在分配沖突时, 向网管服务 器发送事件告警消息, 其中, 所述事件告警消息携带所述动态主机配置协议服 务器存在 IP地址分配沖突故障的指示信息。
9、 根据权利要求 6至 8任一项所述的中继设备, 其特征在于, 所述第二接收模块具体用于, 接收所述动态主机配置协议服务器发送的 ACK报文, 其中, 所述 ACK报文携带有所述动态主机配置协议服务器为所述 用户终端分配的 IPv4地址; 或者, 接收所述动态主机配置协议服务器发送的 中继 Reply报文或 Relay_Reply报文, 该 Reply报文或 Relay_Reply报文携带 有所述动态主机配置协议服务器为所述用户终端分配的 IPv6地址。
10、 根据权利要求 6至 8任一项所述的中继设备, 其特征在于, 所述中继 设备为接入设备、 边缘路由器或 Bras服务器。
11、 一种通信系统, 其特征在于, 包括:
如权利要求 6至 10任一项所述的中继设备。
PCT/CN2011/080830 2011-10-17 2011-10-17 解决网际协议地址分配冲突的方法及相关设备和系统 WO2012163007A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2011/080830 WO2012163007A1 (zh) 2011-10-17 2011-10-17 解决网际协议地址分配冲突的方法及相关设备和系统
CN2011800020743A CN102439949A (zh) 2011-10-17 2011-10-17 解决网际协议地址分配冲突的方法及相关设备和系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/080830 WO2012163007A1 (zh) 2011-10-17 2011-10-17 解决网际协议地址分配冲突的方法及相关设备和系统

Publications (1)

Publication Number Publication Date
WO2012163007A1 true WO2012163007A1 (zh) 2012-12-06

Family

ID=45986279

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/080830 WO2012163007A1 (zh) 2011-10-17 2011-10-17 解决网际协议地址分配冲突的方法及相关设备和系统

Country Status (2)

Country Link
CN (1) CN102439949A (zh)
WO (1) WO2012163007A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888551A (zh) * 2012-12-19 2014-06-25 华为技术有限公司 一种网络中的因特网协议地址获取方法、中继设备及系统

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905580B (zh) * 2012-12-29 2018-02-27 锐迪科(重庆)微电子科技有限公司 Pc机通过移动终端配置网络地址、收发数据方法及系统
CN105657075A (zh) * 2014-11-11 2016-06-08 中兴通讯股份有限公司 Ip冲突检测及处理方法、无线热点设备
CN104410727B (zh) * 2014-11-20 2018-03-23 中国联合网络通信集团有限公司 地址分配方法、客户端、服务器及地址分配系统
CN107615723B (zh) * 2015-06-29 2020-04-14 华为技术有限公司 一种互联网协议地址分配方法和中继设备
CN105610962A (zh) * 2016-01-15 2016-05-25 华洋通信科技股份有限公司 一种防冲突移动终端ip地址分配中继设备及方法
CN106254571B (zh) * 2016-08-05 2020-12-18 新华三技术有限公司 一种客户端ip地址分配方法及装置
CN108377275B (zh) * 2018-02-11 2021-08-31 北京泰和利通科技有限公司 基于神经网络算法的网络安全防护方法
CN110190978A (zh) * 2018-02-23 2019-08-30 中兴通讯股份有限公司 一种避免冲突的方法、第一路由设备及存储介质
CN108712513B (zh) * 2018-03-27 2021-09-17 Oppo广东移动通信有限公司 网络地址设置方法、装置、终端设备及存储介质
CN108712514A (zh) * 2018-04-28 2018-10-26 新华三技术有限公司 Ip地址管理方法、装置以及电子设备
CN108712522B (zh) * 2018-07-20 2021-06-29 新华三技术有限公司 Ip地址分配方法和装置
CN110022383B (zh) * 2019-04-10 2022-03-25 广州热点软件科技股份有限公司 地址管理方法和系统
CN114363296B (zh) * 2020-09-30 2023-07-25 大唐移动通信设备有限公司 地址冲突检测方法、用户面网元以及控制面网元
CN114513491B (zh) * 2020-10-28 2023-04-11 华为技术有限公司 获取地址的方法、装置及系统
CN112866431A (zh) * 2021-01-19 2021-05-28 北京自如信息科技有限公司 一种ip地址的分配方法、装置及计算机设备
CN114338608A (zh) * 2021-12-30 2022-04-12 深圳市捷顺科技实业股份有限公司 一种自组网通信方法、设备及系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1437360A (zh) * 2002-02-07 2003-08-20 华为技术有限公司 通过点对点协议上网的用户获取互联网协议地址的方法
CN101951417A (zh) * 2010-09-21 2011-01-19 北京星网锐捷网络技术有限公司 多服务器地址分配方法、系统及中继设备
CN102143242A (zh) * 2010-10-21 2011-08-03 华为技术有限公司 Ip网络中地址分配方法、设备及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1845554B (zh) * 2005-12-06 2010-05-05 华为技术有限公司 一种在3g网络中动态分配ip地址的控制方法
DE102007036962A1 (de) * 2007-08-04 2009-02-05 Hirschmann Automation And Control Gmbh Verfahren zur DHCP Server-Konfiguration unter Verwendung von DHCP Option 82

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1437360A (zh) * 2002-02-07 2003-08-20 华为技术有限公司 通过点对点协议上网的用户获取互联网协议地址的方法
CN101951417A (zh) * 2010-09-21 2011-01-19 北京星网锐捷网络技术有限公司 多服务器地址分配方法、系统及中继设备
CN102143242A (zh) * 2010-10-21 2011-08-03 华为技术有限公司 Ip网络中地址分配方法、设备及系统

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888551A (zh) * 2012-12-19 2014-06-25 华为技术有限公司 一种网络中的因特网协议地址获取方法、中继设备及系统
CN103888551B (zh) * 2012-12-19 2017-09-12 华为技术有限公司 一种网络中的因特网协议地址获取方法、中继设备及系统
US10122679B2 (en) 2012-12-19 2018-11-06 Huawei Technologies Co., Ltd. Method, relay agent, and system for acquiring internet protocol address in network

Also Published As

Publication number Publication date
CN102439949A (zh) 2012-05-02

Similar Documents

Publication Publication Date Title
WO2012163007A1 (zh) 解决网际协议地址分配冲突的方法及相关设备和系统
JP5331163B2 (ja) Ipアドレス割り当てシステム、dhcpサーバ及びipアドレス割り当て方法
US10122679B2 (en) Method, relay agent, and system for acquiring internet protocol address in network
US10911368B2 (en) Gateway address spoofing for alternate network utilization
US9917724B2 (en) Access method and system of customer premise equipment, and broadband network gateway
EP2654268B1 (en) Address allocation processing method and apparatus
JP5488642B2 (ja) 可搬型ネットワーク接続装置及びその設定方法、並びに、コンピュータプログラム及び記録媒体
WO2019214560A1 (zh) 一种dhcp报文处理方法及装置
WO2011153886A1 (zh) Ip地址冲突避让方法、系统和dhcp服务器、客户端
WO2013071765A1 (zh) 为用户终端分配ip地址的方法、装置和系统
CN103001868A (zh) 用于虚拟路由器冗余协议备份组同步arp表项的方法和装置
WO2012109849A1 (zh) Mac地址分配方法和设备
WO2009149646A1 (zh) 端口切换方法、网络设备及网络系统
WO2011100907A2 (zh) 参数配置的方法和网元设备
WO2018161795A1 (zh) 一种路由优先级配置方法、设备以及控制器
WO2018006684A1 (zh) 报文处理方法、装置及路由器
WO2011140954A1 (zh) 远程ip地址获取方法及设备
CN105847143B (zh) 基于vrrp的负载均衡方法及系统
US20130086259A1 (en) Method for acquiring an ip address and network access device
WO2016177185A1 (zh) 媒体访问控制mac地址的处理方法及装置
JP2007274635A (ja) アドレス通知システム、アドレス通知方法
CN107172229B (zh) 路由器的配置方法及装置
JP6406712B2 (ja) 通信装置、通信方法、及びプログラム
WO2012034433A1 (zh) 会话监控处理方法和监控设备
CN108768798B (zh) 一种设备接入方法及装置

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180002074.3

Country of ref document: CN

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

Ref document number: 11866560

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

Country of ref document: EP

Kind code of ref document: A1