[go: up one dir, main page]

CN103179191A - P2P network management and control device and P2P network management and control framework - Google Patents

P2P network management and control device and P2P network management and control framework Download PDF

Info

Publication number
CN103179191A
CN103179191A CN201310049444XA CN201310049444A CN103179191A CN 103179191 A CN103179191 A CN 103179191A CN 201310049444X A CN201310049444X A CN 201310049444XA CN 201310049444 A CN201310049444 A CN 201310049444A CN 103179191 A CN103179191 A CN 103179191A
Authority
CN
China
Prior art keywords
resource
node
request
user node
service
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.)
Granted
Application number
CN201310049444XA
Other languages
Chinese (zh)
Other versions
CN103179191B (en
Inventor
卢美莲
张泽
董丽华
张宜兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
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 Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN201310049444.XA priority Critical patent/CN103179191B/en
Publication of CN103179191A publication Critical patent/CN103179191A/en
Application granted granted Critical
Publication of CN103179191B publication Critical patent/CN103179191B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a P2P (peer to peer) network control device and a P2P network control architecture. The P2P network control device authenticates service requests transmitted by a user node in an IMS (IP multimedia subsystem) network, such as registration request, resource release and resource query for joining a P2P service overlay network. If authentication succeeds, the service requests are transmitted to the P2P service overlay network corresponding to the types of requested services. Behaviors of the user node in joining and exiting an upper overlay network and a content resource overlay network of the P2P service overlay network are controlled. A resource node list of the user node requiring for the resources, returned by the P2P overlay network, is optimized according to network optimization information provided by a network optimization service unit, and the resource node list which is optimized is returned to the user node. Therefore, the P2P service overlay network, the user node and service traffic are effectively monitored by an ISP (internet service provider) through the deployed P2P network control device, and the P2P service overlay network can be operated orderly.

Description

P2P网络管控装置及P2P网络管控架构P2P network management and control device and P2P network management and control framework

技术领域technical field

本发明涉及计算机网络技术,尤其涉及一种P2P网络管控装置及P2P网络管控架构。The invention relates to computer network technology, in particular to a P2P network management and control device and a P2P network management and control framework.

背景技术Background technique

对等(peer-to-peer,简称P2P)网络是一种用于不同用户节点即个人计算机(personal compute,简称PC)之间不经过中继设备直接交换数据或服务的技术,在P2P网络中,所有用户节点都处于对等地位,网络中的每个用户节点既能充当客户端,又能作为服务器向其它用户节点提供资源与服务。当前互联网中存在大量使用P2P技术的服务,如比特流(BitTorrent)、电骡(eMule)、QQ、Skype、网络视频客户端(PPLive)等,以上P2P服务的核心目标是更好的发挥用户节点的作用,高效利用用户节点的CPU能力、共享资源等,极大的改善传统的客户端与服务器(Client/Server,简称C/S)的服务模式,从而使得所有用户节点都可建立P2P连接,并可以根据P2P连接实现用户节点的资源共享,使得用户节点更多的参与到网络活动中,从而提高用户节点的资源共享能力。Peer-to-peer (P2P for short) network is a technology for directly exchanging data or services between different user nodes (personal compute, PC for short) without relay equipment. In P2P network , all user nodes are in a peer-to-peer position, and each user node in the network can act not only as a client, but also as a server to provide resources and services to other user nodes. At present, there are a large number of services using P2P technology in the Internet, such as bittorrent (BitTorrent), eMule (eMule), QQ, Skype, network video client (PPLive), etc. The core goal of the above P2P services is to better play the role of user nodes. Function, efficient use of user nodes' CPU capabilities, shared resources, etc., greatly improving the traditional client and server (Client/Server, referred to as C/S) service mode, so that all user nodes can establish P2P connections, and The resource sharing of the user nodes can be realized according to the P2P connection, so that the user nodes can participate in more network activities, thereby improving the resource sharing ability of the user nodes.

由于在现有P2P网络中,每个P2P内容提供商/服务提供商(ContentProvider/Service Provider,简称CP/SP)都会提供一个自己的P2P业务覆盖网,这导致P2P业务覆盖网的数量多,且各P2P业务覆盖网是分布式组织的,因此,互联网服务提供商(Internet Service Provider,简称ISP)要为此提供大量的网络支持,从而使得用户节点可以随意访问P2P CP/SP提供的P2P业务,但是,又由于P2P业务覆盖网与ISP承载网的网络拓扑不匹配,导致目前ISP缺乏对P2P业务覆盖网进行有效监管的机制,从而使得P2P业务覆盖网运营混乱,处于“无政府状态”。Because in the existing P2P network, each P2P content provider/service provider (ContentProvider/Service Provider, referred to as CP/SP) will provide a P2P service coverage network of its own, which leads to a large number of P2P service coverage networks, and Each P2P service coverage network is organized in a distributed manner. Therefore, the Internet Service Provider (ISP) should provide a large amount of network support for this purpose, so that user nodes can freely access the P2P services provided by the P2P CP/SP. However, due to the mismatch between the network topology of the P2P service overlay network and the ISP bearer network, the current ISP lacks an effective supervision mechanism for the P2P service overlay network, which makes the operation of the P2P service overlay network chaotic and in an "anarchy".

发明内容Contents of the invention

本发明的目的在于提供一种P2P网络管控装置及P2P网络管控架构,从而实现ISP对P2P业务覆盖网进行有效的管控。The purpose of the present invention is to provide a P2P network management and control device and a P2P network management and control framework, so as to realize the effective management and control of the P2P service coverage network by the ISP.

本发明的第一个方面是提供一种P2P网络管控装置,所述P2P网络管控装置由互联网服务提供商ISP部署,包括:The first aspect of the present invention is to provide a P2P network management and control device, the P2P network management and control device is deployed by an Internet Service Provider (ISP), including:

接收模块,用于接收IMS网络中用户节点发送的注册请求,所述用户节点的注册请求包括用户节点的IP地址、用户节点的状态信息以及用户节点所请求注册的P2P业务覆盖网的业务类型;The receiving module is used to receive the registration request sent by the user node in the IMS network, the registration request of the user node includes the IP address of the user node, the status information of the user node and the service type of the P2P service overlay network requested by the user node to register;

分配模块,用于若根据所述用户节点的状态信息确定所述用户节点满足与所述用户节点所请求注册的业务类型对应的第一预设条件,则根据用户节点的IP地址为所述用户节点分配全局唯一的ID;An allocation module, configured to, if it is determined according to the state information of the user node that the user node satisfies the first preset condition corresponding to the service type requested by the user node to register, then assign the user node the IP address of the user node Nodes are assigned globally unique IDs;

注册模块,用于在注册表中添加包括所述请求注册的用户节点的ID、IP地址、请求注册的业务类型的表项;The registration module is used to add in the registry the table items that include the ID of the user node requesting registration, the IP address, and the service type requesting registration;

发送模块,用于将所述用户节点的注册请求向与所述请求注册的业务类型对应的P2P业务覆盖网中的与所述用户节点的ID对应的超级节点发送,以使所述超级节点将所述请求注册的用户节点的IP地址和请求注册的业务类型添加到自身管理的用户节点列表的与所述请求注册的用户节点的ID对应的表项中。A sending module, configured to send the registration request of the user node to a super node corresponding to the ID of the user node in the P2P service overlay network corresponding to the service type requested for registration, so that the super node will The IP address of the user node requesting registration and the service type requesting registration are added to the entry corresponding to the ID of the user node requesting registration in the user node list managed by itself.

本发明的另一个方面是提供一种P2P网络管控架构,包括如上所述的P2P网络管控装置和资源管理装置,所述资源管理装置包括:Another aspect of the present invention is to provide a P2P network management and control framework, including the above-mentioned P2P network management and control device and resource management device, the resource management device includes:

接收模块,用于接收所述P2P网络管控装置发送的用户节点的资源发布消息,所述资源发布消息包括请求发布资源的用户节点的IP、ID、请求发布的资源的资源名称、业务类型;A receiving module, configured to receive the resource release message of the user node sent by the P2P network management and control device, the resource release message includes the IP and ID of the user node requesting resource release, the resource name of the resource requesting release, and the service type;

存储模块,用于根据所述资源发布消息在本地管理的资源库中存储资源信息,所述资源信息包括请求发布的资源的资源名称、对应的业务类型;A storage module, configured to store resource information in a locally managed resource library according to the resource release message, where the resource information includes the resource name and the corresponding business type of the resource requested to be released;

发送模块,用于向所述P2P网络管控装置返回资源信息存储成功消息。A sending module, configured to return a resource information storage success message to the P2P network management and control device.

采用上述本发明技术方案的有益效果是:在本发明实施例中,通过ISP部署的P2P网络管控装置,对IMS网络中用户节点发送的加入P2P业务覆盖网的注册请求、资源发布、资源查询和资源请求的业务请求进行鉴权,若鉴权成功则将所述业务请求向与请求的业务类型对应的P2P业务覆盖网发送;对用户节点加入和退出P2P业务覆盖网的上层覆盖网和内容资源覆盖网的行为进行管控;根据网络优化服务装置提供的网络优化信息对P2P覆盖网返回给请求资源的用户节点的资源节点列表行优化,并将优化后的资源节点列表返回给所述用户节点,从而使得ISP可以通过部署的P2P网络管控装置对P2P业务覆盖网、用户节点和业务流量进行有效监管,进而使得P2P业务覆盖网可以有序运营。The beneficial effect of adopting the above-mentioned technical solution of the present invention is: in the embodiment of the present invention, the P2P network management and control device deployed by the ISP can respond to the registration request, resource release, resource query and The service request of the resource request is authenticated, and if the authentication is successful, the service request is sent to the P2P service overlay network corresponding to the requested service type; the user node joins and exits the upper layer overlay network and content resources of the P2P service overlay network The behavior of the overlay network is managed and controlled; according to the network optimization information provided by the network optimization service device, the resource node list returned by the P2P overlay network to the user node requesting resources is optimized, and the optimized resource node list is returned to the user node, Therefore, the ISP can effectively supervise the P2P service overlay network, user nodes and service flow through the deployed P2P network management and control device, thereby enabling the orderly operation of the P2P service overlay network.

附图说明Description of drawings

图1为本发明实施例一提供的一种P2P网络管控装置的结构示意图;FIG. 1 is a schematic structural diagram of a P2P network management and control device provided in Embodiment 1 of the present invention;

图2为本发明实施例二提供的一种P2P网络管控装置的结构示意图;FIG. 2 is a schematic structural diagram of a P2P network management and control device provided in Embodiment 2 of the present invention;

图3为本发明实施例三提供的一种P2P网络管控架构的结构示意图;FIG. 3 is a schematic structural diagram of a P2P network management and control framework provided by Embodiment 3 of the present invention;

图4为本发明实施例四提供的一种P2P网络管控架构的结构示意图;FIG. 4 is a schematic structural diagram of a P2P network management and control framework provided by Embodiment 4 of the present invention;

图5为本发明实施例五提供的一种P2P网络管控架构部署示意图。FIG. 5 is a schematic diagram of deployment of a P2P network management and control framework provided by Embodiment 5 of the present invention.

具体实施方式Detailed ways

图1为本发明实施例一提供的一种P2P网络管控装置的结构示意图,如图1所示,所述装置可以包括:FIG. 1 is a schematic structural diagram of a P2P network management and control device provided in Embodiment 1 of the present invention. As shown in FIG. 1, the device may include:

接收模块101,用于接收IMS网络中用户节点发送的注册请求;A receiving module 101, configured to receive a registration request sent by a user node in the IMS network;

需要说明的是,本实施例中的P2P网络管控装置是由ISP部署的,其具体可以是对等应用服务器(Peer-to-PeerApplication Server,简称P2P AS),并通过网络与P2P业务覆盖网以及IMS网络进行通信。It should be noted that the P2P network management and control device in this embodiment is deployed by the ISP, which may specifically be a peer-to-peer application server (Peer-to-Peer Application Server, referred to as P2P AS), and through the network and the P2P service overlay network and IMS network for communication.

在本发明实施例中,当IMS网络中的用户节点希望加入P2P业务覆盖网时,可以向P2P网络管控装置发送注册请求,P2P网络管控装置的接收模块则接收用户节点发送的注册请求,其中,用户节点的注册请求可以包括用户节点的IP地址、用户节点的状态信息以及用户节点所请求注册的P2P业务覆盖网的业务类型,其中,请求注册的用户节点的状态信息则可以是请求注册的用户节点当前的状态信息,如请求注册的用户节点的当前带宽、CPU的处理速度、存储空间的大小等;用户节点所请求注册的P2P业务覆盖网的业务类型则包括下载业务类型、点播业务类型、直播业务类型和会话业务类型。In the embodiment of the present invention, when a user node in the IMS network wants to join the P2P service overlay network, it can send a registration request to the P2P network management and control device, and the receiving module of the P2P network management and control device receives the registration request sent by the user node, wherein, The registration request of the user node may include the IP address of the user node, the state information of the user node, and the service type of the P2P service overlay network requested by the user node to register, wherein the state information of the user node requesting registration may be the user requesting registration The current status information of the node, such as the current bandwidth of the user node requesting registration, the processing speed of the CPU, the size of the storage space, etc.; the service type of the P2P service overlay network requested by the user node to register includes the download service type, on-demand service type, Live service type and session service type.

分配模块102,用于若根据所述用户节点的状态信息确定所述用户节点满足与所述用户节点所请求注册的业务类型对应的第一预设条件,则根据用户节点的IP地址为所述用户节点分配全局唯一的ID;The assignment module 102 is configured to, if it is determined according to the state information of the user node that the user node satisfies the first preset condition corresponding to the service type requested by the user node to register, then according to the IP address of the user node, the User nodes are assigned globally unique IDs;

在本发明实施例中,第一预设条件可以是与用户节点所请求注册的业务类型对应的用户节点的所需带宽、CPU的处理速度、存储空间的大小等信息,因此,当P2P网络管控装置接收到用户节点的注册请求后,对用户节点的注册请求进行鉴权,举例来说,若用户节点发送的当前CPU的处理速度为CP、存储空间的大小为SC、带宽为BD,则按照顺序定义为考量因子集合{CP,SC,BD},若预设的与请求注册的业务类型对应的P2P业务覆盖网的第一预设条件的第一阈值限定集为{CPthreshold,SCthreshold,BDthreshold},则筛选满足预设的与请求注册的业务类型对应的用户节点的第一预设条件为:In the embodiment of the present invention, the first preset condition may be information such as the required bandwidth of the user node corresponding to the service type requested by the user node, the processing speed of the CPU, and the size of the storage space. Therefore, when the P2P network controls After the device receives the registration request of the user node, it authenticates the registration request of the user node. For example, if the processing speed of the current CPU sent by the user node is CP, the size of the storage space is SC, and the bandwidth is BD, then according to The sequence is defined as a set of consideration factors {CP, SC, BD}, if the preset first threshold limit set of the first preset condition of the P2P service overlay network corresponding to the service type requested for registration is {CP threshold , SC threshold , BD threshold }, then the first preset condition for screening the user nodes corresponding to the preset service type requesting registration is:

CP≥CPthreshold且SC≥SCthreshold且BD≥BDthresholdCP≥CP threshold and SC≥SC threshold and BD≥BD threshold ;

即只有当请求注册的用户节点的当前CPU的处理速度、存储空间的大小、带宽都大于或等于第一阈值限定集,则通过分配模块为用户节点分配全局唯一的ID。在本实施例中,分配模块为用户节点分配的全局唯一的ID可以是分配模块根据用户节点的IP地址进行哈希运算后得到的哈希值,举例来说,哈希运算则具体可以是安全散列算法第一版(Secure Hash Algorithm-1,简称SHA-1)、安全散列算法第二版(Secure Hash Algorithm-2,简称SHA-2)或、消息摘要算法第五版(Message Digest Algorithm-5,简称MD5)等哈希算法。That is, only when the current CPU processing speed, storage space size, and bandwidth of the user node requesting registration are greater than or equal to the first threshold limit set, the user node is assigned a globally unique ID by the allocation module. In this embodiment, the globally unique ID assigned by the distribution module to the user node may be a hash value obtained by the distribution module after performing a hash operation according to the IP address of the user node. For example, the hash operation may specifically be a security ID. The first version of the hash algorithm (Secure Hash Algorithm-1, referred to as SHA-1), the second version of the secure hash algorithm (Secure Hash Algorithm-2, referred to as SHA-2) or, the fifth version of the message digest algorithm (Message Digest Algorithm -5, referred to as MD5) and other hash algorithms.

注册模块103,在注册表中添加包括请求注册的用户节点的ID、IP地址、请求注册的业务类型的表项;Registration module 103, adds the table item that comprises the ID of the user node that requests registration, IP address, the service type that requests registration in registration table;

在本发明实施例中,当分配模块为请求注册的用户节点分配ID后,注册模块则可以将用户节点注册到与用户节点所请求注册的业务类型对应的P2P业务覆盖网,即将分配模块为请求注册的用户节点分配的ID、用户节点的IP地址、所请求注册的业务类型的表项添加到注册表;否则不添加。需要说明的是,本实施例中所述的注册表可以是用户节点的注册表,存储着用户节点的相关信息,如用户节点的ID、IP地址和所请求注册的业务类型的对应关系的表项。In the embodiment of the present invention, after the allocation module assigns an ID to the user node requesting registration, the registration module can register the user node to the P2P service overlay network corresponding to the service type requested by the user node, that is, the allocation module is a request The ID assigned by the registered user node, the IP address of the user node, and the entry of the service type requested for registration are added to the registry; otherwise, they are not added. It should be noted that the registry described in this embodiment can be the registry of the user node, which stores the relevant information of the user node, such as the table of the corresponding relationship between the ID of the user node, the IP address and the service type requested to register item.

发送模块104,用于若根据所述用户节点的状态信息确定所述用户节点满足与所述用户节点所请求注册的业务类型对应的第一预设条件,将所述用户节点的注册请求向与所述请求注册的业务类型对应的P2P业务覆盖网中的与用户节点的ID对应的超级节点发送,以使P2P业务覆盖网中的超级节点将请求注册的用户节点的IP地址和请求注册的业务类型添加到自身管理的用户节点列表中与请求注册的用户节点的ID对应的表项中,从而使得请求注册的用户节点成功注册到与请求注册的业务类型对应的P2P业务覆盖网中。The sending module 104 is configured to send the registration request of the user node to The super node corresponding to the ID of the user node in the P2P service overlay network corresponding to the service type requesting registration sends, so that the super node in the P2P service overlay network will request the registration of the user node IP address and the service requesting registration The type is added to the entry corresponding to the ID of the user node requesting registration in the user node list managed by itself, so that the user node requesting registration is successfully registered in the P2P service overlay network corresponding to the service type requesting registration.

在本发明实施例中,通过ISP部署的P2P网络管控装置,对IMS网络中用户节点发送的加入P2P业务覆盖网的注册请求进行鉴权,若鉴权成功则将用户节点发送的注册请求向与请求注册的业务类型对应的P2P业务覆盖网发送,使得P2P业务覆盖网中的超级节点只将P2P网络管控装置鉴权成功的用户节点的IP地址和请求注册的业务类型添加到自身管理的用户节点列表的与所述请求注册的用户节点的ID对应的表项中,从而使得ISP可以通过部署的P2P网络管控装置对P2P业务覆盖网进行有效的监管,进而使得P2P业务覆盖网可以有序运营。In the embodiment of the present invention, the P2P network management and control device deployed by the ISP authenticates the registration request sent by the user node in the IMS network to join the P2P service overlay network. If the authentication is successful, the registration request sent by the user node is sent to the The P2P service overlay network corresponding to the service type requesting registration is sent, so that the super node in the P2P service overlay network only adds the IP address of the user node whose P2P network management and control device has successfully authenticated and the service type requesting registration to the user node managed by itself In the table entry corresponding to the ID of the user node requesting registration, the ISP can effectively supervise the P2P service overlay network through the deployed P2P network management and control device, so that the P2P service overlay network can be operated in an orderly manner.

图2为本发明实施例二提供的一种P2P网络管控装置的结构示意图,本实施例在图1所示P2P网络管控装置结构的基础上,进一步的,P2P网络管控装置还可以包括超级节点统计模块201、超级节点选择模块202以及注册表更新模块203,其中:Figure 2 is a schematic structural diagram of a P2P network management and control device provided in Embodiment 2 of the present invention. In this embodiment, on the basis of the structure of the P2P network management and control device shown in Figure 1, further, the P2P network management and control device may also include super node statistics Module 201, super node selection module 202 and registry update module 203, wherein:

超级节点统计模块201,用于统计P2P业务覆盖网中超级节点的数量;The super node statistics module 201 is used to count the number of super nodes in the P2P service coverage network;

超级节点选择模块202,用于若所述P2P业务覆盖网中超级节点的数量未达到预设阈值、且若根据所述用户节点的状态信息确定所述用户节点满足成为所述P2P业务覆盖网中超级节点的第二预设条件,则可以确定用户节点为上层覆盖网中的候选超级节点;A super node selection module 202, configured to if the number of super nodes in the P2P service overlay network does not reach a preset threshold, and if it is determined according to the state information of the user node that the user node meets the criteria for becoming a super node in the P2P service overlay network The second preset condition of the super node can determine that the user node is a candidate super node in the upper overlay network;

发送模块103还可以用于,向已注册的P2P业务覆盖网中的超级节点发送允许加入上层覆盖网的消息;The sending module 103 can also be used to send a message allowing to join the upper layer overlay network to the registered super node in the P2P service overlay network;

注册表更新模块203:用于在注册表中与所述候选超级节点的IP地址、ID、请求注册的业务类型对应的表项中添加用于表示所述候选超级节点为超级节点的标识。Registry update module 203: used to add an identifier for indicating that the candidate supernode is a supernode in the entry corresponding to the IP address, ID, and service type of the candidate supernode in the registry.

由于随着用户节点不断加入到P2P业务覆盖网中,如果当前P2P业务覆盖网中存在大量超级节点退出、或用户节点的数量与超级节点的数量之间的比值过大时,则难以维持P2P业务覆盖网的正常运行,因此,在本发明实施例中,P2P网络管控装置可以通过超级节点统计模块定期统计P2P业务覆盖网中超级节点的数量,如果P2P业务覆盖网中当前超级节点的数量未达到预设的超级节点个数的阈值、或P2P业务覆盖网中当前用户节点的数量与超级节点的数量的比值大于预设的比值,则可以通过超级节点选择模块根据用户节点的当前带宽、CPU的处理速度、存储空间的大小、在线时长、贡献度等状态信息,在已注册的用户节点中选择一部分状态信息达到成为P2P业务覆盖网中超级节点的第二预设条件的用户节点作为候选超级节点,本实施例中,用户节点的在线时长、贡献度信息可以是P2P网络管控装置根据记录的用户节点的上下线时间、发布的资源以及请求的资源等信息统计而得出的。第二预设条件包括与业务类型对应的第二阈值限定集和评分阈值。举例来说,若获取的已注册的用户节点的当前CPU的处理速度为CP、存储空间的大小为SC、带宽为BD、贡献度为CB、在线时长为AG,则按照顺序定义为考量因子集合{CP,SC,BD,CB,AG},若预设的与请求注册的业务类型对应的第二预设条件的第二阈值限定集为{CP’threshold,SC’threshold,BD’threshold,CB’threshold,AG’threshold},相应考量因子的权重集定义为{ωCP,ωSC,ωBD,ωCB,ωAG},0<ω<1,且与第二预设条件对应的评分阈值为Score,则筛选满足预设的与请求注册的业务类型对应的第二预设条件的超级节点的方法为,超级节点作为用户节点的当前CPU的处理速度、存储空间的大小、带宽、贡献度、在线时长都大于或等于第二阈值限定集,即CP>CP’threshold、SC>SC’threshold、BD>BD’threshold、CB>CB’threshold、AG>AG’threshold,且(CP×ωCP+SC×ωSC+BD×ωBD+CB×ωCB+AG×ωAG)>Score,若达到,则表示该用户节点可以作为上层覆盖网中的候选超级节点,然后由发送模块向已注册的P2P业务覆盖网中的超级节点发送允许加入上层覆盖网的消息,从而使得已注册的P2P业务覆盖网中的超级节点可以为候选超级节点分配用户节点、配置路由表、并更新本地路由表和上层覆盖网中其它超级节点的路由表,以使候选超级节点成为上层覆盖网中的超级节点;在本发明实施例中,允许加入上层覆盖网的消息中可以包括候选超级节点的IP地址、ID和对应的业务类型。当候选超级节点加入上层覆盖网成为超级节点后,P2P网络管控装置还可以通过注册表更新模块在注册表中与候选超级节点的IP地址、ID、请求注册的业务类型对应的表项中添加用于表示候选超级节点为超级节点的标识。As user nodes continue to join the P2P service overlay network, if there are a large number of super nodes exiting the current P2P service overlay network, or the ratio between the number of user nodes and the number of super nodes is too large, it will be difficult to maintain the P2P business The normal operation of the overlay network, therefore, in the embodiment of the present invention, the P2P network management and control device can regularly count the number of super nodes in the P2P service overlay network through the super node statistics module, if the current number of super nodes in the P2P service overlay network does not reach The preset threshold of the number of supernodes, or the ratio of the number of current user nodes to the number of supernodes in the P2P service overlay network is greater than the preset ratio, then the supernode selection module can be selected according to the current bandwidth of the user node, CPU Processing speed, size of storage space, online time, contribution and other status information, select a part of the status information from the registered user nodes to meet the second preset condition of becoming a super node in the P2P service coverage network as a candidate super node , in this embodiment, the online duration and contribution information of the user node may be obtained by the P2P network management and control device according to the recorded user node online and offline time, published resources, requested resources and other information statistics. The second preset condition includes a second threshold definition set corresponding to the business type and a scoring threshold. For example, if the obtained registered user node's current CPU processing speed is CP, the size of the storage space is SC, the bandwidth is BD, the contribution is CB, and the online time is AG, then it is defined as a set of consideration factors in order {CP, SC, BD, CB, AG}, if the preset second threshold limit set of the second preset condition corresponding to the service type requesting registration is {CP' threshold , SC' threshold , BD' threshold , CB ' threshold , AG' threshold }, the weight set of the corresponding consideration factor is defined as {ω CP , ω SC , ω BD , ω CB , ω AG }, 0<ω<1, and the scoring threshold corresponding to the second preset condition Score, then the method of screening the supernodes that meet the preset second preset conditions corresponding to the business type that requests registration is: the processing speed of the current CPU, the size of the storage space, the bandwidth, and the degree of contribution of the supernode as a user node , online duration are greater than or equal to the second threshold limit set, that is, CP>CP' threshold , SC>SC' threshold , BD>BD' threshold , CB>CB' threshold , AG>AG' threshold , and (CP×ω CP +SC×ω SC +BD×ω BD +CB×ω CB +AG×ω AG )>Score, if reached, it means that the user node can be used as a candidate super node in the upper overlay network, and then the sending module sends the registered The super node in the P2P service overlay network sends a message allowing to join the upper layer overlay network, so that the registered super node in the P2P service overlay network can allocate user nodes for candidate super nodes, configure the routing table, and update the local routing table and The routing tables of other supernodes in the upper-layer overlay network, so that the candidate supernode becomes a supernode in the upper-layer overlay network; in the embodiment of the present invention, the IP address and ID of the candidate supernode can be included in the message allowing to join the upper-layer overlay network and corresponding business types. After the candidate supernode joins the upper layer overlay network to become a supernode, the P2P network management and control device can also use the registry update module to add the user to the entry corresponding to the IP address, ID, and service type of the candidate supernode in the registry. It is used to indicate that the candidate super node is the identification of the super node.

