WO2009071030A1 - Method for reporting device information, system and device for obtaining device information - Google Patents

Method for reporting device information, system and device for obtaining device information Download PDF

Info

Publication number
WO2009071030A1
WO2009071030A1 PCT/CN2008/073230 CN2008073230W WO2009071030A1 WO 2009071030 A1 WO2009071030 A1 WO 2009071030A1 CN 2008073230 W CN2008073230 W CN 2008073230W WO 2009071030 A1 WO2009071030 A1 WO 2009071030A1
Authority
WO
WIPO (PCT)
Prior art keywords
response
packet
device information
source device
information
Prior art date
Application number
PCT/CN2008/073230
Other languages
French (fr)
Chinese (zh)
Inventor
Fubing Li
Original Assignee
Huawei Technologies 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 Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2009071030A1 publication Critical patent/WO2009071030A1/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

Landscapes

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

Abstract

A method for reporting device information, system and device for obtaining the device information of the communication field are disclosed. The method includes: receiving a detection message including responding id field sent from source device; sending responding message when the device itself is target device; judging whether to send the responding message according to the responding id field when the device itself is not the target device; if yes, sending the responding message to the source device; the responding message including the device information of the device itself, and the device information including device name at least. Thesystem includes source device and responding device. The device includes receiving module, the first judgment module, the second judgment module and responding message sending module. By carrying the device information in the responding message of the present invention, the source device is informed the device name and the current status of the device itself, and the management and maintenance for the network is facilitated.

Description

