[go: up one dir, main page]

CN102594653A - Discovery method, device and system for host nodes of Internet Protocol Version 6 (IPv6) - Google Patents

Discovery method, device and system for host nodes of Internet Protocol Version 6 (IPv6) Download PDF

Info

Publication number
CN102594653A
CN102594653A CN2011100093905A CN201110009390A CN102594653A CN 102594653 A CN102594653 A CN 102594653A CN 2011100093905 A CN2011100093905 A CN 2011100093905A CN 201110009390 A CN201110009390 A CN 201110009390A CN 102594653 A CN102594653 A CN 102594653A
Authority
CN
China
Prior art keywords
host node
ipv6
option
message
error message
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN2011100093905A
Other languages
Chinese (zh)
Inventor
周云龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Digital Technologies Chengdu Co Ltd
Original Assignee
Huawei Digital Technologies Chengdu Co Ltd
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 Huawei Digital Technologies Chengdu Co Ltd filed Critical Huawei Digital Technologies Chengdu Co Ltd
Priority to CN2011100093905A priority Critical patent/CN102594653A/en
Publication of CN102594653A publication Critical patent/CN102594653A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a discovery method, a device and a system for host nodes of IPv6. The method includes sending an Ipv6 solicitation carrying a designated option to a host-nodes multicast address, wherein the Ipv6 solicitation of the designated option is used for instructing a host node which receives the Ipv6 solicitation of the designated option to respond with an Internet Control Messages Protocol (ICMP) error message; receiving the ICMP error message with which the host node responds, obtaining information of the host node according to the ICMP error message, and constructing an entry to maintain the information of the host node. A Router can initiatively start detection of the host nodes of the IPv6 and detect the host node state of the IPv6 in real time, therefore manage the host nodes connected with the Router timely and effectively.

Description