由于P2P业务覆盖网中各超级节点所管控的内容资源覆盖网和使用业务的不同,在一定程度上会影响到超级节点本身的状态,因此,进一步的,在上述实施例的基础上,P2P网络管控装置还可以通过接收模块101,周期性接收P2P业务覆盖网中超级节点发送的各自的ID、IP地址、状态信息以及所属P2P业务覆盖网的业务类型,其中,状态信息可以是超级节点当前CPU的处理速度、存储空间的大小、带宽、贡献度、在线时长等;如果存在超级节点的状态信息未达到与该超级节点所属P2P业务覆盖网的业务类型对应的第二预设条件,则超级节点选择模块还可以用于根据该超级节点的状态信息确定该超级节点未满足成为超级节点所属P2P业务覆盖网中超级节点的第二预设条件,则确定该超级节点为待退出超级节点;并通过发送模块向待退出超级节点和P2P业务覆盖网中的其它超级节点分别发送退出上层覆盖网的退出消息,其中,退出上层覆盖网的退出消息中可以包括待退出超级节点的IP地址、ID,从而使得P2P业务覆盖网中的其它超级节点可以接管待退出超级节点所管理的用户节点列表,并更新本地路由表,以将待退出超级节点退出P2P业务覆盖网而成为普通的用户节点。当待退出超级节点退出P2P业务覆盖网后,注册表更新模块还可以用于,在注册表中与待退出超级节点的IP地址、ID、请求注册的业务类型对应的表项中删除用于表示所述待退出超级节点为超级节点的标识,而使得待退出超级节点作为普通用户节点存在于注册表中。Due to the difference in the content resource overlay network and services used by each super node in the P2P service overlay network, it will affect the state of the super node itself to a certain extent. Therefore, further, on the basis of the above embodiments, the P2P network The management and control device can also periodically receive the respective ID, IP address, status information and service type of the P2P service overlay network sent by the super nodes in the P2P service overlay network through the receiving module 101, wherein the status information can be the current CPU of the super node processing speed, size of storage space, bandwidth, contribution, online time, etc.; The selection module can also be used to determine according to the status information of the super node that the super node does not meet the second preset condition of becoming a super node in the P2P service overlay network to which the super node belongs, then determine that the super node is a super node to be withdrawn; and by The sending module sends the exit message of exiting the upper layer overlay network to the super node to be exited and other super nodes in the P2P service overlay network respectively, wherein the exit message of exiting the upper layer overlay network may include the IP address and ID of the super node to be exited, so that It enables other supernodes in the P2P service overlay network to take over the user node list managed by the supernode to be withdrawn, and update the local routing table, so that the supernode to be withdrawn withdraws from the P2P service overlay network and becomes a common user node. After the supernode to be withdrawn withdraws from the P2P service coverage network, the registry update module can also be used to delete the table entry corresponding to the IP address, ID, and service type of the supernode to be withdrawn in the registry for indicating The to-be-retired supernode is an identifier of a supernode, so that the to-be-retired supernode exists in the registry as a common user node.

