WO2012174914A1 - 控制地址配置方式的方法和设备 - Google Patents

控制地址配置方式的方法和设备 Download PDF

Info

Publication number
WO2012174914A1
WO2012174914A1 PCT/CN2012/073083 CN2012073083W WO2012174914A1 WO 2012174914 A1 WO2012174914 A1 WO 2012174914A1 CN 2012073083 W CN2012073083 W CN 2012073083W WO 2012174914 A1 WO2012174914 A1 WO 2012174914A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
address configuration
message
dhcp
slaac
Prior art date
Application number
PCT/CN2012/073083
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 EP12802305.8A priority Critical patent/EP2704403A4/en
Publication of WO2012174914A1 publication Critical patent/WO2012174914A1/zh
Priority to US14/095,238 priority patent/US20140095733A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5092Address allocation by self-assignment, e.g. picking addresses at random and testing if they are already in use
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and a device for controlling an address configuration manner.
  • IPv6 Internet Protocol version 6, Internet Protocol version 6
  • Dynamic Host Configure Protocol for IPv6 IPv6 dynamic host configuration protocol
  • ND Neighbor Discovery protocol
  • SLAAC Stateless Address Autoconfiguration
  • DHCPv6 is the IPv6 version of Dynamic Host Configuration Protocol (DHCP).
  • Typical DHCPv6 networking usually includes: DHCPv6 client and DHCPv6 server.
  • the DHCPv6 server assigns a complete IPv6 address to the DHCPv6 client and stores the binding relationship between the IPv6 address and the DHCPv6 client, thus enhancing the manageability of the network.
  • SLAAC is one of the key features of IPv6.
  • SLAAC automatically configures the host's IPv6 address using the ND protocol developed for IPv6.
  • the host After the host is online, the host sends an RS (Router Solicit) message to the router to request the address configuration.
  • the router After receiving the RS message, the router sends an RA (Router Advertisement) message to the host, which carries the address automatically.
  • the host obtains the address prefix information and the address-related parameter information, and automatically generates an IPv6 address according to the method specified by the SLAAC.
  • SLAAC and DHCPv6 address configurations may be available at the same time.
  • M Managed Configuration
  • the host will only select one of the address configuration methods for configuration.
  • the address configuration method used by a host is controlled by the default policy inside the host.
  • Windows 7 system defaults to DHCPv6 for address configuration; Linux system defaults to preferred
  • ND performs address configuration
  • the embodiment of the present invention provides a method for controlling an address configuration manner, including: the network side device specifies an address configuration mode for the terminal;
  • the network side device sends a message to the terminal, and notifies the terminal to perform address configuration according to an address configuration manner specified by the network side device;
  • the address configuration mode is a dynamic host configuration protocol DHCP mode or a stateless address configuration SLAAC mode.
  • an embodiment of the present invention provides a device for controlling an address configuration manner, including: a setting module, configured to specify an address configuration mode for the terminal;
  • a notification module configured to send a message to the terminal, to notify the terminal to perform address configuration according to an address configuration manner specified by the setting module;
  • the address configuration mode is a dynamic host configuration protocol DHCP mode or a stateless address configuration SLAAC mode.
  • the network side device specifies an address configuration mode for the terminal and sends a message to the terminal, notifying the terminal to perform address configuration according to the specified address configuration manner, and implementing the network side to terminal IP address.
  • the control of the configuration mode enhances the unified management of the terminal.
  • FIG. 1 is a flow chart of a method for controlling an address configuration manner according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for configuring a switch address configuration of a DHCP address provided by an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an OPTION_RECONF_SLAAC option according to an embodiment of the present invention
  • FIG. 4 is another schematic flowchart of a method for configuring a handover address of a terminal with a DHCP address according to an embodiment of the present invention
  • FIG. 5 is a schematic flowchart of a switch address configuration mode when a terminal requests a DHCP address according to an embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of a terminal switching address configuration party configured with a DHCP address according to an embodiment of the present invention. A further schematic diagram of the flow;
  • FIG. 7 is a schematic diagram of a first identifier provided by an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart of a method for configuring a terminal handover address of a configured SLAAC address according to an embodiment of the present disclosure
  • FIG. 9 is a schematic diagram of a second identifier provided by an embodiment of the present invention.
  • FIG. 10 is another schematic flowchart of a method for configuring a handover address of a terminal with a configured SLAAC address according to an embodiment of the present disclosure
  • Figure 11 is a schematic diagram of a device for controlling an address configuration according to an embodiment of the present invention
  • Figure 13 is a diagram showing a structure of a DHCP server according to an embodiment of the present invention
  • FIG. 14 is a structural diagram of a router according to an embodiment of the present invention.
  • the embodiment of the present invention relates to the control of the address configuration mode.
  • the network side device specifies an address configuration mode, and the terminal performs IP address configuration according to the specified address configuration mode.
  • the address configuration mode includes: performing stateful address configuration according to DHCPv6, or performing SLAAC stateless address configuration by using the ND protocol.
  • the terminal includes but is not limited to: a mobile terminal, a computer, etc., and may also be referred to as a host.
  • the DHCPv6 server on the network side allocates a complete IPv6 address to the terminal.
  • the router on the network side allocates information such as the prefix used for automatic address configuration. After receiving the packet, the terminal automatically generates an IPv6 address based on the prefix information.
  • the embodiment of the present invention does not specifically limit the time for the network side device to control the terminal address configuration mode, and may be controlled after the terminal configures the IP address, or may be controlled when the terminal initially requests the configuration of the IP address, and the address configuration mode may be implemented. control.
  • an embodiment of the present invention provides a method for controlling an address configuration manner, including:
  • the network side device specifies an address configuration mode for the terminal.
  • the address configuration mode includes: DHCP mode or SLAAC mode.
  • the network side device sends a message to the terminal, and notifies the terminal to specify according to the network side device.
  • the address configuration mode is used for address configuration.
  • the network side device may carry an identifier or an option in the sent message to notify the terminal to perform address configuration according to the specified address configuration manner.
  • This flag or option can be implemented by adding a new flag or option to an existing message.
  • 102 can include any of the following five ways:
  • the DHCP server sends a reconfiguration message to the terminal.
  • the reconfiguration message carries the SLAAC reconfiguration option to notify the terminal to perform address configuration in SLAAC mode.
  • the second type the DHCP server receives the DHCP request message sent by the terminal, and sends a DHCP response message to the terminal.
  • the DHCP response message carries the SLAAC reconfiguration option, and is used to notify the terminal to perform address configuration according to the SLAAC mode.
  • the router sends an RA message to the terminal, where the RA message carries the first identifier bit or the first mandatory address configuration option, and is used to notify the terminal to perform address configuration according to the SLAAC mode.
  • the router sends an RA message to the terminal, where the RA message carries a second identifier bit or a second mandatory address configuration option, which is used to notify the terminal to perform address configuration according to DHCP.
  • the router receives the RS message sent by the terminal and sends an RA message to the terminal, where the RA message carries the second identifier bit or the second mandatory address configuration option, and is used to notify the terminal to perform address configuration according to DHCP.
  • the network side device specifies an address configuration mode and sends a message to the terminal, notifying the terminal to perform address configuration according to the specified address configuration manner, thereby implementing network side control of the terminal IP address configuration mode, and enhancing Unified management of the terminal.
  • the following is specifically illustrated by different application scenarios.
  • another embodiment of the present invention provides a method for controlling an address configuration manner, which is applicable to an application scenario in which a terminal has been configured with a DHCPv6 address, but the network side wants to switch to the SLAAC address configuration mode, and the method includes:
  • the DHCP server sends a reconfiguration reconfiguration message to a terminal, where the message carries the OPTION_RECONF_SLAAC option, that is, the SLAAC reconfiguration option, where the terminal has configured the IP address according to DHCPv6.
  • the DHCP server can know which terminals have been configured with the address according to DHCPv6. If the DHCP server wants a terminal to switch to the SLAAC address configuration mode, it can send a reconfiguration message to it; When multiple terminals are switched to the SLAAC address configuration mode, a reconfiguration message is sent to each terminal.
  • the OPTION_RECONF_SLAAC option is a newly defined DHCPv6 option, and the option can be carried by a DHCPv6 reconfiguration message, as shown in FIG. 3, which is a schematic diagram of the option, and the length of the option can be set as required, and the embodiment of the present invention does not specifically limited.
  • the terminal receives the reconfiguration message sent by the DHCP server, and determines whether the reconfiguration message includes the OPTION_RECONF_SLAAC option. If yes, it determines to switch to the SLAAC address configuration mode, and sends an RS message to the local router to obtain an IP address prefix. Otherwise, it ends.
  • the local router refers to a router connected to the foregoing terminal, and the terminal can access the network through the router, and the router can allocate prefix information of the IP address to the terminal.
  • the router After receiving the RS message sent by the terminal, the router responds to the RA message to the terminal, where the RA message carries the assigned IP address prefix information.
  • the terminal After receiving the RA message, the terminal automatically configures an IP address in an SLAAC manner according to the IP address prefix information in the RA message.
  • the router may periodically broadcast an RA message to notify the terminal of the IP address prefix.
  • FIG. 4 another embodiment of the present invention provides a The method for controlling the address configuration mode is applicable to an application scenario in which the terminal has configured the address according to the DHCPv6, but the network side wants to switch to the SLAAC address configuration mode, and the router also supports the periodic broadcast RA message in the application scenario.
  • the router periodically sends an RA message to the terminal on the local link, where the RA message carries the IP address prefix information, and the terminal configured with the DHCPv6 address does not care about the RA message.
  • the DHCP server sends a reconfiguration reconfiguration message to the terminal configured with the DHCPv6 address, and the message carries the OPTION_RECONF_SLAAC option.
  • the terminal After receiving the reconfiguration message, the terminal determines to switch to the SLAAC address configuration mode according to the OPTION_RECONF_SLAAC option in the terminal, and receives the RA message broadcast by the local router again.
  • the terminal will not ignore the RA message, but according to the received RA message.
  • the IP address prefix information is used to automatically configure the IP address.
  • another embodiment of the present invention provides a method for controlling an address configuration manner, which is applicable to an application scenario in which a DHCPv6 configuration mode is preferred when a terminal is online, but the network side wants to switch to a SLAAC address configuration mode.
  • the terminal is connected to the network through a certain port.
  • the terminal will ask the network to assign an IP address to the port.
  • each network will assign an IP address to the corresponding port.
  • This embodiment is described by taking a terminal connected to the network through a port as an example. The scenario of the network is only a repetition of the method of this embodiment, and will not be explained too much.
  • the terminal requests the DHCP address to go online, and the DHCP address configuration mode is preferred by default. Therefore, the DHCP session is initiated and the DHCP Solicit message is sent. In addition, the terminal may simultaneously initiate a DHCP session and SLAAC session, where the DHCP Solicit message is responded by the DHCP server, and the RS message is not responded by the router.
  • the DHCP server After receiving the DHCP Solicit message, the DHCP server sends a DHCP reply response message to the terminal, where the message carries the 0PTI0N_REC0NF_SLAAC option, that is, the SLAAC reconfiguration option.
  • the terminal After receiving the DHCP reply message sent by the DHCP server, the terminal determines whether the message includes the 0PTI0N_REC0NF_SLAAC option. If yes, it determines to switch to the SLAAC address configuration mode, and sends an RS message to the local router to obtain an IP address prefix.
  • the router After receiving the RS message sent by the terminal, the router returns an RA message, where the prefix includes the IP address prefix information.
  • the terminal After receiving the RA message, the terminal performs SLAAC address configuration according to the IP address prefix information.
  • the router can also notify the terminal of the specified address configuration mode.
  • FIG. 6 another embodiment of the present invention provides a control address configuration manner. The method is applicable to an application in which the terminal has configured an address according to DHCPv6, but the network side wants to switch to the SLAAC address configuration mode.
  • the scenario, and the terminal in the application scenario further supports receiving and processing the RA message of the router, where the method includes:
  • the router sends an RA message to the terminal, where the RA message carries the first identifier bit or the first mandatory address configuration option.
  • the RA message may also carry the IP address prefix information, where the terminal has been followed.
  • DHCPv6 is configured with an IP address.
  • the first identifier bit may be specifically a new identifier bit that is extended in the reserved 6 bits of the RA message, such as the identifier bit "X", occupying 1 bit, and its value is 1 Indicates that the terminal performs address configuration in SLAAC mode.
  • the first identifier bit may also be replaced by the first mandatory address configuration option, such as the "Manatory Address Configuration" option in the RA message, to indicate that the terminal performs address configuration according to SLAAC.
  • the terminal After receiving the RA message, the terminal determines whether the RA message includes the first identifier bit or the first mandatory address configuration option, and if yes, determines to switch to the SLAAC address configuration mode, if the RA message carries the IP address.
  • the prefix information automatically generates an IP address based on the prefix information.
  • the terminal may initiate the ND protocol session, send the RS message request prefix information to the router, and perform the SLAAC address configuration after receiving the RA message of the router response.
  • the terminal in this embodiment has configured the address according to DHCPv6, it can still receive the RA message and perform corresponding judgment and processing. Therefore, the terminal can be notified by the router to perform handover.
  • another embodiment of the present invention further provides a method for controlling an address configuration manner, which is applicable to an application scenario in which a terminal has configured an address according to an SLAAC manner, but the network side wants to switch to a DHCPv6 address configuration mode.
  • Methods include:
  • the router sends an RA message, where the second identifier bit or the second mandatory address configuration option is used to notify the terminal to perform address configuration according to the DHCP mode.
  • the RA message may be sent in a broadcast manner or may be separately sent to the terminal, which is not specifically limited in the embodiment of the present invention.
  • the second identifier bit may be specifically a new identifier bit that is extended in the reserved 6 bits of the RA message, such as the identifier bit "Y", occupying 1 bit, and its value is 1. Indicates that the terminal performs address configuration according to DHCP.
  • the second identifier bit may also be replaced by the second mandatory address configuration option.
  • the RA message carries the "Manatory Address Configuration" option to instruct the terminal to perform address configuration according to the DHCP mode.
  • the terminal After receiving the RA message, the terminal determines whether the RA message includes the second identifier bit or the second mandatory address configuration option. If yes, the terminal determines to switch to the DHCP mode, and sends a DHCP solicit request message to the DHCP server to request the allocation. DHCPv6 IP address.
  • the DHCP server After receiving the DHCP solicit message, the DHCP server sends a DHCP reply response message, where the message carries a DHCPv6 IP address assigned to the terminal.
  • the terminal After receiving the DHCP reply message, the terminal obtains the DHCPv6 IP address, configures it as its own IP address, and completes the address configuration.
  • another embodiment of the present invention provides a method for controlling an address configuration manner, which is applicable to an application scenario in which a SLAAC configuration mode is preferred when a terminal is online, but the network side wants to switch to a DHCP address configuration mode.
  • the terminal When the terminal goes online, it sends an RS message to the router requesting SLAAC address configuration.
  • the terminal is connected to the network through a certain port.
  • the terminal will ask the network to assign an IP address to the port.
  • each network will assign an IP address to the corresponding port.
  • This embodiment is described by taking a terminal connected to the network through a port as an example. The scenario of the network is only a repetition of the method of this embodiment, and will not be explained too much.
  • the terminal requests the SLAAC address to go online, which may be the default SLAAC address configuration mode, so the SLAAC session is initiated and the RS message is sent.
  • the terminal may simultaneously initiate the SLAAC session and DHCP. Session, where the RS message will be responded by the router, and the DHCP Solicit message will not be responded to by the DHCP server.
  • the router After receiving the RS message of the terminal, the router sends an RA message to the terminal, where the RA message carries the second identifier bit or the second mandatory address configuration option.
  • the second identifier bit may be the identifier bit "Y”
  • the second mandatory address configuration option may be the "Manatory Address Configuration” option, indicating that the terminal performs the address configuration according to the DHCP mode, which is the same as the description in the previous embodiment, and is not described here.
  • the terminal After receiving the RA message, the terminal determines whether the RA message includes the second identifier bit. Or the second mandatory address configuration option, if yes, determine to switch to DHCP mode, send a DHCP solicit request message to the DHCP server, request to assign a DHCPv6 IP address.
  • the DHCP server After receiving the DHCP solicit message, the DHCP server sends a DHCP reply response message to the terminal, where the message includes a DHCPv6 IP address assigned to the terminal.
  • the terminal After receiving the DHCP reply message, the terminal obtains the DHCPv6 IP address and configures it as its own IP address to complete the address configuration.
  • two new identifiers may be extended in the reserved 6 bits of the RA message, which are used to indicate that the terminal performs address configuration according to the SLAAC mode or the DHCP mode, and thus can be applied to different The scenario, the application is more extensive and flexible.
  • two new identification bits are extended in the reserved 6 bits of the RA message, one of the identification bits "X”, occupying 1 bit, and its value is 1, indicating that the terminal follows the SLAAC mode. Address configuration is performed; another flag bit "Y" occupies 1 bit, and its value is 1, indicating that the terminal performs address configuration according to DHCP.
  • the RA message carries the identifier bit "X" in the RA message, which triggers the terminal to perform the address configuration of the SLAAC configuration mode; if another time, the router needs to notify the terminal to follow the DHCP.
  • the AR message is carried in the RA message, which triggers the terminal to perform DHCP address configuration.
  • the network side actively determines the terminal address configuration mode.
  • the method for controlling the address configuration mode in the foregoing various application scenarios provided by the embodiment of the present invention sends a message to the terminal through a DHCP server or a router, and notifies the terminal to perform address configuration according to the DHCP configuration mode or the SLAAC configuration mode, thereby implementing the network side to the terminal.
  • the IP address configuration mode is controlled.
  • the network side can actively determine whether the terminal adopts the DHCPv6 stateful address configuration mode or the SLAAC address configuration mode, which enhances unified management of the terminal.
  • the device By notifying the terminal to switch by carrying the identification bit or the mandatory address configuration option in the message, the device is convenient and easy to implement. It is notified in different ways in different scenarios, and the application is flexible and practical.
  • an embodiment of the present invention provides a device for switching an address configuration manner, including:
  • the setting module 1201 is configured to specify an address configuration manner for the terminal
  • the notification module 1202 is configured to send a message to the terminal, and notify the terminal to perform address configuration according to an address configuration manner specified by the setting module 1201.
  • the address configuration mode is DHCP or SLAAC.
  • the device may be specifically a DHCP server.
  • the notification module 1202 includes:
  • the first notification unit 1202a is configured to send a reconfiguration message to the terminal, where the reconfiguration message carries an SLAAC reconfiguration option, and is used to notify the terminal to perform address configuration according to the SLAAC manner.
  • the device is a DHCP server
  • the notification module 1202 includes:
  • the first receiving unit 1202b is configured to receive a DHCP request message sent by the terminal.
  • the second notification unit 1202c is configured to send a DHCP response message to the terminal after the first receiving unit 1202b receives the DHCP request message, where the DHCP response message is carried.
  • the device is a router
  • the notification module 1202 includes: a third notification unit 1202d, configured to send a router advertisement RA message to the terminal, where
  • the RA message carries the first identifier bit or the first mandatory address configuration option, and is used to notify the terminal to perform address configuration according to the stateless address configuration SLAAC mode.
  • the device is a router
  • the notification module 1202 includes:
  • the fourth notification unit I202e is configured to send an RA message to the terminal, where the RA message carries a second identifier bit or a second mandatory address configuration option, and is used to notify the terminal to perform address configuration according to DHCP.
  • the device is a router
  • the notification module 1202 includes:
  • the second receiving unit l202f is configured to receive an RS message sent by the terminal.
  • the fifth notification unit 1202g is configured to: after the second receiving unit 1202f receives the RS message, send an RA message to the terminal, where the RA message carries a second identifier bit or a second mandatory address configuration option, to notify the terminal to follow the DHCP Perform address configuration.
  • the device provided by the embodiment of the present invention, by specifying an address configuration manner and sending a message to the terminal, notifying the terminal to perform address configuration according to the specified address configuration manner, realizing the control of the network side to the terminal IP address configuration mode, and enhancing the terminal Unified management.
  • the device By notifying the terminal to switch by carrying the identifier bit or the mandatory address configuration option in the message, the device is convenient and easy to implement.
  • the program can be stored in a computer readable storage medium, which, when executed, can include the flow of an embodiment of the methods described above.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM) or a random access memory (RAM).
  • the functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as separate products, may also be stored in a computer readable storage medium.
  • the storage medium mentioned above may be a read only memory, a magnetic disk or an optical disk or the like.
  • Each of the above described devices or systems may perform the methods of the corresponding method embodiments.

