WO2009094919A1 - Method, device and system for diagnosing whether nodes are abnormal or not in p2p network - Google Patents

Method, device and system for diagnosing whether nodes are abnormal or not in p2p network Download PDF

Info

Publication number
WO2009094919A1
WO2009094919A1 PCT/CN2009/070105 CN2009070105W WO2009094919A1 WO 2009094919 A1 WO2009094919 A1 WO 2009094919A1 CN 2009070105 W CN2009070105 W CN 2009070105W WO 2009094919 A1 WO2009094919 A1 WO 2009094919A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
message
information
abnormal
sent
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.)
Ceased
Application number
PCT/CN2009/070105
Other languages
English (en)
French (fr)
Inventor
Haifeng Jiang
Hewen Zheng
Feng Li
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 Technologies Co Ltd
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
Priority to KR1020107018136A priority Critical patent/KR101141126B1/ko
Priority to EP09707023A priority patent/EP2234332A4/en
Publication of WO2009094919A1 publication Critical patent/WO2009094919A1/zh
Priority to US12/844,719 priority patent/US20100290347A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Definitions

  • the present invention relates to the field of network communications, and in particular, to a method, apparatus, and system for diagnosing whether a node is abnormal in a peer-to-peer network.
  • Peer-to-peer is a distributed, network participant that shares some of the hardware resources they have, such as processing power, storage capacity, network connectivity, printers, etc. Resources need to be provided by the network to provide services and content, and can be directly accessed by other peer nodes Peer without going through intermediate entities. Peer is both a resource provider and a resource acquirer in P2P. P2P breaks the traditional client/server
  • Each node acts as a server, provides services for other nodes, and enjoys the services provided by other nodes.
  • P2P systems include structured P2P systems, unstructured P2P systems, and loosely structured P2P systems.
  • Structured P2P system is characterized in that all nodes have a fixed-length logical address, use this logical address and according to the distribution hash table DHT (Distributed Hash)
  • Algorithm rules form all logical nodes into a logical overlay network.
  • Algorithm rules form all logical nodes into a logical overlay network.
  • distributed hash table Distributed Hash Table
  • each node is responsible for storing a segment of the resource index table, the resource index table and the node's own logical address have a unique mapping according to the DHT algorithm rules, in the resource lookup, also according to the DHT algorithm rules
  • the lookup message is forwarded to the storage node corresponding to the resource index in a manner that the hop is gradually approached in the P2P network.
  • the forwarding method of this hop-and-hop approach is as follows. Assume that A1 is an abnormal node, A2 is another abnormal node, S is the originating node, D is the destination node, and M1 and M2 are normal nodes in the normal path. . Suppose S has a request and the normal path that needs to pass is S. ⁇ M1 ⁇ A1 ⁇ M2 ⁇ D, where Ml, Al, M2, D are called the downstream nodes of the initiating node S, due to
  • Al is an abnormal node. Therefore, after A1 receives the request forwarded from M1, it can discard the request, modify the request, or not send it to M2, and send it to other abnormal nodes, such as another abnormal node A2, etc., A1 Discard the request forwarded by M1.
  • embodiments of the present invention provide a method, apparatus, and system for diagnosing whether a node is abnormal in a peer-to-peer network, and the method, device, and system can know whether a node is an abnormal node. , which in turn limits the number of messages or requests that pass through the exception node.
  • a specific embodiment of the present invention provides a method for diagnosing whether a node is abnormal in a peer-to-peer network, the method comprising:
  • the response message sent by the node corresponding to the diagnostic message it is determined that the node is a normal node, otherwise the node is determined to be an abnormal node; the response message includes the downstream node Confirm the message.
  • Embodiments of the present invention provide an apparatus for diagnosing whether a node is abnormal in a peer-to-peer network, the apparatus comprising:
  • a sending unit configured to send a diagnostic message with a message identifier to be detected
  • a receiving unit configured to receive, by the node, a response message corresponding to the diagnostic message, where the response message includes an acknowledgement message of the downstream node;
  • the determining unit is configured to determine whether the receiving unit receives the confirmation message. If the confirmation message is received, the node is determined to be a normal node, otherwise the node is determined to be an abnormal node.
  • a specific embodiment of the present invention provides an intermediate node device, where the device includes:
  • receiving unit And configured to receive a diagnostic message with an identifier to be detected, receive information sent by other nodes, and an acknowledgement message sent by the downstream node and information of the downstream node;
  • a sending unit configured to: after the receiving unit receives the information sent by the other node, reply the confirmation message and the information of the intermediate node, and forward the information sent by the other node to the downstream node of the intermediate node After receiving the diagnosis message, the receiving unit sends a response message corresponding to the diagnosis message, where the response message includes the confirmation message and information of the downstream node.
  • a specific embodiment of the present invention provides a system for diagnosing whether a node is abnormal in a peer-to-peer network, the system including
  • the source node is configured to send a diagnostic message with a to-be-detected message identifier and a response message corresponding to the diagnostic message sent by the intermediate node or the destination node, and determine whether the node is abnormal according to the response message;
  • the intermediate node is configured to receive the diagnostic message, and send a response message corresponding to the diagnostic message, where the response message includes information of a downstream node of the node and an acknowledgement message of the downstream node;
  • the intermediate node is configured to receive information sent by the other node, and after receiving the information sent by the other node, reply the confirmation message and the information of the intermediate node, and forward the information sent by the other node; Receiving the diagnostic message, and transmitting a response message corresponding to the diagnostic message, where the response message includes information of a downstream node of the node and an acknowledgement message of the downstream node.
  • the technical solution of the embodiment of the present invention determines whether the learned node is a normal node by using a diagnostic message, so as to know whether the node is an abnormal node, thereby limiting the message passing through the abnormal node or The number of requests, improve the forwarding success rate of messages or requests in the P2P system.
  • FIG. 1 is a flow chart of a method for diagnosing whether a node is abnormal according to an embodiment of the present invention.
  • FIG. 2 is a flow chart of a method for diagnosing whether a node is abnormal in a peer-to-peer network according to an embodiment of the present invention.
  • FIG. 3 is a structural diagram of an apparatus for diagnosing whether a node is abnormal in a peer-to-peer network according to an embodiment of the present invention.
  • FIG. 4 is a structural diagram of an intermediate node device according to a specific embodiment of the present invention.
  • FIG. 5 is a structural diagram of a system according to an embodiment of the present invention. [32] Mode for carrying out the invention
  • Embodiments of the present invention provide a method of diagnosing whether a node is abnormal in a peer-to-peer network.
  • Step 11 Send a diagnostic message with the identifier of the message to be detected;
  • the to-be-detected message identifier in the step may be: a message label of the to-be-detected message, such as a hash value of the to-be-detected message; or a peer-to-peer network identifier of the to-be-detected message and a processing identifier Peer ID + Transaction ID,
  • the specific embodiment of the present invention does not limit the specific form of the message identifier, and only needs the message identifier to enable the node to distinguish the to-be-detected message corresponding to the diagnostic message.
  • Step 12 Determine whether a response message corresponding to the diagnosis message sent by the node is received, the response message includes an acknowledgement message of the downstream node, and if the response message is received, determine the The node is a normal node, otherwise it is determined that the node is an abnormal node.
  • the response message may further include information of a downstream node of the node.
  • the downstream node of the node in this step is the next node in the node's transmission path.
  • the step 12 can be implemented by the following method: after receiving the information forwarded by the previous node, the node replies with the confirmation message and the information of the node, and the reply message of the reply carries the signature of the node, and forwards the The received information, after forwarding the information, receives the confirmation message sent by the downstream node and the information of the downstream node, and receives the confirmation message sent by the downstream node and the information of the downstream node, and stores the diagnosis with the identifier of the to-be-detected message. After the message, the confirmation message corresponding to the diagnostic message and the information of the downstream node are loaded in the response message, and the response message is sent.
  • the received information can be a message.
  • the above method may further include the following steps before completing step 11:
  • Case B The intermediate node receives the acknowledgement message sent by the downstream node of the intermediate node, but the acknowledgement message is incorrect;
  • the foregoing method may further include the following steps: sending the information of the abnormal node to other nodes.
  • This step can be done by the source node or the management node, and the other nodes in this step are other nodes than the abnormal node.
  • other nodes control the number of messages or requests sent to the abnormal node, thereby reducing the loss rate of the message or the request.
  • a specific embodiment of the present invention provides an embodiment, and a method for diagnosing whether a node is abnormal is provided in this embodiment.
  • the technical scenario in this embodiment is that the source node is completed by the source node, and the identifier of the message to be detected is Diagnostic message is, with Peer ID +Transaction
  • the diagnostic message of the ID includes the following steps:
  • Step 21 The source node determines whether the reply message sent by the destination node is received; if the reply message is not received, proceed to step 22, otherwise the operation ends;
  • the fact that the reply message was not received in this step is already described above, and is not mentioned here.
  • the method for implementing the step may be implemented by the following method, and a time may be set at the source node. If the reply message sent by the destination node has not been received, the user may determine that the reply message is not received, and may also The intermediate node performs setting. When the intermediate node fails to forward the information, the source node sends a message indicating that the forwarding failure has occurred. After receiving the message, the source node determines that the reply message is not received.
  • Step 22 The source node sends a diagnostic message with a Peer ID + Transaction ID;
  • the specific method for implementing this step may be that the source node sends a diagnostic message to the node one by one, or the source node sends a diagnostic message to the node.
  • Step 23 The source node determines whether a response message corresponding to the diagnostic message sent by the node is received, where the response message includes information about a downstream node of the node and an acknowledgement message of the downstream node; In the case of a response message, it is determined that the node is a normal node, otherwise it is determined that the node is an abnormal node. After the source node determines that the node is an abnormal node, step 24 can also be performed; [57] The method for determining whether the response message sent by the node corresponding to the diagnosis message is received in the step may be determined by using the method in step 21 to determine whether the response message sent by the destination node is similar.
  • Step 24 The source node sends the information of the abnormal node to other nodes.
  • the method provided by the embodiment of the present invention determines whether the node is an abnormal node by using a diagnosis message.
  • An embodiment of the present invention further provides a device for diagnosing whether a node is abnormal in a peer-to-peer network.
  • the device includes: a sending unit 31, which sends a diagnostic message with an identifier of a message to be detected; And a response message that is sent by the receiving node, and the response message includes an acknowledgement message of the downstream node.
  • the determining unit 33 is configured to determine whether the receiving unit 32 receives the response message, such as receiving In the case of the response message, it is determined that the node is a normal node, otherwise it is determined that the node is an abnormal node.
  • the device that diagnoses whether the node is abnormal may be a source node device or a management node device.
  • the response message may further include information of a downstream node of the node.
  • the foregoing apparatus may further include: a determining module 311, configured to determine whether a reply message sent by the destination node is received; the sending unit 31 may be further configured to: when the determining module determines that the reply message sent by the destination node is not received, In the case, the diagnostic message is sent.
  • the above apparatus may further include: an information transmitting unit 34, configured to send information of the abnormal node to other nodes.
  • the apparatus provided by the embodiment of the present invention determines whether the learned node is an abnormal node by using a diagnosis message.
  • the embodiment of the present invention further provides an intermediate node device.
  • the device is provided with the following units on the intermediate node of the prior art, including: a receiving unit 41,
  • a sending unit 42 configured to receive the diagnostic message with the identifier of the to-be-detected message, receive the information sent by the other node, and the information sent by the downstream node, and the information about the downstream node; After the information is sent, the confirmation message and the information of the intermediate node are returned, and the information sent by the other node is forwarded to the downstream node of the intermediate node, and after receiving the diagnostic message, the receiving unit sends the corresponding office. a response message of the diagnostic message, the response message including the confirmation message and information of the downstream node.
  • the foregoing apparatus may further include: a storage unit 43, configured to store an acknowledgement message sent by the downstream node and information of the downstream node that is received by the receiving unit.
  • the foregoing apparatus may further include: an extracting module 461, configured to extract an acknowledgement message sent by the downstream node and information of the downstream node stored by the storage unit; and a loading module 462, configured to send the acknowledgement sent by the downstream node The message and the information of the downstream node are loaded in the response message, and the response message is sent to the sending unit. After receiving the response message, the sending unit 42 sends the response message.
  • the intermediate node device provided by the embodiment of the present invention sends a response message corresponding to the diagnosis message after receiving the diagnosis message, so as to support the method of the specific embodiment of the present invention to determine whether the learned node is an abnormal node.
  • Embodiments of the present invention also provide a system for diagnosing whether a node is abnormal in a peer-to-peer network, as shown in FIG. 5: including: source node 51, intermediate node 52, and destination node 53,
  • the source node 51 is configured to send a diagnostic message with the identifier of the to-be-detected message, and receive a response message corresponding to the diagnostic message sent by the intermediate node or the destination node, and determine whether the node is abnormal according to the response message. ;
  • the intermediate node 52 is configured to receive the diagnostic message, and send a response message corresponding to the diagnostic message, where the response message includes information of a downstream node of the node and an acknowledgement message of the downstream node;
  • the intermediate node is configured to receive information sent by other nodes, and after receiving the information sent by the other node, reply the confirmation message and the information of the intermediate node, and forward the information sent by the other node; And configured to receive the diagnostic message, and send a response message corresponding to the diagnostic message, where the response message includes information of a downstream node of the node and an acknowledgement message of the downstream node.
  • determining whether the node is abnormal according to the response message in the foregoing system may include: determining that the node is a normal node if the response message is received, and determining that the node is an abnormal node.
  • the system provided by the embodiment of the present invention determines whether the node is an abnormal node by using a diagnosis message.
  • each functional unit in each embodiment 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.
  • the technical solution provided by the specific embodiment of the present invention has the advantage of determining whether a node is an abnormal node.