在本发明实施例中,由筛选后符合条件的超级节点组成上层覆盖网,而上层覆盖网中的超级节点按照结构化方式进行组织,通过结构化P2P算法如Chord、Pastry、CAN等进行动态维护;同时通过P2P网络管控装置周期性对上层覆盖网中的超级节点的状态信息进行监控,从而能够筛选出不符合上层覆盖网中超级节点要求的超级节点,并将其退出上层覆盖网,因此,使得P2P业务覆盖网可以有效运行。In the embodiment of the present invention, the upper layer overlay network is composed of qualified super nodes after screening, and the super nodes in the upper layer overlay network are organized in a structured manner, and dynamically maintained through structured P2P algorithms such as Chord, Pastry, CAN, etc. ; At the same time, the status information of the super nodes in the upper overlay network is periodically monitored by the P2P network management and control device, so that the super nodes that do not meet the requirements of the super nodes in the upper overlay network can be screened out and withdrawn from the upper overlay network. Therefore, This enables the P2P service overlay network to operate effectively.

进一步的,P2P网络管控装置还可以包括第一鉴权模块204,在本发明实施例中,当已注册的P2P业务覆盖网中的用户节点希望在P2P业务覆盖网中发布资源时,可以向P2P网络管控装置发送资源发布消息,P2P网络管控装置则通过接收模块接收P2P业务覆盖网中用户节点发送的资源发布消息,其中,资源发布消息可以包括请求发布资源的用户节点的IP、ID、请求发布的资源的资源名称、对应的业务类型、资源属性信息等,其中,资源属性信息则可以是资源的大小、资源的分片情况或资源的编码方式等。P2P网络管控装置通过第一鉴权模块对请求发布资源的用户节点进行鉴权,如果本地黑名单中不存在资源发布消息中与请求发布资源的用户节点的IP或ID以及业务类型对应的表项,则鉴权成功;如果本地黑名单中存在资源发布消息中与请求发布资源的用户节点的IP或ID及业务类型对应的表项,则鉴权失败,如果鉴权失败,则不允许请求发布资源的用户节点发布该资源;如果鉴权成功,则通过发送模块将鉴权成功的资源发布消息转发给资源管理装置,以使资源管理装置存储请求发布资源的资源信息或统计热门资源,其中,资源信息可以包括请求发布的资源的资源名称、对应的业务类型以及资源属性信息等。并通过发送模块将鉴权成功的资源发布消息向与请求发布的资源业务类型对应的P2P业务覆盖网中与请求发布的资源的资源名称对应的超级节点发送,在本实施例中,P2P业务覆盖网中的超级节点基于结构化P2P路由算法存储有与资源名称对应的资源信息,举例来说,与资源名称对应的资源信息可以是将资源名称进行哈希运算后的资源ID,从而使得P2P业务覆盖网中的超级节点将请求发布资源的用户节点添加到自身管理的与请求发布的资源的资源名称和业务类型对应的内容资源覆盖网中,以使请求发布资源的用户节点成为相应内容资源覆盖网中的资源节点。Further, the P2P network management and control device may also include a first authentication module 204. In the embodiment of the present invention, when a user node in the registered P2P service overlay network wishes to publish resources in the P2P service overlay network, it may send a request to the P2P service overlay network. The network management and control device sends a resource release message, and the P2P network management and control device receives the resource release message sent by the user node in the P2P service overlay network through the receiving module, wherein the resource release message may include the IP, ID, and The resource name of the resource, the corresponding business type, resource attribute information, etc., where the resource attribute information can be the size of the resource, the fragmentation of the resource, or the encoding method of the resource, etc. The P2P network management and control device authenticates the user node requesting to release resources through the first authentication module, if there is no entry in the resource release message corresponding to the IP or ID and service type of the user node requesting to release resources in the local blacklist , the authentication is successful; if there is an entry corresponding to the IP or ID and service type of the user node requesting to publish the resource in the local blacklist, the authentication fails, and if the authentication fails, the request to publish is not allowed The user node of the resource publishes the resource; if the authentication is successful, the resource release message of the successful authentication is forwarded to the resource management device through the sending module, so that the resource management device stores the resource information requesting to release the resource or counts the popular resources, wherein, The resource information may include the resource name of the resource requested to be published, the corresponding service type, resource attribute information, and the like. And through the sending module, the resource publishing message of successful authentication is sent to the supernode corresponding to the resource name of the resource requesting publishing in the P2P service overlay network corresponding to the resource service type corresponding to the requesting publishing. In this embodiment, the P2P service covering The super nodes in the network store the resource information corresponding to the resource name based on the structured P2P routing algorithm. For example, the resource information corresponding to the resource name can be the resource ID after the resource name is hashed, so that the P2P business The super node in the overlay network adds the user node requesting to publish resources to the content resource overlay network managed by itself corresponding to the resource name and service type of the resource requesting release, so that the user node requesting to publish resources becomes the corresponding content resource overlay network. resource nodes in the network.