上报设备信息的方法、 获取设备信息的系统和设备 技术领域  Method for reporting device information, system and device for acquiring device information
本发明涉及通信领域, 特别涉及一种上报设备信息的方法、 获取设备信息的系统和设 备。 说  The present invention relates to the field of communications, and in particular, to a method for reporting device information, a system for acquiring device information, and a device. Say
背景技术 Background technique
随着网络技术的发展, 越来越多的人开始使用网络处理日常生活。 运营商借助网络为 消费者提供各种业务的同时, 对网络的管理能力也提出了越来越高的要求。 网络的管理建 立在对网络运行信息掌握的基础之上, 如果无法掌握运行设备的各种信息, 将无法对设备 书  With the development of network technology, more and more people are using the network to handle daily life. Operators use the network to provide various services to consumers, and at the same time, they have put forward higher and higher requirements for network management capabilities. The management of the network is based on the mastery of the network operation information. If you cannot grasp the various information of the running equipment, you will not be able to access the equipment.
进行适当的管理, 以及在网络发生异常时, 无法采取修正措施及时使网络恢复正常。 Proper management, and when an abnormality occurs in the network, it is impossible to take corrective actions to bring the network back to normal in time.
现有技术中提供了一种 ICMP(Internet Control Message Protocol,因特网控制报文协议), 它通过 IP (Internet Protocol, 因特网协议) 承载, 协议号是 1。 参见图 1提供的 ICMP报文 的格式, 其中, 包括 8位类型字段, 用于说明 ICMP报文的作用及格式; 8位代码字段, 用 于详细说明某种 ICMP报文的类型; 16位校验和字段, 以及数据字段, ICMP报文的类型参 见表 1。  In the prior art, an ICMP (Internet Control Message Protocol) is provided, which is carried by an IP protocol (Internet Protocol), and the protocol number is 1. See the format of the ICMP packet provided in Figure 1. The 8-bit type field is used to describe the role and format of the ICMP packet. The 8-bit code field is used to specify the type of an ICMP packet. Check the sum field, as well as the data field. See Table 1 for the type of ICMP message.
表 1  Table 1
Figure imgf000003_0001
14 Time stamp Reply 时间戳应答
Figure imgf000003_0001
14 Time stamp Reply Timestamp Reply
15 Information Request 信息请求 15 Information Request Information Request
16 Information Reply 信息应答 现有技术中还有某些 ICMP报文使用代码字段的值来进一步描述不同的条件,比如类型 值为 3时, 代码字段取值 0代表网络不可达, 代码字段取值 1代表主机不可达。 16 Information Reply In the prior art, some ICMP messages use the value of the code field to further describe different conditions. For example, when the type value is 3, the value of the code field is 0, the network is unreachable, and the code field is 1. The host is unreachable.
节点对网络流量进行处理时, 可以将本节点在处理报文时发生的某些特定情况, 通过 向源节点发送 ICMP应答报文的形式通告给源节点。现有技术中有一种信息获取的方法,该 方法利用 ICMP完成网络探索, 如 traceroute程序, 其原理如下:  When the node processes the network traffic, it can advertise the ICMP response packet to the source node to the source node. In the prior art, there is a method for information acquisition, which uses ICMP to complete network exploration, such as a traceroute program, and the principle is as follows:
当路由器收到一个 IP报文时, 如果其 TTL (Time To Live, 生存周期) 是 0或 1, 则路 由器不转发该报文, 直接丢弃该报文, 同时, 向源设备发送一个含超时信息的 ICMP应答报 文, 即 ICMP应答报文类型值为 11, 代码字段为 0, 该 ICMP应答报文的源地址是该路由器 的 IP地址。  When the router receives an IP packet, if the TTL (Time To Live) is 0 or 1, the router does not forward the packet, discards the packet, and sends a timeout message to the source device. The ICMP response message, that is, the ICMP response message type value is 11, the code field is 0, and the source address of the ICMP response message is the IP address of the router.
在实现本发明的过程中, 发明人发现上述信息获取方法至少存在以下问题:  In the process of implementing the present invention, the inventors have found that the above information acquisition method has at least the following problems:
通过 ICMP报文的形式获取设备信息的方法, 只能得到报文经过的路由器的 IP地址, 通常一台路由器可能存在多个 IP地址, 该方法只能获得其中某一个 IP地址, 而具体返回哪 一个 IP并没有统一, 根据获得的 IP定位到具体的物理设备比较困难; 并且也无法获得设备 的其他信息。 发明内容  The method of obtaining device information in the form of ICMP packets can only obtain the IP address of the router through which the packet passes. Usually, a router may have multiple IP addresses. This method can only obtain one of the IP addresses. An IP is not unified. It is difficult to locate a specific physical device based on the obtained IP; and other information about the device cannot be obtained. Summary of the invention
为了方便网络的管理与维护, 本发明实施例提供了一种上报设备信息的方法、 获取设 备信息的系统和设备。 所述技术方案如下:  In order to facilitate the management and maintenance of the network, the embodiments of the present invention provide a method for reporting device information, and a system and device for acquiring device information. The technical solution is as follows:
一种上报设备信息的方法, 所述方法包括:  A method for reporting device information, the method comprising:
接收源设备发送的包括应答标识字段的探测报文;  Receiving, by the source device, a probe packet including a response identifier field;
当自身为目的设备时, 向所述源设备发送应答报文;  When the device is the destination device, sending a response packet to the source device;
当自身不是目的设备时, 根据所述应答标识字段判断是否需要发送应答报文; 如果是, 向所述源设备发送应答报文;  When it is not the destination device, it is determined according to the response identifier field whether it is necessary to send a response message; if yes, sending a response message to the source device;
所述应答报文携带自身的设备信息, 所述设备信息至少包括设备名称。  The response message carries its own device information, and the device information includes at least a device name.
本发明实施例还提供了一种获取设备信息的系统, 所述系统包括:  An embodiment of the present invention further provides a system for acquiring device information, where the system includes:
源设备, 用于发送包括应答标识字段的探测报文; 以及接收应答报文, 根据所述应答 报文携带的设备信息中的设备名称确定对应的设备; 应答设备, 用于接收所述探测报文, 当自身为目的设备时, 向所述源设备发送应答报 文; 当自身不是目的设备时, 根据所述应答标识字段判断是否需要发送应答报文; 如果是, 向所述源设备发送应答报文; 所述应答报文携带所述应答设备的设备信息, 所述设备信息 至少包括设备名称。 a source device, configured to send a probe packet including a response identifier field, and receive a response packet, and determine a corresponding device according to the device name in the device information carried in the response packet; The answering device is configured to receive the probe packet, and when it is the destination device, send a response packet to the source device; when it is not the destination device, determine, according to the response identifier field, whether the response packet needs to be sent; If yes, sending a response message to the source device; the response message carries device information of the response device, and the device information includes at least a device name.
进一步地, 本发明实施例还提供了一种上报设备信息的网络设备, 所述网络设备包括: 接收模块, 用于接收包括应答标识字段的探测报文;  Further, the embodiment of the present invention further provides a network device that reports device information, where the network device includes: a receiving module, configured to receive a probe packet including a response identifier field;
第一判断模块, 用于根据所述接收模块接收到的探测报文中的目的地址判断自身是否 为目的设备;  The first determining module is configured to determine, according to the destination address in the probe packet received by the receiving module, whether the device is the destination device;
第二判断模块, 用于当所述第一判断模块判断出自身不是目的设备时, 根据所述探测 报文中的应答标识字段判断是否需要向源设备发送应答报文;  a second determining module, configured to: when the first determining module determines that the device is not the destination device, determine, according to the response identifier field in the detection packet, whether the response packet needs to be sent to the source device;
应答报文发送模块, 用于当所述第一判断模块判断出自身是目的设备时, 或当所述第 二判断模块的判断结果是需要向所述源设备发送应答报文时, 向所述源设备发送应答报文, 所述应答报文携带自身的设备信息, 所述设备信息至少包括设备名称。  a response message sending module, configured to: when the first determining module determines that it is a destination device, or when the determining result of the second determining module is that the response message needs to be sent to the source device, The source device sends a response packet, where the response packet carries its own device information, and the device information includes at least a device name.
本发明实施例提供的技术方案的有益效果是:  The beneficial effects of the technical solutions provided by the embodiments of the present invention are:
通过在应答报文中携带设备信息, 通知源设备本设备的设备名称及当前状态, 方便了 网络的管理与维护。 附图说明  By carrying the device information in the response packet, the source device is notified of the device name and current state of the device, which facilitates network management and maintenance. DRAWINGS
图 1是现有技术提供的 ICMP报文的格式示意图;  1 is a schematic diagram of a format of an ICMP packet provided by the prior art;
图 2是本发明实施例 1提供的自定义协议的数据格式示意图;  2 is a schematic diagram of a data format of a custom protocol provided by Embodiment 1 of the present invention;
图 3是本发明实施例 1提供的上报设备信息的方法流程图;  3 is a flowchart of a method for reporting device information according to Embodiment 1 of the present invention;
图 4是本发明实施例 1提供的网络结构示意图;  4 is a schematic structural diagram of a network provided by Embodiment 1 of the present invention;
图 5是本发明实施例 1提供的另一个网络结构示意图;  FIG. 5 is a schematic diagram of another network structure provided by Embodiment 1 of the present invention; FIG.
图 6是本发明实施例 2提供的上报设备信息的方法流程图;  6 is a flowchart of a method for reporting device information according to Embodiment 2 of the present invention;
图 7是本发明实施例 3提供的获取设备信息的系统示意图;  7 is a schematic diagram of a system for acquiring device information according to Embodiment 3 of the present invention;
图 8是本发明实施例 4提供的上报设备信息的网络设备示意图。 具体实施方式  FIG. 8 is a schematic diagram of a network device for reporting device information according to Embodiment 4 of the present invention. detailed description
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明实施方式作 进一步地详细描述。  The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
本发明实施例中的设备接收到包括应答字段的探测报文后, 当自身为目的设备时, 向 源设备发送应答报文; 当自身不是目的设备时, 根据应答标识字段判断是否需要发送应答 报文; 如果是, 向源设备发送应答报文, 其中, 应答报文携带自身的设备信息, 且设备信 息至少包括设备名称, 使源设备能够根据设备名称确认对应的设备, 方便了网络的管理与 维护。 After receiving the probe packet including the response field, the device in the embodiment of the present invention, when it is the destination device, The source device sends a response packet; when it is not the destination device, it determines whether it needs to send a response packet according to the response identifier field; if yes, sends a response packet to the source device, where the response packet carries its own device information, and the device The information includes at least the device name, so that the source device can confirm the corresponding device according to the device name, which facilitates network management and maintenance.
实施例 1  Example 1
本实施例提供了一种上报设备信息的方法, 其中, 设备信息至少包括设备名称, 还可 以包括本地信息和 /或 TTL, 本地信息指入接口丢包数、 出接口丢包数、 入接口丢字节数、 出接口丢字节数、 入接口总带宽、 出接口总带宽、 入接口空闲带宽、 出接口空闲带宽、 转 发失败原因、 转发属性信息和 MTU (Maximum Transmission Unit, 最大传输单元) 中的一 种或多种。 另夕卜, 设备信息中可以包括设备的 IP地址或 MAC (Media Access Control, 介质 访问控制) 地址, 也可以不包括其 IP地址或 MAC地址, 根据需要, 设备名称也可以表示 为设备的 MAC地址或 IP地址, 为了利于识别, 优选带有地理位置信息的名称作为设备名 称。  The embodiment provides a method for reporting device information, where the device information includes at least a device name, and may also include local information and/or TTL. The local information refers to the number of lost packets on the inbound interface, the number of dropped packets on the outbound interface, and the lost interface. Number of bytes, number of bytes lost on the outbound interface, total bandwidth of the inbound interface, total bandwidth of the outbound interface, idle bandwidth of the inbound interface, free bandwidth of the outbound interface, reason for forwarding failure, forwarding attribute information, and MTU (Maximum Transmission Unit) One or more. In addition, the device information may include the device's IP address or MAC (Media Access Control) address, or may not include its IP address or MAC address. The device name may also be represented as the device's MAC address. Or an IP address, in order to facilitate identification, a name with geographical location information is preferred as the device name.
本实施例定义了一种可以扩展的协议, 该协议的数据格式中定义了多个类型字段, 如 表 2所示, 通过类型字段携带上述设备信息, 根据设备信息对网络进行管理和维护。  This embodiment defines an extensible protocol. The data format of the protocol defines multiple types of fields. As shown in Table 2, the device information is carried in the type field, and the network is managed and maintained according to the device information.
表 2  Table 2
Figure imgf000006_0001
TTL 11 lByte 设备收到的报文中携带的 TTL值 转发失败原因 12 lByte 1: 路由查找失败; 2: QoS; 3: 无法找到 L2封装信 息; 4: 安检失败; 5: URPF失败 转发属性信息 13 lByte 1: 走缺省路由; 2: 负载分担; 3 : 主备链路的备用 链路; 4 : 主备链路的备用链路; 5 : 进入隧道 (GRE,MPLS等) 表中的 QoS为 Quality of Service,月艮务质量; URPF为 Unicast Reverse Path Forwarding, 单播逆向路径转发; GRE为 Generic Routing Encapsulation, 通用路由封装。
Figure imgf000006_0001
TTL 11 lByte The TTL value carried in the packet received by the device failed to be forwarded due to 12 lByte 1: route lookup failed; 2: QoS; 3: L2 encapsulation information could not be found; 4: security check failed; 5: URPF failure forwarding attribute information 13 lByte 1: Take the default route; 2: Load sharing; 3: Standby link of the primary and backup links; 4: Standby link of the primary and backup links; 5: QoS for entering the tunnel (GRE, MPLS, etc.) Quality of Service, monthly quality; URPF is Unicast Reverse Path Forwarding, unicast reverse path forwarding; GRE is Generic Routing Encapsulation, general routing encapsulation.
本实施例中的带宽单位不固定,用 1表示 bits, 2表示 kbits , 3表示 Mbits, 4表示 Gbits, 5表示 10Gbits。  The bandwidth unit in this embodiment is not fixed, and 1 indicates bits, 2 indicates kbits, 3 indicates Mbits, 4 indicates Gbits, and 5 indicates 10 Gbits.
例如: 一个报文中可同时携带多个数据, 一个数据由三部分组成: 类型、 长度和值。 应答设备 (设备名称为 SHANGHAI) 发送的应答报文中携带的入接口丢包数量为 100, 出 接口丢包数量为 200, 则数据格式参见图 2, 其中, 类型为 1时, 表示设备名称, 其长度为 8, 值为 SHANGHAI; 类型为 2时, 表示入接口丢包数, 其长度为 8, 值为 100; 类型为 3 时, 表示出接口丢包数, 其长度为 8, 值为 200。  For example: A message can carry multiple data at the same time. One data consists of three parts: type, length and value. The number of lost packets on the inbound interface sent by the response device (the device name is SHANGHAI) is 100, and the number of lost packets on the outbound interface is 200. For the data format, see Figure 2, where the type is 1, the device name is displayed. The length is 8 and the value is SHANGHAI. When the type is 2, the number of packets lost on the inbound interface is 8 and the value is 100. When the type is 3, the number of packets lost on the interface is 8. The length is 8 and the value is 200. .
参见图 3, 该上报设备信息的方法包括:  Referring to FIG. 3, the method for reporting device information includes:
S101 : 源设备向下一跳设备发送探测报文, 该探测报文包括应答标识字段。  S101: The source device sends a probe packet to the next hop device, where the probe packet includes a response identifier field.
其中, 探测报文可以是自定义的探测报文, 也可以是 ICMP报文; 自定义的探测报文可 以具有 ICMP报文的功能,或者为带有应答标识字段的报文,用以使下一跳设备收到探测报 文后, 能够根据应答标识字段决定是否将其设备信息回复给源设备。  The detection packet may be a self-defined probe packet or an ICMP packet. The custom probe packet may have an ICMP packet function or a packet with a response identifier field. After receiving the probe packet, the one-hop device can determine whether to return its device information to the source device according to the response identifier field.
源设备可以预先和其它设备约定应答标识字段的设定规则, 例如: 如果源设备只希望 获取目的设备的设备信息, 则在探测报文的应答标识字段中填加标识 "E", 表明中间设备可 以不对探测报文进行应答; 如果探测报文的应答标识字段中没有填加标识 "E", 表示源设备 希望获取路径上每个设备的设备信息。 或者, 用在探测报文的应答标识字段中填加 "1"表示 需要应答,填加 "0"表示不需要应答等。本实施例以应答标识字段中是否填加标识 Έ"作为是 否要求应答的依据。  The source device can pre-configure the setting rule of the response identifier field with other devices. For example: If the source device only wants to obtain the device information of the destination device, add the identifier "E" in the response identifier field of the probe packet to indicate the intermediate device. The device does not respond to the probe packet. If the identifier "E" is not added to the response identifier field of the probe packet, the source device wants to obtain the device information of each device on the path. Alternatively, adding "1" in the response identification field of the probe message indicates that a response is required, and adding "0" indicates that no response is required. In this embodiment, whether or not the identifier Έ is added to the response identifier field is used as a basis for requesting a response.
S102: 下一跳设备收到上述探测报文后, 根据探测报文中的目的地址判断自身是否为 目的设备, 如果是, 执行 S106; 否则执行 S103。  S102: After receiving the foregoing probe packet, the next hop device determines whether it is the destination device according to the destination address in the probe packet. If yes, execute S106; otherwise, execute S103.
S103 : 根据应答标识字段判断是否需要向源设备发送应答报文, 如果是, 执行 S104; 否则, 执行 S105。 S104: 向源设备发送应答报文, 该应答报文携带本设备的设备信息, 然后执行 S105。 其中, 设备信息中的本地信息为预先统计好的, 保存在本设备上。 例如: 当设备发现 所接收报文的校验码错误时, 便从入接口直接将此报文丢弃, 并记录丢弃的报文数量 (丢 包数) 及丢弃的原因; 或者, 当报文出队列已满, 便将后续需要转发的报文从出接口丢弃, 并记录丢弃的报文数量及丢弃的原因。 S103: Determine, according to the response identifier field, whether a response message needs to be sent to the source device, and if yes, execute S104; otherwise, execute S105. S104: Send a response message to the source device, where the response message carries device information of the device, and then execute S105. The local information in the device information is pre-stated and saved on the device. For example, when the device finds that the checksum of the received packet is incorrect, the device discards the packet from the inbound interface and records the number of discarded packets (the number of dropped packets) and the reason for the discarding. If the queue is full, the packets that need to be forwarded are discarded from the outbound interface. The number of discarded packets and the cause of the discarded packets are recorded.
S105: 修改探测报文中的 TTL, 将原来的 TTL减 1, 向下一跳设备转发修改后的探测 报文, 返回 S102。  S105: Modify the TTL in the probe packet, and reduce the original TTL by 1, and forward the modified probe packet to the next hop device, and return to S102.
S106: 目的设备向源设备发送应答报文, 该应答报文携带本设备的设备信息。  S106: The destination device sends a response packet to the source device, where the response packet carries device information of the device.
S107: 源设备收到应答报文后, 提取应答报文中携带的设备信息。  S107: After receiving the response packet, the source device extracts the device information carried in the response packet.
上述各标号只是用于引用方便, 并不对各流程的先后顺序造成限定, 例如: S104也可 以在 S105之后执行。  The above-mentioned respective numbers are only for convenience of reference, and do not limit the order of the processes, for example: S104 can also be executed after S105.
源设备根据提取出的设备信息进行分析:  The source device analyzes based on the extracted device information:
1 ) 如果应答报文携带的设备信息为设备名称, 源设备将能够知道哪个设备在线。  1) If the device information carried in the response message is the device name, the source device will be able to know which device is online.
2) 如果应答报文携带的设备信息为设备名称和本地信息, 源设备将得知该设备名称对 应的设备的状态, 例如:  2) If the device information carried in the response packet is the device name and local information, the source device will know the status of the device corresponding to the device name, for example:
应答报文携带入 /出接口丢包数时, 根据该丢包数源设备可以分析出路径上哪个设备对 数据、 声咅或图像等传输造成影响;  When the response packet carries the number of lost packets on the inbound/outbound interface, the source device can analyze which device on the path affects the transmission of data, voice, or image according to the number of packets lost;
该应答报文携带转发失败原因、 转发属性信息时, 源设备可以根据这个原因寻找解决 的途径;  When the response packet carries the reason for forwarding failure and forwards the attribute information, the source device may find a solution according to the reason;
该应答报文携带带宽占用量 (入接口总带宽、 出接口总带宽、 入接口空闲带宽、 出接 口空闲带宽) 时, 源设备将可以根据带宽占用量分析该设备是否达到传输的瓶颈。  When the response packet carries the bandwidth usage (the total bandwidth of the inbound interface, the total bandwidth of the inbound interface, the idle bandwidth of the inbound interface, and the idle bandwidth of the inbound interface), the source device can analyze whether the device has reached the transmission bottleneck according to the bandwidth usage.
应答报文携带设备的 MTU时, 源设备将可以知道该设备是否会导致报文分片等。 When the response packet carries the MTU of the device, the source device can know whether the device will cause packet fragmentation.
3 )如果应答报文携带的设备信息为设备名称和 TTL时,根据每个设备返回的应答报文 中的 TTL, 源设备将可以知道路径上每个设备的先后顺序。 3) If the device information carried in the response packet is the device name and TTL, the source device can know the sequence of each device on the path according to the TTL in the response packet returned by each device.
4)如果应答报文携带的设备信息为设备名称、本地信息和 TTL时, 源设备将能够分析 出上述 1 ) 至 3 ) 中的信息。  4) If the device information carried in the response message is the device name, local information, and TTL, the source device will be able to analyze the information in 1) to 3) above.
参见图 4提供的网络结构示意图,以源设备 Beijing向目的设备 Shenzhen发送探测报文, 途经中间设备 Shanghai和 Guangzhou为例, 上述方法过程如下:  Referring to the network structure diagram provided in Figure 4, the source device Beijing sends a probe packet to the destination device Shenzhen. The intermediate device Shanghai and Guangzhou are used as an example. The above method is as follows:
1 ) 源设备 Beijing发送探测报文, 该探测报文的 TTL = 64, 且应答标识字段中没有携 带标识 E。  1) The source device Beijing sends a probe packet, the TTL of the probe packet is 64, and the identifier E is not carried in the response identifier field.
2) 中间设备 Shanghai收到上述探测报文后, 因该探测报文没有携带标识 E, 表明中间 设备需要对该探测报文进行应答, 则所述中间设备 Shanghai提取探测报文中的 TTL = 64, 将 64减 1得到 63, 向源设备 Beijing发送应答报文, 该应答报文携带此中间设备的设备名 称 Shanghai和 TTL = 63;修改探测报文中的 TTL为 63,向下一跳设备(中间设备 Guangzhou) 转发修改后的探测报文; 2) After the intermediate device Shanghai receives the above probe packet, the probe packet does not carry the identifier E, indicating the middle. The device needs to respond to the probe packet, and the intermediate device Shanghai extracts the TTL=64 in the probe packet, and decrements 64 to get 63, and sends a response packet to the source device Beijing, and the response packet carries the intermediate device. The device name is Shanghai and TTL = 63; the TTL of the probe packet is 63, and the modified probe packet is forwarded to the next hop device (the intermediate device Guangzhou);
3 )中间设备 Guangzhou收到探测报文后, 同中间设备 Shanghai的处理过程一样, 向源 设备 Beijing发送应答报文,该应答报文携带此中间设备的设备名称 Guangzhou和 TTL = 62; 修改探测报文中的 TTL为 62, 向下一跳设备(目的设备 Shenzhen)转发修改后的探测报文; 4) 目的设备 Shenzhen收到探测报文后, 向源设备 Beijing发送应答报文, 该应答报文 携带此目的设备的设备名称 Shenzhen和 TTL = 61 ;  3) After receiving the probe packet, the intermediate device Guangzhou sends a response message to the source device Beijing, which carries the device name of the intermediate device, Guangzhou and TTL = 62; In the text, the TTL is 62, and the next hop device (the destination device Shenzhen) forwards the modified probe packet. 4) After receiving the probe packet, the destination device Send sends a response packet to the source device Beijing, the response packet. The name of the device carrying the device for this purpose is Shenzhen and TTL = 61;
5 )源设备 Beijing收到 Shanghai的应答报文后, 因为并非是 Shenzhen的应答报文, 所 以继续等待, 直到收到 Shenzhen的应答报文或等待超时, 收到所有的应答报文后, 源设备 Beijing根据 Shanghai、 Guangzhou Shenzhen返回的应答报文的 TTL ( Shanghai TTL=63 Guangzhou TTL=62、 Shenzhen TTL=61 ), 可判断出路径的顺序为 Beijing— Shanghai— Guangzhou― Shenzhen。  5) After receiving the response message from Shanghai, the source device Beijing continues to wait because it is not a response message from Shenzhen, until it receives a response message from Shenzhen or waits for a timeout. After receiving all response messages, the source device According to the TTL (Shanghai TTL=63 Guangzhou TTL=62, Shenzhen TTL=61) of the response message returned by Shanghai and Guangzhou Shenzhen, Beijing can determine that the order of the path is Beijing-Shanghai- Guangzhou-Shenzhen.
参见图 5, 从北京到深圳, 例如: 北京的设备的主机名 (HostName) 为 Beijing, IP地 址为 10.1.1.1 ; 上海的设备的主机名为 Shanghai , IP 地址为 10.2.2.2, 入接口丢包数 ( InBoundLoss ) 为 0, 出接口丢包数 ( OutBoundLoss ) 为 222 ; 深圳的设备的主机名为 Shenzhen, IP地址为 10.3.3.3,入接口丢包数为 0,出接口丢包数为 0。通过输入: C:\Documents and Settings\Administrator>tracert 10.1.1.1, 将获得如下信息:  See Figure 5, from Beijing to Shenzhen, for example: The host name of the device in Beijing is Beijing, the IP address is 10.1.1.1; the host name of the device in Shanghai is Shanghai, the IP address is 10.2.2.2, and the inbound interface is lost. The number of InBoundLoss is 0, and the number of outbound packets (OutBoundLoss) is 222. The host name of the device in Shenzhen is Shenzhen, the IP address is 10.3.3.3, the number of lost packets on the inbound interface is 0, and the number of dropped packets on the outbound interface is 0. By entering: C:\Documents and Settings\Administrator>tracert 10.1.1.1, you will get the following information:
Tracing route to 10.111.138.87 over a maximum of 30 hops  Tracing route to 10.111.138.87 over a maximum of 30 hops
No IP HostName InBoundLoss OutBoundLoss  No IP HostName InBoundLoss OutBoundLoss
1 10.2.2.2 Shanghai 0 222  1 10.2.2.2 Shanghai 0 222
2 10.3.3.3 Shenzhen 0 0  2 10.3.3.3 Shenzhen 0 0
通过这些信息, 源设备可以知道探测报文经过的主机名列表, 通过对设备名称进行合 理的规划, 运营商可快速知道一个数据流经过了哪些地区或机房。 另外, 通过入 /出接口丢 包中的信息可知道中间 Shanghai设备出接口有丢包, 可能是造成视频产生马赛克的原因。  Through this information, the source device can know the list of host names through which the probe packets pass. By rationally planning the device name, the operator can quickly know which areas or computer rooms a data stream has passed. In addition, through the information in the packet on the inbound/outbound interface, it can be known that there is packet loss on the outbound interface of the intermediate Shanghai device, which may be the cause of mosaic of the video.
本实施例通过在应答报文中携带本设备的设备信息, 以使源设备通过设备信息中的设 备名称知道本设备在线, 通过设备名称管理设备的方式, 可读性好, 方便了网络的管理与 维护。 同时, 通过设备信息中的其它信息 (如: 本地信息) 可以使源设备得知本设备的状 态, 帮助解决网络中出现的问题。  In this embodiment, the device information of the device is carried in the response packet, so that the source device knows that the device is online through the device name in the device information, and the device is managed by the device name, and the readability is good, which facilitates network management. And maintenance. At the same time, through the other information in the device information (such as local information), the source device can know the status of the device and help solve problems in the network.
实施例 2 参见图 6, 本实施例提供了一种上报设备信息的方法, 该方法是通过扩展 ICMP应答机 制实现的, 包括: Example 2 Referring to FIG. 6, the embodiment provides a method for reporting device information, which is implemented by extending an ICMP response mechanism, including:
S201 : 源设备向下一跳设备发送一个包括 TTL的 ICMP探测报文。  S201: The source device sends an ICMP probe packet including a TTL to the next hop device.
S202: 下一跳设备收到 ICMP探测报文后, 检查该 ICMP探测报文中的 TTL是否为 1, 如果是, 执行 S203 ; 否则, 执行 S204。  S202: After receiving the ICMP probe packet, the next hop device checks whether the TTL in the ICMP probe packet is 1, if yes, execute S203; otherwise, execute S204.
S203 : 向源设备发送 ICMP超时报文, 并携带本设备的设备信息。  S203: Send an ICMP timeout packet to the source device, and carry the device information of the device.
其中, ICMP探测报文中的 TTL即为应答标识字段, TTL= 1, 表示需要发送应答报文, The TTL in the ICMP probe packet is the response identifier field, and TTL=1 indicates that the response packet needs to be sent.
TTL不为 1, 表示不需要发送应答报文, 本实施例中的应答报文即为 ICMP超时报文; 设备 信息与实施例 1中的设备信息相同, 这里不再赘述。 If the TTL is not 1, the device does not need to send a response packet. The response packet in this embodiment is an ICMP timeout packet. The device information is the same as the device information in the first embodiment, and is not described here.
S204: 将该 ICMP探测报文中的 TTL减 1, 将 TTL减 1后的 ICMP探测报文发送给下 一跳设备, 返回 S202。  S204: The TTL of the ICMP probe packet is decreased by 1, and the ICMP probe packet with the TTL minus one is sent to the next hop device, and the process returns to S202.
S205: 源设备收到 ICMP超时报文后, 提取 ICMP超时报文中的设备信息。  S205: After receiving the ICMP timeout packet, the source device extracts the device information in the ICMP timeout packet.
源设备也可以通过 ICMP超时报文收到的先后顺序得出路径上的设备先后顺序, 例如: 源设备将第一次发送的 ICMP探测报文的 TTL设置为 1, 收到目的设备发送的 ICMP超时 报文后, 记录设备信息中的设备名称; 然后发送 TTL为 2的 ICMP探测报文, 收到目的设 备发送的 ICMP超时报文后, 再次记录设备信息中的设备名称, 依次类推, 将会得到路径上 设备的先后顺序。  The source device can also obtain the device sequence in the path in the order in which the ICMP time-out packets are received. For example, the source device sets the TTL of the first ICMP probe packet to 1, and receives the ICMP sent by the destination device. After the timeout packet is received, the device name in the device information is recorded. Then, the ICMP probe packet with the TTL of 2 is sent. After receiving the ICMP timeout packet sent by the destination device, the device name in the device information is recorded again, and so on. Get the order of the devices on the path.
同理, 根据设备信息中的其它信息, 源设备也可以分析出当前设备的状态等。  Similarly, according to other information in the device information, the source device can also analyze the status of the current device.
同时, ICMP探测报文的 TTL= 1还可以表示本设备为目的设备, 即源设备只需要目的 设备返回应答报文, 即本实施例中的 ICMP超时报文。  At the same time, the TTL of the ICMP probe packet can also indicate that the device is the destination device. That is, the source device only needs to return the response packet, that is, the ICMP timeout packet in this embodiment.
本实施例通过发送携带 TTL的 ICMP探测报文, 使收到 TTL为 1的 ICMP探测报文的 设备向源设备发送 ICMP超时报文, 并在 ICMP超时报文中携带本设备的设备信息,根据设 备信息分析设备的状态, 方便了网络的管理和维护。  The device sends an ICMP probe packet carrying the TTL, and the device that receives the ICMP probe packet with the TTL of 1 sends an ICMP timeout packet to the source device, and carries the device information of the device in the ICMP timeout packet, according to the device. The state of the information analysis device facilitates network management and maintenance.
实施例 3  Example 3
参见图 7, 本实施例提供了一种获取设备信息的系统, 包括:  Referring to FIG. 7, this embodiment provides a system for acquiring device information, including:
源设备 301,用于向下一跳设备发送包括应答标识字段的探测报文;以及接收应答报文, 根据应答报文携带的设备信息中的设备名称确定对应的设备;  The source device 301 is configured to send a probe packet including a response identifier field to the next hop device, and receive the response packet, and determine a corresponding device according to the device name in the device information carried in the response packet.
应答设备 302, 用于接收上一跳设备发送的探测报文, 当自身为目的设备时, 向源设备 301发送应答报文;当自身不是目的设备时,根据应答标识字段判断是否需要发送应答报文; 如果是, 向源设备 301发送应答报文; 应答报文携带应答设备 302的设备信息, 设备信息 至少包括设备名称。 其中, 当该系统的应答设备 302为多个时, 应答设备 302具体包括: The response device 302 is configured to receive the probe packet sent by the last hop device, and send a response packet to the source device 301 when the device is the destination device. If the device is not the destination device, determine whether the response packet needs to be sent according to the response identifier field. If yes, send a response message to the source device 301; the response message carries device information of the response device 302, and the device information includes at least the device name. When the answering device 302 of the system is multiple, the answering device 302 specifically includes:
接收模块 3021, 用于接收上一跳设备发送的探测报文;  The receiving module 3021 is configured to receive a probe packet sent by the last hop device.
判断模块 3022, 用于根据探测报文中的目的地址判断自身是否为目的设备, 如果不是, 根据应答标识字段判断是否需要向源设备 301发送应答报文;  The determining module 3022 is configured to determine, according to the destination address in the probe packet, whether the device is the destination device, and if not, determine, according to the response identifier field, whether the response packet needs to be sent to the source device 301.
应答报文发送模块 3023,用于当判断模块 3022的判断结果是需要向源设备 301发送应 答报文时, 提取探测报文中的生存周期, 将生存周期减 1, 向源设备 301发送应答报文, 应 答报文携带自身的设备信息, 设备信息包括设备名称和减 1后的生存周期;  The response message sending module 3023 is configured to: when the judgment result of the determining module 3022 is that the response message needs to be sent to the source device 301, extract the life cycle in the probe message, decrement the life cycle by 1, and send a response message to the source device 301. The response message carries its own device information, and the device information includes the device name and the life cycle after being decremented by one;
探测报文转发模块 3024, 用于当判断模块 3023的判断结果是自身不是目的设备时, 对 接收模块 3021接收到的探测报文进行修改, 将探测报文的生存周期减 1, 向下一跳设备转 发修改后的探测报文。  The detection packet forwarding module 3024 is configured to modify the detection packet received by the receiving module 3021 when the judgment result of the determining module 3023 is that it is not the destination device, and reduce the lifetime of the detection packet by one to the next hop. The device forwards the modified probe packet.
本实施例提供的系统能够通过发送探测报文获取应答设备的设备信息, 根据设备信息 对网络进行管理, 提高了管理的效率, 方便更好地对网络进行维护。  The system provided in this embodiment can obtain the device information of the response device by sending the probe packet, and manage the network according to the device information, thereby improving the management efficiency and facilitating the network maintenance.
实施例 4  Example 4
参见图 8, 本实施例提供了一种上报设备信息的网络设备, 包括:  Referring to FIG. 8, this embodiment provides a network device for reporting device information, including:
接收模块 401, 用于接收包括应答标识字段的探测报文;  The receiving module 401 is configured to receive a probe packet including a response identifier field.
第一判断模块 402,用于根据接收模块 401接收到的探测报文中的目的地址判断自身是 否为 0的设备;  The first determining module 402 is configured to determine, according to the destination address in the probe packet received by the receiving module 401, whether the device is 0 or not;
第二判断模块 403, 用于当第一判断模块 402判断出自身不是目的设备时, 根据探测报 文中的应答标识字段判断是否需要向源设备发送应答报文;  The second determining module 403 is configured to: when the first determining module 402 determines that the device is not the destination device, determine, according to the response identifier field in the probe packet, whether the response packet needs to be sent to the source device;
应答报文发送模块 404, 用于当第一判断模块 402判断出自身是目的设备时, 或当第二 判断模块 403 的判断结果是需要向源设备发送应答报文时, 向源设备发送应答报文, 应答 报文携带自身的设备信息, 设备信息至少包括设备名称。  The response message sending module 404 is configured to: when the first determining module 402 determines that it is the destination device, or when the second determining module 403 determines that the response message needs to be sent to the source device, send a response message to the source device. The response message carries its own device information, and the device information includes at least the device name.
其中, 应答报文发送模块 404具体包括:  The response message sending module 404 specifically includes:
应答报文发送确认单元 4041, 用于当第一判断模块 402判断出自身是目的设备时, 或 当第二判断模块 403 的判断结果是需要向源设备发送应答报文时, 确认需要向源设备发送 应答报文;  The response message sending confirmation unit 4041 is configured to: when the first determining module 402 determines that it is the destination device, or when the second determining module 403 determines that the response message needs to be sent to the source device, confirm that the source device is required to be sent to the source device. Send a response message;
应答报文发送单元 4042,用于当应答报文发送确认单元 4041确认需要向源设备发送应 答报文时, 提取探测报文中的生存周期, 将生存周期减 1, 向源设备发送应答报文, 应答报 文携带自身的设备信息, 设备信息包括设备名称和减 1后的生存周期;  The response message sending unit 4042 is configured to: when the response message sending confirmation unit 4041 confirms that the response message needs to be sent to the source device, extract the life cycle in the probe message, decrement the life cycle by 1, and send the response message to the source device. The response message carries its own device information, and the device information includes the device name and the life cycle after being decremented by one;
相应地, 上报设备信息的网络设备还可以包括:  Correspondingly, the network device that reports the device information may further include:
探测报文转发模块 404, 用于当第一判断模块 402判断出自身不是目的设备时, 对接收 模块 401接收到的探测报文进行修改, 将探测报文的生存周期减 1, 向下一跳设备转发修改 后的探测报文。 The probe packet forwarding module 404 is configured to: when the first determining module 402 determines that it is not the destination device, The probe packet received by the module 401 is modified, and the lifetime of the probe packet is decremented by one, and the modified probe packet is forwarded to the next hop device.
进一步地, 接收模块 401 接收到的探测报文携带的应答标识字段具体为生存周期, 相 应地, 第二判断模块 403具体用于判断探测报文中的生存周期是否为 1, 如果是, 需要向源 设备发送应答报文; 否则, 不需要向源设备发送应答报文。  Further, the response identifier field carried by the detection packet received by the receiving module 401 is specifically a life cycle. Correspondingly, the second determining module 403 is specifically configured to determine whether the lifetime of the detection packet is 1, and if so, The source device sends a response packet; otherwise, it does not need to send a response packet to the source device.
本实施提供的上报设备信息的网络设备能够根据探测报文中的信息向源设备发送应答 报文, 通知源设备自身的设备信息, 使源设备能够根据设备信息对网络进行管理和维护。  The network device that reports the device information provided by the present embodiment can send a response packet to the source device according to the information in the probe packet, and notify the source device of the device information, so that the source device can manage and maintain the network according to the device information.
以上实施例通过向源设备发送应答报文时携带设备信息, 使源设备能够得到当前网络 中的设备状态, 增强了网络的管理和维护。  The above embodiment carries the device information by sending the response message to the source device, so that the source device can obtain the device state in the current network, which enhances the management and maintenance of the network.
同时, 通过以上实施例提供的技术方案, 可以不需要通过网管系统获取被管设备的信 息, 解决了网管系统不易于部署, 网管往往只能管理到有限的设备, 不能获取到管辖范闱 外的设备的信息, 以及获取网络流量的实际转发路径比较困难等问题。  At the same time, the technical solution provided by the foregoing embodiments can obtain the information of the managed device without using the network management system, and solve the problem that the network management system is not easy to deploy, and the network management can only manage to a limited number of devices, and cannot obtain the jurisdictional scope. The information about the device and the actual forwarding path for obtaining network traffic are difficult.
以上实施例提供的技术方案中的全部或部分内容可以通过软件编程实现, 其软件程序 存储在可读取的存储介质中, 存储介质例如: 计算机中的硬盘、 光盘或软盘。 以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的精神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。  All or part of the technical solutions provided by the above embodiments may be implemented by software programming, and the software program is stored in a readable storage medium such as a hard disk, an optical disk or a floppy disk in a computer. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., which are within the spirit and scope of the present invention, should be included in the protection of the present invention. Within the scope.

Claims

权 利 要 求 书 Claim
1. 一种上报设备信息的方法, 其特征在于, 所述方法包括:  A method for reporting device information, the method comprising:
接收源设备发送的包括应答标识字段的探测报文;  Receiving, by the source device, a probe packet including a response identifier field;
当自身为目的设备时, 向所述源设备发送应答报文;  When the device is the destination device, sending a response packet to the source device;
当自身不是目的设备时, 根据所述应答标识字段判断是否需要发送应答报文; 如果是, 向所述源设备发送应答报文;  When it is not the destination device, it is determined according to the response identifier field whether it is necessary to send a response message; if yes, sending a response message to the source device;
所述应答报文携带自身的设备信息, 所述设备信息至少包括设备名称。  The response message carries its own device information, and the device information includes at least a device name.
2. 如权利要求 1所述的上报设备信息的方法, 其特征在于, 所述设备信息还包括入接 口丢包数、 出接口丢包数、 入接口丢字节数、 出接口丢字节数、 入接口总带宽、 出接口总 带宽、 入接口空闲带宽、 出接口空闲带宽、 转发失败原因、 转发属性信息和最大传输单元 中的一种或多种; The method for reporting device information according to claim 1, wherein the device information further includes the number of lost packets on the inbound interface, the number of lost packets on the outbound interface, the number of bytes lost on the inbound interface, and the number of bytes lost on the outbound interface. One or more of the total bandwidth of the inbound interface, the total bandwidth of the inbound interface, the idle bandwidth of the inbound interface, the idle bandwidth of the outbound interface, the reason for the forwarding failure, the forwarding attribute information, and the maximum transmission unit.
相应地, 所述方法还包括:  Correspondingly, the method further includes:
所述源设备收到所述应答报文后, 提取所述应答报文中携带的设备信息;  After receiving the response packet, the source device extracts device information carried in the response packet;
根据所述设备信息判断所述设备名称对应的设备的状态。  Determining, according to the device information, a status of the device corresponding to the device name.
3. 如权利要求 1所述的上报设备信息的方法, 其特征在于, 所述应答标识字段的标识 为需要应答; The method for reporting device information according to claim 1, wherein the identifier of the response identifier field is a response required;
所述设备信息还包括生存周期, 所述生存周期为从所述探测报文中提取出的生存周期 减 1后的值;  The device information further includes a life cycle, where the life cycle is a value obtained by subtracting 1 from a life cycle extracted from the detection message;
相应地, 当自身不是目的设备时, 如果判断结果是需要发送应答报文, 所述方法还包 括:  Correspondingly, when it is not the destination device, if the result of the determination is that the response message needs to be sent, the method further includes:
修改所述探测报文中的生存周期, 将所述探测报文中的生存周期减 1, 向下一跳设备转 发修改后的探测报文。  The lifetime of the probe packet is modified, and the lifetime of the probe packet is decremented by 1, and the modified probe packet is forwarded to the next hop device.
4. 如权利要求 3所述的上报设备信息的方法, 其特征在于, 所述方法还包括: 所述源设备接收每个应答报文, 提取所述每个应答报文中的生存周期和设备名称; 根据每个生存周期确定从所述源设备到目的设备的设备先后顺序。 如权利要求 1所述的上报设备信息的方法, 其特征在于, 所述探测报文的应答标识 字段具体为生存周期, 相应地, 所述根据所述应答标识字段判断是否需要发送应答报文的 步骤具体为: The method for reporting device information according to claim 3, wherein the method further comprises: the source device receiving each response message, and extracting a life cycle and a device in each response message. Name; Determine the order of devices from the source device to the destination device according to each life cycle. The method for reporting device information according to claim 1, wherein the response identifier of the probe message The field is specifically a life cycle. Correspondingly, the step of determining, according to the response identifier field, whether a response message needs to be sent is specifically:
判断所述探测报文中的生存周期是否为 1, 如果是, 需要发送应答报文; 否则, 不需要 发送应答报文。  Determine whether the lifetime of the probe packet is 1. If yes, the response packet needs to be sent; otherwise, the response packet does not need to be sent.
6. 一种获取设备信息的系统, 其特征在于, 所述系统包括: A system for acquiring device information, characterized in that the system comprises:
源设备, 用于发送包括应答标识字段的探测报文;  a source device, configured to send a probe packet including a response identifier field;
应答设备, 用于接收所述探测报文, 当自身为目的设备时, 向所述源设备发送应答报 文; 当自身不是目的设备时, 根据所述应答标识字段判断是否需要发送应答报文; 如果是, 向所述源设备发送应答报文; 所述应答报文携带所述应答设备的设备信息, 所述设备信息 至少包括设备名称;  The answering device is configured to receive the probe packet, and when it is the destination device, send a response packet to the source device; when it is not the destination device, determine, according to the response identifier field, whether the response packet needs to be sent; If yes, sending a response message to the source device; the response message carries device information of the response device, where the device information includes at least a device name;
其中, 所述源设备还用于接收所述应答报文, 根据所述应答报文携带的设备信息中的 设备名称确定对应的设备。  The source device is further configured to receive the response packet, and determine a corresponding device according to the device name in the device information carried in the response packet.
7. 如权利要求 6所述的获取设备信息的系统, 其特征在于, 所述应答设备为多个, 每 一所述应答设备具体包括: The system for acquiring device information according to claim 6, wherein the number of the response devices is multiple, and each of the response devices specifically includes:
接收模块, 用于接收上一跳设备发送的所述探测报文;  a receiving module, configured to receive the probe packet sent by the last hop device;
判断模块, 用于根据所述探测报文中的目的地址判断自身是否为目的设备, 如果不是, 根据所述应答标识字段判断是否需要向所述源设备发送应答报文;  The determining module is configured to determine, according to the destination address in the probe packet, whether the device is the destination device, and if not, determine, according to the response identifier field, whether the response packet needs to be sent to the source device.
应答报文发送模块, 用于当所述判断模块的判断结果是需要向所述源设备发送应答报 文时,提取所述探测报文中的生存周期,将所述生存周期减 1, 向所述源设备发送应答报文, 所述应答报文携带自身的设备信息, 所述设备信息包括设备名称和减 1后的生存周期; 探测报文转发模块, 用于当所述判断模块的判断结果是自身不是目的设备时, 对所述 接收模块接收到的探测报文进行修改, 将所述探测报文的生存周期减 1, 向下一跳设备转发 修改后的探测报文。  a response message sending module, configured to: when the determining result of the determining module is that the response message needs to be sent to the source device, extract a life cycle in the detecting message, and reduce the life cycle by one, The source device sends a response packet, where the response packet carries its own device information, where the device information includes a device name and a life cycle after being decremented by 1; a probe packet forwarding module is used to determine the result of the determining module. If the device is not the destination device, the detection packet received by the receiving module is modified, and the lifetime of the probe packet is decremented by one, and the modified probe packet is forwarded to the next hop device.
8. —种上报设备信息的网络设备, 其特征在于, 所述网络设备包括: 8. A network device for reporting device information, wherein the network device comprises:
接收模块, 用于接收包括应答标识字段的探测报文;  a receiving module, configured to receive a probe packet including a response identifier field;
第一判断模块, 用于根据所述接收模块接收到的探测报文中的目的地址判断自身是否 为目的设备;  The first determining module is configured to determine, according to the destination address in the probe packet received by the receiving module, whether the device is the destination device;
第二判断模块, 用于当所述第一判断模块判断出自身不是目的设备时, 根据所述探测 报文中的应答标识字段判断是否需要向源设备发送应答报文; a second determining module, configured to: when the first determining module determines that it is not a destination device, according to the detecting The response identifier field in the packet determines whether a response packet needs to be sent to the source device.
应答报文发送模块, 用于当所述第一判断模块判断出自身是目的设备时, 或当所述第 二判断模块的判断结果是需要向所述源设备发送应答报文时, 向所述源设备发送应答报文, 所述应答报文携带自身的设备信息, 所述设备信息至少包括设备名称。  a response message sending module, configured to: when the first determining module determines that it is a destination device, or when the determining result of the second determining module is that the response message needs to be sent to the source device, The source device sends a response packet, where the response packet carries its own device information, and the device information includes at least a device name.
9. 如权利要求 8所述的上报设备信息的网络设备, 其特征在于, 所述应答报文发送模 块具体包括: The network device for reporting device information according to claim 8, wherein the response message sending module specifically includes:
应答报文发送确认单元, 用于当所述第一判断模块判断出自身是目的设备时, 或当所 述第二判断模块的判断结果是需要向所述源设备发送应答报文时, 确认需要向所述源设备 发送应答报文;  The response message sending confirmation unit is configured to: when the first determining module determines that it is the destination device, or when the second determining module determines that the response message needs to be sent to the source device, confirm the need Sending a response message to the source device;
应答报文发送单元, 用于当所述应答报文发送确认单元确认需要向所述源设备发送应 答报文时, 提取所述探测报文中的生存周期, 将所述生存周期减 1, 向所述源设备发送应答 报文, 所述应答报文携带自身的设备信息, 所述设备信息包括设备名称和减 1 后的生存周 期;  a response message sending unit, configured to: when the response message sending confirmation unit confirms that the response message needs to be sent to the source device, extract a life cycle in the probe message, and reduce the life cycle by one, The source device sends a response packet, where the response packet carries its own device information, where the device information includes a device name and a life cycle after being decremented by one;
相应地, 所述上报设备信息的网络设备还包括:  Correspondingly, the network device that reports the device information further includes:
探测报文转发模块, 用于当所述第一判断模块判断出自身不是目的设备时, 对所述接 收模块接收到的探测报文进行修改, 将所述探测报文的生存周期减 1, 向下一跳设备转发修 改后的探测报文。  The detecting packet forwarding module is configured to: when the first determining module determines that the device is not the destination device, modify the detection packet received by the receiving module, and reduce the lifetime of the detecting packet by one, The next hop device forwards the modified probe packet.
10. 如权利要求 8所述的上报设备信息的网络设备, 其特征在于, 所述接收模块接收到 的探测报文携带的应答标识字段具体为生存周期, 相应地, 所述第二判断模块具体用于判 断所述探测报文中的生存周期是否为 1, 如果是, 需要向源设备发送应答报文; 否则, 不需 要向源设备发送应答报文。 The network device for reporting device information according to claim 8, wherein the response identifier field carried by the detection packet received by the receiving module is specifically a life cycle, and correspondingly, the second determining module is specific It is used to determine whether the lifetime of the probe packet is 1. If yes, the response packet needs to be sent to the source device; otherwise, the response packet is not sent to the source device.
PCT/CN2008/073230 2007-11-30 2008-11-27 Method for reporting device information, system and device for obtaining device information WO2009071030A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710178535A CN100579034C (en) 2007-11-30 2007-11-30 Method for reporting equipment information, system and device for obtaining equipment information
CN200710178535.8 2007-11-30

Publications (1)

Publication Number Publication Date
WO2009071030A1 true WO2009071030A1 (en) 2009-06-11

Family

ID=39517645

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/073230 WO2009071030A1 (en) 2007-11-30 2008-11-27 Method for reporting device information, system and device for obtaining device information

Country Status (2)

Country Link
CN (1) CN100579034C (en)
WO (1) WO2009071030A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931980A (en) * 2009-06-26 2010-12-29 大唐移动通信设备有限公司 Method, system and device for network maintenance
CN112995025A (en) * 2021-02-05 2021-06-18 杭州迪普科技股份有限公司 Path tracking method, device, equipment and computer readable storage medium
CN113630312A (en) * 2021-08-17 2021-11-09 迈普通信技术股份有限公司 Path detection method, device, network equipment and computer readable storage medium
CN114866398A (en) * 2022-03-24 2022-08-05 阿里巴巴(中国)有限公司 Network fault diagnosis method and device
CN116306455A (en) * 2022-12-23 2023-06-23 之江实验室 High-speed configuration management method suitable for on-chip system of 2D-Mesh topology

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100579034C (en) * 2007-11-30 2010-01-06 华为技术有限公司 Method for reporting equipment information, system and device for obtaining equipment information
CN101931565B (en) * 2009-06-23 2012-07-18 中兴通讯股份有限公司 Network segment detection method and device
CN102265531A (en) * 2011-06-22 2011-11-30 华为技术有限公司 Communication method, vehicle equipment, wireless blocking center and system in travelling process of train
CN102957573B (en) * 2011-08-24 2017-05-17 中兴通讯股份有限公司 Path detection realizing method and node
CN106303946B (en) * 2015-06-09 2020-01-31 联想(北京)有限公司 information processing method and electronic equipment
CN106411835B (en) * 2016-05-25 2019-09-06 海尔优家智能科技(北京)有限公司 A kind of transmission method and device based on AllJoyn Control Panel
CN106452963A (en) * 2016-10-18 2017-02-22 北京东土科技股份有限公司 Network path sensing method and system
CN108462597B (en) * 2017-02-21 2022-05-06 腾讯科技(深圳)有限公司 Information reporting method, device and system
CN109218196B (en) * 2017-12-13 2020-09-08 新华三技术有限公司 Information collection method, device, equipment and machine-readable storage medium
CN108111429A (en) * 2017-12-21 2018-06-01 湖南恒茂高科股份有限公司 It is a kind of to detect and solve the method and system of local network attack
CN108924000B (en) * 2018-06-19 2021-09-07 成都网丁科技有限公司 Novel network path detection method realized based on TCP protocol

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1511431A (en) * 2001-03-07 2004-07-07 格鲁彭实验室安德森及贝弗霍尔姆公司 Communications system
CN1852102A (en) * 2005-08-22 2006-10-25 华为技术有限公司 Method and system for reporting and fetching equipment information
US20060239197A1 (en) * 2005-04-22 2006-10-26 Microsoft Corporation Flower-petal resolutions for PNRP
US20070019541A1 (en) * 2005-07-20 2007-01-25 Yasuki Fujii Signaling system
CN101022457A (en) * 2007-03-12 2007-08-22 北京交通大学 Radio multi-hopping network audio frequency, data transmission nodal equipment
CN101202664A (en) * 2007-11-30 2008-06-18 华为技术有限公司 Method for reporting equipment information, system and method for obtaining equipment information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1511431A (en) * 2001-03-07 2004-07-07 格鲁彭实验室安德森及贝弗霍尔姆公司 Communications system
US20060239197A1 (en) * 2005-04-22 2006-10-26 Microsoft Corporation Flower-petal resolutions for PNRP
US20070019541A1 (en) * 2005-07-20 2007-01-25 Yasuki Fujii Signaling system
CN1852102A (en) * 2005-08-22 2006-10-25 华为技术有限公司 Method and system for reporting and fetching equipment information
CN101022457A (en) * 2007-03-12 2007-08-22 北京交通大学 Radio multi-hopping network audio frequency, data transmission nodal equipment
CN101202664A (en) * 2007-11-30 2008-06-18 华为技术有限公司 Method for reporting equipment information, system and method for obtaining equipment information

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931980A (en) * 2009-06-26 2010-12-29 大唐移动通信设备有限公司 Method, system and device for network maintenance
CN112995025A (en) * 2021-02-05 2021-06-18 杭州迪普科技股份有限公司 Path tracking method, device, equipment and computer readable storage medium
CN112995025B (en) * 2021-02-05 2023-02-28 杭州迪普科技股份有限公司 Path tracking method, device, equipment and computer readable storage medium
CN113630312A (en) * 2021-08-17 2021-11-09 迈普通信技术股份有限公司 Path detection method, device, network equipment and computer readable storage medium
CN113630312B (en) * 2021-08-17 2023-12-22 迈普通信技术股份有限公司 Path detection method, path detection device, network equipment and computer readable storage medium
CN114866398A (en) * 2022-03-24 2022-08-05 阿里巴巴(中国)有限公司 Network fault diagnosis method and device
CN114866398B (en) * 2022-03-24 2024-01-09 阿里巴巴(中国)有限公司 Network fault diagnosis method and device
CN116306455A (en) * 2022-12-23 2023-06-23 之江实验室 High-speed configuration management method suitable for on-chip system of 2D-Mesh topology
CN116306455B (en) * 2022-12-23 2023-08-11 之江实验室 High-speed configuration management method suitable for on-chip system of 2D-Mesh topology

Also Published As

Publication number Publication date
CN100579034C (en) 2010-01-06
CN101202664A (en) 2008-06-18

Similar Documents

Publication Publication Date Title
WO2009071030A1 (en) Method for reporting device information, system and device for obtaining device information
JP5412695B2 (en) Method, apparatus and system for mobile virtual private network communication
US9787593B2 (en) Performing path-oriented systems management
US8891521B2 (en) Triggering bandwidth reservation and priority remarking
US20060182113A1 (en) Automatic discovery of pseudo-wire peer addresses in ethernet-based networks
KR100811890B1 (en) Anycast routing method and apparatus for supporting service flow in internet system
CN113169937B (en) Method, device, network node and medium for processing user data service
JP4109692B2 (en) Session establishment method and label switch node in label switch network
JP3665622B2 (en) Source address selection system, router device, communication node, and source address selection method
WO2013097459A1 (en) Service path detection method and device
WO2015000375A1 (en) Packet forwarding method, apparatus, and system
JP2004328752A (en) Inserting address for performing oam functions
US8891551B2 (en) IPv6 over IPv4 transition method and apparatus for improving performance of control server
US20070171836A1 (en) Estimating system, terminal, estimating method, and program
WO2009074093A1 (en) Method and apparatus for finding topology and managing resource automatically in the pbb network
WO2023016566A1 (en) Resource allocation method and apparatus, and network node
JP5233295B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD
EP4175251A1 (en) Application records using session information
JP4627324B2 (en) Multicast route identification method
WO2011103761A1 (en) Data packet transmission method and access device
JP5385269B2 (en) IPv6-IPv4 conversion method and apparatus for improving control server performance
JP2004274702A (en) Router device and packet transfer control method
WO2011044729A1 (en) Method and apparatus for checking anycast group configuration in communication network
US11799779B1 (en) Session-based packet capture
JP2005072701A (en) Interface providing apparatus

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

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

Country of ref document: EP

Kind code of ref document: A1