Abstract

本发明公开了一种控制地址配置方式的方法和设备,属于通信领域。所述方法包括:网络侧设备为终端指定一个地址配置方式;所述网络侧设备向所述终端发送消息,通知所述终端按照所述网络侧设备指定的地址配置方式进行地址配置;其中,所述地址配置方式为动态主机配置协议DHCP方式或无状态地址配置SLAAC方式。所述设备包括:设置模块和通知模块。本发明实现了网络侧对终端IP地址配置方式的控制。

Description

控制地址配置方式的方法和设备 技术领域 本发明涉及通信领域, 特别涉及一种控制地址配置方式的方法和设备。 背景技术 IPv6 ( Internet Protocol version 6 , 互联网十办议版本 6 ) , 有两种地址自动 配置方式: 采用 DHCPv6 ( Dynamic Host Configure Protocol for IPv6, 支持 IPv6的动态主机配置协议)协议对主机进行有状态地址配置, 以及采用 ND ( Neighbor Discovery,邻居发现)协议对主机进行 SLAAC( Stateless Address Autoconfiguration, 无^犬态地址酉己置 )。
DHCPv6是动态主机配置协议( DHCP )的 IPv6版本。 DHCPv6典型组 网中通常包括: DHCPv6客户端和 DHCPv6服务器。 在有状态地址配置过 程中, DHCPv6服务器分配一个完整的 IPv6地址给 DHCPv6客户端, 并且 存储 IPv6地址和 DHCPv6客户端的绑定关系,从而增强了网络的可管理性。
SLAAC是 IPv6的重要特色功能之一。 SLAAC采用为 IPv6开发的 ND 协议对主机的 IPv6 地址进行自动配置。 当主机上线后, 主机会发送 RS ( Router Solicit, 路由器请求)消息给路由器, 请求地址配置; 路由器收到 RS消息后发送 RA ( Router Advertisement, 路由器通告) 消息给主机, 其 中携带有用来进行地址自动配置的前缀等信息;主机收到 RA消息后,获得 地址前缀信息,还有地址相关的参数信息,根据 SLAAC规定的方法自动生 成 IPv6地址。
现有技术的 IPv6网络中, SLAAC和 DHCPv6地址配置可能同时可用。 例如, 当 RA消息中 "M" 位 ( Managed Configuration ) 置为 1的时候, 就 指示主机该网络上除了 ND以外还有 DHCPv6服务可用。 除了多归属等特 殊场景外, 一般情况下主机只会选择其中一种地址配置方式进行配置。 一 个主机采用何种地址配置方式, 是由主机内部的默认策略来控制的。 如
Windows 7 系统默认优选 DHCPv6进行地址配置; Linux系统则默认优选
ND进行地址配置。
在实现本发明的过程中, 发明人发现上述现有技术至少具有以下缺点: 主机采用何种地址配置方式, 网络侧不可控, 影响对主机的统一管理。 发明内容 为了解决现有技术的问题, 本发明实施例提供了一种控制地址配置方 式的方法和设备。
一方面, 本发明实施例提供了一种控制地址配置方式的方法, 包括: 网络侧设备为终端指定一个地址配置方式;
所述网络侧设备向所述终端发送消息, 通知所述终端按照所述网络侧 设备指定的地址配置方式进行地址配置;
其中, 所述地址配置方式为动态主机配置协议 DHCP方式或无状态地 址配置 SLAAC方式。
又一方面, 本发明实施例提供了一种控制地址配置方式的设备, 包括: 设置模块, 用于为终端指定一个地址配置方式;
通知模块, 用于向所述终端发送消息, 通知所述终端按照所述设置模 块指定的地址配置方式进行地址配置;
其中, 所述地址配置方式为动态主机配置协议 DHCP方式或无状态地 址配置 SLAAC方式。
本发明实施例提供的技术方案的有益效果是: 通过网络侧设备为终端 指定一个地址配置方式且向终端发送消息, 通知终端按照指定的地址配置 方式进行地址配置, 实现了网络侧对终端 IP地址配置方式的控制,增强了对 终端的统一管理。
附图说明 图 1是本发明实施例提供的一种控制地址配置方式的方法流程图; 图 2是本发明实施例提供的已配置 DHCP地址的终端切换地址配置方 式的一种流程示意图;
图 3是本发明实施例提供的 OPTION_RECONF_SLAAC选项示意图; 图 4是本发明实施例提供的已配置 DHCP地址的终端切换地址配置方 式的另一种流程示意图;
图 5是本发明实施例提供的终端请求配置 DHCP地址时切换地址配置 方式的流程示意图;
图 6是本发明实施例提供的已配置 DHCP地址的终端切换地址配置方 式的再一种流程示意图;
图 7是本发明实施例提供的第一标识位示意图;
图 8是本发明实施例提供的已配置 SLAAC地址的终端切换地址配置方 式的一种流程示意图;
图 9是本发明实施例提供的第二标识位示意图;
图 10是本发明实施例提供的已配置 SLAAC地址的终端切换地址配置 方式的另一种流程示意图;
图 11是本发明实施例提供的第一标识位和第二标识位示意图; 图 12是本发明实施例提供的控制地址配置方式的设备结构图; 图 13是本发明实施例提供的 DHCP服务器结构图;
图 14是本发明实施例提供的路由器结构图。
具体实施方式 为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本 发明实施方式作进一步地详细描述。
本发明实施例涉及地址配置方式的控制, 是指网络侧设备指定一个地 址配置方式, 终端按照该指定的地址配置方式进行 IP地址配置。 其中, 所 述地址配置方式包括: 按照 DHCPv6进行有状态地址配置, 或者采用 ND 协议进行 SLAAC无状态地址配置。所述终端包括但不限于: 移动终端和计 算机等, 通常也可以称为主机。
当终端按照 DHCPv6进行地址配置时, 由网络侧的 DHCPv6服务器为 终端分配完整的 IPv6地址。 当终端采用 SLAAC方式进行地址配置时, 由 网络侧的路由器为终端分配用来进行地址自动配置的前缀等信息, 终端收 到后根据该前缀信息自动生成 IPv6地址。
本发明实施例对网络侧设备控制终端地址配置方式的时间不做具体限 定, 可以在终端配置好 IP地址以后进行控制, 也可以在终端初始请求配置 IP地址时进行控制, 均可以实现地址配置方式的控制。
参见图 1 ,本发明一实施例提供了一种控制地址配置方式的方法,包括:
101: 网络侧设备为终端指定一个地址配置方式;
其中, 该地址配置方式包括: DHCP方式或 SLAAC方式。
102: 网络侧设备向该终端发送消息, 通知该终端按照网络侧设备指定 的地址配置方式进行地址配置。
其中, 网络侧设备可以在发送的消息中携带标识位或者选项, 以通知 终端按照指定的地址配置方式进行地址配置。 该标识位或者选项可以通过 在现有的消息中增加新的标识位或者选项来实现。
具体地, 102可以包括以下五种方式中的任一种:
第一种: DHCP服务器向该终端发送重配置消息, 该重配置消息中携 带有 SLAAC重配置选项, 用于通知终端按照 SLAAC方式进行地址配置。
第二种: DHCP服务器接收到终端发送的 DHCP请求消息, 向终端发 送 DHCP响应消息, 该 DHCP响应消息中携带有 SLAAC重配置选项, 用 于通知终端按照 SLAAC方式进行地址配置。
第三种: 路由器向终端发送 RA消息, 该 RA消息中携带有第一标识位 或第一强制地址配置选项, 用于通知终端按照 SLAAC方式进行地址配置。
第四种: 路由器向终端发送 RA消息, 该 RA消息中携带有第二标识位 或第二强制地址配置选项, 用于通知终端按照 DHCP进行地址配置。
第五种: 路由器接收终端发送的 RS 消息并向终端发送 RA消息, 该 RA消息中携带有第二标识位或第二强制地址配置选项,用于通知终端按照 DHCP进行地址配置。
本发明实施例提供的上述方法, 通过网络侧设备指定一个地址配置方 式并向终端发送消息, 通知终端按照指定的地址配置方式进行地址配置, 实现了网络侧对终端 IP地址配置方式的控制, 增强了对终端的统一管理。 下面分别通过不同的应用场景来具体说明。
参见图 2, 本发明又一实施例提供了一种控制地址配置方式的方法, 适 用于终端已配置有 DHCPv6地址, 但网络侧欲使其切换为 SLAAC地址配 置方式的应用场景, 该方法包括:
201: DHCP服务器向某个终端发送 reconfiguration重配置消息, 该消 息中携带有 OPTION_RECONF_SLAAC选项, 即 SLAAC重配置选项, 其 中, 该终端已按照 DHCPv6配置好 IP地址。
由于终端的地址是 DHCP服务器分配给终端的, 因此, DHCP服务器 可以获知哪些终端已按照 DHCPv6配置有地址。 如果 DHCP服务器希望某 个终端切换为 SLAAC地址配置方式, 则可以向其发送重配置消息; 当希望 多个终端都切换为 SLAAC地址配置方式时,则分别向该各个终端发送重配 置消息。
其中, OPTION_RECONF_SLAAC选项为新定义的 DHCPv6选项, 该 选项可以由 DHCPv6 reconfiguration消息携带, 如图 3所示, 为该选项的示 意图, 该选项的长度可以根据需要设置, 本发明实施例对此不做具体限定。
202: 上述终端接收到 DHCP服务器发送的重配置消息, 判断该重配置 消息中是否包含 OPTION_RECONF_SLAAC选项, 如果是, 则确定切换为 SLAAC地址配置方式, 向本地的路由器发送 RS消息, 请求获得 IP地址前 缀; 否则, 结束。
其中, 本地的路由器是指与上述终端相连的路由器, 终端通过该路由 器可以接入到网络, 该路由器可以为终端分配 IP地址的前缀信息。
203: 上述路由器接收到终端发送的 RS消息后, 响应 RA消息给终端, 该 RA消息中携带分配的 IP地址前缀信息。
204:上述终端收到该 RA消息后,根据 RA消息中的 IP地址前缀信息, 以 SLAAC方式自动配置 IP地址。
除了上述由终端主动发送 RS消息请求 IP地址前缀的方式外, 本发明 实施例中还可以由路由器周期性广播 RA消息来通知终端 IP地址前缀, 参 见图 4, 本发明再一实施例提供了一种控制地址配置方式的方法, 适用于终 端已按照 DHCPv6配置好地址, 但网络侧欲使其切换为 SLAAC地址配置 方式的应用场景,并且该应用场景中路由器还支持周期性广播 RA消息,该 方法包括:
401: 路由器周期性地向本地链路上的终端发送 RA消息, 该 RA消息 中携带有 IP地址前缀信息, 此时配置有 DHCPv6地址的终端不会理会该 RA消息。
402 : DHCP 服务器向已按照 DHCPv6 配置好地址的终端发送 reconfiguration重配置消息, 该消息中携带 OPTION_RECONF_SLAAC选 项。
403 : 终 端 收 到 该 重 配 置 消 息 后 , 根 据 其 中 的 OPTION_RECONF_SLAAC选项确定切换为 SLAAC地址配置方式, 并再 次接收到本地的路由器广播的 RA消息。
404: 此时, 终端不会不理会该 RA消息, 而是根据收到的 RA消息中 的 IP地址前缀信息, 进行 IP地址自动配置。
参见图 5, 本发明另一实施例提供了一种控制地址配置方式的方法, 适 用于终端上线时优先选用 DHCPv6 配置方式, 但网络侧欲使其切换为 SLAAC地址配置方式的应用场景, 该方法包括:
501: 当终端上线时, 向 DHCP服务器发送 DHCP Solicit请求消息, 请 求进行 DHCPv6有状态地址配置。
其中, 终端上线是指终端通过某一个端口连接到网络, 此时终端会请 求网络为该端口分配 IP地址。 当终端通过不同的端口分别连接到不同的网 络时, 各个网络会分别为相应的端口分配 IP地址, 本实施例以终端通过一 个端口连接到网络为例进行说明, 对于通过多个端口连接到不同的网络的 场景只是本实施例方法的重复, 不做过多说明。
本实施例中, 终端上线请求 DHCP 地址, 可以是预先默认优先选用 DHCP地址配置方式, 因此会发起 DHCP会话, 发送 DHCP Solicit消息; 另外, 也可以是没有优选的方式, 则终端同时发起 DHCP会话和 SLAAC 会话, 其中, DHCP Solicit消息会被 DHCP服务器响应, 而 RS消息则不会 被路由器响应。
502: DHCP服务器收到 DHCP Solicit消息后, 向终端发送 DHCP reply 响应消息, 该消息中携带有 0PTI0N_REC0NF_SLAAC选项, 即 SLAAC 重配置选项。
503: 终端收到 DHCP服务器发送的 DHCP reply消息后, 判断该消息 中是否包含 0PTI0N_REC0NF_SLAAC 选项, 如果是, 则确定切换为 SLAAC地址配置方式, 向本地的路由器发送 RS消息, 请求获得 IP地址前 缀。
504: 路由器收到终端发送的 RS消息后, 返回 RA消息, 前缀包含 IP 地址前缀信息。
505:终端收到该 RA消息后,根据其中的 IP地址前缀信息,进行 SLAAC 地址配置。
除了上述由 DHCP服务器通知终端指定的地址配置方式以外, 本发明 实施例中还可以由路由器来通知终端指定的地址配置方式, 参见图 6, 本发 明另一实施例提供了一种控制地址配置方式的方法, 适用于终端已按照 DHCPv6配置好地址,但网络侧欲使其切换为 SLAAC地址配置方式的应用 场景,并且该应用场景中终端还支持接收并处理路由器的 RA消息,该方法 包括:
601: 路由器向终端发送 RA消息, 该 RA消息中携带有第一标识位或 第一强制地址配置选项, 可选地, 该 RA消息中还可以同时携带 IP地址前 缀信息, 其中, 该终端已按照 DHCPv6配置好 IP地址。
其中, 参见图 7, 第一标识位可以具体为在 RA消息的预留的 6个比特 位中扩展的一个新的标识位, 如标识位 "X" , 占用 1个比特位, 其值为 1 , 指示终端按照 SLAAC方式进行地址配置。
另夕卜,第一标识位也可以由第一强制地址配置选项替换,如 RA消息中 携带 "Manatory Address Configuration" 选项, 以指示终端按照 SLAAC方 式进行地址配置。
602: 终端收到该 RA消息后, 判断该 RA消息中是否包含第一标识位 或第一强制地址配置选项, 如果是, 则确定切换为 SLAAC地址配置方式, 如果该 RA消息中已携带 IP地址前缀信息, 则根据该前缀信息自动生成 IP 地址。
如果终端确定切换但该 RA消息中未携带前缀信息,则终端可以主动发 起 ND协议会话, 向路由器发送 RS消息请求前缀信息, 在收到路由器响应 的 RA消息后再进行 SLAAC地址配置。
本实施例中的终端虽然已按照 DHCPv6配置好地址, 但是仍然能够接 收 RA消息, 并进行相应的判断和处理, 因此, 可以通过路由器来通告终端 进行切换。
参见图 8, 本发明另一实施例还提供了一种控制地址配置方式的方法, 适用于终端已按照 SLAAC 方式配置好地址, 但网络侧欲使其切换为 DHCPv6地址配置方式的应用场景, 该方法包括:
801: 路由器发送 RA消息, 其中携带有第二标识位或第二强制地址配 置选项, 用于通知终端按照 DHCP方式进行地址配置。
该 RA消息可以以广播的方式发送,也可以单独发送给终端,本发明实 施例对此不做具体限定。
其中, 参见图 9, 第二标识位可以具体为在 RA消息的预留的 6个比特 位中扩展的一个新的标识位, 如标识位 "Y" , 占用 1个比特位, 其值为 1 , 指示终端按照 DHCP方式进行地址配置。 另夕卜,第二标识位也可以由第二强制地址配置选项替换,如 RA消息中 携带 "Manatory Address Configuration" 选项, 以指示终端按照 DHCP方式 进行地址配置。
802: 终端收到该 RA消息后, 判断该 RA消息中是否包含第二标识位 或第二强制地址配置选项, 如果是, 则确定切换为 DHCP方式, 向 DHCP 服务器发送 DHCP solicit请求消息, 请求分配 DHCPv6 IP地址。
803: DHCP服务器收到该 DHCP solicit消息后, 发送 DHCP reply响应 消息, 且该消息中携带有分配给终端的 DHCPv6 IP地址。
804: 终端收到该 DHCP reply消息后, 获取其中的 DHCPv6 IP地址, 将其配置为自身的 IP地址, 完成地址配置。
参见图 10, 本发明另一实施例提供了一种控制地址配置方式的方法, 适用于终端上线时优先选用 SLAAC 配置方式, 但网络侧欲使其切换为 DHCP地址配置方式的应用场景, 该方法包括:
1001: 当终端上线时, 向路由器发送 RS消息, 请求进行 SLAAC地址 配置。
其中, 终端上线是指终端通过某一个端口连接到网络, 此时终端会请 求网络为该端口分配 IP地址。 当终端通过不同的端口分别连接到不同的网 络时, 各个网络会分别为相应的端口分配 IP地址, 本实施例以终端通过一 个端口连接到网络为例进行说明, 对于通过多个端口连接到不同的网络的 场景只是本实施例方法的重复, 不做过多说明。
本实施例中, 终端上线请求 SLAAC地址, 可以是预先默认优先选用 SLAAC地址配置方式, 因此会发起 SLAAC会话, 发送 RS消息; 另外, 也可以是没有优选的方式, 则终端同时发起 SLAAC会话和 DHCP会话, 其中, RS消息会被路由器响应, 而 DHCP Solicit消息则不会被 DHCP服务 器响应。
1002: 路由器收到终端的 RS消息后, 发送 RA消息给终端, 该 RA消 息中携带有第二标识位或第二强制地址配置选项。
其中, 第二标识位可以为标识位 "Y" , 第二强制地址配置选项可以为 "Manatory Address Configuration" 选项, 指示终端按照 DHCP方式进行地 址配置, 具体同上一实施例中的描述, 不赘述。
1003: 终端收到该 RA消息后, 判断该 RA消息中是否包含第二标识位 或第二强制地址配置选项, 如果是, 则确定切换为 DHCP方式, 向 DHCP 服务器发送 DHCP solicit请求消息, 请求分配 DHCPv6 IP地址。
1004: DHCP服务器收到该 DHCP solicit消息后, 发送 DHCP reply响 应消息给终端, 且该消息中包含分配给终端的 DHCPv6 IP地址。
1005: 终端收到 DHCP reply消息后, 获取其中的 DHCPv6 IP地址, 并 将其配置为自身的 IP地址, 完成地址配置。
在本发明实施例中,还可以同时在 RA消息的预留的 6个比特位中扩展 两个新的标识位, 分别用来指示终端按照 SLAAC方式或者 DHCP方式进 行地址配置, 从而可以应用于不同的场景, 应用更广泛更灵活。
例如, 参见图 11 , 在 RA消息的预留的 6个比特位中扩展两个新的标 识位, 其中一个标识位 "X" , 占用 1个比特位, 其值为 1 , 指示终端按照 SLAAC方式进行地址配置; 另一个标识位 "Y" , 占用 1个比特位, 其值为 1 , 指示终端按照 DHCP方式进行地址配置。 当某一个时刻路由器需要通知 终端按照 SLAAC方式配置地址时,则在发送的 RA消息中携带标识位" X" , 从而触发终端执行 SLAAC配置方式的地址配置;如果又一个时刻路由器需 要通知终端按照 DHCP方式配置地址, 则在发送的 RA消息中携带 "Y" , 从而触发终端执行 DHCP方式的地址配置, 达到了网络侧主动决定终端地 址配置方式的效果。
本发明实施例提供的上述各种应用场景下的控制地址配置方式的方 法, 通过 DHCP服务器或路由器向终端发送消息, 通知终端按照 DHCP配 置方式或者 SLAAC配置方式进行地址配置, 实现了网络侧对终端 IP地址 配置方式的控制, 网络侧可以主动决定终端采用 DHCPv6有状态地址配置 方式还是 SLAAC地址配置方式,增强了对终端的统一管理。通过在消息中 携带标识位或强制地址配置选项来通知终端进行切换, 筒单方便, 容易实 现。 在不同的场景下以不同的方式通知, 应用灵活, 实用性强。 参见图 12, 本发明一实施例提供了一种切换地址配置方式的设备, 包 括:
设置模块 1201 , 用于为终端指定一个地址配置方式;
通知模块 1202, 用于向终端发送消息, 通知终端按照设置模块 1201指 定的地址配置方式进行地址配置; 其中, 该地址配置方式为 DHCP方式或 SLAAC方式。
其中, 参见图 13, 所述设备可以具体为 DHCP服务器, 此时通知模块 1202包括:
第一通知单元 1202a, 用于向终端发送重配置消息, 该重配置消息中携 带有 SLAAC重配置选项, 用于通知终端按照 SLAAC方式进行地址配置。
或者, 所述设备为 DHCP服务器, 通知模块 1202包括:
第一接收单元 1202b, 用于接收终端发送的 DHCP请求消息; 第二通知单元 1202c,用于在第一接收单元 1202b收到 DHCP请求消息 后, 向终端发送 DHCP响应消息, 该 DHCP响应消息中携带有 SLAAC重 配置选项, 用于通知终端按照 SLAAC方式进行地址配置。
或者, 参见图 14, 所述设备为路由器, 此时通知模块 1202包括: 第三通知单元 1202d, 用于向所述终端发送路由器通告 RA消息, 所述
RA消息中携带有第一标识位或第一强制地址配置选项,用于通知所述终端 按照无状态地址配置 SLAAC方式进行地址配置。
或者, 所述设备为路由器, 此时通知模块 1202包括:
第四通知单元 I202e, 用于向终端发送 RA消息, 该 RA消息中携带有 第二标识位或第二强制地址配置选项, 用于通知终端按照 DHCP进行地址 配置。
或者, 所述设备为路由器, 此时通知模块 1202包括:
第二接收单元 l202f, 用于接收终端发送的 RS消息;
第五通知单元 1202g, 用于在第二接收单元 1202f收到 RS消息后, 向 终端发送 RA消息,该 RA消息中携带有第二标识位或第二强制地址配置选 项, 用于通知终端按照 DHCP进行地址配置。
本发明实施例提供的上述设备, 通过指定一个地址配置方式且向终端 发送消息, 通知终端按照指定的地址配置方式进行地址配置, 实现了网络 侧对终端 IP地址配置方式的控制, 增强了对终端的统一管理。 通过在消息 中携带标识位或强制地址配置选项来通知终端进行切换, 筒单方便, 容易 实现。 最后需要说明的是, 本领域普通技术人员可以理解实现上述实施例方 法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于一计算机可读取存储介质中, 该程序在执行时, 可包 括如上述各方法的实施例的流程。 其中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆体(ROM )或随机存储记忆体(RAM )等。
本发明实施例中的各功能单元可以集成在一个处理模块中, 也可以是 各个单元单独物理存在, 也可以两个或两个以上单元集成在一个模块中。 上述集成的模块既可以采用硬件的形式实现, 也可以采用软件功能模块的 形式实现。 所述集成的模块如果以软件功能模块的形式实现并作为独立的 产品销售或使用时, 也可以存储在一个计算机可读取存储介质中。 上述提 到的存储介质可以是只读存储器, 磁盘或光盘等。 上述的各装置或系统, 可以执行相应方法实施例中的方法。
以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发 明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在 本发明的保护范围之内。