在本发明实施例中,当P2P业务覆盖网中的超级节点将请求发布资源的用户节点添加到自身管理的与请求发布的资源的资源名称和业务类型对应的内容资源覆盖网中之后,还可以向P2P网络管控装置返回资源发布成功消息,P2P网络管控装置则通过接收模块接收该超级节点返回的资源发布成功消息,并通过发送模块向请求发布资源的用户节点返回资源发布成功消息,其中,资源发布成功消息可以包括请求发布资源的用户节点的IP、ID、请求发布的资源的资源名称以及对应的业务类型等。In the embodiment of the present invention, after the super node in the P2P service overlay network adds the user node requesting to release resources to the content resource overlay network managed by itself and corresponding to the resource name and service type of the resource requesting release, it can also Return the resource publishing success message to the P2P network management and control device, and the P2P network management and control device receives the resource publishing success message returned by the super node through the receiving module, and returns the resource publishing success message to the user node requesting resource publishing through the sending module, wherein, the resource The publish success message may include the IP and ID of the user node requesting to publish the resource, the resource name of the resource requesting to publish, the corresponding service type, and the like.

进一步的,在本发明实施例中,当已注册的P2P业务覆盖网中的用户节点希望在P2P业务覆盖网中查找资源时,可以向P2P网络管控装置发送资源查询请求,P2P网络管控装置则通过接收模块接收P2P业务覆盖网中用户节点发送的资源查询请求,其中,资源查询请求可以包括请求查询资源的用户节点的IP、ID、请求查询的资源的资源名称的关键字、对应的业务类型;P2P网络管控装置还通过第一鉴权模块对请求查询资源的用户节点进行鉴权,如果本地黑名单中不存在资源查询请求中与请求查询资源的用户节点的IP或ID以及业务类型对应的表项,则鉴权成功;如果本地黑名单中存在资源查询请求中与请求查询资源的用户节点的IP或ID以及业务类型对应的表项,则鉴权失败,如果鉴权失败,则不对请求资源的用户节点作出响应;如果鉴权成功,则通过发送模块将请求查询资源的用户节点发送的资源查询请求转发给资源管理装置,以使资源管理装置查询本地管理的资源库后返回与请求查询的资源的资源名称的关键字、对应的业务类型相匹配的资源名称列表。在本实施例中,P2P网络管控装置通过接收模块接收资源管理装置返回的与请求查询的资源的资源名称的关键字、对应的业务类型相匹配的资源名称列表,其中,资源名称列表可以包括至少一个与请求查询的资源的资源名称的关键字、对应的业务类型相匹配的资源名称;P2P网络管控装置则通过发送模块将资源名称列表返回给请求查询资源的用户节点。Further, in the embodiment of the present invention, when a user node in the registered P2P service overlay network wishes to search for resources in the P2P service overlay network, it can send a resource query request to the P2P network management and control device, and the P2P network management and control device then passes The receiving module receives the resource query request sent by the user node in the P2P service overlay network, wherein the resource query request may include the IP, ID of the user node requesting the resource query, the keyword of the resource name of the resource requesting query, and the corresponding service type; The P2P network management and control device also authenticates the user node requesting resource query through the first authentication module, if there is no resource query request in the local blacklist item, the authentication is successful; if there is an entry in the resource query request corresponding to the IP or ID of the user node requesting the resource and the service type in the local blacklist, the authentication fails, and if the authentication fails, the requested resource is not The user node responds; if the authentication is successful, the resource query request sent by the user node requesting the resource query is forwarded to the resource management device through the sending module, so that the resource management device queries the locally managed resource library and returns the information corresponding to the request query. The keyword of the resource name of the resource, and the list of resource names matching the corresponding business type. In this embodiment, the P2P network management and control device receives the resource name list returned by the resource management device through the receiving module, which matches the keyword of the resource name and the corresponding service type of the requested resource, wherein the resource name list may include at least A resource name that matches the keyword of the resource name of the requested resource and the corresponding service type; the P2P network management and control device returns the resource name list to the user node requesting the resource query through the sending module.

进一步的,当已注册的P2P业务覆盖网中的用户节点希望在P2P业务覆盖网中请求资源时,可以向P2P网络管控装置发送资源请求消息,其中,资源请求消息可以包括请求资源的用户节点的IP、ID、请求的资源的资源名称、对应的业务类型;在本实施例中,请求的资源的资源名称可以是请求资源的用户节点从P2P网络管控装置发送的资源名称列表中选择的一个资源名称。P2P网络管控装置通过接收模块接收请求资源的用户节点发送的资源请求消息,并通过发送模块将资源请求消息向与请求的资源的业务类型对应的P2P业务覆盖网中与资源名称对应的超级节点发送,以使P2P业务覆盖网中的超级节点返回与请求的资源的资源名称和业务类型对应的资源节点列表,在本发明实施例中,P2P网络管控装置的接收模块具体还可以用于,接收与请求的资源的业务类型和资源名称对应的超级节点返回的资源节点列表;发送模块具体还可以用于,向请求资源的用户节点发送资源节点列表,以使用户节点可以根据资源节点列表获取资源、成为资源节点、以使所述与所述请求的资源的业务类型和资源名称对应的超级节点将请求资源的用户节点添加到自身管理的与所述请求的资源的资源名称和业务类型对应的内容资源覆盖网中;发送模块具体还可以用于,将用户节点发送的资源请求消息中请求的资源的资源名称、对应的业务类型向资源管理装置发送,以使所述资源管理装置统计本地管理的资源库中的热门资源。需要说明的是,热门资源可以是资源管理装置根据本地管理的资源库中的资源,在一段时间内统计的用户节点请求和发布资源的次数在由高到低的排序中排在靠前的资源。在本发明实施例中,资源节点列表可以包括拥有与请求的资源的资源名称、业务类型对应的资源的资源节点的IP地址,而各资源节点归属于与请求的资源的业务类型和资源名称对应的超级节点管理的内容资源覆盖网。Further, when a user node in the registered P2P service overlay network wishes to request resources in the P2P service overlay network, it may send a resource request message to the P2P network management and control device, wherein the resource request message may include the resource request message of the user node requesting the resource IP, ID, the resource name of the requested resource, and the corresponding service type; in this embodiment, the resource name of the requested resource may be a resource selected by the user node requesting the resource from the list of resource names sent by the P2P network management and control device name. The P2P network management and control device receives the resource request message sent by the user node requesting the resource through the receiving module, and sends the resource request message to the supernode corresponding to the resource name in the P2P service overlay network corresponding to the service type of the requested resource through the sending module so that the super node in the P2P service overlay network returns a resource node list corresponding to the resource name and service type of the requested resource. In the embodiment of the present invention, the receiving module of the P2P network management and control device can also be used to receive and The resource node list returned by the super node corresponding to the service type of the requested resource and the resource name; the sending module can also be used to send the resource node list to the user node requesting the resource, so that the user node can obtain resources according to the resource node list, Become a resource node, so that the super node corresponding to the service type and resource name of the requested resource adds the user node requesting the resource to the content managed by itself corresponding to the resource name and service type of the requested resource In the resource overlay network; the sending module can also be specifically configured to send the resource name and the corresponding service type of the resource requested in the resource request message sent by the user node to the resource management device, so that the resource management device can count locally managed Popular resources in the resource library. It should be noted that the hot resources may be the resources that the resource management device ranks first in the ranking from high to low according to the resources in the resource library managed locally by the resource management device, and the number of resource requests and releases of user nodes counted within a period of time . In this embodiment of the present invention, the resource node list may include the IP addresses of resource nodes that have resources corresponding to the resource name and service type of the requested resource, and each resource node belongs to the resource node corresponding to the service type and resource name of the requested resource. The content resource overlay network managed by super nodes.

进一步的,P2P网络管控装置还可以包括资源节点选择模块205,可以用于根据请求资源的用户节点的IP地址以及资源节点列表中各资源节点的IP地址分别获取资源节点列表中各资源节点相对用户节点的资源优先值,确定资源节点列表中资源优先值满足预设条件的资源节点;则发送模块具体可以用于,向请求资源的用户节点返回优化后的资源节点列表,其中,优化后的资源节点列表包括资源节点选择模块确定的资源优先值满足预设条件的资源节点。Further, the P2P network management and control device can also include a resource node selection module 205, which can be used to obtain the relative user information of each resource node in the resource node list according to the IP address of the user node requesting resources and the IP addresses of each resource node in the resource node list. The resource priority value of the node determines the resource node whose resource priority value meets the preset condition in the resource node list; the sending module can be used to return the optimized resource node list to the user node requesting the resource, wherein the optimized resource node The node list includes resource nodes whose resource priority values determined by the resource node selection module meet preset conditions.

在本发明实施例中,超级节点按照资源对P2P业务覆盖网中的内容资源覆盖网进行管理,即持有的业务类型和资源名称相同的资源的资源节点共同组成了一个内容资源覆盖网,并由上层覆盖网中的一个超级节点对其进行管理,记录管理内容资源覆盖网的元数据信息,例如,可以通过内容资源覆盖网(Content Resource Overlay,简称CRO)表项管理内容资源覆盖网,记录管理资源的元数据信息,具体的,资源的元数据信息可以包括该资源对应的资源名称、业务类型、以及组成该内容资源覆盖网的各资源节点的IP地址以及资源属性等。需要说明的是,本实施例中的用户节点是指发出业务请求的节点,用户节点需先注册到P2P业务覆盖网,然后可以通过P2P网络管控装置请求P2P业务覆盖网中的资源;当一个用户节点获取到资源后,则被加入到与获取的资源的资源名称和业务类型对应的内容资源覆盖网,而成为资源节点,而一个资源节点也可以作为普通的用户节点通过P2P网络管控装置请求P2P业务覆盖网中的其他资源。In the embodiment of the present invention, the super node manages the content resource overlay network in the P2P service overlay network according to resources, that is, the resource nodes with the same service type and resource name together form a content resource overlay network, and It is managed by a super node in the upper overlay network, which records and manages the metadata information of the content resource overlay network. For example, the content resource overlay network can be managed through the Content Resource Overlay (CRO) entry, and the record Manage resource metadata information. Specifically, resource metadata information may include the resource name, service type, and IP addresses and resource attributes of each resource node forming the content resource overlay network corresponding to the resource. It should be noted that the user node in this embodiment refers to the node that sends out the service request. The user node needs to be registered in the P2P service overlay network first, and then can request resources in the P2P service overlay network through the P2P network management and control device; when a user After the node obtains the resource, it is added to the content resource overlay network corresponding to the resource name and business type of the obtained resource, and becomes a resource node, and a resource node can also be used as an ordinary user node to request P2P through the P2P network management and control device Other resources in the service overlay network.

具体的,当已注册的P2P业务覆盖网中的用户节点希望退出P2P业务覆盖网时,可以向P2P网络管控装置发送退出P2P业务覆盖网的请求,P2P网络管控装置则可以通过接收模块接收退出P2P业务覆盖网的请求,其中,退出P2P业务覆盖网的请求可以包括请求退出的用户节点的ID、IP地址、用户节点所请求退出的P2P业务覆盖网的业务类型等;然后通过注册表更新模块将注册表中与请求退出的用户节点的ID、IP地址、用户节点所请求退出的P2P业务覆盖网的业务类型对应的表项中的业务类型置为空,以表示该用户节点为已注册但目前离开P2P业务覆盖网的用户节点。并通过发送模块向请求退出的用户节点返回退出P2P业务覆盖网的成功消息。Specifically, when a user node in the registered P2P service overlay network wishes to withdraw from the P2P service overlay network, it can send a request for exiting the P2P service overlay network to the P2P network management and control device, and the P2P network management and control device can receive the request for exiting the P2P service overlay network through the receiving module. The request of the service overlay network, wherein, the request of exiting the P2P service overlay network can include the ID, IP address of the user node requesting exit, the service type of the P2P service overlay network requested by the user node to exit, etc.; then update the module through the registry In the registration form, the service type in the entry corresponding to the ID, IP address, and service type of the P2P service overlay network requested by the user node to withdraw from the user node that requests to withdraw is set to empty, to indicate that the user node is registered but currently A user node leaving the P2P service overlay network. And return the success message of exiting the P2P service overlay network to the user node requesting exit through the sending module.

