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 PDFInfo
- 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
Links
- 238000005457 optimization Methods 0.000 claims abstract description 14
- 238000006243 chemical reaction Methods 0.000 claims description 7
- 230000000977 initiatory effect Effects 0.000 claims description 3
- 210000005036 nerve Anatomy 0.000 claims 15
- 230000000295 complement effect Effects 0.000 claims 5
- 230000001143 conditioned effect Effects 0.000 claims 5
- 230000005540 biological transmission Effects 0.000 claims 1
- 238000005192 partition Methods 0.000 claims 1
- 230000006399 behavior Effects 0.000 abstract 1
- 238000001824 photoionisation detection Methods 0.000 description 36
- 239000013256 coordination polymer Substances 0.000 description 15
- 238000010586 diagram Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 8
- 235000008694 Humulus lupulus Nutrition 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000004807 localization Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 238000012216 screening Methods 0.000 description 3
- 238000013475 authorization Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000739 chaotic effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013467 fragmentation Methods 0.000 description 1
- 238000006062 fragmentation reaction Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 235000014594 pastries Nutrition 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域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
需要说明的是,本实施例中的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
在本发明实施例中,第一预设条件可以是与用户节点所请求注册的业务类型对应的用户节点的所需带宽、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≥BDthreshold;CP≥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地址、请求注册的业务类型的表项;
在本发明实施例中,当分配模块为请求注册的用户节点分配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
在本发明实施例中,通过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
超级节点统计模块201,用于统计P2P业务覆盖网中超级节点的数量;The super
超级节点选择模块202,用于若所述P2P业务覆盖网中超级节点的数量未达到预设阈值、且若根据所述用户节点的状态信息确定所述用户节点满足成为所述P2P业务覆盖网中超级节点的第二预设条件,则可以确定用户节点为上层覆盖网中的候选超级节点;A super
发送模块103还可以用于,向已注册的P2P业务覆盖网中的超级节点发送允许加入上层覆盖网的消息;The
注册表更新模块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
在本发明实施例中,由筛选后符合条件的超级节点组成上层覆盖网,而上层覆盖网中的超级节点按照结构化方式进行组织,通过结构化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
在本发明实施例中,当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
在本发明实施例中,超级节点按照资源对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
由于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
图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
接收模块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
发送模块303,用于向P2P网络管控装置返回资源信息存储成功消息。The sending
进一步的,资源管理装置200还可以包括查询模块304,则接收模块还可以用于,接收P2P网络管控装置发送的用户节点的资源查询请求,其中,资源查询请求包括请求查询资源的用户节点的IP、ID、请求查询的资源的资源名称的关键字、对应的业务类型;查询模块则用于,查询本地与请求查询的资源的资源名称的关键字、对应的业务类型相匹配的资源名称;发送模块还可以用于,向P2P网络管控装置返回查询到的资源名称列表,其中,资源名称列表可以包括至少一个与请求查询的资源的资源名称的关键字、对应的业务类型相匹配的资源名称,以使P2P网络管控装置将资源名称列表返回给请求查询资源的用户节点。Further, the
进一步的,资源管理装置200还可以包括统计模块305,则接收模块还可以用于,接收所述P2P网络管控装置发送的用户节点的资源请求消息,所述资源请求消息中包括请求的资源的资源名称和对应的业务类型;统计模块则用于,根据P2P网络管控装置发送的用户节点的资源发布消息和资源请求消息,统计本地管理的资源库中的热门资源,举例来说,当接收模块接收到P2P网络管控装置发送的用户节点的资源发布消息时,可以根据资源发布消息中用户节点请求发布的资源的资源名称和对应的业务类型统计本地管理的资源库中对应资源的发布次数,当接收模块接收到P2P网络管控装置发送的用户节点的资源请求消息时,则根据资源请求消息中用户节点请求的资源的资源名称和对应的业务类型统计本地管理的资源库中对应资源的请求次数,并将本地管理的资源库中与资源名称和业务类型对应的资源的发布次数和请求次数进行合并统计,将统计后的资源库中的资源按照业务类型进行分类并排序,确定同一业务类型下的所有资源名称按次数从高到低的排序排在预设位数前的资源名称为热门资源;或者,也可以不考虑业务类型,只统计资源库中同一资源名称对应的资源的发布次数和请求次数的累计次数,而确定资源库中所有资源名称按次数从高到低的排序排在预设位数前的资源名称为热门资源;则发送模块还可以用于,向P2P网络管控装置返回统计的热门资源,以使P2P网络管控装置将热门资源返回给P2P业务覆盖网中的用户节点。Further, the
图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
其中,网络状态信息探测装置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
而每个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:
在本实施例中,网络优化服务装置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
其中,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:
则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
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。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)
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)
| 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)
| 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 |
-
2013
- 2013-02-07 CN CN201310049444.XA patent/CN103179191B/en not_active Expired - Fee Related
Patent Citations (2)
| 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)
| Title |
|---|
| 王珊: "基于IP多媒体子系统的P2P_IPTV架构", 《信息科技辑》, 15 October 2008 (2008-10-15) * |
| 石利军: "基于IMS的P2P网络电视系统架构的研究", 《信息科技辑》, 15 May 2012 (2012-05-15) * |
Cited By (7)
| 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 |