Claims

权利要求
1、 一种控制地址配置方式的方法, 其特征在于, 所述方法包括: 网络侧设备为终端指定一个地址配置方式;
所述网络侧设备向所述终端发送消息, 通知所述终端按照所述网络侧 设备指定的地址配置方式进行地址配置;
其中, 所述地址配置方式为动态主机配置协议 DHCP方式或无状态地 址配置 SLAAC方式。
2、 根据权利要求 1所述的方法, 其特征在于, 所述网络侧设备向所述 终端发送消息, 通知所述终端按照所述网络侧设备指定的地址配置方式进 行地址配置, 包括:
DHCP服务器向所述终端发送重配置消息, 所述重配置消息中携带有 SLAAC重配置选项, 用于通知所述终端按照 SLAAC方式进行地址配置。
3、 根据权利要求 1所述的方法, 其特征在于, 所述网络侧设备向所述 终端发送消息, 通知所述终端按照所述网络侧设备指定的地址配置方式进 行地址配置, 包括:
DHCP服务器接收到所述终端发送的 DHCP请求消息;
所述 DHCP服务器向所述终端发送 DHCP响应消息, 所述 DHCP响应 消息中携带有 SLAAC重配置选项, 用于通知所述终端按照 SLAAC方式进 行地址配置。
4、 根据权利要求 1所述的方法, 其特征在于, 所述网络侧设备向所述 终端发送消息, 通知所述终端按照所述网络侧设备指定的地址配置方式进 行地址配置, 包括:
路由器向所述终端发送路由器通告 RA消息,所述 RA消息中携带有第 一标识位或第一强制地址配置选项, 用于通知所述终端按照无状态地址配 置 SLAAC方式进行地址配置。
5、 根据权利要求 1所述的方法, 其特征在于, 所述网络侧设备向所述 终端发送消息, 通知所述终端按照所述网络侧设备指定的地址配置方式进 行地址配置, 包括:
路由器向所述终端发送 RA消息,所述 RA消息中携带有第二标识位或 第二强制地址配置选项, 用于通知所述终端按照 DHCP进行地址配置。
6、 根据权利要求 1所述的方法, 其特征在于, 所述网络侧设备向所述 终端发送消息, 通知所述终端按照所述网络侧设备指定的地址配置方式进 行地址配置, 包括:
路由器接收到所述终端发送的路由器请求 RS消息;
所述路由器向所述终端发送 RA消息,所述 RA消息中携带有第二标识 位或第二强制地址配置选项,用于通知所述终端按照 DHCP进行地址配置。
7、 一种控制地址配置方式的设备, 其特征在于, 所述设备包括: 设置模块, 用于为终端指定一个地址配置方式;
通知模块, 用于向所述终端发送消息, 通知所述终端按照所述设置模 块指定的地址配置方式进行地址配置;
其中, 所述地址配置方式为动态主机配置协议 DHCP方式或无状态地 址配置 SLAAC方式。
8、 根据权利要求 7所述的设备, 其特征在于, 所述设备为 DHCP服务 器, 所述通知模块包括:
第一通知单元, 用于向所述终端发送重配置消息, 所述重配置消息中 携带有 SLAAC重配置选项, 用于通知所述终端按照 SLAAC方式进行地址 配置。
9、 根据权利要求 7所述的设备, 其特征在于, 所述设备为 DHCP服务 器, 所述通知模块包括:
第一接收单元, 用于接收所述终端发送的 DHCP请求消息;
第二通知单元,用于在所述第一接收单元收到所述 DHCP请求消息后, 向所述终端发送 DHCP响应消息, 所述 DHCP响应消息中携带有 SLAAC 重配置选项, 用于通知所述终端按照 SLAAC方式进行地址配置。
10、 根据权利要求 7所述的设备, 其特征在于, 所述设备为路由器, 所述通知模块包括:
第三通知单元, 用于向所述终端发送路由器通告 RA消息, 所述 RA消 息中携带有第一标识位或第一强制地址配置选项, 用于通知所述终端按照 无状态地址配置 SLAAC方式进行地址配置。
11、 根据权利要求 7 所述的设备, 其特征在于, 所述设备为路由器, 所述通知模块包括:
第四通知单元, 用于向所述终端发送 RA消息, 所述 RA消息中携带有 第二标识位或第二强制地址配置选项, 用于通知所述终端按照 DHCP进行 地址配置。
12、 根据权利要求 7所述的设备, 其特征在于, 所述设备为路由器, 所述通知模块包括:
第二接收单元, 用于接收所述终端发送的路由器请求 RS消息; 第五通知单元, 用于在所述第二接收单元收到所述 RS消息后, 向所述 终端发送 RA消息,所述 RA消息中携带有第二标识位或第二强制地址配置 选项, 用于通知所述终端按照 DHCP进行地址配置。
PCT/CN2012/073083 2011-06-24 2012-03-27 控制地址配置方式的方法和设备 WO2012174914A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP12802305.8A EP2704403A4 (en) 2011-06-24 2012-03-27 METHOD AND DEVICE FOR CONTROLLING AN ADDRESS CONFIGURATION TYPE
US14/095,238 US20140095733A1 (en) 2011-06-24 2013-12-03 Method and device for controlling address configuration mode

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110174179.9A CN102843441B (zh) 2011-06-24 2011-06-24 控制地址配置方式的方法和设备
CN201110174179.9 2011-06-24

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/095,238 Continuation US20140095733A1 (en) 2011-06-24 2013-12-03 Method and device for controlling address configuration mode