在上述实施例中,如果请求退出的用户节点为至少一个内容资源覆盖网中的资源节点,则P2P网络管控装置还可以通过发送模块将资源节点发送的退出P2P业务覆盖网的请求向与管理上述至少一个内容资源覆盖网的超级节点发送,从而使得该超级节点可以根据资源节点的退出请求更新自身管理的内容资源覆盖网的元数据信息,例如,将该资源节点的IP地址从自身管理的内容资源覆盖网的元数据信息中删除。In the above embodiment, if the user node requesting to exit is a resource node in at least one content resource overlay network, the P2P network management and control device may also send the request for exiting the P2P service overlay network sent by the resource node to and manage the above-mentioned At least one super node of the content resource overlay network sends, so that the super node can update the metadata information of the content resource overlay network managed by itself according to the exit request of the resource node, for example, the IP address of the resource node is changed from the content managed by itself Deleted from the metadata information of the resource overlay.

如果请求退出的用户节点为至少一个P2P业务覆盖网中的超级节点,则退出P2P业务覆盖网的请求还可以包括该超级节点自身管理的用户节点列表、路由表和内容资源覆盖网的元数据信息,因此,P2P网络管控装置可以通过发送模块将退出P2P业务覆盖网的请求向至少一个P2P业务覆盖网中的其它超级节点发送,以使P2P业务覆盖网中的其它超级节点将请求退出的超级节点管理的用户节点列表和内容资源网络的元数据信息添加到自身管理的用户节点列表和内容资源网络的元数据信息中,并更新本地的路由表,从而使得上层覆盖网中的超级节点离开后,P2P业务覆盖网可以维持正常运行。而注册表更新模块具体还可以用于,在注册表中与请求退出的超级节点的IP地址、ID、请求退出的业务类型对应的表项中删除用于表示请求退出的超级节点为超级节点的标识,并将注册表中对应表项中的业务类型置为空。If the user node requesting to exit is a super node in at least one P2P service overlay network, the request for exiting the P2P service overlay network may also include the user node list, routing table and metadata information of the content resource overlay network managed by the super node itself Therefore, the P2P network management and control device can send the request for exiting the P2P service overlay network to at least one other super node in the P2P service overlay network through the sending module, so that other super nodes in the P2P service overlay network will request the exiting super node The managed user node list and the metadata information of the content resource network are added to the self-managed user node list and the metadata information of the content resource network, and the local routing table is updated, so that after the supernode in the upper overlay network leaves, The P2P business overlay network can maintain normal operation. And the registry update module can also be specifically used to delete the table item corresponding to the IP address, ID, and service type of the supernode requesting exit in the registry to indicate that the supernode requesting exit is a supernode ID, and set the service type in the corresponding entry in the registry to empty.

进一步的,P2P网络管控装置还可以包括第二鉴权模块206,如果已注册的P2P业务覆盖网中的用户节点希望与P2P业务覆盖网中其它用户节点进行会话时,还可以向P2P网络管控装置发送会话请求,其中,会话请求中可以包括请求会话的用户节点的ID、用户节点的IP地址、目的用户节点的ID;P2P网络管控装置则可以通过接收模块接收该会话请求,并通过第二鉴权模块对用户节点的会话请求进行鉴权,如果本地黑名单中不存在与请求会话的用户节点的IP或ID以及业务类型对应的表项,则鉴权成功,否则鉴权失败,如果鉴权失败,则不对发起会话请求的用户节点作出响应;如果鉴权成功,则通过发送模块将鉴权成功的会话请求向P2P业务覆盖网中与目的用户节点的ID对应的超级节点发送,以使与目的用户节点的ID对应的超级节点根据自身管理的用户节点列表查询与目的用户节点的ID对应的IP地址,并向P2P网络管控装置返回查询到的与目的用户节点的ID对应的IP地址;P2P网络管控装置则还可以通过接收模块接收与目的用户节点的ID对应的超级节点返回的与目的用户节点的ID对应的IP地址,然后通过发送模块向发起会话请求的用户节点发送与目的用户节点的ID对应的IP地址,以使发起会话请求的用户节点可以根据与目的用户节点的ID对应的IP地址建立与目的用户节点的会话连接。Further, the P2P network management and control device may also include a second authentication module 206, if the registered user node in the P2P service overlay network wishes to have a session with other user nodes in the P2P service overlay network, it may also request the P2P network management and control device Send a session request, wherein, the session request may include the ID of the user node requesting the session, the IP address of the user node, and the ID of the destination user node; the P2P network management and control device may receive the session request through the receiving module, and pass the second authentication The authorization module authenticates the session request of the user node. If there is no entry corresponding to the IP or ID of the user node requesting the session and the service type in the local blacklist, the authentication succeeds; otherwise, the authentication fails. If the authentication Failure, then do not respond to the user node that initiates the session request; If the authentication is successful, then send the session request of the authentication success to the super node corresponding to the ID of the target user node in the P2P service overlay network by the sending module, so that the The super node corresponding to the ID of the destination user node queries the IP address corresponding to the ID of the destination user node according to the user node list managed by itself, and returns the IP address corresponding to the ID of the destination user node that is inquired to the P2P network management and control device; P2P The network management and control device can also receive the IP address corresponding to the ID of the target user node returned by the super node corresponding to the ID of the target user node through the receiving module, and then send the IP address corresponding to the target user node to the user node that initiated the session request through the sending module. The IP address corresponding to the ID, so that the user node that initiates the session request can establish a session connection with the target user node according to the IP address corresponding to the ID of the target user node.

由于P2P业务覆盖网与IMS网络中使用的消息协议类型不同,如IMS网络中用户节点发送的是会话初始化协议(Session Initiation Protocol,简称SIP)的消息,而P2P业务覆盖网中用户节点发送的是超文本传送协议(hypertext transport protocol,简称HTTP)的消息,而P2P业务覆盖网中的超级节点则是根据资源定位与发现协议(REsourceLOcation And Discovery,RELOAD)的消息进行路由,因此,本发明为了实现ISP对P2P业务覆盖网进行有效的管控,在本发明上述任一实施例提供的P2P网络管控装置中还可以包括:第一协议转换模块207和第二协议转换模块208,其中,第一协议转换模块用于将IMS网络中用户节点发送的SIP协议的消息转换为RELOAD协议的消息,具体地,用于将IMS网络中用户节点发送的SIP协议的注册请求转换为RELOAD协议的注册请求;则发送模块具体可以用于,若根据用户节点的状态信息确定用户节点满足与所述用户节点所请求注册的业务类型对应的第一预设条件,则将所述RELOAD协议的注册请求向与所述请求注册的业务类型对应的P2P业务覆盖网中的与所述用户节点的ID对应的超级节点发送。第二协议转换模块用于将P2P业务覆盖网中用户节点发送的HTTP协议的消息转换为RELOAD协议的消息,具体地,用于将P2P业务覆盖网中用户节点发送的HTTP协议的资源发布消息或资源请求消息转换为RELOAD协议的资源发布消息或资源请求消息;则发送模块具体可以用于,将鉴权成功的RELOAD协议的资源发布消息或资源请求消息向与所述请求发布的资源的资源名称和业务类型对应的P2P业务覆盖网中的超级节点发送,从而为用户节点提供到不同P2P业务覆盖网的接入。Since the message protocol types used in the P2P service overlay network and the IMS network are different, for example, the user nodes in the IMS network send Session Initiation Protocol (SIP) messages, while the user nodes in the P2P service overlay network send messages of the Session Initiation Protocol (SIP) Hypertext Transport Protocol (hypertext transport protocol, referred to as HTTP) messages, while the super nodes in the P2P service overlay network are routed according to the message of Resource Location and Discovery Protocol (REsourceLOcation And Discovery, RELOAD). Therefore, the present invention aims to realize The ISP effectively manages and controls the P2P service coverage network. The P2P network management and control device provided in any of the above-mentioned embodiments of the present invention may also include: a first protocol conversion module 207 and a second protocol conversion module 208, wherein the first protocol conversion The module is used to convert the message of the SIP protocol sent by the user node in the IMS network into a message of the RELOAD protocol, specifically, for converting the registration request of the SIP protocol sent by the user node in the IMS network into a registration request of the RELOAD protocol; Specifically, the module may be used to send the registration request of the RELOAD protocol to The supernode corresponding to the ID of the user node in the P2P service overlay network corresponding to the registered service type sends. The second protocol conversion module is used to convert the message of the HTTP protocol sent by the user node in the P2P service overlay network into a message of the RELOAD protocol, specifically, for publishing the resource release message of the HTTP protocol sent by the user node in the P2P service overlay network or The resource request message is converted into a resource release message or a resource request message of the RELOAD protocol; then the sending module can specifically be used to send the resource release message or the resource request message of the RELOAD protocol with successful authentication to the resource name of the resource issued by the request The super node in the P2P service overlay network corresponding to the service type sends it, so as to provide user nodes with access to different P2P service overlay networks.

图3为本发明实施例三提供的一种P2P网络管控架构的结构示意图,如图3所示,所述P2P网络管控架构可以包括上述图1、图2对应的实施例中提供的P2P网络管控装置100和资源管理装置200,其中,P2P网络管控装置100的详细描述可以参见图1、图2对应的实施例中的相关内容,此处不再赘述;而资源管理装置200具体可以包括:Figure 3 is a schematic structural diagram of a P2P network management and control framework provided in Embodiment 3 of the present invention. As shown in Figure 3, the P2P network management and control framework may include the P2P network management and control provided in the above-mentioned embodiments corresponding to Figures 1 and 2 The device 100 and the resource management device 200, wherein, the detailed description of the P2P network management and control device 100 can refer to the relevant content in the embodiment corresponding to Fig. 1 and Fig. 2 , and will not be repeated here; and the resource management device 200 can specifically include:

接收模块301:用于接收P2P网络管控装置发送的用户节点的资源发布消息,其中,资源发布消息可以包括发布资源的用户节点的IP、ID、对应的业务类型、请求发布的资源的资源名称;Receiving module 301: used to receive the resource release message of the user node sent by the P2P network management and control device, wherein the resource release message may include the IP, ID, corresponding service type, and resource name of the resource requesting to release the resource;

存储模块302,用于根据资源发布消息在本地管理的资源库中存储资源信息,其中,资源信息包括请求发布的资源的资源名称、对应的业务类型;The storage module 302 is configured to store resource information in a locally managed resource library according to a resource release message, wherein the resource information includes the resource name and the corresponding business type of the resource requested to be released;

发送模块303,用于向P2P网络管控装置返回资源信息存储成功消息。The sending module 303 is configured to return a resource information storage success message to the P2P network management and control device.

进一步的,资源管理装置200还可以包括查询模块304,则接收模块还可以用于,接收P2P网络管控装置发送的用户节点的资源查询请求,其中,资源查询请求包括请求查询资源的用户节点的IP、ID、请求查询的资源的资源名称的关键字、对应的业务类型;查询模块则用于,查询本地与请求查询的资源的资源名称的关键字、对应的业务类型相匹配的资源名称;发送模块还可以用于,向P2P网络管控装置返回查询到的资源名称列表,其中,资源名称列表可以包括至少一个与请求查询的资源的资源名称的关键字、对应的业务类型相匹配的资源名称,以使P2P网络管控装置将资源名称列表返回给请求查询资源的用户节点。Further, the resource management device 200 may also include a query module 304, and the receiving module may also be used to receive a resource query request of a user node sent by the P2P network management and control device, wherein the resource query request includes the IP address of the user node requesting to query resources. , ID, the keyword of the resource name of the resource requested to be queried, and the corresponding business type; the query module is used to query the local resource name that matches the keyword of the resource name of the resource requested to be queried, and the corresponding business type; send The module can also be used to return the queried resource name list to the P2P network management and control device, wherein the resource name list can include at least one resource name that matches the keyword of the resource name of the resource that is requested to be queried and the corresponding service type, So that the P2P network management and control device returns the resource name list to the user node requesting to query the resources.

进一步的,资源管理装置200还可以包括统计模块305,则接收模块还可以用于,接收所述P2P网络管控装置发送的用户节点的资源请求消息,所述资源请求消息中包括请求的资源的资源名称和对应的业务类型;统计模块则用于,根据P2P网络管控装置发送的用户节点的资源发布消息和资源请求消息,统计本地管理的资源库中的热门资源,举例来说,当接收模块接收到P2P网络管控装置发送的用户节点的资源发布消息时,可以根据资源发布消息中用户节点请求发布的资源的资源名称和对应的业务类型统计本地管理的资源库中对应资源的发布次数,当接收模块接收到P2P网络管控装置发送的用户节点的资源请求消息时,则根据资源请求消息中用户节点请求的资源的资源名称和对应的业务类型统计本地管理的资源库中对应资源的请求次数,并将本地管理的资源库中与资源名称和业务类型对应的资源的发布次数和请求次数进行合并统计,将统计后的资源库中的资源按照业务类型进行分类并排序,确定同一业务类型下的所有资源名称按次数从高到低的排序排在预设位数前的资源名称为热门资源;或者,也可以不考虑业务类型,只统计资源库中同一资源名称对应的资源的发布次数和请求次数的累计次数,而确定资源库中所有资源名称按次数从高到低的排序排在预设位数前的资源名称为热门资源;则发送模块还可以用于,向P2P网络管控装置返回统计的热门资源,以使P2P网络管控装置将热门资源返回给P2P业务覆盖网中的用户节点。Further, the resource management device 200 may also include a statistics module 305, and the receiving module may also be configured to receive a resource request message of a user node sent by the P2P network management and control device, and the resource request message includes resource information of the requested resource name and corresponding business type; the statistical module is used to count the popular resources in the locally managed resource library according to the resource release message and resource request message of the user node sent by the P2P network management and control device, for example, when the receiving module receives When the resource publishing message of the user node is sent by the P2P network management and control device, the resource name and the corresponding service type of the resource requested by the user node in the resource publishing message can be used to count the publishing times of the corresponding resource in the locally managed resource library. When the module receives the resource request message of the user node sent by the P2P network management and control device, it counts the number of requests for the corresponding resource in the locally managed resource library according to the resource name and the corresponding service type of the resource requested by the user node in the resource request message, and Combine and count the release times and request times of the resources corresponding to the resource name and business type in the locally managed resource library, classify and sort the resources in the resource library after statistics according to the business type, and determine all resources under the same business type Resource names are sorted from high to low according to the number of times, and the resource names that rank before the preset number of digits are popular resources; or, regardless of the business type, only the number of releases and the number of requests for resources corresponding to the same resource name in the resource library can be counted The accumulative number of times, and determine that all resource names in the resource library are ranked according to the number of times from high to low. Hot resources, so that the P2P network management and control device returns the hot resources to the user nodes in the P2P service coverage network.

图4为本发明实施例四提供的一种P2P网络管控架构的结构示意图,本实施例在图3所示P2P网络管控架构的基础上,进一步的,P2P网络管控架构还可以包括网络状态信息探测装置300和网络优化服务装置400:Figure 4 is a schematic structural diagram of a P2P network management and control framework provided by Embodiment 4 of the present invention. In this embodiment, on the basis of the P2P network management and control framework shown in Figure 3, further, the P2P network management and control framework may also include network status information detection Device 300 and network optimization service device 400:

其中,网络状态信息探测装置300,用于根据预设的网络区域划分策略获取ISP网络状态信息,其中,网络状态信息包括以网络中任一个网络区域对应的PID为源PID、以网络中其他网络区域分别对应的PID为目的PID、从所述源PID至所述目的PID之间的链路信息,具体来说,链路信息可以是链路之间的时延、路由跳数、路径可用带宽、自治系统(Autonomous System,简称AS)穿越个数、IP地址段等信息。举例来说,在本发明实施例中,预设的网络区域划分策略可以是ISP根据行政区域对网络进行的区域划分,如现有网络中将一个行政省份的网络作为一个AS域,将一个行政省份内的每个行政区的网络分别划分为一个提供商定义的网络区域标识符(Provider-Defined Network Location Identifier,简称PID)域,即一个AS域内包括多个PID域,Wherein, the network state information detection device 300 is used to obtain the ISP network state information according to the preset network area division strategy, wherein the network state information includes the PID corresponding to any network area in the network as the source PID, and the PID of other networks in the network. The PIDs corresponding to the areas are the destination PID and the link information from the source PID to the destination PID. Specifically, the link information can be the delay between links, the number of routing hops, and the available bandwidth of the path. , autonomous system (Autonomous System, referred to as AS) traversal number, IP address segment and other information. For example, in the embodiment of the present invention, the preset network area division strategy can be the area division of the network by the ISP according to the administrative area. For example, in the existing network, the network of an administrative province is regarded as an AS domain, and an administrative The network of each administrative region in the province is divided into a Provider-Defined Network Location Identifier (PID for short) domain, that is, an AS domain includes multiple PID domains,

而每个PID域又可以对应至少一个IP地址段,即IP地址的集,可以通过IP地址和子网掩码来表示,具体对应关系如下表1所示:And each PID domain can correspond to at least one IP address segment, that is, a set of IP addresses, which can be represented by an IP address and a subnet mask. The specific corresponding relationship is shown in Table 1 below:

Figure BDA00002831161900141
Figure BDA00002831161900141

在本实施例中,网络优化服务装置400还可以包括网络区域划分表确定模块401和链路代价计算模块402,其中,网络区域划分表确定模块401可以用于根据ISP网络状态信息汇总AS、PID以及IP地址段之间的对应关系并生成网络区域划分表,而网络区域划分表则可以包括AS、PID以及IP地址段之间的对应关系,如上表1所示。链路代价计算模块402则可以用于根据预设的算法、网络区域划分表和链路信息,计算源PID至目的PID之间的链路代价值,并存储在链路代价表中,其中,链路代价表可以包括源PID、目的PID以及从源PID至目的PID的链路代价值;举例来说,若网络状态信息探测装置获取的源PID到目的PID之间链路的时延为delayi,j、路由跳数为hopsi,j、路径可用带宽为available_bandwidthi,j以及AS穿越个数为as_pathi,j,则可以通过以下公式分别计算各源PID至目的PID之间的链路代价值:In this embodiment, the network optimization service device 400 may further include a network area division table determination module 401 and a link cost calculation module 402, wherein the network area division table determination module 401 may be used to summarize AS and PID according to the ISP network state information And the corresponding relationship between IP address segments and generate a network area division table, and the network area division table may include the corresponding relationship between AS, PID, and IP address segments, as shown in Table 1 above. The link cost calculation module 402 can be used to calculate the link cost value between the source PID and the destination PID according to the preset algorithm, network area division table and link information, and store it in the link cost table, wherein, The link cost table may include the source PID, the destination PID, and the link cost value from the source PID to the destination PID; for example, if the delay of the link between the source PID and the destination PID obtained by the network state information detection device is delay i, j , the number of routing hops is hops i, j , the available path bandwidth is available_bandwidth i, j , and the number of AS traversals is as_path i, j , then the link between each source PID and destination PID can be calculated by the following formula Cost value:

linklink __ coscos tt ii ,, jj == &alpha;&alpha; ** availableavailable __ bandwidtbandwidt hh ii ,, jj hopshops ii ,, jj ** (( &beta;&beta; ** delaydelay ii ,, jj )) ** [[ &gamma;&gamma; ** (( asas __ pathpath ii ,, jj ++ 11 )) ]] ;;

其中,i为源PID对应的标号,j为目的PID对应的标号,α为路径可用带宽的调整因子,0≤α≤1;β为路径延迟的调整因子,β≥1;γ为AS穿越的调整因子,γ>1;并添加到链路代价表中,其中,链路代价表如下表2所示:Among them, i is the label corresponding to the source PID, j is the label corresponding to the destination PID, α is the adjustment factor of the available bandwidth of the path, 0≤α≤1; β is the adjustment factor of the path delay, β≥1; Adjustment factor, γ>1; and added to the link cost table, where the link cost table is shown in Table 2 below:

Figure BDA00002831161900152
Figure BDA00002831161900152

则P2P网络管控装置中的资源节点选择模块具体还可以用于,根据网络区域划分表确定请求资源的用户节点的IP地址以及资源节点列表中每一个资源节点的IP地址分别对应的PID,将链路代价表中以资源节点列表中各资源节点对应的PID为源PID到以用户节点对应的PID为目的PID的链路代价值作为各资源节点相对所述用户节点的资源优先值,向用户节点返回资源节点列表中资源优先值达到预设阈值或资源优先值在从高到低的排序中排在预设位数之前的资源节点。Then the resource node selection module in the P2P network management and control device can also be specifically used to determine the IP address of the user node requesting resources and the PID corresponding to the IP address of each resource node in the resource node list according to the network area division table, and link In the path cost table, the PID corresponding to each resource node in the resource node list is used as the source PID to the link cost value of the PID corresponding to the user node as the destination PID as the resource priority value of each resource node relative to the user node, to the user node Returns the resource nodes in the resource node list whose resource priority value reaches the preset threshold or whose resource priority value ranks before the preset number of digits in the order from high to low.

优选地,在本发明实施例中,资源节点选择模块还可以根据网络区域划分表,将资源节点列表中的各资源节点按照与用户节点的位置区域的不同划分为三个区域来分别进行选择,如与用户节点位于同一PID内、与用户节点位于同一AS不同PID内以及与用户节点位于不同AS不同PID内;并按照每个区域的预设条件从该区域中选择符合条件的资源节点返回给用户节点,例如,选择与用户节点位于同一PID内且满足第一子条件的资源节点、与用户节点位于同一AS不同PID内且满足第二子条件的资源节点、与用户节点位于不同AS不同PID内且满足第三子条件的资源节点返回给用户节点。需要说明的是,本实施例中,所述第一子条件可以是资源优先值在从高到低的排序中排在该区域中预设位数之前的资源节点,例如,可以是a%,第二子条件可以是资源优先值在从高到低的排序中排在该区域中预设位数之前的资源节点,例如,可以是b%,第三子条件可以是资源优先值在从高到低的排序中排在该区域中预设位数之前的资源节点,例如,可以是c%。并且a%+b%+c%=100%。其中,第一子条件、第二子条件以及第三子条件的具体取值与流量本地化的程度有关,可以根据具体实施的需求进行灵活设置,本实施例不对其进行限定。例如,如果ISP希望实现PID级的流量本地化效果,则可以适当提高第一子条件a的值;如果ISP希望实现AS级的流量本地化效果,那么可以适当提高第一子条件a和第二子条件b的值。Preferably, in the embodiment of the present invention, the resource node selection module can also divide each resource node in the resource node list into three areas according to the location area of the user node according to the network area division table for selection respectively, For example, it is located in the same PID as the user node, in the same AS with the user node in a different PID, and in a different AS with the user node in a different PID; and selects qualified resource nodes from the area according to the preset conditions of each area and returns them to The user node, for example, selects a resource node that is located in the same PID as the user node and satisfies the first sub-condition, a resource node that is located in the same AS with a different PID from the user node and satisfies the second sub-condition, and a resource node that is located in a different AS with a different PID from the user node. The resource nodes that meet the third sub-condition are returned to the user node. It should be noted that, in this embodiment, the first sub-condition may be a resource node whose resource priority value ranks before the preset number of digits in the area in the ranking from high to low, for example, it may be a%, The second sub-condition may be the resource node whose resource priority value ranks before the preset number of digits in this area in the sorting from high to low, for example, it may be b%, and the third sub-condition may be that the resource priority value ranks To the resource nodes that are ranked before the preset number of digits in the area in the low order, for example, it may be c%. And a%+b%+c%=100%. Wherein, the specific values of the first sub-condition, the second sub-condition and the third sub-condition are related to the degree of traffic localization, and can be flexibly set according to specific implementation requirements, and are not limited in this embodiment. For example, if the ISP wants to achieve the traffic localization effect at the PID level, the value of the first sub-condition a can be appropriately increased; if the ISP hopes to achieve the traffic localization effect at the AS level, then the first sub-condition a and the second sub-condition a can be appropriately increased. The value of subcondition b.

本发明实施例中,P2P AS可以分别从多区域确定资源节点,从而对资源节点列表进行优化,以避免流量过度本地化现象的发生,并且为用户提供更好的业务体验。In the embodiment of the present invention, the P2P AS can determine resource nodes from multiple regions, thereby optimizing the list of resource nodes, so as to avoid excessive traffic localization and provide users with better service experience.

进一步的,P2P网络管控架构中还可以包括至少一个超级节点,其中,至少一个超级节点由ISP预先部署在所述P2P业务覆盖网中。Further, the P2P network management and control framework may further include at least one super node, wherein at least one super node is pre-deployed in the P2P service overlay network by an ISP.

图5为本发明实施例五提供的一种P2P网络管控架构部署示意图,如图5所示,上边是由源服务器、缓存服务器、用户终端和ISP部署的超级节点共同组成的P2P业务覆盖网,下边是IMS网络,中间部分则是ISP部署的P2PAS、资源管理装置以及流量优化相关装置,P2P AS作为核心装置通过网络与P2P业务覆盖网以及IMS网络以及其他装置进行通信,从而可以实现ISP对P2P业务覆盖网进行有效的监管。Fig. 5 is a schematic diagram of deployment of a P2P network management and control framework provided by Embodiment 5 of the present invention. As shown in Fig. 5, the upper part is a P2P service overlay network composed of source servers, cache servers, user terminals and super nodes deployed by ISPs. The lower part is the IMS network, and the middle part is the P2PAS, resource management device and traffic optimization related devices deployed by the ISP. As the core device, the P2P AS communicates with the P2P service overlay network, the IMS network and other devices through the network, so that the ISP can realize the P2P Effective supervision of the service coverage network.

在本实施例中,图1、图2中所示的接收模块101、分配模块102、注册模块103、发送模块104、超级节点统计模块201、超级节点选择模块202、注册表更新模块203、第一鉴权模块204、资源节点选择模块205、第二鉴权模块206、第一协议转换模块207以及第二协议转换模块208都可以部署在图5所示的P2P AS中,即本发明实施例提供的P2P网络管控装置相当于图5所示的P2P AS;图3中所示的接收模块301、存储模块302、发送模块303、查询模块304以及统计模块305则可以部署在图5所示的资源管理装置中;图4所示的网络区域划分表确定模块401和链路代价计算模块402则可以部署在图5所示的网络优化服务装置中,图4中所示的网络状态信息探测装置与图5所示的网络状态信息探测装置可以相同,上述各部分的实现原理和技术效果也与图1至图4对应的实施例中描述的相类似,此处不再赘述。需要说明的是,图5所示的优化策略管理装置,可以根据ISP的优化策略调整链路代价计算模块的链路代价算法以及资源节点选择模块进行节点选择方法的参数设置;图5所示P2P业务覆盖网中的超级节点可以是由ISP预先部署在所述P2P业务覆盖网中的,图5所示P2P业务覆盖网中的P2P Client是指已注册的用户节点,P2P Peer则是从已注册的用户节点中筛选出的超级节点。In this embodiment, the receiving module 101, the distribution module 102, the registration module 103, the sending module 104, the super node statistics module 201, the super node selection module 202, the registry update module 203, the first node shown in Fig. 1 and Fig. 2 An authentication module 204, a resource node selection module 205, a second authentication module 206, a first protocol conversion module 207, and a second protocol conversion module 208 can all be deployed in the P2P AS shown in FIG. The P2P network management and control device provided is equivalent to the P2P AS shown in Figure 5; the receiving module 301, storage module 302, sending module 303, query module 304 and statistics module 305 shown in Figure 3 can be deployed in the In the resource management device; the network area division table determination module 401 and the link cost calculation module 402 shown in Figure 4 can be deployed in the network optimization service device shown in Figure 5, and the network state information detection device shown in Figure 4 It may be the same as the device for detecting network status information shown in FIG. 5 , and the implementation principles and technical effects of the above parts are also similar to those described in the embodiments corresponding to FIG. 1 to FIG. 4 , and will not be repeated here. It should be noted that the optimization strategy management device shown in Figure 5 can adjust the link cost algorithm of the link cost calculation module and the parameter setting of the node selection method by the resource node selection module according to the optimization strategy of the ISP; The super nodes in the service overlay network can be pre-deployed in the P2P service overlay network by the ISP. The P2P Client in the P2P service overlay network shown in Figure 5 refers to the registered user node, and the P2P Peer refers to the registered user node. The super nodes selected from the user nodes.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.

Claims (15)

1. a P2P network control device, is characterized in that, described P2P network control device is disposed by the ISP of ISP, comprising:
Receiver module, the registration request sent for receiving IMS network user node, the registration request of described user node comprises the type of service of the P2P service coverage net of the state information of IP address, user node of user node and user node institute request registration;
Distribution module, if corresponding with the type of service of described user node institute request registration first pre-conditioned for determining that according to the state information of described user node described user node meets, according to the IP address of user node, be that described user node distributes overall unique ID;
Registering modules, for the list item of the type of service of the ID that adds the user node comprise the described request registration at registration table, IP address, request registration;
Sending module, for the super node that the P2P service coverage is net and ID described user node is corresponding that the registration request of described user node is corresponding to the type of service with described request registration, send, so that described super node adds the type of service of the IP address of the user node of described request registration and request registration in the user node list of self-management and list item that the ID user node described request registration is corresponding.
2. device according to claim 1, is characterized in that, also comprises:
The super node statistical module, for adding up the quantity of P2P service coverage net super node;
Super node is selected module, if do not become the second pre-conditioned of super node in described P2P service coverage net if reach predetermined threshold value and determine according to the state information of described user node that described user node meets for the quantity of described P2P service coverage net super node, determine that described user node is the candidate's super node in the nerve of a covering of upper strata;
Described sending module also for, super node in registered P2P service coverage net sends the message that allows to add the upper strata nerve of a covering, the described message that allows to add the upper strata nerve of a covering comprises IP address, ID and the corresponding type of service of described candidate's super node so that the super node in described registered P2P service coverage net be described candidate's super node distributing user node, configuration routing table and upgrade local routing table and the upper strata nerve of a covering in the routing table of other super node;
Described device also comprises:
The registration table update module, add for meaning the sign that described candidate's super node is super node in corresponding list item for the type of service of the IP address at registration table and described candidate's super node, ID, request registration.
3. device according to claim 2, is characterized in that,
Described receiver module also for, periodically receive the type of service of ID separately, IP address, state information and affiliated P2P service coverage net that in P2P service coverage net, each super node sends;
Described super node select module also for, become under described super node in P2P service coverage net second of super node pre-conditionedly if determine according to the state information of a super node in described each super node that a described super node meets, to determine that a described super node is super node to be exited;
Described sending module also for, other super node in super node described to be exited and P2P service coverage net sends respectively the exit message that exits the upper strata nerve of a covering, described exit message comprises IP address, the ID of super node described to be exited, so that other super node in described P2P service coverage net is taken over the user node of super node management described to be exited, and upgrade local routing table;
Described registration table update module is also for, the sign that to delete for meaning super node described to be exited in the list item corresponding with the type of service of the IP address of super node described to be exited, ID, request registration in registration table be super node.
4. device according to claim 1, is characterized in that,
Described receiver module also for, receiving the resource that in described P2P service coverage net, user node sends gives out information, and the resource issue success message that returns of the super node in the resource name of the resource of reception and described request issue and content resource nerve of a covering corresponding to type of service, described resource gives out information or described resource issue success message comprises resource name and the corresponding type of service of resource of IP, ID, the request issue of the user node of request issue resource;
Described device also comprises: the first authentication module, if do not have the list item corresponding with the IP of the user node of asking to issue resource or ID and type of service, authentication success, otherwise failed authentication for the Local Black list;
Described sending module also for, the resource of described authentication success is given out information and is transmitted to resource management apparatus, so that described resource management apparatus storage resources information or statistics hot resource information, described resource information comprises the resource name of the resource of request issue, corresponding type of service; The resource of described authentication success is given out information to the type of service of the resource with described request issue in corresponding P2P service coverage net and to send with super node corresponding to the resource name of the resource of request issue, so that the super node in described P2P service coverage net adds the user node of request issue resource in the resource name of self-management and the resource described request issue and content resource nerve of a covering corresponding to type of service to; And return to resource issue success message to the user node of described request issue resource.
5. device according to claim 1, is characterized in that,
Described receiver module also for, receive the resource query request that user node in described P2P service coverage net sends, described resource query request comprises the keyword, corresponding type of service of resource name of resource of IP, ID, the requesting query of the user node of requesting query resource;
Described the first authentication module also for, if do not have in described resource query request the list item corresponding with the IP of the user node of requesting query resource or ID and type of service, authentication success, otherwise failed authentication in the Local Black list;
Described sending module also for, the resource query request of described authentication success is transmitted to described resource management apparatus, so that return to the resource name list be complementary with the keyword of the resource name of the resource of described request inquiry, corresponding type of service after the resources bank of described resource management apparatus inquiry local management;
Described receiver module also for, receive the resource name list that the keyword of the resource name of that described resource management apparatus returns and the resource described request inquiry, corresponding type of service are complementary, described resource name list comprises the resource name that the keyword of the resource name of the resource that at least one is inquired about with described request, corresponding type of service are complementary;
Described sending module also for, described resource name list is returned to the user node of requesting query resource.
6. device according to claim 5, is characterized in that,
Described receiver module also for, receive the resource request message of described user node, described resource request message comprises the resource name, corresponding type of service of resource of IP, ID, the request of the user node of request resource; And receive the type of service of resource of described and described request and the resource node list that super node corresponding to resource name returns;
Described sending module also for, described resource request message is sent to the super node in the resource name of the resource with described request and P2P service coverage net corresponding to type of service, so that the super node in described P2P service coverage net returns to the resource node list corresponding with the resource name of the resource of described request and type of service, described resource node list comprises the IP address of each resource node, and described each resource node belongs to the content resource nerve of a covering of the type of service of resource of described and described request and super node management corresponding to resource name; And send described resource node list to the user node of described request resource so that described user node according to described resource node list Gains resources, become resource node so that super node corresponding to the type of service of the resource of described and described request and resource name adds the user node of request resource in the resource name of self-management and resource described request and content resource nerve of a covering corresponding to type of service to; And the resource name of the resource of described user node request, corresponding type of service are sent to resource management apparatus, so that the hot resource in the resources bank of described resource management apparatus statistics local management.
7. device according to claim 6, is characterized in that, also comprises:
Resource node is selected module, for the IP address of the IP address according to the user node of described request resource and described each resource node of the resource node list resource preferred value of the relatively described user node of each resource node in the Gains resources node listing respectively, determine that in described resource node list, the resource preferred value meets pre-conditioned resource node;
Described sending module specifically for, return to the resource node list after optimization to the user node of described request resource, the resource node list after described optimization comprises that described resource node selects the definite resource preferred value of module to meet pre-conditioned resource node.
8. according to claim 1,4 or 6 described devices, it is characterized in that,
Described receiver module also for, receive the request of exiting P2P service coverage net that user node in described P2P service coverage net sends, the request of the described P2P of exiting service coverage net comprises that the ID of the user node that described request exits, IP address, user node ask the type of service of the P2P service coverage net that exits;
Described registration table update module also for, ID, IP address, the user node of the user node that exits with described request in registration table are asked the type of service in list item corresponding to the type of service of the P2P service coverage net that exits be set to sky;
Described sending module also for, the user node exited to described request returns to the success message that exits P2P service coverage net; Or,
If the user node that described request exits is the resource node at least one content resource nerve of a covering, also for the request of exiting P2P service coverage net that described resource node is sent, to the super node of managing described at least one content resource nerve of a covering, send, so that described super node upgrades the metadata information of the content resource nerve of a covering of self-management; Or,
If the super node that the user node that described request exits is at least one P2P service coverage net, the described request of exiting P2P service coverage net is sent to other super node in described at least one P2P service coverage net, so that the metadata information of the user node list of the super node that other super node in described each P2P service coverage net exits described request management and content resource nerve of a covering adds in the metadata information of the user node list of self-management and content resource nerve of a covering, and renewal local routing table, the request of the described P2P of exiting service coverage net also comprises the user node list of super node self-management, the metadata information of routing table and content resource nerve of a covering, described registration table update module also for, delete the sign for meaning that user node that described request exits is super node in list item corresponding to the type of service that the IP address of the super node exited with described request, ID, request are exited in registration table, and the type of service in the list item of described correspondence is set to sky.
9. device according to claim 1, is characterized in that,
Described receiver module also for, receive the session request that in P2P service coverage net, registered user node sends, described session request comprises the ID of the user node of queued session, the IP address of user node, the ID of purpose user node;
Described device also comprises: the second authentication module, if do not have the list item corresponding with the IP of the user node of described request session or ID and type of service, authentication success, otherwise failed authentication for the Local Black list;
Described sending module also for, the session request of described authentication success is sent to super node corresponding with the ID of described purpose user node in P2P service coverage net, so that the super node corresponding with the ID of described purpose user node inquired about the IP address of described purpose user node in the user node list of self-management according to the ID of described purpose user node;
Described receiver module also for, receive the super node corresponding with the ID of described purpose user node that return with IP address described purpose user node;
Described sending module also for, send the IP address of described purpose user node to the user node of described request session, so that the user node of described request session is set up according to the IP address of described purpose user node and the session connection of described purpose user node.
10. according to the described device of claim 4 or 6, it is characterized in that, the registration request that the user node in described IMS network sends is deferred to the registration request of Session initiation protocol SIP; The resource that in described P2P service coverage net, user node sends gives out information or resource request message is deferred to HTTP HTTP; Described device also comprises:
The first protocol conversion module, the SIP registration request sent for the user node by the IMS network is converted to resource location and the registration request of finding agreement RELOAD;
The second protocol modular converter, give out information or resource request message is converted to the RELOAD resource and gives out information or resource request message for the HTTP resource that P2P service coverage net user node is sent;
Described sending module specifically for, if it is corresponding with the type of service of described user node institute request registration first pre-conditioned to determine that according to the state information of described user node described user node meets, super node transmission corresponding to the ID with described user node by described RELOAD registration request in the P2P service coverage net corresponding to the type of service with the described request registration; Or,
The RELOAD resource of described authentication success is given out information or resource request message sends to the super node in the resource name of the resource with described issue or request and P2P service coverage net corresponding to type of service.
11. a P2P network management and control framework, is characterized in that, comprises P2P network control device as described as claim 1~10 any one and resource management apparatus, described resource management apparatus comprises:
Receiver module, give out information for the resource that receives the user node that described P2P network control device sends, give out information resource name, the type of service of resource of IP, ID, request issue of the user node that comprises request issue resource of described resource;
Memory module, for giving out information according to described resource in the resources bank storage resources information of local management, described resource information comprises the resource name of the resource of request issue, corresponding type of service;
Sending module, for returning to resource information storage success message to described P2P network control device.
12. P2P network management and control framework according to claim 11 is characterized in that described resource management apparatus also comprises enquiry module,
Described receiver module also for, receive the resource query request of the user node that described P2P network control device sends, described resource query request comprises the keyword, corresponding type of service of resource name of resource of IP, ID, the requesting query of the user node of requesting query resource;
Described enquiry module is used for, the resource name that the keyword of inquiry and the resource name of the resource of requesting query, corresponding type of service are complementary in the resources bank of local management;
Described sending module also for, return to described P2P network control device the resource name list inquired, described resource name list comprises the resource name that the keyword of the resource name of the resource that at least one is inquired about with described request, corresponding type of service are complementary, so that described P2P network control device returns to described resource name list the user node of requesting query resource.
13. P2P network management and control framework according to claim 12 is characterized in that described resource management apparatus also comprises statistical module,
Described receiver module also for, receive the resource request message of the user node that described P2P network control device sends, described resource request message comprises the resource name of resource of request and corresponding type of service;
Described statistical module is used for, and the resource of the user node sent according to described P2P network control device gives out information and resource request message, the hot resource in the resources bank of statistics local management;
Described sending module also for, return to the hot resource of statistics to described P2P network control device, so that described P2P network control device returns to the user node in P2P service coverage net by described hot resource.
14. according to the described P2P network of claim 11~13 any one management and control framework, it is characterized in that, also comprise network state information sniffer and network optimization service unit:
Described network state information sniffer, for according to default network area partition strategy, obtaining the ISP network state information, described network state information comprise take PID corresponding to any network area in network as source PID, take other network areas in network respectively corresponding PID as purpose PID, from described source PID to the link information between described purpose PID;
Described network optimization service unit also comprises network area division table determination module and link cost computing module:
The table determination module is divided in described network area, for gather corresponding relation the generating network zone division table between described AS, PID and IP address field according to described ISP network state information, described network area division table comprises the corresponding relation between described AS, PID and IP address field;
Described link cost computing module, for according to default algorithm, described network area, dividing table and described link information, calculate described source PID to the link cost value between described purpose PID, and be stored in the link cost table, described link cost table comprises source PID, purpose PID and the link cost value from source PID to purpose PID;
Resource node in described P2P network control device select module specifically for, divide IP address that table determines each resource node in the IP address of user node of described request resource and described resource node list corresponding PID respectively according to described network area, to take each resource node is corresponding in the resource node list PID in described link cost table as source PID to usining link cost value that PID corresponding to described user node the be purpose PID resource preferred value as the relatively described user node of each resource node in the resource node list, determine that resource preferred value in described resource node list reaches predetermined threshold value or resource preferred value and come the resource node before default figure place in sequence from high to low.
15. P2P network management and control framework according to claim 14, is characterized in that, also comprises at least one super node, described at least one super node is deployed in described P2P service coverage net in advance by ISP.
CN201310049444.XA 2013-02-07 2013-02-07 P2P network control device and P2P network managing and control system Expired - Fee Related CN103179191B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310049444.XA CN103179191B (en) 2013-02-07 2013-02-07 P2P network control device and P2P network managing and control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310049444.XA CN103179191B (en) 2013-02-07 2013-02-07 P2P network control device and P2P network managing and control system

Publications (2)

Publication Number Publication Date
CN103179191A true CN103179191A (en) 2013-06-26
CN103179191B CN103179191B (en) 2016-05-25

Family

ID=48638809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310049444.XA Expired - Fee Related CN103179191B (en) 2013-02-07 2013-02-07 P2P network control device and P2P network managing and control system

Country Status (1)

Country Link
CN (1) CN103179191B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959347A (en) * 2016-04-20 2016-09-21 中国工程物理研究院计算机应用研究所 All-digital collaborative simulation system communication method based on P2P network
CN106255197A (en) * 2016-08-10 2016-12-21 北京邮电大学 A kind of user access method of distributed soft switchcall server
CN108924206A (en) * 2018-06-26 2018-11-30 郑州云海信息技术有限公司 A kind of cluster event synchronizing method, device and the equipment of distributed system
CN109067863A (en) * 2018-07-25 2018-12-21 上海点融信息科技有限责任公司 For managing the method, apparatus and storage medium of the node identification of block chain link point

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050198290A1 (en) * 2003-06-04 2005-09-08 Sony Computer Entertainment Inc. Content distribution overlay network and methods for operating same in a P2P network
CN101895576A (en) * 2010-07-09 2010-11-24 浙江省公众信息产业有限公司 P2P distributed streaming media live broadcast method with small-startup time delay

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050198290A1 (en) * 2003-06-04 2005-09-08 Sony Computer Entertainment Inc. Content distribution overlay network and methods for operating same in a P2P network
CN101895576A (en) * 2010-07-09 2010-11-24 浙江省公众信息产业有限公司 P2P distributed streaming media live broadcast method with small-startup time delay

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王珊: "基于IP多媒体子系统的P2P_IPTV架构", 《信息科技辑》, 15 October 2008 (2008-10-15) *
石利军: "基于IMS的P2P网络电视系统架构的研究", 《信息科技辑》, 15 May 2012 (2012-05-15) *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959347A (en) * 2016-04-20 2016-09-21 中国工程物理研究院计算机应用研究所 All-digital collaborative simulation system communication method based on P2P network
CN105959347B (en) * 2016-04-20 2019-04-12 中国工程物理研究院计算机应用研究所 A kind of digital collaborative simulation system communication means based on P2P network
CN106255197A (en) * 2016-08-10 2016-12-21 北京邮电大学 A kind of user access method of distributed soft switchcall server
CN106255197B (en) * 2016-08-10 2019-12-31 北京邮电大学 A User Access Method of Distributed Softswitch System
CN108924206A (en) * 2018-06-26 2018-11-30 郑州云海信息技术有限公司 A kind of cluster event synchronizing method, device and the equipment of distributed system
CN109067863A (en) * 2018-07-25 2018-12-21 上海点融信息科技有限责任公司 For managing the method, apparatus and storage medium of the node identification of block chain link point
CN109067863B (en) * 2018-07-25 2021-03-05 上海点融信息科技有限责任公司 Method, apparatus and storage medium for managing node identification of blockchain node

Also Published As

Publication number Publication date
CN103179191B (en) 2016-05-25

Similar Documents

Publication Publication Date Title
JP3944168B2 (en) Method and system for peer-to-peer communication in a network environment
US8606846B2 (en) Accelerating peer-to-peer content distribution
JP5050095B2 (en) Method, system, and node for P2P content sharing
US9635107B2 (en) System and method for managing data delivery in a peer-to-peer network
US20090100128A1 (en) Accelerating peer-to-peer content distribution
US10116740B2 (en) Peer-to-peer network prioritizing propagation of objects through the network
US20080040420A1 (en) Content distribution network
WO2010127618A1 (en) System and method for implementing streaming media content service
KR20090069312A (en) Methods, systems, and edge servers for provisioning resources
CN101938508A (en) Method and system for shortening time delay in peer-to-peer network streaming media live broadcast system
WO2010105505A1 (en) Method, user node and server for requesting position information of resource on network
CN103095727A (en) Location method for peer-to-peer (P2P) resource
CN103179191B (en) P2P network control device and P2P network managing and control system
US20080040482A1 (en) System and method for the location of caches
CN101741869A (en) Method and system for providing content
WO2009076251A2 (en) Accelerating peer-to-peer content distribution
Zhang et al. PeerCast: Churn-resilient end system multicast on heterogeneous overlay networks
Aguilar et al. A hamming distance and fuzzy logic-based algorithm for P2P content distribution in enterprise networks
Medrano-Chávez et al. A performance comparison of Chord and Kademlia DHTs in high churn scenarios
Hecht et al. B-tracker: Improving load balancing and efficiency in distributed p2p trackers
CN105516343A (en) Network dynamic self-organized file-sharing system and method for implementing same
Ma et al. A cloud‐assisted publish/subscribe service for time‐critical dissemination of bulk content
Ayyasamy et al. A qos-aware intelligent replica management architecture for content distribution in peer-to-peer overlay networks
Lu et al. A scalable P2P overlay based on arrangement graph with minimized overhead
CN103179160B (en) A kind of load transfer method, Apparatus and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160525

Termination date: 20170207