Method, device and system for discovering IPv6 host node
Technical Field
The invention relates to the technical field of communication, in particular to a method, a device and a system for discovering an IPv6 host node.
Background
The sixth Version of Internet Protocol (IPv 6) is the second generation standard Protocol of network layer Protocol, and an important feature in the IPv6 Protocol is the Neighbor Discovery (ND) mechanism of IPv 6. The neighbor discovery of IPv6 mainly implements analysis of a neighbor address and detection of neighbor reachability, where a defined packet is carried by using an Internet Control Message Protocol (ICMP), and the type of the defined packet includes: router Solicitation (RS), Router Advertisement (RA), Neighbor Solicitation (NS), Neighbor Advertisement (NA), and redirection.
The neighbor discovery of the host node and the router is completed based on the interaction of the RS message and the RA message, specifically, after the host node is online, the host node sends a request to the router through the RS message, after receiving the RS message, the router learns host node information according to the RS message, and simultaneously sends the router information to the host node through the RA message as a response.
In the above prior art method: host node information can not be actively collected through the router, and only can be passively discovered through online of the host node. In addition, it cannot be guaranteed that the host node information acquired by the router is reliable at present, and the router cannot sense some host nodes with changed states.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a system for discovering an IPv6 host node, wherein the router can actively discover the IPv6 host node.
An embodiment of the present invention provides a method for discovering an IPv6 host node, including: sending an IPv6 message carrying an appointed option to a multicast address of a host node, wherein the IPv6 message of the appointed option is used for indicating the host node receiving the IPv6 message of the appointed option to respond to an ICMP error message; and receiving an ICMP error message responded by the host node, acquiring the host node information according to the ICMP error message, and establishing a table entry to maintain the host node information.
One embodiment of the present invention provides a router, including: a sending unit, configured to send an IPv6 message carrying an appointed option to a multicast address of a host node, where the IPv6 message of the appointed option is used to indicate that the host node that receives the IPv6 message of the appointed option responds to an ICMP error message; a receiving unit, configured to receive an ICMP error message from the host node; and the processing unit is used for acquiring the host node information according to the ICMP error message and establishing a table entry to maintain the host node information.
An embodiment of the present invention further provides a system for IPv6 host node discovery, including: the router is used for sending an IPv6 message carrying an appointed option to a multicast address of a host node, receiving an ICMP error message from the host node, acquiring host node information according to the ICMP error message, and establishing a table entry to maintain the host node information, wherein the IPv6 message of the appointed option is used for indicating the host node receiving the IPv6 message of the appointed option to respond to the ICMP error message; and the host node receives the IPv6 message carrying the appointed option and returns an ICMP error message to the router.
By adopting the technical scheme of the embodiment of the invention, the router can actively initiate the detection of the IPv6 host node and can detect the state of the IPv6 host node in real time, thereby timely and effectively managing the host node connected with the router.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart illustrating a method for discovering an IPv6 host node according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an option format;
fig. 3 is a schematic structural diagram of a router according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of a system for IPv6 host node discovery according to a third embodiment of the present invention;
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a method, a device and a system for discovering an IPv6 host node, wherein a router actively initiates detection on an IPv6 host node, and the state of the IPv6 host node can be detected in real time. The embodiment of the invention also provides a corresponding device and a corresponding system. The following are detailed below.
Example one
Referring to fig. 1, an embodiment of the present invention provides a method for discovering an IPv6 host node, including the following steps:
101. the router actively sends an IPv6 message carrying the appointed option to the multicast address of the host node;
in the embodiment of the invention, the router selects a local link broadcast address FF02::1 with a broadcast information function as a destination address according to an IPv6 protocol, and actively sends an IPv6 message carrying a designated option to all host node multicast addresses with the destination address FF02:: 1.
The designated option format carried in the IPv6 message is shown in fig. 2, and includes three parts, namely, option Type, opt DataLen, and option Data. Wherein,
in the embodiment of the invention, the option Type is encoded according to the following rule, and the highest two bits limit the reaction needed to be done when the IPv6 host node cannot identify the option Type:
00: skip this option and continue processing the header
01: discard the message
10: this message is discarded and an ICMP error message needs to be responded to regardless of whether the destination address is a multicast address.
In the step, the router sends an IPv6 message with the highest two bits of 10 of the option Type to all the host node multicast addresses with the destination address of FF02:: 1.
102. After receiving the IPv6 message carrying the appointed option, the host node returns an ICMP error message to the router.
The ICMP does not correct errors, if the host node has some problems encountered during processing the IPv6, such as destination unreachable, source inhibition, overtime, parameter problems or route change, the host node discards the error IPv6 message first, and then calls an ICMP error message to report error information to the router, wherein the ICMP error message carries a source IPv6 address. Further, the destination address of the ICMP error message is the source address of the discarded data, i.e., the address of the router, so the host node can respond to the router with the ICMP error message.
103. The router acquires the host node information according to the ICMP error message and establishes a table entry to maintain the host node information.
After receiving the ICMP error message from the host node, the router acquires the host node information according to the source ipv6 address in the ICMP error message, and establishes a table entry to maintain the host node information, thereby managing the host node connected to the router.
The router establishment table entry maintenance information is similar to the existing method, and therefore is not described herein again.
Example two
Referring to fig. 3, an embodiment of the present invention provides a router, including:
a sending unit 301, configured to send an IPv6 message carrying an assignment option to a host node multicast address;
specifically, the sending unit selects a local link broadcast address FF02::1 with a broadcast information function as a destination address according to an IP v6 protocol, and actively sends an IPv6 message carrying a designated option to all host node multicast addresses with the destination address FF02::1, wherein the highest two bits of an option Type of the IPv6 message of the designated option are set to be 10.
A receiving unit 302, configured to receive an ICMP error message from a host node;
specifically, after the host node receives the IPv6 message carrying the designated option, since the highest two bits of the option Type of the IPv6 message carrying the designated option are 10, the host node responds to the router with an ICMP error message carrying a source IPv6 address.
And the processing unit 303 is configured to acquire host node information according to the ICMP error message, and establish a table entry to maintain the host node information.
Specifically, the processing unit acquires the host node information according to the source ipv6 address in the ICMP error message, and establishes a table entry to maintain the host node information, thereby managing the host node connected to the router.
EXAMPLE III
Referring to fig. 4, an embodiment of the present invention provides a system for IPv6 host node discovery, including:
the router 401 is used for sending an IPv6 message carrying an appointed option to a multicast address of the host node, receiving an ICMP error message from the host node, acquiring host node information according to the ICMP error message, and establishing a table entry to maintain the host node information; and
and the host node 402 receives the IPv6 message carrying the designated option and returns an ICMP error message to the router.
The router selects a local link broadcast address FF02::1 with a broadcast information function as a destination address according to an IP v6 protocol, and actively sends an IPv6 message carrying an appointed option to all host node multicast addresses with the destination address FF02::1, wherein the highest two bits of an option Type of the IPv6 message of the appointed option are set as 10. After the host node receives the IPv6 message carrying the designated option, because the highest two bits of the option Type of the IPv6 message carrying the designated option are 10, the host node responds to the router with an ICMP error message carrying a source IPv6 address. After receiving the ICMP error message from the host node, the router acquires the host node information according to the source ipv6 address in the ICMP error message, and establishes a table entry to maintain the host node information, thereby managing the host node connected to the router.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: a hard disk, a magnetic or optical disk, or the like.
The method, apparatus, and system for discovering IPv6 host nodes provided in the embodiments of the present invention are described in detail above, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for IPv6 host node discovery, comprising:
sending an IPv6 message carrying an appointed option to a multicast address of a host node, wherein the IPv6 message of the appointed option is used for indicating the host node receiving the IPv6 message of the appointed option to respond to an ICMP error message; and
receiving ICMP error message responded by the host node, obtaining the host node information according to the ICMP error message, and establishing a table entry to maintain the host node information.
2. The method according to claim 1, wherein the sending of the IPv6 packet carrying the designated option to the host node multicast address specifically comprises: the router selects a local link broadcast address FF02::1 with a broadcast information function as a destination address according to an IP v6 protocol, and actively sends an IPv6 message carrying an appointed option to all host node multicast addresses with the destination address FF02:: 1.
3. The method of claim 1, wherein the option-specific IPv6 message is an option Type IPv6 message with the highest two bits of 10.
4. The method of claim 1, wherein: the ICMP error message carries a source ipv6 address,
the acquiring the host node information according to the ICMP error message specifically includes: and acquiring the host node information according to the source ipv6 address in the ICMP error message.
5. A router, comprising:
a sending unit, configured to send an IPv6 message carrying an appointed option to a multicast address of a host node, where the IPv6 message of the appointed option is used to indicate that the host node that receives the IPv6 message of the appointed option responds to an ICMP error message;
a receiving unit, configured to receive an ICMP error message from the host node; and
and the processing unit is used for acquiring the host node information according to the ICMP error message and establishing a table entry to maintain the host node information.
6. The router of claim 5, wherein: the sending unit is configured to send an IPv6 message carrying an assignment option to the host node multicast address, and specifically includes: the sending unit selects a local link broadcast address FF02::1 with a broadcast information function as a destination address according to an IP v6 protocol, and actively sends an IPv6 message carrying a designated option to all host node multicast addresses with the destination address FF02:: 1.
7. The router of claim 5, wherein: the IPv6 message of the appointed option is an IPv6 message of which the highest two bits of the option Type are 10.
8. The router of claim 5, wherein the ICMP error message carries a source ipv6 address
9. A system for IPv6 host node discovery, comprising:
the router is used for sending an IPv6 message carrying an appointed option to a multicast address of a host node, receiving an ICMP error message from the host node, acquiring host node information according to the ICMP error message, and establishing a table entry to maintain the host node information, wherein the IPv6 message of the appointed option is used for indicating the host node receiving the IPv6 message of the appointed option to respond to the ICMP error message; and
and the host node receives the IPv6 message carrying the appointed option and returns an ICMP error message to the router.
10. The system according to claim 9, wherein said sending the IPv6 packet carrying the designated option to the host node multicast address specifically comprises: the router selects a local link broadcast address FF02 with a broadcast information function according to an IPv6 protocol, wherein 1 is used as a destination address, and actively sends an IPv6 message carrying an appointed option to all host node multicast addresses with the destination address FF02: 1;
the IPv6 message of the appointed option is an IPv6 message of which the highest two bits of the option Type are 10.
CN2011100093905A 2011-01-13 2011-01-13 Discovery method, device and system for host nodes of Internet Protocol Version 6 (IPv6) Pending CN102594653A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100093905A CN102594653A (en) 2011-01-13 2011-01-13 Discovery method, device and system for host nodes of Internet Protocol Version 6 (IPv6)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100093905A CN102594653A (en) 2011-01-13 2011-01-13 Discovery method, device and system for host nodes of Internet Protocol Version 6 (IPv6)