Publications (1)

Publication Number Publication Date
WO2012174914A1 true WO2012174914A1 (zh) 2012-12-27

Family

ID=47370494

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/073083 WO2012174914A1 (zh) 2011-06-24 2012-03-27 控制地址配置方式的方法和设备

Country Status (4)

Country Link
US (1) US20140095733A1 (zh)
EP (1) EP2704403A4 (zh)
CN (1) CN102843441B (zh)
WO (1) WO2012174914A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179227B (zh) * 2013-03-21 2016-05-11 北京邮电大学 IPv6网络中的主机选择和切换地址配置方式的方法
CN104883407A (zh) * 2014-02-28 2015-09-02 中兴通讯股份有限公司 IPv6地址处理方法、装置及DHCPv6中继设备
CN105162638B (zh) * 2015-09-30 2018-09-21 北京华为数字技术有限公司 终端设备接入网络的方法和装置
WO2017180999A2 (en) * 2016-04-15 2017-10-19 Convida Wireless, Llc Enhanced 6lowpan neighbor discovery for supporting mobility and multiple border routers
FR3070813B1 (fr) * 2017-09-04 2020-11-13 Somfy Activites Sa Procede de configuration automatique d'adresse reseau d'un element communicant faisant partie d'un systeme domotique, interface reseau, element communicant et systeme domotique associes
CN108449125A (zh) * 2018-03-06 2018-08-24 四川斐讯信息技术有限公司 一种无线网络的扩展方法、系统、中继设备和路由器
EP3883203A4 (en) * 2018-12-26 2022-03-02 Huawei Technologies Co., Ltd. IPV6 ADDRESS CONFIGURATION METHOD AND ROUTER DEVICE
CN111416881B (zh) * 2019-01-08 2022-07-29 中国移动通信有限公司研究院 一种获取域名系统配置信息的方法及设备、存储介质
CN109921898A (zh) * 2019-03-28 2019-06-21 新华三技术有限公司 IPv6无状态地址生成方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889538A (zh) * 2005-09-30 2007-01-03 华为技术有限公司 通信系统中寻址方法
CN1984155A (zh) * 2005-12-15 2007-06-20 上海贝尔阿尔卡特股份有限公司 一种IPv6接入网中的域名配置方法及其网络设备
CN101945020A (zh) * 2010-09-14 2011-01-12 中兴通讯股份有限公司 会话监控处理方法和监控设备

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100556029C (zh) * 2004-12-20 2009-10-28 上海贝尔阿尔卡特股份有限公司 IPv6无状态地址配置中主机的DNS更新方法和装置
CN101212773B (zh) * 2006-12-31 2011-01-05 华为技术有限公司 一种支持移动网络移动的方法和系统
KR20090096121A (ko) * 2008-03-07 2009-09-10 삼성전자주식회사 IPv6 네트워크의 상태 보존형 주소 설정 프로토콜 처리방법 및 그 장치
CN101902792B (zh) * 2010-07-09 2013-07-24 中国科学院计算技术研究所 一种PMIPv6垂直切换方法
CN102624937B (zh) * 2011-01-28 2015-09-09 华为技术有限公司 Ip地址配置方法、装置及系统
WO2012155944A1 (en) * 2011-05-13 2012-11-22 Nokia Siemens Networks Oy Apparatus and method for routing in a network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889538A (zh) * 2005-09-30 2007-01-03 华为技术有限公司 通信系统中寻址方法
CN1984155A (zh) * 2005-12-15 2007-06-20 上海贝尔阿尔卡特股份有限公司 一种IPv6接入网中的域名配置方法及其网络设备
CN101945020A (zh) * 2010-09-14 2011-01-12 中兴通讯股份有限公司 会话监控处理方法和监控设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2704403A4 *