Landscapes

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

Description

说明书 在对等网络中诊断节点是否异常的方法、 装置及系统
[1] 本申请要求于 2008年 01月 29日提交中国专利局, 申请号为 200810057085.1, 发 明名称为"在对等网络中诊断节点是否异常的方法、 装置及系统"的中国专利申请 的优先权, 其全部内容通过引用结合在本申请中。
[2] 技术领域
[3] 本发明涉及网络通信领域, 尤其涉及一种在对等网络中诊断节点是否异常的方 法、 装置及系统。
[4] 发明背景
[5] 对等网络 (peer-to-peer, P2P) 是一种分布式, 网络的参与者共享他们所拥有 的一部分硬件资源, 如处理能力、 存储能力, 网络连接能力、 打印机等, 这些 共享资源需要由网络提供服务和内容, 能被其它对等节点 Peer直接访问而无需经 过中间实体, Peer在 P2P中既是资源的提供者, 又是资源的获取者。 P2P打破了 传统的客户端 /服务器
(Client/Server, C/S)模式, 网络中的每个节点的地位都是对等的, 每个节点即充 当服务器, 为其它节点提供服务, 同吋也享用其它节点提供的服务。 P2P系统包 括结构化 P2P系统、 非结构化 P2P系统和松散结构化 P2P系统。
[6] 结构化 P2P系统的特点是, 所有的节点都有一个定长的逻辑地址, 使用这个逻 辑地址并根据分布哈希表 DHT (Distributed Hash
Table) 算法规则将所有的节点构成一个逻辑的叠加网, 在结构化 P2P网络中, 根 据分布哈希表 (Distributed Hash Table
, DHT) 算法规则, 每个节点都需要负责存储一段资源索引表, 这段资源索引 表和节点自身的逻辑地址根据 DHT算法规则有唯一的映射关系, 在资源査找吋 , 也是根据 DHT算法规则将査找消息在 P2P网络中一跳一跳逐渐逼近的方式转发 到对应资源索引的存储节点。 这种一跳一跳逐渐逼近的转发方式如下所示, 假 设 A1是一个异常节点, A2是另一个异常节点, S是发起节点, D是目的节点, M 1、 M2是普通路径中的正常节点。 假设 S有一个请求, 需要经过的正常路径为 S →M1→A1→M2→D, 这里将 Ml、 Al、 M2、 D称为发起节点 S的下游节点, 由于
Al是一个异常节点, 所以在 A1接收到该从 Ml转发过来的请求后, 可以将请求丢 弃、 修改请求或不发送给 M2, 而发送给其它的异常节点, 如另一个异常节点 A2 等, A1将 Ml转发过来的请求丢弃。
[7] 在实现本发明的过程中, 发明人发现现有技术所述的方法存在如下问题:
[8] 由于现有技术中异常节点的存在使得通过该异常节点的消息或请求丢失, 进而 影响 P2P系统中消息或请求的转发成功率, 获知该节点为异常节点能限制通过该 异常节点的消息或请求的数量, 而现有技术中没有一种诊断节点是否异常的方 法, 所以无法获知节点是否为异常节点。
[9] 发明内容
[10] 鉴于上述现有技术所存在的问题, 本发明实施方式提供一种在对等网络中诊断 节点是否异常的方法、 装置及系统, 所述方法、 装置及系统能获知节点是否为 异常节点, 进而限制通过该异常节点的消息或请求的数量。
[11] 本发明的具体实施方式提供一种在对等网络中诊断节点是否异常的方法, 所述 方法包括:
[12] 发送带有待检测消息标识的诊断消息;
[13] 在收到节点发送的对应所述诊断消息的响应消息的情况下, 判断出所述节点为 正常节点, 否则判断出所述节点为异常节点; 所述响应消息包括所述下游节点 的确认消息。
[14] 本发明具体实施方式提供一种在对等网络中诊断节点是否异常的装置, 所述装 置包括:
[15] 发送单元, 用于发送带有待检测消息标识的诊断消息;
[16] 接收单元, 用于接收节点发送的对应所述诊断消息的响应消息, 所述响应消息 包括所述下游节点的确认消息;
[17] 判断单元, 用于判断接收单元是否收到所述确认消息, 如收到所述确认消息的 情况下, 判断出所述节点为正常节点, 否则判断出所述节点为异常节点。
[18] 本发明具体实施方式提供一种中间节点装置, 所述装置包括:
[19] 接收单元, 用于接收带有待检测消息标识的诊断消息、 接收其它节点发送的信息和所述下 游节点发送的确认消息和所述下游节点的信息;
[20] 发送单元, 用于在所述接收单元收到其它节点发送的信息后, 回复确认消息和 所述中间节点的信息、 并向所述中间节点的下游节点转发所述其它节点发送的 信息, 在所述接收单元收到所述诊断消息后, 发送对应所述诊断消息的响应消 息, 所述响应消息包括所述确认消息和所述下游节点的信息。
[21] 本发明具体实施方式提供一种在对等网络中诊断节点是否异常系统, 所述系统 包括,
[22] 源节点、 中间节点和目的节点,
[23] 所述源节点用于发送带有待检测消息标识的诊断消息和接收所述中间节点或目 的节点发送的对应所述诊断消息的响应消息, 并根据所述响应消息判断节点是 否异常;
[24] 所述中间节点用于接收所述诊断消息, 并发送对应所述诊断消息的响应消息, 所述响应消息包括所述节点的下游节点的信息和所述下游节点的确认消息; 所 述中间节点用于接收其它节点发送的信息, 并在收到所述其它节点发送的信息 后回复确认消息和所述中间节点的信息, 并转发所述其它节点发送的信息; 所 述中间节点还用于接收所述诊断消息, 并发送对应所述诊断消息的响应消息, 所述响应消息包括所述节点的下游节点的信息和所述下游节点的确认消息。
[25] 由上述所提供的技术方案可以看出, 本发明实施例的技术方案通过诊断消息来 判断获知节点是否为正常节点, 从而获知节点是否为异常节点, 进而限制通过 该异常节点的消息或请求的数量, 提高 P2P系统中消息或请求的转发成功率。
[26] 附图简要说明
[27] 图 1为本发明具体实施方式所述的诊断节点是否异常的方法流程图。
[28] 图 2为本发明一实施例的在对等网络中诊断节点是否异常的方法的流程图。
[29] 图 3为本发明具体实施方式所述的在对等网络中诊断节点是否异常的装置的结 构图。
[30] 图 4位本发明具体实施方式所述的中间节点装置的结构图。
[31] 图 5为本发明具体实施方式所述的系统的结构图。 [32] 实施本发明的方式
[33] 本发明实施方式提供了一种在对等网络中诊断节点是否异常的方法。
[34] 该方法如图 1所示, 包括如下步骤:
[35] 步骤 11、 发送带有待检测消息标识的诊断消息;
[36] 该步骤中的待检测消息标识可以为, 待检测消息的消息标签, 如待检测消息的 哈希值; 或待检测消息的对等网络识别码和处理识别码 Peer ID + Transaction ID, 本发明具体实施方式不限制消息标识的具体形式, 只需该消息标识能使节 点分辨出该诊断消息对应的待检测消息即可。
[37] 步骤 12、 判断是否收到节点发送的对应所述诊断消息的响应消息, 所述响应消 息包括所述下游节点的确认消息; 在收到所述响应消息的情况下, 判断出所述 节点为正常节点, 否则判断出所述节点为异常节点。
[38] 可选的, 该响应消息还可以包括该节点的下游节点的信息。
[39] 该步骤中该节点的下游节点为该节点传送路径中的下一个节点。
[40] 完成该步骤 12可以由下述方法实现, 节点在接收到上一节点转发的信息后, 回 复确认消息和该节点的信息, 该回复的确认消息带有该节点的签名, 并转发该 接收到的信息, 在转发完该信息后接收下游节点发送的确认消息和下游节点的 信息, 收到下游节点发送的确认消息和下游节点的信息后存储, 在接收到带有 待检测消息标识的诊断消息后, 将对应该诊断消息的确认消息和下游节点的信 息加载在响应消息内, 并将该响应消息发送。 该接收到的信息可以为报文。
[41] 上述方法在完成步骤 11之前, 还可以包括下述步骤:
[42] 判断是否接收到目的节点发送的回复消息; 未收到目的节点发送的回复消息的 情况下, 进行步骤 11 ; 否则结束操作。
[43] 上述未收到目的节点发送的回复消息的情况包括下述情况:
[44] 情况 A、 中间节点在转送报文信息的过程中超吋;
[45] 情况 B、 中间节点收到该中间节点的下游节点发送的确认消息, 但所述确认消 息错误;
[46] 情况 C、 中间节点将转送信息删除或恶意修改。
[47] 上述情况 A〜C仅说明了普通的未收到目的节点发送的回复消息的情况, 本发 明具体实施方式并不限制未收到目的节点发送的回复消息的具体情况, 只要未 收到目的节点发送的回复消息, 均可以直接发送诊断消息。
[48] 上述方法可以由源节点完成, 也可以由管理节点完成。
[49] 上述方法在完成步骤 12后, 还可以包括以下步骤: 将所述异常节点的信息发送 给其它的节点。 该步骤可以由源节点或管理节点完成, 该步骤中的其它节点为 除了异常节点以外的其它节点。 通过将异常节点的信息发送给其它的节点, 使 得其它节点控制对异常节点发送的消息或请求的数量, 从而减少消息或请求的 丢失率。
[50] 为更好的描述本发明实施方式所述的方法, 现结合附图 2对本发明的具体实施 方式进行说明:
[51] 本发明的具体实施方式提供一实施例, 本实施例提供的一种诊断节点是否异常 的方法, 本实施例的技术场景为, 本实施例由源节点完成, 带有待检测消息标 识的诊断消息为, 带有 Peer ID +Transaction
ID的诊断消息, 该方法如图 2所示, 包括如下步骤:
[52] 步骤 21、 源节点判断是否收到目的节点发送的回复消息; 未收到回复消息, 进 行步骤 22, 否则结束操作;
[53] 该步骤中的未收到回复消息的情况已在上述说明, 这里就不在赞述。 而实现该 步骤的方法可以由下述方法实现, 可以在源节点设定一个吋间, 如超出这个吋 间还未收到目的节点发送的回复消息, 则判断出未收到回复消息, 还可以在中 间节点进行设置, 当中间节点转发信息失败的情况下, 向源节点发送转发失败 的消息, 源节点收到该消息后判断出未收到回复消息。
[54] 步骤 22、 源节点发送带有 Peer ID + Transaction ID的诊断消息;
[55] 实现该步骤的具体方法可以为, 源节点逐一向节点发送诊断消息, 或源节点统 一向节点发送诊断消息。
[56] 步骤 23、 源节点判断是否收到节点发送的对应所述诊断消息的响应消息, 所述 响应消息包括该节点的下游节点的信息和所述下游节点的确认消息; 在收到所 述响应消息的情况下, 判断出所述节点为正常节点, 否则判断出所述节点为异 常节点。 在源节点判断出所述节点为异常节点吋, 还可以进行步骤 24; [57] 该步骤中的判断是否收到节点发送的对应所述诊断消息的响应消息的方法可以 釆用步骤 21中判断是否收到目的节点发送的回复消息相类似的方法。
[58] 步骤 24、 源节点将异常节点的信息发送给其它节点。
[59] 本发明实施方式提供的方法通过诊断消息来判断节点是否为异常节点。
[60] 本发明的实施方式还提供一种在对等网络中诊断节点是否异常的装置, 如图 3 所示, 该装置包括: 发送单元 31, 发送带有待检测消息标识的诊断消息; 接收 单元 32, 用于接收节点发送的对应所述诊断消息的响应消息, 所述响应消息包 括所述下游节点的确认消息; 判断单元 33, 用于判断接收单元 32是否收到所述 响应消息, 如收到所述响应消息的情况下, 判断出所述节点为正常节点, 否则 判断出所述节点为异常节点。 该诊断节点是否异常的装置可以为源节点装置或 管理节点装置。
[61] 可选的, 该响应消息还可以包括该节点的下游节点的信息。
[62] 上述装置还可以包括; 判断模块 311, 用于判断是否收到目的节点发送的回复 消息; 所述发送单元 31还可以用于在判断模块判断出未收到目的节点发送的回 复消息的情况下, 发送所述诊断消息。
[63] 上述装置还可以包括, 信息发送单元 34, 用于将所述异常节点的信息发送给其 它的节点。
[64] 本发明实施方式提供的装置通过诊断消息来判断获知节点是否为异常节点。
[65] 本发明具体实施方式还提供一种中间节点装置, 所述装置如图 4所示, 在现有 技术的中间节点上设置了下述单元, 包括: 接收单元 41,
用于接收带有待检测消息标识的诊断消息、 接收其它节点发送的信息和所述下 游节点发送的确认消息和所述下游节点的信息; 发送单元 42, 用于在所述接收 单元收到其它节点发送的信息后, 回复确认消息和所述中间节点的信息、 并向 所述中间节点的下游节点转发所述其它节点发送的信息, 在所述接收单元收到 所述诊断消息后, 发送对应所述诊断消息的响应消息, 所述响应消息包括所述 确认消息和所述下游节点的信息。
[66] 上述装置还可以包括: 存储单元 43, 用于存储所述接收单元接收的所述下游节 点发送的确认消息和所述下游节点的信息。 [67] 上述装置还可以包括: 提取模块 461, 用于提取存储单元存储的所述下游节点 发送的确认消息和所述下游节点的信息; 加载模块 462, 用于将所述下游节点发 送的确认消息和所述下游节点的信息加载在响应消息内, 并将所述响应消息发 送给发送单元; 所述发送单元 42接收到所述响应消息内后, 发送所述响应消息
[68] 本发明实施方式提供的中间节点装置在收到诊断消息后, 发送对应该诊断消息 的响应消息, 以此来支持本发明具体实施方式的方法来判断获知节点是否为异 常节点。
[69] 本发明具体实施方式还提供一种在对等网络中诊断节点是否异常系统, 所述系 统如图 5所示: 包括, 源节点 51、 中间节点 52和目的节点 53,
[70] 所述源节点 51, 用于发送带有待检测消息标识的诊断消息和接收所述中间节点 或目的节点发送的对应所述诊断消息的响应消息, 并根据所述响应消息判断节 点是否异常;
[71] 所述中间节点 52, 用于接收所述诊断消息, 并发送对应所述诊断消息的响应消 息, 所述响应消息包括所述节点的下游节点的信息和所述下游节点的确认消息 ; 所述中间节点用于接收其它节点发送的信息, 并在收到所述其它节点发送的 信息后回复确认消息和所述中间节点的信息, 并转发所述其它节点发送的信息 ; 所述中间节点还用于接收所述诊断消息, 并发送对应所述诊断消息的响应消 息, 所述响应消息包括所述节点的下游节点的信息和所述下游节点的确认消息
[72] 上述系统中的根据所述响应消息判断节点是否异常可以包括: 如收到所述响应 消息的情况下, 判断出所述节点为正常节点, 否则判断出所述节点为异常节点
[73] 本发明实施方式提供的系统通过诊断消息来判断节点是否为异常节点。
[74] 本领域技术人员可以理解附图只是一个优选实施例的示意图, 附图中的模块或 流程并不一定是实施本发明所必须的。
[75] 本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤可以通 过程序来指令相关的硬件完成, 所述的程序可以存储于一种计算机可读存储介 质中, 该程序在执行吋, 包括方法实施例的步骤之一或其组合。
[76] 另外, 在本发明各个实施例中的各功能单元可以集成在一个处理模块中, 也可 以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个模块中。 上述集成的模块既可以釆用硬件的形式实现, 也可以釆用软件功能模块的形式 实现。 所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售 或使用吋, 也可以存储在一个计算机可读取存储介质中。
[77] 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。
[78] 综上所述, 本发明具体实施方式提供的技术方案, 具有判断节点是否为异常节 点的优点。
[79] 以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局限于 此, 任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内, 可轻 易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保 护范围应该以权利要求的保护范围为准。

Claims

权利要求书
[1] 一种在对等网络中诊断节点是否异常的方法, 其特征在于, 所述方法包括 发送带有待检测消息标识的诊断消息;
在收到节点发送的对应所述诊断消息的响应消息的情况下, 判断出所述节 点为正常节点, 否则判断出所述节点为异常节点; 所述响应消息包括所述 下游节点的确认消息。
[2] 根据权利要求 1所述的方法, 其特征在于, 所述发送带有待检测消息标识的 诊断信息包括,
在未收到目的节点发送的回复消息的情况下, 发送带有待检测消息标识的 诊断消息。
[3] 根据权利要求 1所述的方法, 其特征在于, 所述方法在判断出所述节点为异 常节点后, 还包括,
将所述异常节点的信息发送给其它的节点。
[4] 根据权利要求 1所述的方法, 其特征在于, 所述待检测消息标识包括, 待检测消息的消息标签;
或待检测消息的对等网络识别码和处理识别码。
[5] 根据权利要求 1所述的方法, 其特征在于, 所述响应消息还包括所述节点的 下游节点的信息。
[6] 一种在对等网络中诊断节点是否异常装置, 其特征在于, 所述装置包括: 发送单元, 用于发送带有待检测消息标识的诊断消息;
接收单元, 用于接收节点发送的对应所述诊断消息的响应消息, 所述响应 消息包括所述下游节点的确认消息;
判断单元, 用于判断接收单元是否收到所述确认消息, 如收到所述确认消 息的情况下, 判断出所述节点为正常节点, 否则判断出所述节点为异常节 点。
[7] 根据权利要求 6所述的装置, 其特征在于, 所述装置还包括;
判断模块, 用于判断是否收到目的节点发送的回复消息, 并将判断结果发 送给发送单元;
所述发送单元在判断模块判断出未收到目的节点发送的回复消息的情况下
, 发送所述诊断消息。
[8] 根据权利要求 7所述的装置, 其特征在于, 所述装置还包括:
信息发送单元, 用于将所述异常节点的信息发送给其它的节点。
[9] 一种中间节点装置, 其特征在于, 所述装置包括:
接收单元,
用于接收带有待检测消息标识的诊断消息、 接收其它节点发送的信息和所 述下游节点发送的确认消息和所述下游节点的信息;
发送单元, 用于在所述接收单元收到其它节点发送的信息后, 回复确认消 息和所述中间节点的信息、 并向所述中间节点的下游节点转发所述其它节 点发送的信息, 在所述接收单元收到所述诊断消息后, 发送对应所述诊断 消息的响应消息, 所述响应消息包括所述确认消息和所述下游节点的信息
[10] 根据权利要求 9所述的装置, 其特征在于, 所述装置还包括,
存储单元, 用于存储所述接收单元接收的所述下游节点发送的确认消息和 所述下游节点的信息。
[11] 根据权利要求 10所述的装置, 其特征在于, 所述装置还包括:
提取模块, 用于提取存储单元存储的所述下游节点发送的确认消息和所述 下游节点的信息;
加载模块, 用于将所述下游节点发送的确认消息和所述下游节点的信息加 载在响应消息内, 并将所述响应消息发送给发送单元;
所述发送单元在接收到所述响应消息后, 发送所述响应消息。
[12] 一种在对等网络中诊断节点是否异常的系统, 其特征在于, 所述系统包括
, 源节点、 中间节点和目的节点,
所述源节点用于发送带有待检测消息标识的诊断消息和接收所述中间节点 或目的节点发送的对应所述诊断消息的响应消息, 并根据所述响应消息判 断节点是否异常; 所述中间节点用于接收所述诊断消息, 并发送对应所述诊断消息的响应消 息, 所述响应消息包括所述节点的下游节点的信息和所述下游节点的确认 消息; 所述中间节点用于接收其它节点发送的信息, 并在收到所述其它节 点发送的信息后回复确认消息和所述中间节点的信息, 并转发所述其它节 点发送的信息; 所述中间节点还用于接收所述诊断消息, 并发送对应所述 诊断消息的响应消息, 所述响应消息包括所述节点的下游节点的信息和所 述下游节点的确认消息。
根据权利要求 12所述的系统, 其特征在于, 所述根据所述响应消息判断节 点是否异常包括:
如收到所述响应消息的情况下, 判断出所述节点为正常节点, 否则判断出 所述节点为异常节点。
PCT/CN2009/070105 2008-01-29 2009-01-12 Method, device and system for diagnosing whether nodes are abnormal or not in p2p network Ceased WO2009094919A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
KR1020107018136A KR101141126B1 (ko) 2008-01-29 2009-01-12 P2p 네트워크에서 노드들이 비정상인지 아닌지를 진단하기 위한 방법, 장치 및 시스템
EP09707023A EP2234332A4 (en) 2008-01-29 2009-01-12 METHOD, DEVICE AND SYSTEM FOR DIAGNOSING WHETHER A P2P NETWORK'S NODES ARE ABNORMAL
US12/844,719 US20100290347A1 (en) 2008-01-29 2010-07-27 Method, device and system for diagnosing whether nodes are abnormal in p2p network

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810057085.1 2008-01-29
CNA2008100570851A CN101499934A (zh) 2008-01-29 2008-01-29 在对等网络中诊断节点是否异常的方法、装置及系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US12/844,719 Continuation US20100290347A1 (en) 2008-01-29 2010-07-27 Method, device and system for diagnosing whether nodes are abnormal in p2p network

Publications (1)

Publication Number Publication Date
WO2009094919A1 true WO2009094919A1 (en) 2009-08-06

Family

ID=40912273

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/070105 Ceased WO2009094919A1 (en) 2008-01-29 2009-01-12 Method, device and system for diagnosing whether nodes are abnormal or not in p2p network

Country Status (5)

Country Link
US (1) US20100290347A1 (zh)
EP (1) EP2234332A4 (zh)
KR (1) KR101141126B1 (zh)
CN (1) CN101499934A (zh)
WO (1) WO2009094919A1 (zh)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100393658B1 (ko) * 2000-08-01 2003-08-09 정태호 항염 효과가 있는 생약 조성물
CN102083088B (zh) * 2009-11-26 2014-02-12 财团法人资讯工业策进会 用于一无线网络的数据中继移动装置及数据中继方法
CN104077328B (zh) * 2013-03-29 2019-05-24 百度在线网络技术(北京)有限公司 MapReduce分布式系统的作业诊断方法及设备
US9529658B2 (en) * 2014-02-07 2016-12-27 Oracle International Corporation Techniques for generating diagnostic identifiers to trace request messages and identifying related diagnostic information
US9529657B2 (en) 2014-02-07 2016-12-27 Oracle International Corporation Techniques for generating diagnostic identifiers to trace events and identifying related diagnostic information
CN105099737B (zh) * 2014-05-12 2018-08-10 富士通株式会社 节点和网络
CN105610594B (zh) * 2014-11-19 2019-12-17 华为技术有限公司 业务链的故障诊断方法及装置
JP6871943B2 (ja) 2016-03-28 2021-05-19 オラクル・インターナショナル・コーポレイション モバイルクラウドサービスのための予め形成された命令
CN106817700B (zh) * 2017-03-02 2019-06-28 中国人民解放军信息工程大学 基于多重完整性远程证明的异常节点检测方法
CN107547241B (zh) * 2017-05-18 2021-07-23 新华三技术有限公司 一种te隧道的故障检测方法和装置
CN110365520B (zh) * 2019-06-14 2021-12-14 创新先进技术有限公司 分布式系统中节点的巡检方法、装置及设备
US11310098B2 (en) 2020-06-09 2022-04-19 Cisco Technology, Inc. Diagnosing intermediary network nodes
CN116016140B (zh) * 2020-07-10 2024-09-17 展讯半导体(成都)有限公司 通信异常处理方法、主节点、室内分布系统及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852252A (zh) * 2006-04-14 2006-10-25 清华大学 基于对等网络的视频直播应用中节点选择与检测方法
CN1996905A (zh) * 2006-11-24 2007-07-11 中兴通讯股份有限公司 远端路由节点检测处理的方法
CN101036330A (zh) * 2004-12-01 2007-09-12 思科技术公司 用于检测网络故障的系统和方法

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6512768B1 (en) * 1999-02-26 2003-01-28 Cisco Technology, Inc. Discovery and tag space identifiers in a tag distribution protocol (TDP)
AU2002234258A1 (en) * 2001-01-22 2002-07-30 Sun Microsystems, Inc. Peer-to-peer network computing platform
DK1360796T3 (da) * 2001-01-26 2010-05-10 American Power Conv Corp Fremgangsmåde og system til at indstille et sæt netværksapparater som kan forbindes for at tilvejebringe forbedret samarbejde, skalerbarhed og pålidelighed
US7068789B2 (en) * 2001-09-19 2006-06-27 Microsoft Corporation Peer-to-peer name resolution protocol (PNRP) group security infrastructure and method
US20030159060A1 (en) * 2001-10-31 2003-08-21 Gales George S. System and method of defining the security condition of a computer system
US7043470B2 (en) * 2003-03-05 2006-05-09 Hewlett-Packard Development Company, L.P. Method and apparatus for improving querying
US7039634B2 (en) * 2003-03-12 2006-05-02 Hewlett-Packard Development Company, L.P. Semantic querying a peer-to-peer network
US7096230B2 (en) * 2003-08-01 2006-08-22 Sap Aktiengesellschaft Computer-implemented method and system to support in developing a process specification for a collaborative process
US7302489B2 (en) * 2003-08-01 2007-11-27 Sap Ag Systems and methods for synchronizing data objects among participating systems via asynchronous exchange of messages
EP1503311A1 (en) * 2003-08-01 2005-02-02 Sap Ag Computer-implemented method and system to support in developing a process specification for a collaborative process
JP2006120063A (ja) * 2004-10-25 2006-05-11 Onkyo Corp ピアツーピア型コンテンツ配信システム及びこれに用いられるコンテンツ再生端末装置
US7613620B2 (en) * 2005-06-07 2009-11-03 Angadbir Singh Salwan Physician to patient network system for real-time electronic communications and transfer of patient health information
CN100488146C (zh) * 2006-09-14 2009-05-13 华为技术有限公司 在p2p网络中建立点对点连接的方法及在p2p网络中的节点
US20090125637A1 (en) * 2007-11-09 2009-05-14 Nokia Corporation Method, Apparatus and Computer Program Product for Providing Data Management in a P2P Network
WO2009065439A1 (en) * 2007-11-20 2009-05-28 Telefonaktiebolaget Lm Ericsson (Publ) Operation of p2p telecommunications networks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101036330A (zh) * 2004-12-01 2007-09-12 思科技术公司 用于检测网络故障的系统和方法
CN1852252A (zh) * 2006-04-14 2006-10-25 清华大学 基于对等网络的视频直播应用中节点选择与检测方法
CN1996905A (zh) * 2006-11-24 2007-07-11 中兴通讯股份有限公司 远端路由节点检测处理的方法

Also Published As

Publication number Publication date
KR101141126B1 (ko) 2012-05-02
EP2234332A1 (en) 2010-09-29
EP2234332A4 (en) 2010-12-29
US20100290347A1 (en) 2010-11-18
CN101499934A (zh) 2009-08-05
KR20100109956A (ko) 2010-10-11

Similar Documents

Publication Publication Date Title
WO2009094919A1 (en) Method, device and system for diagnosing whether nodes are abnormal or not in p2p network
EP2978174B1 (en) Interest return control message
WO2021249490A1 (zh) 区块链网络中的通信方法、业务数据传输方法
KR102167613B1 (ko) 메시지 푸시 방법 및 장치
US11855955B2 (en) Obscured routing
EP1582037B1 (en) Stateless message routing
US11218402B2 (en) Blockchain systems, and message transmission methods and apparatuses
EP3176994B1 (en) Explicit content deletion commands in a content centric network
US20170359260A1 (en) Content object return messages in a content centric network
CN115766746B (zh) 一种信息跨链传输方法、系统、计算机设备及存储介质
EP2747336A1 (en) Content processing method, device and system
WO2009128837A1 (en) Diameter bus communications between processing nodes of a network element
CN115396529A (zh) 多通道通信方法、装置、终端设备及存储介质
CN113315848A (zh) 访问控制方法、装置及设备
US11119871B2 (en) Systems and methods recovering from the failure of a server load balancer
CN105141526A (zh) 虚拟网络通信的方法及装置
CN111490961B (zh) 通信连接的阻断系统、方法、装置和设备
CN106708881B (zh) 基于网络文件系统的交互方法和装置
US20160212083A9 (en) Connection sharing across entities in a distributed messaging system
CN108235800A (zh) 一种网络故障探测方法及控制中心设备
KR101278744B1 (ko) 분산 서비스 사이트를 등록하기 위한 방법 및 시스템
CN114338669B (zh) 基于区块链的数据传输方法、装置、设备以及存储介质
CN115776527A (zh) 消息发送方法、装置、设备及存储介质
CN110912997B (zh) 一种三角组网Loopback接口的检查方法及装置
WO2009062429A1 (en) Method, net node and system avoiding attacks in p2p network

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 4796/CHENP/2010

Country of ref document: IN

WWE Wipo information: entry into national phase

Ref document number: 2009707023

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 20107018136

Country of ref document: KR

Kind code of ref document: A