Publications (1)

Publication Number Publication Date
CN102594653A true CN102594653A (en) 2012-07-18

Family

ID=46482870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100093905A Pending CN102594653A (en) 2011-01-13 2011-01-13 Discovery method, device and system for host nodes of Internet Protocol Version 6 (IPv6)

Country Status (1)

Country Link
CN (1) CN102594653A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685598A (en) * 2013-12-06 2014-03-26 国家计算机网络与信息安全管理中心 Method and device for discovering active IP address in IPv6 network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685598A (en) * 2013-12-06 2014-03-26 国家计算机网络与信息安全管理中心 Method and device for discovering active IP address in IPv6 network

Similar Documents

Publication Publication Date Title
CN102263704B (en) Topology construction method and device supporting layer 2 interconnection of data centers
CN110034971B (en) Method and device for detecting service chain
JP6001797B2 (en) Method for managing a ZigBee network in the Internet of Things
CN103179228B (en) Internet Protocol address analytic method and fringe node
CN106412142B (en) Resource equipment address obtaining method and device
CN102271050B (en) Method and system for automatically configuring network equipment in Internet protocol version 6 (IPv6) network, and network equipment
JP6633775B2 (en) Packet transmission
CN108270602B (en) Method, device and system for detecting data link
US10404544B2 (en) Network topology determining method and apparatus, and centralized network status information storage device
CN113411260A (en) Method and device for sending data message in IPv6 network
US20140032782A1 (en) Method and apparatus for route selection of host in multihoming site
US20100027555A1 (en) Method for processing link state advertisement and routing device
CN101771604A (en) Routing detection method, system and intermediate routing device
CN105207909B (en) A kind of method and network equipment sending information
CN112152928A (en) Neighbor table entry learning method and device and routing equipment
CN102859947B (en) Method, apparatus and system for neighbor discovery
EP2690832B1 (en) Communication device, communication system, and communication method
WO2018177273A1 (en) Method and apparatus for processing based on bier information
CN101796769A (en) Internet Protocol Version 6 Transition Method and Apparatus over Internet Protocol Version 4 for Improving Control Server Performance
US20230327983A1 (en) Performance measurement in a segment routing network
CN102594653A (en) Discovery method, device and system for host nodes of Internet Protocol Version 6 (IPv6)
JP5673133B2 (en) MAC search system and MAC search method for MPLS-TP device
CN101753419B (en) Method for transmitting and forwarding data, equipment, and multiple-address space mobile network
CN103503383B (en) Communication system, router, switching hub and communication method
JP2004135108A (en) Communication control method, communication terminal, router, control program of communication terminal and control program of router

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120718