Also Published As

Publication number Publication date
CN102843441B (zh) 2017-02-22
EP2704403A1 (en) 2014-03-05
CN102843441A (zh) 2012-12-26
US20140095733A1 (en) 2014-04-03
EP2704403A4 (en) 2014-12-31

Similar Documents

Publication Publication Date Title
WO2012174914A1 (zh) 控制地址配置方式的方法和设备
EP2608491B1 (en) Method, apparatus and system for allocating public IP address
US8631100B2 (en) Automatic assignment of hardware addresses within computer networks
WO2015085523A1 (zh) 一种虚拟可扩展局域网的通信方法、装置和系统
US20130024553A1 (en) Location independent dynamic IP address assignment
WO2013185644A1 (zh) 虚拟网络自动发现和自动配置的方法及其装置
CN102984295B (zh) 一种移动终端及其地址分配方法
WO2015085788A1 (zh) 一种动态主机配置协议报文处理方法及装置
WO2012163007A1 (zh) 解决网际协议地址分配冲突的方法及相关设备和系统
WO2014056441A1 (zh) 一种在CPE上配置IPv6过渡技术的方法及设备
EP3255866B1 (en) Internet protocol address allocation method and router
EP2658206B1 (en) Ip address configuration method, device and system
WO2011100907A2 (zh) 参数配置的方法和网元设备
WO2018161795A1 (zh) 一种路由优先级配置方法、设备以及控制器
WO2012136006A1 (zh) 多归属站点内主机的路由选择方法和装置
CN111385373B (zh) 用于链路本地地址的范围的快速重复地址检测
WO2018006684A1 (zh) 报文处理方法、装置及路由器
CN111669309B (zh) 一种建立VxLAN的方法及无线控制器、交换机
US9137197B2 (en) IP router and method of allocating IP address
WO2014169838A1 (zh) 动态主机配置协议服务器、中继的管理方法及装置
CN107172229B (zh) 路由器的配置方法及装置
WO2015085558A1 (zh) 一种动态分配ip地址的方法、装置和系统
WO2012139283A1 (zh) 地址分配方法及装置
EP3021529A1 (en) Method and device for implementing layer 3 virtual private network
CN107295113B (zh) 一种网络配置的方法、交换机和服务器

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

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2012802305

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2012802305

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE