WO2013004139A1 - 一种对等网中消息交互的方法及装置、系统 - Google Patents

一种对等网中消息交互的方法及装置、系统 Download PDF

Info

Publication number
WO2013004139A1
WO2013004139A1 PCT/CN2012/077661 CN2012077661W WO2013004139A1 WO 2013004139 A1 WO2013004139 A1 WO 2013004139A1 CN 2012077661 W CN2012077661 W CN 2012077661W WO 2013004139 A1 WO2013004139 A1 WO 2013004139A1
Authority
WO
WIPO (PCT)
Prior art keywords
peer
client
routing table
message
local
Prior art date
Application number
PCT/CN2012/077661
Other languages
English (en)
French (fr)
Inventor
周兴旺
陈志峰
李漓春
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013004139A1 publication Critical patent/WO2013004139A1/zh

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

Definitions

  • RELOAD Resource Locate And Discovery
  • SIP P2P Session Initiation Protocol
  • IETF Internet Engineering Task Force
  • the existing client can only know the address information of its own access node, and only the access node of the client in the peer-to-peer network can know the address information of the client. Interest.
  • the message sent by the client to the destination peer in the peer network must be transited through the access node. All messages sent by the peers other than the access node to the client must also transit through the access node to reach the client.
  • the main purpose of the present invention is to provide a method, device, and system for message interaction in a peer-to-peer network, to solve the problem of message routing hops when a client interacts with a peer network side in a peer-to-peer network. More, causing access node performance bottlenecks and affecting the processing efficiency and success rate of message interaction.
  • the present invention provides a method for message interaction in a peer-to-peer network, the method comprising: the client obtaining a peer-to-peer network routing table, and sending a message to the destination peer according to the peer-to-peer network routing table; and/or, The peer obtains the address information of the client and saves it to the local client list, and sends a message to the destination client according to the local client list.
  • sending a message to the destination peer according to the peer-to-peer routing table includes: the client querying a local peer-to-peer routing table, and querying the destination peer from the peer-to-peer routing table When the address information of the body is sent, the message is directly sent to the destination peer.
  • the peer obtains the address information of the client and saves it to the local client list, including: As a peer of the access node of the client, obtaining address information of the client, and saving the address information of the client to a local client list;
  • the client notifying the address information of the client to other peers related to the client including:
  • the peer queries the local client list, and when the address information of the destination client is queried from the client list, the message is directly sent to the destination client.
  • the method further includes:
  • the client obtains the client list from a peer, and sends a message to the destination client according to the client list.
  • sending a message to the destination client according to the client list includes: the client querying a local client list and a local routing table, and directly querying the address information of the destination client The destination client sends a message.
  • the method further includes: when the peer receives the message that needs to be forwarded to the destination client, querying the local client list, where the local client list includes the address information of the destination client The message is forwarded directly to the destination client.
  • the method further includes: the client acquiring the current peer-to-peer network routing table in real time, and updating the local peer-to-peer network routing table.
  • the client keeps alive with the peer as the client access node, and updates the local peer-to-peer network routing table in real time.
  • the client obtains the current peer-to-peer network routing table in real time, and updates the local peer-to-peer network routing table as:
  • the updated peer-to-peer network routing table is sent to the client, and the client receives the peer-to-peer network routing table and updates Local peer-to-peer routing table.
  • the peer that is the client access node updates the local client list
  • the peer or the client that is the access node of the client notifies the other peers that are related to the client to update the client list, and the other peers respectively update according to the notification.
  • the peer as the client access node updates the local client list
  • the present invention further provides a client, where the client includes: a first acquiring unit and a first sending unit, where
  • the first sending unit is configured to send a message to the destination peer according to the peer-to-peer network routing table acquired by the first acquiring unit.
  • the first acquiring unit is configured to download a peer-to-peer network routing table from an access node of the client.
  • the first sending unit is configured to query a peer-to-peer network routing table saved by the first storage unit, and when querying the address information of the destination peer from the peer-to-peer network routing table, directly Sending a message to the destination peer.
  • the first acquiring unit is configured to acquire a peer-to-peer network routing table in real time
  • a second obtaining unit configured to acquire address information of the client and save the information to the client list saved by the second storage unit
  • the second obtaining unit is configured to obtain the address information of the client from a client or a peer that is a client access node.
  • the client is configured to obtain a peer-to-peer routing table, and send a message to the destination peer according to the peer-to-peer routing table;
  • the client sends a message to the destination peer according to the obtained peer-to-peer network routing table; and/or, the peer sends a message to the destination client according to the client list that stores the client address information, so that A client with a large amount of information exchanged with the peer-to-peer network can directly exchange messages with the peer after accessing the peer-to-peer network. It does not need to be transited through the access node, effectively avoiding performance bottlenecks of the access node, and reducing the client.
  • FIG. 2 is a schematic structural diagram of an embodiment of a peer-to-peer network system according to the present invention.
  • FIG. 4 is a schematic flowchart of a client-side peer-to-peer network according to Embodiment 2 of the present invention.
  • FIG. 9 is a schematic flowchart of updating a client list after a client fails according to Embodiment 7 of the present invention
  • FIG. 10 is a schematic flowchart of updating a client list when a client exits a peer-to-peer network according to Embodiment 8 of the present invention.
  • the client and the peer can directly perform message interaction, and do not need to transit through the access node of the client, so as to avoid the connection between the client and the network side of the peer network is large, causing the connection
  • the performance bottleneck of the ingress node improves the processing efficiency and success rate of message interaction in the peer-to-peer network.
  • the method for the message interaction in the peer-to-peer network of the present invention may include: the client acquiring the peer-to-peer network routing table, and sending the message to the destination peer according to the peer-to-peer network routing table; and/or, the peer acquiring The address information of the client, and sending a message to the client according to the address information of the client.
  • the client may download and save the peer-to-peer network routing table from the peer as its own access node.
  • the client may query the local peer-to-peer routing table to send a message to the destination peer directly when the address information of the destination peer is queried from the peer-to-peer routing table.
  • the client when the client addresses the peer-to-peer network, the client queries the local peer-to-peer routing table. If the address information of the destination peer is queried, the message is directly sent to the destination peer. The address information of the destination peer can be used to route the message to the nearest peer according to the existing routing mechanism, and then the peer sends the message to the destination peer.
  • the method may further include: the client acquiring the client list from a peer, and sending a message to the destination client according to the client list.
  • the client can obtain a client list from a peer that is a self access node.
  • the client can query the local client list and the local routing table, and send a message directly to the destination client when querying the address information of the destination client.
  • the client may keep alive with the peer that is the client access node, and update the local peer-to-peer network routing table in real time.
  • the client can keep alive with the peer that is re-determined as the access node, and update the local peer-to-peer network routing table in real time.
  • the peer may also obtain the address information of the client in real time and update the local client list.
  • the peer that is the client access node updates the local client list; the peer that is the access node of the client or the client, Notifying the other peers of the client to update the client list, and the other peers respectively update the local client list according to the notification.
  • the peer that is the client access node updates the local client list; the peer that is the access node of the client or the client, Notifying the other peers associated with the client that the client leaves the peer-to-peer network, and the other peers respectively update the local client list according to the notification.
  • the peer that is the client access node updates the local client list; the peer or the client that is the access node of the client, and the notification
  • the other peers related to the client update the client list, and the other peers respectively update the local client list according to the notification.
  • the present invention further provides a client.
  • the client includes: a first acquiring unit and a first sending unit, where the first acquiring unit is configured to obtain a peer-to-peer network routing table.
  • the first sending unit is configured to send a message to the destination peer according to the peer-to-peer network routing table obtained by the first acquiring unit.
  • the client may further include: a first storage unit, configured to save a peer-to-peer network routing table acquired by the first acquiring unit; the first acquiring unit, configured to download peer-to-peer from an access node of the client Network routing table.
  • the first sending unit may be configured to query a peer-to-peer network routing table saved by the first storage unit, and directly query the address information of the destination peer from the peer-to-peer network routing table.
  • the destination peer sends a message.
  • the client further includes: a first update unit, the first acquiring unit, configured to acquire a peer-to-peer network routing table in real time, and the first updating unit, configured to acquire, according to the first acquiring unit, the pair And a network routing table, updating a peer-to-peer network routing table saved by the first storage unit.
  • a first update unit configured to acquire a peer-to-peer network routing table in real time
  • the first updating unit configured to acquire, according to the first acquiring unit, the pair And a network routing table, updating a peer-to-peer network routing table saved by the first storage unit.
  • the present invention also provides a peer, the peer includes: a second obtaining unit, a second storing unit, and a second sending unit, where the second obtaining unit is configured to acquire an address of the client The information is saved to the client list saved by the second storage unit.
  • the second sending unit is configured to send a message to the destination client according to the client list saved by the second storage unit.
  • the second sending unit is configured to query a peer-to-peer network routing table saved by the second storage unit, and directly query the destination client for the address information of the destination client from the peer-to-peer routing table. Send a message.
  • the second sending unit is further configured to: when receiving the message to be forwarded to the destination client, query the peer-to-peer network routing table saved by the second storage unit, and query from the peer-to-peer network routing table When the address information of the destination client is sent, the message is directly sent to the destination client.
  • the second obtaining unit is configured to obtain the address information of the client from a client or a peer that is a client access node.
  • the peer further includes: a second update unit, configured to: after peer-to-peer network adjustment, and/or after the client fails, and/or in the peer-to-peer network, after the peer fails, and/or the client After exiting the peer-to-peer network, updating the client list saved by the second storage unit; and/or, after receiving the notification sent by the peer or the client as the client access node, according to the Notifying the update of the client list saved by the second storage unit.
  • a second update unit configured to: after peer-to-peer network adjustment, and/or after the client fails, and/or in the peer-to-peer network, after the peer fails, and/or the client After exiting the peer-to-peer network, updating the client list saved by the second storage unit; and/or, after receiving the notification sent by the peer or the client as the client access node, according to the Notifying the update of the client list saved by the second storage unit.
  • the present invention further provides a peer-to-peer network system, the system comprising: a client and two or more peers, wherein the client is configured to obtain a peer-to-peer network routing table, and according to the pair The network routing table sends a message to the destination peer; and/or the peer is configured to obtain the address information of the client and save the content to the local client list, and according to the local client list to the destination client Send a message.
  • a peer-to-peer network system comprising: a client and two or more peers, wherein the client is configured to obtain a peer-to-peer network routing table, and according to the pair The network routing table sends a message to the destination peer; and/or the peer is configured to obtain the address information of the client and save the content to the local client list, and according to the local client list to the destination client Send a message.
  • the client may select its own responsible node as its own access node according to the default mode of the peer-to-peer network.
  • the responsible node of the client in the peer-to-peer network is the peer 1, and the client selects Peer 1 acts as its own access node.
  • Step 302 The client downloads the peer-to-peer routing table from the peer 1 and saves it. In this way, the client can directly send a message to the destination peer by using the peer-to-peer routing table.
  • Step 406 The peer 2 forwards the message sent by the client to the peer 3, and ends the current process.
  • the client can directly address the peer locally according to the obtained peer-to-peer routing table, which avoids the message being forwarded by the access node of the client, and solves the bottleneck problem of the access node, and also reduces The number of route hops that the client will deliver the message to the destination peer.
  • Step 504 The peer 3 directly sends a message to the client according to the address information of the client in the local client list, and ends the current process.
  • the peer 3 queries the local routing table to determine that the peer 2 in the local routing table is closest to the client, and then the message sent to the client is routed to the peer 2, and the specific process is existing. Technology, no longer repeat here.
  • the peer 2 can query the local client list, and if the local client list contains the address information of the client, directly forward the message to the client, if the local client list If the address information of the client is not included, the local route is queried.
  • the table forwards the message to the peer 1 of the local routing table and the client, and then forwards the message to the client by the peer 1.
  • the peer when the peer queries the local client list and stores the address information of the client in the local client list, the peer can directly route the message to the client without accessing the message.
  • Node forwarding solves the bottleneck problem of the access node and reduces the number of route hops between the peer and the client.
  • the peer-to-peer network includes a peer 1, a peer 2, a peer 3, a client 1, and a client 2.
  • the process of mutually addressing clients in a peer-to-peer network may include the following steps:
  • Step 609 The peer 3 forwards the message of the sending client 2 according to the foregoing steps 606-608 until the message sent to the client 2 is forwarded to the client 2, and the current process ends.
  • the client obtains the peer-to-peer routing table from the peer 1 in real time, and updates the local peer-to-peer routing table according to the peer-to-peer routing table obtained in real time.
  • Step 1001 The client selects the peer 1 as its own access node, and successfully joins the pair.

Landscapes

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

Abstract

本发明公开了一种对等网中消息交互的方法,所述方法包括:客户端获取对等网路由表,并根据所述对等网路由表向目的对等体发送消息;和/或,对等体获取客户端的地址信息并保存到本地的客户端列表,根据所述本地的客户端列表向目的客户端发送消息。本发明还公开了一种客户端、对等体以及对等网系统,使得与对等网交互信息量大的客户端接入至对等网后可以直接与对等体交互消息,不需要经由接入节点中转,有效地避免了接入节点的性能瓶颈问题,减少了客户端与对等网消息路由的跳数,并且,客户端与对等网的路由关系可以随对等网的调整而及时调整,有效地提升了客户端与对等网信息的交互效率。

Description

一种对等网中消息交互的方法及装置、 系统 技术领域
本发明涉及分布式通信网络领域, 尤其涉及一种对等网中消息交互的 方法及装置、 系统。 背景技术
对等网络(P2P, Peer to Peer )是一种分布式网络, 网络的参与者共享 他们所拥有的资源和服务。 通常这些资源和服务的共享包括: 信息的共享 与交换、计算资源(如 CPU )和存储资源(如緩存和磁盘空间)的共享等。
P2P打破了传统的客户端 /服务器(C/S , Client/Server )模式, 在 P2P网络 中每个节点的地位都是对等的。 每个节点既充当服务器为其他节点提供服 务, 同时也享用其他节点提供的服务。
资源定位和发现协议(RELOAD, Resource Locate And Discovery )是 互联网工程任务组 ( IETF, Internet Engineering Task Force ) 的 P2P会话初 始协议(SIP, Session Initiation Protocol )工作组定义的一种应用于对等网 络的资源定位和发现协议。
RELOAD对等网中节点主要有对等体( Peer )和客户端( Client )两种。 其中, 对等体负责对等网资源的存储和消息路由, 具有公网地址、 处理能 力强、 自身资源丰富等特性, 是对等网的主要节点。 客户端一般不具备对 等体的特性, 可以通过自身的接入节点 (默认的接入节点为该客户端的负 责节点, 但也可以是任意的对等体)接入对等网, 可以完全利用对等网的 路由机制与对等网中其它对等体、 以及其他客户端进行通信。
RELOAD对等网中,现有的客户端只能获知自身接入节点的地址信息, 同时对等网中也只有所述客户端的接入节点能够获知所述客户端的地址信 息。 客户端与对等网网络侧进行消息交互的过程中, 在客户端与接入节点 建立连接后, 客户端发往对等网中目的对等体的消息必须经过接入节点中 转, 对等网中除接入节点以外的其他对等体发往客户端的所有消息也必须 经过所述接入节点中转才能到达客户端。 如此, 使得客户端与对等网网络 侧的信息交互必须全部经过其接入节点中转才能够实现, 而不能直接到达 客户端或目的对等体, 增加了消息的路由跳数, 并且在客户端与对等网信 息交互消息量很大时, 接入节点难以满足大量消息的转发, 因而引起接入 节点的性能瓶颈, 此外, 还会降低消息交互的处理效率和成功率。 发明内容
有鉴于此, 本发明的主要目的在于提供一种对等网中消息交互的方法 及装置、 系统, 以解决现有对等网中客户端与对等网网络侧进行消息交互 时消息路由跳数多、 引起接入节点性能瓶颈以及影响降低消息交互的处理 效率和成功率的问题。
为达到上述目的, 本发明的技术方案是这样实现的:
本发明提供了一种对等网中消息交互的方法, 所述方法包括: 客户端获取对等网路由表, 并根据所述对等网路由表向目的对等体发 送消息; 和 /或,对等体获取客户端的地址信息并保存到本地的客户端列表, 根据所述本地的客户端列表向目的客户端发送消息。
在上述方案中, 所述客户端获取对等网路由表, 包括:
所述客户端从作为自身接入节点的对等体下载对等网路由表并保存。 在上述方案中, 根据所述对等网路由表向目的对等体发送消息, 包括: 所述客户端查询本地的对等网路由表, 从所述对等网路由表中查询到 目的对等体的地址信息时, 直接向所述目的对等体发送消息。
在上述方案中, 所述对等体获取客户端的地址信息并保存到本地的客 户端列表, 包括: 作为客户端的接入节点的对等体, 获取所述客户端的地址信息, 并将 所述客户端的地址信息保存本地的客户端列表;
所述作为客户端的接入节点的对等体或所述客户端, 将所述客户端的 地址信息通知给与所述客户端相关的其他各对等体, 所述其他各对等体分 别将所述客户端地址信息保存到本地的客户端列表。
在上述方案中, 所述客户端将所述客户端的地址信息通知给与所述客 户端相关的其他各对等体, 包括:
所述客户端根据所述对等网路由表, 将自身的地址信息通知给与自身 相关的对等体。
在上述方案中, 根据所述本地的客户端列表向目的客户端发送消息, 包括:
所述对等体查询本地的客户端列表, 从所述客户端列表中查询到目的 客户端的地址信息时, 直接向所述目的客户端发送消息。
在上述方案中, 所述方法还包括:
所述客户端从对等体获取所述客户端列表, 并根据所述客户端列表, 向目的客户端发送消息。
在上述方案中, 根据所述客户端列表, 向目的客户端发送消息, 包括: 所述客户端查询本地的客户端列表和本地路由表, 在查询到目的客户 端的地址信息时, 直接向所述目的客户端发送消息。
在上述方案中, 所述方法还包括: 所述对等体接收到需要转发到目的 客户端的消息时, 查询本地的客户端列表, 在本地的客户端列表中包含有 所述目的客户端的地址信息时, 将所述消息直接转发给所述目的客户端。
在上述方案中, 所述方法还包括: 客户端实时获取当前的对等网路由 表, 并更新本地的对等网路由表。
在上述方案中, 所述客户端实时获取当前的对等网路由表, 并更新本 地的对等网路由表, 为:
所述客户端与作为所述客户端接入节点的对等体保活, 实时更新本地 的对等网路由表。
在上述方案中, 所述客户端实时获取当前的对等网路由表, 并更新本 地的对等网路由表, 为:
在所述客户端的接入节点失效后, 所述客户端与重新确定为接入节点 的对等体保活, 实时更新本地的对等网路由表。
在上述方案中, 所述客户端实时获取当前的对等网路由表, 并更新本 地的对等网路由表, 为:
作为所述客户端接入节点的对等体, 在对等网调整后, 向所述客户端 发送更新后的对等网路由表, 所述客户端接收所述对等网路由表, 并更新 本地的对等网路由表。
在上述方案中, 所述方法还包括:
所述对等体实时获取客户端的地址信息, 并更新本地的客户端列表。 在上述方案中, 所述对等体实时获取客户端的地址信息, 并更新本地 的客户端列表, 包括:
在所述客户端失效后, 作为所述客户端接入节点的对等体更新本地的 客户端列表;
所述作为客户端的接入节点的对等体或所述客户端, 通知与所述客户 端相关的其他各对等体更新客户端列表, 所述其他各对等体根据所述通知, 分别更新本地的客户端列表。
在上述方案中, 所述对等体实时获取客户端的地址信息, 并更新本地 的客户端列表, 包括:
在所述客户端退出对等网后, 作为所述客户端接入节点的对等体更新 本地的客户端列表; 所述作为客户端的接入节点的对等体或所述客户端, 通知与所述客户 端相关的其他各对等体所述客户端已退出对等网, 所述其他各对等体根据 所述通知, 分别更新本地的客户端列表。
在上述方案中, 所述对等体实时获取客户端的地址信息, 并更新本地 的客户端列表, 包括:
在对等网调整后, 作为所述客户端接入节点的对等体更新本地的客户 端列表;
所述作为客户端的接入节点的对等体或所述客户端, 通知与所述客户 端相关的其他各对等体更新客户端列表, 所述其他各对等体根据所述通知, 分别更新本地的客户端列表。
本发明还提供了一种客户端, 所述客户端包括: 第一获取单元和第一 发送单元, 其中,
第一获取单元, 用于获取对等网路由表;
第一发送单元, 用于根据所述第一获取单元获取的对等网路由表, 向 目的对等体发送消息。
在上述方案中, 所述客户端还包括: 第一存储单元, 用于保存所述第 一获取单元获取的对等网路由表;
所述第一获取单元, 用于从客户端的接入节点下载对等网路由表。 在上述方案中, 所述第一发送单元, 用于查询所述第一存储单元保存 的对等网路由表, 从所述对等网路由表中查询到目的对等体的地址信息时, 直接向所述目的对等体发送消息。
在上述方案中, 所述客户端还包括: 第一更新单元;
所述第一获取单元, 用于实时获取对等网路由表;
所述第一更新单元, 用于根据所述第一获取单元获取的对等网路由表, 更新所述第一存储单元保存的对等网路由表。 本发明还提供了一种对等体, 所述对等体包括: 第二获取单元、 第二 存储单元和第二发送单元, 其中,
第二获取单元, 用于获取客户端的地址信息并保存到所述第二存储单 元保存的客户端列表中;
第二发送单元, 用于根据所述第二存储单元保存的客户端列表, 向目 的客户端发送消息。
在上述方案中, 所述第二发送单元, 用于查询所述第二存储单元保存 的对等网路由表, 从所述对等网路由表中查询到目的客户端的地址信息时, 直接向所述目的客户端发送消息。
在上述方案中, 所述第二发送单元, 还用于在接收到需转发至目的客 户端的消息时, 查询所述第二存储单元保存的对等网路由表, 从所述对等 网路由表中查询到目的客户端的地址信息时, 直接向所述目的客户端发送 消息。
在上述方案中, 所述第二获取单元, 用于从客户端或作为客户端接入 节点的对等体, 获取所述客户端的地址信息。
在上述方案中, 所述对等体还包括: 第二更新单元, 用于在对等网调 整后、 和 /或客户端失效后、 和 /或对等网中有对等体失效后、 和 /或客户端退 出对等网后, 更新所述第二存储单元保存的客户端列表; 和 /或, 用于在接 收到作为客户端接入节点的对等体或客户端发送的通知后, 根据所述通知 更新所述第二存储单元保存的客户端列表。
本发明还提供了一种对等网系统, 所述系统包括: 客户端和两个或两 个以上的对等体, 其中,
客户端, 用于获取对等网路由表, 并根据所述对等网路由表向目的对 等体发送消息;
和 /或, 所述对等体, 用于获取客户端的地址信息并保存到本地的客户 端列表, 根据所述本地的客户端列表向目的客户端发送消息。
本发明中, 客户端根据获取的对等网路由表向目的对等体发送消息; 和 /或, 对等体根据保存有客户端地址信息的客户端列表向目的客户端发送 消息, 如此, 使得与对等网交互信息量大的客户端接入至对等网后可以直 接与对等体交互消息, 不需要经由接入节点中转, 有效地避免接入节点的 性能瓶颈问题, 减少了客户端与对等网消息路由的跳数, 并且, 客户端与 对等网的路由关系可以随对等网的调整而及时调整, 有效地提升了客户端 与对等网信息的交互效率。 附图说明
图 1为本发明中客户端的组成结构示意图;
图 2为本发明中对等网系统一种实施例的组成结构示意图;
图 3为本发明实施例一中客户端接入对等网的流程示意图;
图 4为本发明实施例二中客户端寻址对等网的流程示意图;
图 5 为本发明实施例三中对等网中的一个对等体寻址客户端的流程示 意图;
图 6为本发明实施例四中对等网中客户端之间互相寻址的流程示意图; 图 7为本发明实施例五中对等网调整时更新对等网路由表、 以及调整 本地客户端列表的流程示意图;
图 8为本发明实施例六中接入节点失效后更新对等网路由表的流程示 意图;
图 9为本发明实施例七中客户端失效后更新客户端列表的流程示意图; 图 10为本发明实施例八中客户端退出对等网时更新客户端列表的流程 示意图。 具体实施方式
本发明的基本思想是: 让客户端保存并维护包含有对等网中相关对等 体地址信息的对等网路由表, 对等网中相关对等体也可以保存并维护包含 有客户端地址信息的客户端地址列表, 客户端根据自身保存的对等网路由 表向目的对等体发送消息, 对等体根据自身保存的客户端地址列表, 向客 户端发送消息。 如此, 使得客户端和对等体之间可以直接进行消息交互, 不需要经过客户端的接入节点中转, 避免在客户端与对等网的网络侧之间 交互的消息量很大时, 引起接入节点的性能瓶颈, 提高对等网中消息交互 的处理效率和成功率。
本发明的对等网中消息交互的方法, 主要可以包括: 客户端获取对等 网路由表, 并根据所述对等网路由表向目的对等体发送消息; 和 /或, 对等 体获取客户端的地址信息, 并根据所述客户端的地址信息向所述客户端发 送消息。
这里, 所述客户端可以从作为自身接入节点的对等体下载对等网路由 表并保存。 所述客户端可以查询本地的对等网路由表, 从所述对等网路由 表中查询到目的对等体的地址信息时, 则直接向所述目的对等体发送消息。
例如, 客户端寻址对等网时, 客户端查询本地的对等网路由表, 如果 查询到目的对等体的地址信息时, 则直接向所述目的对等体发送消息, 如 果没有查询到目的对等体的地址信息, 则可以按照现有的路由机制路由消 息至最近的对等体, 再由该对等体将所述消息发送到目的对等体。
其中, 作为客户端的接入节点的对等体, 获取所述客户端的地址信息, 并将所述客户端的地址信息保存本地的客户端列表; 所述作为客户端的接 入节点的对等体或所述客户端, 将所述客户端的地址信息通知给与所述客 户端相关的其他各对等体, 所述其他各对等体分别将所述客户端地址信息 保存到本地的客户端列表。 发送消息时, 所述对等体查询本地的客户端列 表, 从所述客户端列表中查询到目的客户端的地址信息时, 直接向所述目 的客户端发送消息。
这里, 所述客户端可以根据所述对等网路由表, 将自身的地址信息通 知给与自身相关的对等体。
这里, 所述方法还可以包括: 所述客户端从对等体获取所述客户端列 表, 并根据所述客户端列表, 向目的客户端发送消息。 具体地, 客户端可 以从作为自身接入节点的对等体上获取客户端列表。 所述客户端可以查询 本地的客户端列表和本地路由表, 在查询到目的客户端的地址信息时, 直 接向所述目的客户端发送消息。
这里, 所述方法还可以包括: 所述对等体接收到需要转发到目的客户 端的消息时, 查询本地的客户端列表, 在本地的客户端列表中包含有所述 目的客户端的地址信息时, 将所述消息直接转发给所述目的客户端。
其中, 客户端还可以实时获取当前的对等网路由表, 并更新本地的对 等网路由表。
具体地, 所述客户端可以与作为所述客户端接入节点的对等体保活, 实时更新本地的对等网路由表。
在所述客户端的接入节点失效后, 所述客户端可以与重新确定为接入 节点的对等体保活, 实时更新本地的对等网路由表。
作为所述客户端接入节点的对等体, 在对等网调整后, 向所述客户端 发送更新后的对等网路由表, 所述客户端接收所述对等网路由表, 并更新 本地的对等网路由表。
其中, 所述对等体还可以实时获取客户端的地址信息, 并更新本地的 客户端列表。
具体地, 在所述客户端失效后, 作为所述客户端接入节点的对等体更 新本地的客户端列表; 所述作为客户端的接入节点的对等体或所述客户端, 通知与所述客户端相关的其他各对等体更新客户端列表, 所述其他各对等 体根据所述通知, 分别更新本地的客户端列表。
这里, 在所述客户端退出对等网后, 作为所述客户端接入节点的对等 体更新本地的客户端列表; 所述作为客户端的接入节点的对等体或所述客 户端, 通知与所述客户端相关的其他各对等体所述客户端离开对等网, 所 述其他各对等体根据所述通知, 分别更新本地的客户端列表。
这里, 在对等网调整后, 作为所述客户端接入节点的对等体更新本地 的客户端列表; 所述作为客户端的接入节点的对等体或所述客户端, 通知 与所述客户端相关的其他各对等体更新客户端列表, 所述其他各对等体根 据所述通知, 分别更新本地的客户端列表。
相应的, 本发明还提供了一种客户端, 如图 1所示, 所述客户端包括: 第一获取单元和第一发送单元, 其中, 第一获取单元, 用于获取对等网路 由表; 第一发送单元, 用于根据所述第一获取单元获取的对等网路由表, 向目的对等体发送消息。
其中, 所述客户端还可以包括: 第一存储单元, 用于保存所述第一获 取单元获取的对等网路由表; 所述第一获取单元, 用于从客户端的接入节 点下载对等网路由表。
其中, 所述第一发送单元, 具体可以用于查询所述第一存储单元保存 的对等网路由表, 从所述对等网路由表中查询到目的对等体的地址信息时, 直接向所述目的对等体发送消息。
其中, 所述客户端还包括: 第一更新单元; 所述第一获取单元, 用于 实时获取对等网路由表; 所述第一更新单元, 用于根据所述第一获取单元 获取的对等网路由表, 更新所述第一存储单元保存的对等网路由表。
本发明还提供了一种对等体, 所述对等体包括: 第二获取单元、 第二 存储单元和第二发送单元, 其中, 第二获取单元, 用于获取客户端的地址 信息并保存到所述第二存储单元保存的客户端列表中; 第二发送单元, 用 于根据所述第二存储单元保存的客户端列表, 向目的客户端发送消息。
其中, 所述第二发送单元, 用于查询所述第二存储单元保存的对等网 路由表, 从所述对等网路由表中查询到目的客户端的地址信息时, 直接向 所述目的客户端发送消息。
其中, 所述第二发送单元, 还用于在接收到需转发至目的客户端的消 息时, 查询所述第二存储单元保存的对等网路由表, 从所述对等网路由表 中查询到目的客户端的地址信息时, 直接向所述目的客户端发送消息。
其中, 所述第二获取单元, 用于从客户端或作为客户端接入节点的对 等体, 获取所述客户端的地址信息。
其中, 所述对等体还包括: 第二更新单元, 用于在对等网调整后、 和 / 或客户端失效后、 和 /或对等网中有对等体失效后、 和 /或客户端退出对等网 后, 更新所述第二存储单元保存的客户端列表; 和 /或, 用于在接收到作为 客户端接入节点的对等体或客户端发送的通知后, 根据所述通知更新所述 第二存储单元保存的客户端列表。
本发明还提供了一种对等网系统, 所述系统包括: 客户端和两个或两 个以上的对等体, 其中, 客户端, 用于获取对等网路由表, 并根据所述对 等网路由表向目的对等体发送消息; 和 /或, 所述对等体, 用于获取客户端 的地址信息并保存到本地的客户端列表, 根据所述本地的客户端列表向目 的客户端发送消息。
图 2为本发明的对等网系统的一种实施例的组成架构示意图, 该对等 网系统包括对等体 1、 对等体 2、 对等体 3、 对等体 4和客户端, 其中, 对 等体 1 为客户端的接入节点。 各对等体中保存有客户端列表, 客户端中保 存有对等网路由表。
实施例一 本实施例中, 在客户端加入对等网的流程中, 客户端获取对等网路由 表, 对等体获取客户端的地址信息, 生成客户端地址列表。 如图 3 所示, 本实施例中的对等网包括对等体 1、 对等体 2、 对等体 3和客户端。
具体地, 参照图 3所示, 客户端接入对等网的流程可以包括以下步骤: 步骤 301 ,客户端选取对等体 1作为自身的接入节点, 向对等体 1发出 加入对等网请求, 对等体 1获取客户端的地址信息;
具体地, 客户端可以按照对等网的默认方式, 选取自身的负责节点作 为自身的接入节点, 本实施例中, 客户端在对等网的负责节点为对等体 1 , 则客户端选择对等体 1作为自身的接入节点。
实际应用中, 客户端还可以选取对等网中其他任意节点 (如对等体 2 或对等体 3 )作为自身的接入节点。
具体地, 对等体 1 可以从客户端发出的加入对等网请求中, 提取到客 户端的地址信息。
步骤 302, 客户端从所述对等体 1中下载对等网路由表并保存, 如此, 客户端能够利用所述对等网路由表直接发送消息给目的对等体。
步骤 303 ,对等体 1将所述客户端的地址信息保存到本地的客户端列表, 继续步骤 304;
这里, 客户端列表用于保存客户端的标识、 地址等信息。
步骤 304,对等体 1向对等网中其他与所述客户端相关的对等体通知所 述客户端的地址信息, 或者, 客户端根据获取的对等网路由表, 向对等网 中除自身接入节点外的、 与自身相关的对等体通知所述客户端的地址信息。 如此, 使得对等网中的对等体可以根据客户端的地址信息, 直接发送或路 由消息至客户端。
具体地, 对等网中除对等体 1 以外、 与所述客户端相关的对等体, 可 以由具体的对等网算法来确定, 基本原则是尽量选择在客户端接入节点的 寻址路径上的对等体。 本实施例中, 除客户端的接入节点即对等体 1 夕卜、 与客户端相关的对等体为对等体 2。 例如, 对于默认的哈希(Chord )算法, 在对等体的本地路由表中包含有所述客户端的接入节点的相关信息 (如接 入节点的地址信息) 时, 则认为该对等体为与所述客户端相关的对等体。
这里, 所述对等网中接收到上述通知的对等体, 将所述客户端的地址 信息保存至本地的客户端列表。
步骤 305 , 对等体 1向客户端返回加入对等网的响应消息。
实施例二
本实施例中, 如图 4所示, 对等网包括对等体 1、 对等体 2、 对等体 3 和客户端。
具体地, 参照图 4所示, 客户端寻址对等网的流程可以包括以下步骤: 步骤 401 , 客户端成功加入对等网;
步骤 402, 客户端需要与对等网中的对等体 3进行通信;
步骤 403 ,客户端从自身保存的对等网路由表中, 查询是否有所述对等 体 3的地址信息, 如果有, 则继续步骤 404, 否则, 继续步骤 405;
步骤 404,客户端根据查询到的对等体 3的地址信息, 直接向所述对等 体 3发送消息, 结束当前流程。
步骤 405 ,客户端按照路由算法, 确定自身保存的对等网路由表中对等 体 2与所述对等体 3最近, 则从所述对等网路由表中查询到对等体 2的地 址信息, 并将发往对等体 3的消息路由给对等体 2。
这里, 客户端可以利用对等网路由表, 按照现有对等体之间的路由方 式将消息路由至对等网路由表中距离对等体 3最近的对等体, 即对等体 2。
步骤 406, 对等体 2将所述客户端发送的消息转发至所述对等体 3 , 结 束当前流程。
具体地 ,在对等体 2上按照现有的路由算法将所述消息路由至对等体 3 , 该过程为现有技术, 在此不再赘述。
本实施例中, 客户端可以根据已获取的对等网路由表, 在本地直接寻 址对等体, 避免了消息经由客户端的接入节点转发, 解决了接入节点的瓶 颈问题, 同时也减少了客户端将消息传递至目的对等体的路由跳数。
实施例三
本实施例中, 如图 5所示, 对等网包括对等体 1、 对等体 2、 对等体 3 和客户端。
具体地, 参照图 5 所示, 对等网中的一个对等体寻址客户端的流程可 以包括以下步骤:
步骤 501 , 客户端成功加入对等网;
步骤 502 , 对等网中对等体 3需要与客户端通信;
步骤 503 ,对等体 3查询本地的客户端列表, 是否包含有所述客户端的 地址信息, 如果是, 则继续步骤 504, 否则, 继续步骤 505 ;
步骤 504,对等体 3根据本地客户端列表中所述客户端的地址信息, 直 接向所述客户端发送消息, 结束当前流程。
步骤 505 ,对等体 3按照对等网路由算法, 将发送给客户端的消息发送 至本地路由表中距离所述客户端最近的对等体 2;
具体地, 对等体 3 通过查询本地路由表, 确定本地路由表中对等体 2 与所述客户端最近, 则将发送给所述客户端的消息路由至对等体 2 , 具体过 程为现有技术, 在此不再赘述。
步骤 506, 对等体 2按照上述步骤 503-505的流程, 转发所述消息, 直 至所述消息路由至所述客户端, 结束当前流程。
具体地, 对等体 2可以查询本地的客户端列表, 如果本地的客户端列 表中包含有所述客户端的地址信息, 则直接将所述消息转发至所述客户端, 如果本地的客户端列表中不包含所述客户端的地址信息, 则查询本地路由 表, 将所述消息转发至本地路由表与所述客户端最近的对等体 1 中, 再由 对等体 1将所述消息转发至所述客户端。
本实施例中, 对等体通过查询本地的客户端列表, 在本地的客户端列 表中存有所述客户端的地址信息时, 便可以直接将消息路由至客户端, 不 需要将消息经由接入节点转发, 解决了接入节点的瓶颈问题, 同时减少了 对等体与客户端之间消息的路由跳数。
实施例四
本实施例中, 如图 6所示, 对等网包括对等体 1、 对等体 2、 对等体 3、 客户端 1和客户端 2。
具体地, 参照图 6所示, 对等网中客户端之间互相寻址的流程可以包 括以下步骤:
步骤 601 , 客户端 1和客户端 2成功加入对等网;
步骤 602, 客户端 1需要与客户端 2通信;
步骤 603 ,客户端 1查询本地路由表和客户端列表, 是否包含有客户端 2的地址信息, 如果是, 则继续步骤 604, 如果不是, 继续步骤 605;
这里, 客户端 1可以从自身的接入节点获取客户端列表并保存到本地。 步骤 604,客户端 1根据客户端 2的地址信息, 直接向客户端 2发送消 息, 结束当前流程。
步骤 605 ,客户端 1按照对等网路由算法, 将发往客户端 2的消息发送 至本地的对等网路由表中距离客户端 2最近的对等体 2;
步骤 606,对等体 2查询本地的客户端列表, 是否包含有客户端 2的地 址信息, 如果是, 则继续步骤 607 , 如果不是, 继续步骤 608;
步骤 607,对等体 2根据本地客户端列表中客户端 2的地址信息, 直接 将所述发送客户端 2的消息转发至客户端 2 , 结束当前流程。
步骤 608,对等体 2按照对等网路由算法, 将发往客户端 2的消息转发 至本地路由表中距离客户端 2最近的对等体 3;
步骤 609, 对等体 3按照上述步骤 606-608的流程, 转发所述发送客户 端 2的消息,直至所述发往客户端 2的消息转发至客户端 2 ,结束当前流程。
本实施例中, 客户端可以通过查询本地的客户端列表, 在本地的客户 端列表中存有所述客户端的地址信息时, 便可以直接将消息路由至客户端, 此外, 转发所述消息的对等体也可以通过查询本地的客户端列表, 在本地 的客户端列表中存有所述客户端的地址信息时, 直接将所述消息转发至客 户端, 如此, 不需要将消息经由接入节点转发, 解决了接入节点的瓶颈问 题, 同时减少了对等网中消息的路由跳数。
实施例五
本实施例中, 如图 7所示, 对等网包括对等体 1、 对等体 2、 对等体 3、 和客户端。
具体地, 参照图 7所示, 对等网调整时更新对等网路由表、 以及调整 本地客户端列表的流程可以包括以下步骤:
步骤 701 ,客户端选取对等体 1作为自身的接入节点, 并成功加入对等 网;
步骤 702, 对等网组成及结构变更, 例如, 有新的对等体加入对等网、 或者对等网中有对等体失效退出。
步骤 703 , 对等网中各对等体更新自身的对等网路由表, 其中, 对等体
1也更正此时的对等网路由表;
步骤 704, 对等体 1将更新后的对等网路由表发送给客户端;
步骤 705 ,客户端接收对等体 1发送的对等网路由表, 并更新自身保存 的对等网路由表, 向对等体返回更新响应;
步骤 706, 对等体 1或客户端更新对等网中相应对等体的客户端列表。 具体地, 对等体 1 或客户端向相应的对等体发起客户端列表的更新指 示, 所述相应的对等体根据所述更新指示, 更新本地的客户端列表。
这里, 在对等网的组成结构变更后, 需要更新对等网中各对等体的客 户端列表, 例如, 原来与所述客户端不相关的对等体, 在对等网变更后, 可能成为与所述客户端相关的对等体, 此时, 就需要向该对等体发起添加 客户端地址信息的更新指示, 该对等体接收到所述更新指示后, 将所述客 户端的地址信息保存到本地的客户端列表中, 以便后续可以直接将消息发 送给所述客户端; 再例如, 对于原来与客户端相关的对等体, 在对等网变 更后, 可能成为与所述客户端不相关的对等体, 此时, 就需要向该对等体 发起删除客户端地址信息的更新指示, 该对等体接收到所述更新指示后, 将本地客户端列表中保存的所述客户端地址信息删除。
其中, 对等体 1 和客户端可以根据具体的对等网算法, 确定对等网变 更前后与所述客户端相关的对等体, 由此, 可以确定需要添加客户端地址 信息的对等体、 和 /或需要删除客户端地址信息的对等体。
具体地, 客户端列表的更新可以由客户端或客户端的接入节点发起, 由相应的对等体执行。
实施例六
本实施例中, 如图 8所示, 对等网包括对等体 1、 对等体 2、 对等体 3、 和客户端。
本发明中, 客户端需要实时从其接入节点获取最新的对等网路由表, 与接入节点保活, 在客户端的接入节点失效后, 客户端需要及时地与新的 接入节点建立连接, 并从新的接入节点处获得并更新的对等网路由表, 以 免过期的对等网路由表影响消息的正确路由。 参照图 8 所示, 接入节点失 效后更新对等网路由表的流程可以包括以下步骤:
步骤 801 ,客户端选取对等体 1作为自身的接入节点, 并成功加入对等 网; 步骤 802, 客户端与对等体 1保活;
具体地, 客户端实时从对等体 1 获取对等网路由表, 并根据实时获取 的对等网路由表, 更新本地的对等网路由表。
步骤 803 , 客户端感知到对等体 1失效;
这里, 客户端在预设时间内未接收到对等体 1 发送的对等网路由表, 则客户端与对等体 1保活失败, 感知到对等体 1失效。
步骤 804,对等网调整自身组成及结构后, 由对等体 2作为所述客户端 的新接入节点, 向所述客户端发送对等网路由表的更新消息, 该更新消息 中包含有当前的对等网路由表。
具体地, 客户端等待对等网调整完毕后, 对等网中客户端的新接入节 点向客户端发送对等网路由表的更新消息; 或者为防止对等网出现异常, 客户端在预设的时间内未接收到新接入节点发送的对等网路由表更新信 息, 则主动选取新接入节点, 向该新接入节点发起新的加入对等网请求, 重新加入对等网, 该新接入节点向所述客户端发送对等网路由表或对等网 路由表更新消息。
步骤 805 , 客户端更新本地的对等网路由表;
步骤 806, 客户端继续与对等体 2保活。
这里, 步骤 806的具体实现过程与步骤 802相似, 在此不再赘述。 本实施例中, 新的接入节点或客户端还可以按照对等网的具体算法, 向对等网中相关的对等体通知所述客户端的地址信息, 具体实现过程与实 施例五中步骤 707相似, 在此不再赘述。
实施例七
本实施例中, 如图 9所示, 对等网包括对等体 1、 对等体 2、 对等体 3、 和客户端。
本发明中, 客户端需要实时从其接入节点获取最新的对等网路由表, 与接入节点保活, 在客户端失效后, 客户端的接入节点需要及时通知对等 网中与所述客户端相关的对等体, 删除所述客户端的地址信息。 参照图 9 所示, 客户端失效后更新客户端列表的流程可以包括以下步骤:
步骤 901-902, 与步骤 801-802完全相同;
步骤 903 , 对等体 1感知到客户端失效。
这里, 对等体 1 在预设时间内未接收到客户端返回的更新响应, 对等 体 1与客户端保活失败, 则对等体 1感知到客户端失效。
步骤 904,对等体 1将所述客户端的地址信息从本地的客户端列表中删 除, 更新本地的客户端列表;
步骤 905 ,对等体 1按照对等网的具体算法, 通知对等网中存有所述客 户端的地址信息的各对等体, 更新客户端列表。
具体地, 对等体 1 按照对等网的具体算法, 向对等网中存有所述客户 端的地址信息的各对等体发送通知消息, 通知所述各对等体将所述客户端 的地址信息删除; 所述各对等体接收到所述通知消息后, 将所述客户端的 地址信息从本地的客户端列表中删除, 并向所述对等体 1返回通知响应。
本实施例中, 对等体 1 按照对等网的具体算法, 确定当前对等网中只 有对等体 2保存有所述客户端的地址信息, 则向对等体 2发送所述通知消 息, 对等体 2接收所述通知消息, 并将所述客户端的地址信息从本地的客 户端列表中删除, 向所述对等体 1返回通知响应。
实施例八
本实施例中,如图 10所示,对等网包括对等体 1、对等体 2、对等体 3、 和客户端。
如图 10所示, 客户端退出对等网时, 更新客户端列表的流程可以包括 如下步骤:
步骤 1001 , 客户端选取对等体 1作为自身的接入节点, 并成功加入对 等网;
步骤 1002, 客户端退出对等网;
步骤 1003 , 客户端向对等体 1发出离开对等网消息;
步骤 1004, 对等体 1更新本地的客户端列表, 将所退出客户端的地址 信息从本地的客户端列表中删除;
步骤 1005 , 对等体 1或客户端, 向对等网中保存有所述客户端地址信 息的对等体 2发送客户端离开对等网的通知消息。
具体地, 对于对等网中其它已经存有该客户端地址信息的对等体, 可 以釆用两种方式通知: 一种是客户端的接入节点向对等网中存有所述客户 端地址信息的对等体, 发送客户端离开对等网的通知信息; 另一种是由客 户端向对等网中存有所述客户端地址信息的对等体, 发送客户端离开对等 网的通知信息。
步骤 1006, 对等体 2接收到所述客户端离开对等网的通知消息后, 更 新本地的客户端列表。
具体地, 所述对等体 2接收到所述客户端离开对等网消息后, 将所述 客户端的地址信息从本地的客户端列表中删除。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。

Claims

权利要求书
1、 一种对等网中消息交互的方法, 其特征在于, 所述方法包括: 客户端获取对等网路由表, 并根据所述对等网路由表向目的对等体发 送消息; 和 /或,对等体获取客户端的地址信息并保存到本地的客户端列表, 根据所述本地的客户端列表向目的客户端发送消息。
2、 根据权利要求 1所述对等网中消息交互的方法, 其特征在于, 所述 客户端获取对等网路由表, 包括:
所述客户端从作为自身接入节点的对等体下载对等网路由表并保存。
3、 根据权利要求 1所述对等网中消息交互的方法, 其特征在于, 根据 所述对等网路由表向目的对等体发送消息, 包括:
所述客户端查询本地的对等网路由表, 从所述对等网路由表中查询到 目的对等体的地址信息时, 直接向所述目的对等体发送消息。
4、 根据权利要求 1所述对等网中消息交互的方法, 其特征在于, 所述 对等体获取客户端的地址信息并保存到本地的客户端列表, 包括:
作为客户端的接入节点的对等体, 获取所述客户端的地址信息, 并将 所述客户端的地址信息保存本地的客户端列表;
所述作为客户端的接入节点的对等体或所述客户端, 将所述客户端的 地址信息通知给与所述客户端相关的其他各对等体, 所述其他各对等体分 别将所述客户端地址信息保存到本地的客户端列表。
5、 根据权利要求 4所述对等网中消息交互的方法, 其特征在于, 所述 客户端将所述客户端的地址信息通知给与所述客户端相关的其他各对等 体, 包括: 所述客户端根据所述对等网路由表, 将自身的地址信息通知给 与自身相关的对等体。
6、 根据权利要求 1所述对等网中消息交互的方法, 其特征在于, 根据 所述本地的客户端列表向目的客户端发送消息, 包括:
所述对等体查询本地的客户端列表, 从所述客户端列表中查询到目的 客户端的地址信息时, 直接向所述目的客户端发送消息。
7、 根据权利要求 1至 6任一项所述对等网中消息交互的方法, 其特征 在于, 所述方法还包括: 所述客户端从对等体获取所述客户端列表, 并根 据所述客户端列表, 向目的客户端发送消息。
8、 根据权利要求 7所述对等网中消息交互的方法, 其特征在于, 根据 所述客户端列表, 向目的客户端发送消息, 包括: 所述客户端查询本地的 客户端列表和本地路由表, 在查询到目的客户端的地址信息时, 直接向所 述目的客户端发送消息。
9、 根据权利要求 1至 6任一项所述对等网中消息交互的方法, 其特征 在于, 所述方法还包括: 所述对等体接收到需要转发到目的客户端的消息 时, 查询本地的客户端列表, 在本地的客户端列表中包含有所述目的客户 端的地址信息时, 将所述消息直接转发给所述目的客户端。
10、 根据权利要求 1至 6任一项所述对等网中消息交互的方法, 其特 征在于, 所述方法还包括:
客户端实时获取当前的对等网路由表, 并更新本地的对等网路由表。
11、 根据权利要求 10所述对等网中消息交互的方法, 其特征在于, 所 述客户端实时获取当前的对等网路由表, 并更新本地的对等网路由表, 为: 所述客户端与作为所述客户端接入节点的对等体保活, 实时更新本地 的对等网路由表。
12、 根据权利要求 10所述对等网中消息交互的方法, 其特征在于, 所 述客户端实时获取当前的对等网路由表, 并更新本地的对等网路由表, 为: 在所述客户端的接入节点失效后, 所述客户端与重新确定为接入节点 的对等体保活, 实时更新本地的对等网路由表。
13、 根据权利要求 10所述对等网中消息交互的方法, 其特征在于, 所 述客户端实时获取当前的对等网路由表, 并更新本地的对等网路由表, 为: 作为所述客户端接入节点的对等体, 在对等网调整后, 向所述客户端 发送更新后的对等网路由表, 所述客户端接收所述对等网路由表, 并更新 本地的对等网路由表。
14、 根据权利要求 1至 6任一项所述对等网中消息交互的方法, 其特 征在于, 所述方法还包括:
所述对等体实时获取客户端的地址信息, 并更新本地的客户端列表。
15、 根据权利要求 14所述对等网中消息交互的方法, 其特征在于, 所 述对等体实时获取客户端的地址信息, 并更新本地的客户端列表, 包括: 在所述客户端失效后, 作为所述客户端接入节点的对等体更新本地的 客户端列表;
所述作为客户端的接入节点的对等体或所述客户端, 通知与所述客户 端相关的其他各对等体更新客户端列表, 所述其他各对等体根据所述通知, 分别更新本地的客户端列表。
16、 根据权利要求 14所述对等网中消息交互的方法, 其特征在于, 所 述对等体实时获取客户端的地址信息, 并更新本地的客户端列表, 包括: 在所述客户端退出对等网后, 作为所述客户端接入节点的对等体更新 本地的客户端列表;
所述作为客户端的接入节点的对等体或所述客户端, 通知与所述客户 端相关的其他各对等体所述客户端已退出对等网, 所述其他各对等体根据 所述通知, 分别更新本地的客户端列表。
17、 根据权利要求 14所述对等网中消息交互的方法, 其特征在于, 所 述对等体实时获取客户端的地址信息, 并更新本地的客户端列表, 包括: 在对等网调整后, 作为所述客户端接入节点的对等体更新本地的客户端列 表;
所述作为客户端的接入节点的对等体或所述客户端, 通知与所述客户 端相关的其他各对等体更新客户端列表, 所述其他各对等体根据所述通知, 分别更新本地的客户端列表。
18、 一种客户端, 其特征在于, 所述客户端包括: 第一获取单元和第 一发送单元, 其中,
第一获取单元, 用于获取对等网路由表;
第一发送单元, 用于根据所述第一获取单元获取的对等网路由表, 向 目的对等体发送消息。
19、 根据权利要求 18所述客户端, 其特征在于, 所述客户端还包括: 第一存储单元, 用于保存所述第一获取单元获取的对等网路由表;
所述第一获取单元, 用于从客户端的接入节点下载对等网路由表。
20、 根据权利要求 19所述客户端, 其特征在于, 所述第一发送单元, 用于查询所述第一存储单元保存的对等网路由表, 从所述对等网路由表中 查询到目的对等体的地址信息时, 直接向所述目的对等体发送消息。
21、 根据权利要求 19或 20所述客户端, 其特征在于, 所述客户端还 包括: 第一更新单元;
所述第一获取单元, 用于实时获取对等网路由表;
所述第一更新单元, 用于根据所述第一获取单元获取的对等网路由表, 更新所述第一存储单元保存的对等网路由表。
22、 一种对等体, 其特征在于, 所述对等体包括: 第二获取单元、 第 二存储单元和第二发送单元, 其中,
第二获取单元, 用于获取客户端的地址信息并保存到所述第二存储单 元保存的客户端列表中;
第二发送单元, 用于根据所述第二存储单元保存的客户端列表, 向目 的客户端发送消息。
23、根据权利要求 22所述的对等体,其特征在于, 所述第二发送单元, 用于查询所述第二存储单元保存的对等网路由表, 从所述对等网路由表中 查询到目的客户端的地址信息时, 直接向所述目的客户端发送消息。
24、根据权利要求 22所述的对等体,其特征在于, 所述第二发送单元, 还用于在接收到需转发至目的客户端的消息时, 查询所述第二存储单元保 存的对等网路由表, 从所述对等网路由表中查询到目的客户端的地址信息 时, 直接向所述目的客户端发送消息。
25、根据权利要求 22所述的对等体,其特征在于, 所述第二获取单元, 用于从客户端或作为客户端接入节点的对等体, 获取所述客户端的地址信 息。
26、 根据权利要求 22至 25任一项所述的对等体, 其特征在于, 所述 对等体还包括: 第二更新单元, 用于在对等网调整后、 和 /或客户端失效后、 和 /或对等网中有对等体失效后、 和 /或客户端退出对等网后, 更新所述第二 存储单元保存的客户端列表; 和 /或, 用于在接收到作为客户端接入节点的 对等体或客户端发送的通知后, 根据所述通知更新所述第二存储单元保存 的客户端列表。
27、 一种对等网系统, 其特征在于, 所述系统包括: 客户端和两个或 两个以上的对等体, 其中,
客户端, 用于获取对等网路由表, 并根据所述对等网路由表向目的对 等体发送消息;
和 /或, 所述对等体, 用于获取客户端的地址信息并保存到本地的客户 端列表, 根据所述本地的客户端列表向目的客户端发送消息。
PCT/CN2012/077661 2011-07-05 2012-06-27 一种对等网中消息交互的方法及装置、系统 WO2013004139A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110186833.8A CN102868710B (zh) 2011-07-05 2011-07-05 一种对等网中消息交互的方法及装置、系统
CN201110186833.8 2011-07-05

Publications (1)

Publication Number Publication Date
WO2013004139A1 true WO2013004139A1 (zh) 2013-01-10

Family

ID=47436506

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/077661 WO2013004139A1 (zh) 2011-07-05 2012-06-27 一种对等网中消息交互的方法及装置、系统

Country Status (2)

Country Link
CN (1) CN102868710B (zh)
WO (1) WO2013004139A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301170B (zh) * 2021-07-27 2021-10-19 湖南三湘银行股份有限公司 基于通信节点的数据处理方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101044735A (zh) * 2004-06-29 2007-09-26 达马卡公司 用于对等混合通信的系统和方法
EP1916816A1 (en) * 2006-10-26 2008-04-30 Alcatel Lucent Method and devices to establish a public communication session
CN101699801A (zh) * 2009-10-30 2010-04-28 孙喜明 一种数据传输方法及传输数据的虚拟对等网络系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100544261C (zh) * 2005-12-20 2009-09-23 中国科学院声学研究所 一种基于网络信息的数据分布/获取方法
US7945680B2 (en) * 2007-10-30 2011-05-17 Motorola Solutions, Inc. Method and apparatus for peer to peer link establishment over a network
CN101414975A (zh) * 2008-11-28 2009-04-22 中兴通讯股份有限公司 基于对等网络的服务节点选择方法及装置、索引实体

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101044735A (zh) * 2004-06-29 2007-09-26 达马卡公司 用于对等混合通信的系统和方法
EP1916816A1 (en) * 2006-10-26 2008-04-30 Alcatel Lucent Method and devices to establish a public communication session
CN101699801A (zh) * 2009-10-30 2010-04-28 孙喜明 一种数据传输方法及传输数据的虚拟对等网络系统

Also Published As

Publication number Publication date
CN102868710A (zh) 2013-01-09
CN102868710B (zh) 2018-03-30

Similar Documents

Publication Publication Date Title
JP6047229B2 (ja) 情報中心ネットワークにおける名前ベースの近隣探索及びマルチホップサービス探索
TWI357242B (en) Route selection in wireless networks
JP5960050B2 (ja) レイヤー2ドメインにわたる負荷分散
KR101404008B1 (ko) 무선 메시 네트워크들에서의 콘텐츠 서비스들에 관한 통합된 피어-투-피어 및 캐시 시스템
US8612621B2 (en) Method for constructing network topology, and streaming delivery system
US9191459B2 (en) Method and apparatus for seamless mobility techniques in content-centric network
CN108769257B (zh) 一种服务器切换方法及装置
JP5265674B2 (ja) 通信ネットワークにおける移動性管理及び効率的な情報検索のための方法、装置、及びシステム
EP1890424B1 (en) System and method for data communication
US20080098121A1 (en) P2p sip enabled multimedia network communication system
WO2008077299A1 (fr) Redirecteur, relais et système de configuration d'informations de routage et procédé de mise à jour
WO2007033238A2 (en) System and method for providing packet connectivity between heterogeneous networks, and component and packet therefor
US8706845B2 (en) Method, apparatus, and system for maintaining status of bootstrap peer
WO2013004134A1 (zh) 一种p2p网络路由方法、节点及系统
WO2009000181A1 (fr) Procédé servant à acquérir des ressources transversales, un nœud pair à pair et un système pair à pair
Jin et al. MANET for Disaster Relief based on NDN
WO2012167659A1 (zh) 受限应用协议中数据通信的方法和装置
WO2013004139A1 (zh) 一种对等网中消息交互的方法及装置、系统
WO2009086764A1 (zh) 在网络上提供服务的方法、网络服务实体和网络系统
WO2009086763A1 (zh) 一种源切换的方法、系统和设备
WO2012129794A1 (zh) P2p网络中的通信方法、网络节点及网络超级节点
WO2021005756A1 (ja) コンテンツ配信システム、ユニキャストマルチキャスト変換装置、コンテンツ配信方法及びコンテンツ配信プログラム
WO2012136094A1 (zh) 一种对等网络中控制过负荷的方法及系统
Warabino et al. Session control cooperating core and overlay networks for" minimum core" architecture
JP4520432B2 (ja) マルチキャストでパケット通信するVoIPネットワークシステムおよびその構築方法

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

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

Country of ref document: EP

Kind code of ref document: A1