WO2012034414A1 - Method and system for processing peer to peer (p2p) services - Google Patents

Method and system for processing peer to peer (p2p) services Download PDF

Info

Publication number
WO2012034414A1
WO2012034414A1 PCT/CN2011/074707 CN2011074707W WO2012034414A1 WO 2012034414 A1 WO2012034414 A1 WO 2012034414A1 CN 2011074707 W CN2011074707 W CN 2011074707W WO 2012034414 A1 WO2012034414 A1 WO 2012034414A1
Authority
WO
WIPO (PCT)
Prior art keywords
service request
resource
control center
requested
cache device
Prior art date
Application number
PCT/CN2011/074707
Other languages
French (fr)
Chinese (zh)
Inventor
杨波
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012034414A1 publication Critical patent/WO2012034414A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Definitions

  • the present invention relates to the field of computer network communication technologies, and in particular, to a method and system for processing peer to peer (P2P) services.
  • P2P peer to peer
  • P2P download technology has changed the traditional modest network operation mode, and each download point can occupy the network bandwidth as much as possible.
  • the most part of the network bandwidth is the download service. Since the P2P software is developed by the CP (content provider), the CP does not consider or know the network. This directly causes the P2P software to not consider the network when downloading. The downloading point is randomly selected for topology, bandwidth, and congestion, and a large number of invalid links are established, which greatly increases the network burden and causes network congestion.
  • P2P traffic currently accounts for more than half of the entire Internet (Internet) network traffic, and there is still a trend of continued growth.
  • Internet Internet
  • the speed of network expansion is far from meeting the explosive P2P network traffic. growth of.
  • the normal situation is that when the network is just expanded, the bandwidth of the capacity is filled with P2P traffic.
  • the P2P traffic also seriously affects the normal network service. The user feels that the network service rate is reduced. Decline, and then there will be a large number of phenomenon of network transfer, resulting in the loss of operators.
  • the present invention provides a method for processing a peer to peer (P2P) service, including:
  • the device detects that the user equipment initiates a P2P service request, the P2P service request is redirected to the control center; If the control center searches for the resource requested by the P2P service request, the control center sends the address of the cache device where the resource is located to the user equipment.
  • the method further includes: if the control center does not search for the resource requested by the P2P service request in the cache device, forwarding the P2P service request to the P2P server.
  • the above methods also include:
  • the control center intercepts the service requested by the P2P server for the P2P service, and instructs the cache device to download the location according to the destination address of the resource indicated by the P2P server. Describe the resources requested by the P2P service request.
  • the above methods also include:
  • the cache device caches the resources requested by the P2P service request by: sorting the cached resources in an order of the number of downloads in a predetermined period of time;
  • the resource requested by the P2P service request is replaced with the last resource.
  • the step of the control center sending the address of the cache device where the resource requested by the P2P service request is located to the user equipment includes:
  • the present invention further provides a system for processing peer-to-peer (P2P) services, including: an in-depth packet detecting device, a control center, and a cache device.
  • P2P peer-to-peer
  • the deep packet detecting device is configured to: after detecting that the user equipment initiates a P2P service request, redirect the P2P service request to the control center;
  • the control center is configured to: if the resource requested by the P2P service request is searched in the cache device, send the address of the cache device where the resource is located to the user equipment;
  • the cache device is configured to store resources.
  • the control center is further configured to: if the P2P service request is not found in the cache device The requested resource forwards the P2P service request to the P2P server.
  • the control center is further configured to: after forwarding the P2P service request to the P2P server, listening to the service requested by the P2P server for the P2P service, and sending a download instruction to the cache device, carrying the P2P server indication The destination address of the requested resource of the P2P service request;
  • the cache device is further configured to: after receiving the download instruction, download the resource requested by the P2P service request according to the destination address indicated by the P2P server.
  • the cache device is further configured to cache the resources requested by the P2P service request by: sorting the cached resources in an order of the number of downloads in a predetermined period of time; and, if determining that the available storage space is smaller than The predetermined value is used to replace the resource requested by the P2P service request with the last resource.
  • the control center is configured to send the download address of the resource requested by the P2P service request to the user equipment by: determining a P2P protocol used by the P2P service request, and constructing a reply message according to the P2P protocol And sending the download address of the resource requested by the P2P service request into the reply message, and sending the reply message to the user equipment.
  • the method and system for processing P2P services provided by the present invention not only ensure download speed, but also reduce download and upload load for other Peer points.
  • FIG. 1 is a schematic diagram of a system for processing a P2P service according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of an application scenario of a system for processing a P2P service according to the present invention
  • FIG. 3 is a flowchart of a method for processing a P2P service according to the present invention.
  • FIG. 4 is a flow chart of a method for processing a P2P service according to an embodiment of the present invention. Preferred embodiment of the invention
  • DPI Deep Packet Inspection
  • FIG. 1 is a schematic diagram of a system for processing a P2P service according to an embodiment of the present invention.
  • the system of the present embodiment includes: a DPI device, a control center, and a cache device, where
  • the DPI device is configured to: if detecting that the user equipment initiates a P2P service request, redirecting the P2P service request to the control center;
  • the control center is configured to: if the resource requested by the P2P service request is searched in the cache device, send the address (ie, the download address) of the cache device where the resource is located to the user. Specifically, the control center determines a P2P protocol used by the P2P service request, constructs a reply message according to the P2P protocol, and puts a download address of the file resource into a download list of the reply message, and the reply is sent. Sending a message to the user;
  • the cache device is configured to store resources.
  • the control center is further configured to: if the file resource requested by the P2P service request is not found in the cache device, forward the P2P service request to the P2P server, and listen to the P2P server for the P2P service And the downloading instruction is sent to the cache device, and the destination address indicated by the P2P server is downloaded;
  • the cache device is further configured to: after receiving the downloading instruction, download the resource requested by the P2P service according to the destination address of the resource indicated by the P2P server, and cache the resource requested by the P2P service.
  • the cache replacement principle may be to sort the download resources according to the number of downloads, and the number of times the resources are downloaded is increased. Then the ranking is increased. When the downloading traffic is not downloaded within a set period of time (ie, the sorting is last), and the available storage space is less than the predetermined value, the downloaded content is deleted, and the new downloading resource is replaced.
  • 2 is a schematic diagram of an application scenario of a system for processing a P2P service according to the present invention.
  • network operators need to deploy DPI devices in their own networks and key parts.
  • cache devices (cache devices) are deployed to store files to be downloaded.
  • the control management center is established to complete the search and replacement of cached content. Construct a download list, etc., as shown in Figure 2.
  • the main function of the DPI device in the system is to identify P2P service information, when the user starts
  • the DPI device when requesting a download list from a P2P server, the DPI device must redirect the request originally sent to the P2P server to the control center.
  • the control center searches for the file resource stored in the cache device according to the content of the requested service. If the download resource is saved in the cache, the control center constructs a response message to the requesting user according to the specific P2P application (such as BT, Thunder, etc.). Specifically, a response message is constructed according to the corresponding message format, and the download address is added to the message payload (such as a download list).
  • the specific P2P application such as BT, Thunder, etc.
  • the user downloads directly from the cache device according to this download list. Since the network bandwidth of the cache device is guaranteed to be extended when the operator deploys, the best download speed can be guaranteed, while reducing the download or upload load for other Peer points.
  • the control center does not search for the downloaded download resource in the cache, the request is forwarded to the P2P server, and the service is instructed to download the P2P service according to the destination address indicated by the P2P server.
  • the requested resource, and the requested resource is cached to provide the same resource request service to other users. When other users request the resource, they can download it through the cached data.
  • the principle of cache replacement may be to rank the downloaded resources according to the number of downloads. The ranking increases. When there is no download traffic for a set period of time, the download is deleted and the new download resource is replaced.
  • the operator can reduce the out-of-order traffic of P2P and then alleviate the network congestion caused thereby.
  • Step 10 If the DPI device detects that the user equipment initiates a P2P service request, the DPI device redirects the P2P service request to the control center.
  • Step 20 If the control center searches for the resource requested by the P2P service request, the control center sends the address of the cache device where the resource is located to the user equipment.
  • the user can download the resources directly from the cache device, which not only ensures the download speed, but also reduces the download and upload load for other Peer points.
  • FIG. 4 is a flowchart of a method for processing a P2P service according to an embodiment of the present invention. As shown in FIG. 4, the following steps may be included:
  • Step 1 The operator deploys the DPI device at a key location, and the DPI device monitors the P2P application in real time.
  • Step 2 The DPI device redirects the P2P service request to the control center when the P2P client initiates a P2P service request to the P2P server.
  • Step 3 The control center analyzes the request information of the P2P user, determines the P2P protocol used (for example, BT, eDonkey, Thunder, etc.), obtains the requested file information, and counts the number of downloads of the file.
  • P2P protocol used for example, BT, eDonkey, Thunder, etc.
  • Step 4 The control center searches for the requested resource in the deployed cache. If the corresponding resource is found, go to step 5. If the corresponding resource is not found, go to step 7.
  • Step 5 If the control center finds the corresponding resource, it constructs a reply corresponding to the P2P protocol, and puts the download address of the resource in the cache into the download list, so that the user can download the requested resource from the cache.
  • Step 6 The cache device also ranks the number of downloads of the resources in the cache, updates and replaces the last ranked resources in the cache, and ensures the optimal use efficiency of the cache.
  • the ranking increases.
  • the traffic is not downloaded within a set period of time, and the available storage space in the cache device is less than the predetermined value, the last ranked resource is deleted and replaced with the new download resource.
  • Step 7 If the control center does not search for the requested resource in the cache device, the control information is sent to the P2P server and its service is monitored.
  • Step 8 The control center instructs the cache device to download the requested resource to request service for the same resource of other users.
  • the user can directly download from the destination address indicated by the original P2P server, and the cache also downloads a copy from the destination address indicated by the P2P server, and then the user can download from the cache.
  • the method and system for processing P2P services provided by the present invention not only can guarantee the download speed, but also can reduce the downloading and uploading load for other Peer points.

Abstract

A method and system for processing peer to peer (P2P) services are provided by the present invention. The method includes: if a Deep Packet Inspection (DPI) equipment detects that a user equipment initiates a P2P service request, and then the P2P server request is redirected to a control center (10); if the control center finds the resources requested by the P2P service request in the cache equipment, an address of the cache equipment where the resources are located is sent to the user equipment (20). The invention not only ensures the download rate, but also reduces the load of download and upload for other peer nodes.

Description

一种处理 P2P业务的方法及系统  Method and system for processing P2P service
技术领域 Technical field
本发明涉及计算机网络通信技术领域,特别涉及一种处理对等互联( P2P ) 业务的方法及系统。  The present invention relates to the field of computer network communication technologies, and in particular, to a method and system for processing peer to peer (P2P) services.
背景技术 Background technique
如今, 快速增长的 P2P ( Peer to Peer, 对等互联) 网络流量对网络形成 非常大的冲击, P2P 下载技术改变了传统谦让型的网络运作方式, 每个下载 点尽最大可能占用网络带宽。 在 P2P应用中, 占用大部分网络带宽的是下载 服务, 由于 P2P软件是 CP (内容提供商)开发的, CP不会考虑也无法获知 网络情况, 这直接导致 P2P软件在下载时不会考虑网络拓朴情况、 带宽、 拥 塞情况而随意选取下载点, 建立大量无效的链接, 大大加重了网络负担, 造 成网络拥塞。  Today, fast-growing P2P (peer-to-peer) network traffic has a very large impact on the network. P2P download technology has changed the traditional modest network operation mode, and each download point can occupy the network bandwidth as much as possible. In P2P applications, the most part of the network bandwidth is the download service. Since the P2P software is developed by the CP (content provider), the CP does not consider or know the network. This directly causes the P2P software to not consider the network when downloading. The downloading point is randomly selected for topology, bandwidth, and congestion, and a large number of invalid links are established, which greatly increases the network burden and causes network congestion.
据最新的统计, 目前 P2P流量已经占到整个 internet (因特网) 网络流量 的一半以上, 而且还有继续增长的趋势, 对于运营商来说, 网络扩容的速度 远远不能满足爆发式的 P2P网络流量的增长。 通常的情况是, 当网络刚扩容 完成, 扩容的带宽瞬间就被 P2P 流量占满, 而对于运营商的客户而言, P2P 流量也严重地影响正常的网络服务, 用户感觉网络服务速率降低, 体验下降, 继而就会出现大量转网等现象, 造成运营商的损失。  According to the latest statistics, P2P traffic currently accounts for more than half of the entire Internet (Internet) network traffic, and there is still a trend of continued growth. For operators, the speed of network expansion is far from meeting the explosive P2P network traffic. growth of. The normal situation is that when the network is just expanded, the bandwidth of the capacity is filled with P2P traffic. In the case of the carrier's customers, the P2P traffic also seriously affects the normal network service. The user feels that the network service rate is reduced. Decline, and then there will be a large number of phenomenon of network transfer, resulting in the loss of operators.
发明内容 Summary of the invention
本发明的目的是提供一种处理 P2P业务的方法及系统, 以减小对于 Peer 点的下载、 上传负荷, 减小网络拥塞。  It is an object of the present invention to provide a method and system for processing P2P services to reduce download and upload load for Peer points and reduce network congestion.
为了解决上述技术问题, 本发明提供了一种处理对等互联(P2P )业务的 方法, 包括:  In order to solve the above technical problem, the present invention provides a method for processing a peer to peer (P2P) service, including:
深度报文检测设备若检测到用户设备发起 P2P业务请求, 则将该 P2P业 务请求重定向到控制中心; 以及 所述控制中心若在緩存设备中搜索到所述 P2P业务请求所请求的资源, 则将该资源所在緩存设备的地址发送给所述用户设备。 If the device detects that the user equipment initiates a P2P service request, the P2P service request is redirected to the control center; If the control center searches for the resource requested by the P2P service request, the control center sends the address of the cache device where the resource is located to the user equipment.
上述方法还包括: 所述控制中心若未在緩存设备中搜索到所述 P2P业务 请求所请求的资源, 则将所述 P2P业务请求转发给 P2P服务器。  The method further includes: if the control center does not search for the resource requested by the P2P service request in the cache device, forwarding the P2P service request to the P2P server.
上述方法还包括:  The above methods also include:
所述控制中心将所述 P2P业务请求转发给 P2P服务器之后,监听所述 P2P 服务器针对所述 P2P业务请求的服务, 指示所述緩存设备根据所述 P2P服务 器指示的所述资源的目的地址下载所述述 P2P业务请求所请求的资源。  After the P2P service request is forwarded to the P2P server, the control center intercepts the service requested by the P2P server for the P2P service, and instructs the cache device to download the location according to the destination address of the resource indicated by the P2P server. Describe the resources requested by the P2P service request.
上述方法还包括:  The above methods also include:
所述緩存设备通过如下方式緩存所述 P2P业务请求所请求的资源: 按照 在预定时间段内下载次数从多到少的顺序对緩存的资源进行排序; 以及  The cache device caches the resources requested by the P2P service request by: sorting the cached resources in an order of the number of downloads in a predetermined period of time;
若判断可用存储空间小于预定值, 则将所述 P2P业务请求所请求的资源 替换排序最后的资源。  If it is determined that the available storage space is less than the predetermined value, the resource requested by the P2P service request is replaced with the last resource.
控制中心将 P2P业务请求所请求的资源所在緩存设备的地址发送给所述 用户设备的步骤包括:  The step of the control center sending the address of the cache device where the resource requested by the P2P service request is located to the user equipment includes:
所述控制中心确定所述 P2P业务请求使用的 P2P协议;  Determining, by the control center, a P2P protocol used by the P2P service request;
根据所述 P2P协议构造回复报文, 将所述 P2P业务请求所请求的资源的 下载地址放入所述回复 ^艮文中; 以及  Constructing a reply message according to the P2P protocol, and placing a download address of the resource requested by the P2P service request into the reply message;
将所述回复报文发送给所述用户设备。  Sending the reply message to the user equipment.
为了解决上述问题,本发明还提供一种处理对等互联(P2P )业务的系统, 包括: 深度报文检测设备、 控制中心和緩存设备,  In order to solve the above problems, the present invention further provides a system for processing peer-to-peer (P2P) services, including: an in-depth packet detecting device, a control center, and a cache device.
所述深度报文检测设备设置成: 检测到用户设备发起 P2P业务请求后, 将该 P2P业务请求重定向到所述控制中心;  The deep packet detecting device is configured to: after detecting that the user equipment initiates a P2P service request, redirect the P2P service request to the control center;
所述控制中心设置成: 若在所述緩存设备中搜索到所述 P2P业务请求所 请求的资源, 则将该资源所在緩存设备的地址发送给所述用户设备;  The control center is configured to: if the resource requested by the P2P service request is searched in the cache device, send the address of the cache device where the resource is located to the user equipment;
所述緩存设备设置成存储资源。  The cache device is configured to store resources.
所述控制中心还设置成: 若未在緩存设备中搜索到所述 P2P业务请求所 请求的资源, 则将所述 P2P业务请求转发给 P2P服务器。 The control center is further configured to: if the P2P service request is not found in the cache device The requested resource forwards the P2P service request to the P2P server.
所述控制中心还设置成: 将所述 P2P业务请求转发给 P2P服务器之后, 监听所述 P2P服务器针对所述 P2P业务请求的服务, 并向所述緩存设备发送 下载指令, 携带所述 P2P服务器指示的所述 P2P业务请求所请求的资源的目 的地址;  The control center is further configured to: after forwarding the P2P service request to the P2P server, listening to the service requested by the P2P server for the P2P service, and sending a download instruction to the cache device, carrying the P2P server indication The destination address of the requested resource of the P2P service request;
所述緩存设备还设置成: 接收到所述下载指令后, 根据所述 P2P服务器 指示的目的地址下载所述 P2P业务请求所请求的资源。  The cache device is further configured to: after receiving the download instruction, download the resource requested by the P2P service request according to the destination address indicated by the P2P server.
所述緩存设备还设置成通过如下方式緩存所述 P2P业务请求所请求的资 源: 按照在预定时间段内下载次数从多到少的顺序对緩存的资源进行排序; 以及, 若判断可用存储空间小于预定值, 则将所述 P2P业务请求所请求的资 源替换排序最后的资源。  The cache device is further configured to cache the resources requested by the P2P service request by: sorting the cached resources in an order of the number of downloads in a predetermined period of time; and, if determining that the available storage space is smaller than The predetermined value is used to replace the resource requested by the P2P service request with the last resource.
所述控制中心是设置成通过如下方式将所述 P2P业务请求所请求的资源 的下载地址发送给所述用户设备: 确定所述 P2P业务请求使用的 P2P协议, 根据所述 P2P协议构造回复报文, 将所述 P2P业务请求所请求的资源的下载 地址放入所述回复 ^艮文中, 将所述回复 ^艮文发送给所述用户设备。  The control center is configured to send the download address of the resource requested by the P2P service request to the user equipment by: determining a P2P protocol used by the P2P service request, and constructing a reply message according to the P2P protocol And sending the download address of the resource requested by the P2P service request into the reply message, and sending the reply message to the user equipment.
综上, 本发明提供的一种处理 P2P业务的方法及系统, 不仅使下载速度 有保障, 而且减小对于其它 Peer点的下载、 上传负荷。 附图概述  In summary, the method and system for processing P2P services provided by the present invention not only ensure download speed, but also reduce download and upload load for other Peer points. BRIEF abstract
图 1为本发明实施例的处理 P2P业务的系统的示意图;  1 is a schematic diagram of a system for processing a P2P service according to an embodiment of the present invention;
图 2为本发明的处理 P2P业务的系统的应用场景示意图;  2 is a schematic diagram of an application scenario of a system for processing a P2P service according to the present invention;
图 3为本发明的处理 P2P业务的方法的流程图;  3 is a flowchart of a method for processing a P2P service according to the present invention;
图 4是本发明实施例的处理 P2P业务的方法的流程图。 本发明的较佳实施方式  4 is a flow chart of a method for processing a P2P service according to an embodiment of the present invention. Preferred embodiment of the invention
基于现有技术的情况,运营商迫切需要解决流量拥堵的问题,而针对 P2P 应用, 近期出现一种新兴的检测技术——深度 4艮文检测 ( Deep Packet Inspection , 简称 DPI ) , 其有别于传统的 IP 4艮文流量识别技术, IP 4艮文流 量识别技术仅对 IP报文的五元组进行识别, DPI技术在分析包头的基础上, 增加了对应用层信息的分析,是一种基于应用层的技术。在本发明中通过 DPI 技术来实现网络中 P2P流量的优化, 以避免网络拥塞。 Based on the current technology, operators urgently need to solve the problem of traffic congestion. For P2P applications, a new detection technology, Deep Packet Inspection (DPI), has emerged recently. Traditional IP 4 流量 traffic identification technology, IP 4 艮 stream The quantity identification technology only identifies the quintuple of IP packets. Based on the analysis of the packet header, the DPI technology adds analysis of the application layer information, which is an application layer-based technology. In the present invention, DPI technology is used to optimize P2P traffic in the network to avoid network congestion.
为了更好地理解本发明, 下面结合附图和具体实施例对本发明作进一步 地描述。  For a better understanding of the invention, the invention will be further described in conjunction with the drawings and specific embodiments.
图 1为本发明实施例的处理 P2P业务的系统的示意图, 如图 1所示, 本 实施例的系统包括: DPI设备、 控制中心和緩存设备, 其中,  1 is a schematic diagram of a system for processing a P2P service according to an embodiment of the present invention. As shown in FIG. 1, the system of the present embodiment includes: a DPI device, a control center, and a cache device, where
DPI设备设置成: 若检测到用户设备发起 P2P业务请求, 则将该 P2P业 务请求重定向到所述控制中心;  The DPI device is configured to: if detecting that the user equipment initiates a P2P service request, redirecting the P2P service request to the control center;
控制中心设置成: 若在所述緩存设备中搜索到所述 P2P业务请求所请求 的资源, 则将该资源所在緩存设备的地址(即, 下载地址)发送给所述用户。 具体地, 控制中心确定所述 P2P业务请求使用的 P2P协议, 根据所述 P2P协 议构造回复报文, 将所述文件资源的下载地址放入所述回复报文的下载列表 中, 将所述回复报文发送给所述用户;  The control center is configured to: if the resource requested by the P2P service request is searched in the cache device, send the address (ie, the download address) of the cache device where the resource is located to the user. Specifically, the control center determines a P2P protocol used by the P2P service request, constructs a reply message according to the P2P protocol, and puts a download address of the file resource into a download list of the reply message, and the reply is sent. Sending a message to the user;
所述緩存设备设置成存储资源。  The cache device is configured to store resources.
所述控制中心还设置成: 若未在緩存设备中搜索到所述 P2P业务请求所 请求的文件资源, 则将所述 P2P业务请求转发给 P2P服务器, 并且监听所述 P2P服务器针对所述 P2P业务请求的服务,并向所述緩存设备发送下载指令, 携带所述 P2P服务器指示的目的地址下载;  The control center is further configured to: if the file resource requested by the P2P service request is not found in the cache device, forward the P2P service request to the P2P server, and listen to the P2P server for the P2P service And the downloading instruction is sent to the cache device, and the destination address indicated by the P2P server is downloaded;
緩存设备还设置成: 接收到所述下载指令后, 根据所述 P2P服务器指示 的所述资源的目的地址下载所述 P2P业务请求的资源, 緩存所述 P2P业务请 求的资源。  The cache device is further configured to: after receiving the downloading instruction, download the resource requested by the P2P service according to the destination address of the resource indicated by the P2P server, and cache the resource requested by the P2P service.
由于緩存设备的存储空间有限, 不可能存储所有下载的资源, 需要对存 储的资源进行取舍, 本实施例中緩存替换的原则可以是根据下载的次数进行 下载资源的排序, 当资源被下载次数增多则排名增加, 当一段设定时间内没 有下载流量(即排序最后), 可用存储空间小于预定值, 则删除此下载内容, 替换新的下载资源。 图 2为本发明的处理 P2P业务的系统的应用场景示意图。在实际应用中, 网络运营商需要在自己网络中的出口以及关键部位部署 DPI设备; 同时部署 緩存设备 ( cache设备 )以存储待下载的文件; 同时建立控制管理中心完成緩 存内容的查找、 替换, 构造下载列表等, 如图 2所示。 Because the storage space of the cache device is limited, it is impossible to store all the downloaded resources, and the stored resources need to be traded off. In this embodiment, the cache replacement principle may be to sort the download resources according to the number of downloads, and the number of times the resources are downloaded is increased. Then the ranking is increased. When the downloading traffic is not downloaded within a set period of time (ie, the sorting is last), and the available storage space is less than the predetermined value, the downloaded content is deleted, and the new downloading resource is replaced. 2 is a schematic diagram of an application scenario of a system for processing a P2P service according to the present invention. In practical applications, network operators need to deploy DPI devices in their own networks and key parts. At the same time, cache devices (cache devices) are deployed to store files to be downloaded. At the same time, the control management center is established to complete the search and replacement of cached content. Construct a download list, etc., as shown in Figure 2.
其中, DPI设备在本系统中主要功能是识别 P2P业务信息, 当用户启动 Among them, the main function of the DPI device in the system is to identify P2P service information, when the user starts
P2P应用, 向 P2P服务器请求下载列表时, DPI设备须将原本发送到 P2P服 务器的请求重定向到控制中心。 控制中心根据请求服务的内容, 搜索緩存设备中存储的文件资源, 如果 緩存中保存了该下载资源, 则控制中心根据具体的 P2P应用(比如 BT、 迅雷 等)构造一个响应报文给请求的用户, 具体地, 按照相应的报文格式构造一 个响应的报文, 在报文负载(如下载列表) 中加入下载地址。 For P2P applications, when requesting a download list from a P2P server, the DPI device must redirect the request originally sent to the P2P server to the control center. The control center searches for the file resource stored in the cache device according to the content of the requested service. If the download resource is saved in the cache, the control center constructs a response message to the requesting user according to the specific P2P application (such as BT, Thunder, etc.). Specifically, a response message is constructed according to the corresponding message format, and the download address is added to the message payload (such as a download list).
用户根据这个下载列表直接从 cache设备中进行下载。 由于在运营商进 行部署时, cache设备的网络带宽及时延是有保证的, 所以能够保证最好的下 载速度, 与此同时减少对于其它 Peer点的下载或上传负荷。 如果控制中心在 cache中没有搜索到该请求的下载资源, 则将此请求转发给 P2P服务器, 与此 同时监听其服务, 指示所述緩存设备根据所述 P2P服务器指示的目的地址下 载所述 P2P业务请求的资源, 并緩存该请求的资源, 以便为其他的用户提供 相同资源请求服务。 当其他用户请求该项资源时, 则可通过该緩存的数据进 行下载。  The user downloads directly from the cache device according to this download list. Since the network bandwidth of the cache device is guaranteed to be extended when the operator deploys, the best download speed can be guaranteed, while reducing the download or upload load for other Peer points. If the control center does not search for the downloaded download resource in the cache, the request is forwarded to the P2P server, and the service is instructed to download the P2P service according to the destination address indicated by the P2P server. The requested resource, and the requested resource is cached to provide the same resource request service to other users. When other users request the resource, they can download it through the cached data.
由于 cache 的存储空间是有限的, 因此不可能存储所有的下载资源, 这 就需要有緩存的替换技术, 緩存替换的原则可以是根据下载的次数进行下载 资源的排名, 当文件被下载次数增多则排名增加, 当一段设定时间内没有下 载流量则删除此下载内容, 替换新的下载资源。  Since the storage space of the cache is limited, it is impossible to store all the download resources. This requires a cache replacement technique. The principle of cache replacement may be to rank the downloaded resources according to the number of downloads. The ranking increases. When there is no download traffic for a set period of time, the download is deleted and the new download resource is replaced.
通过上述方法, 运营商可以减少 P2P的无序流量继而緩解因此带来的网 络拥塞。  Through the above method, the operator can reduce the out-of-order traffic of P2P and then alleviate the network congestion caused thereby.
图 3是本发明的处理 P2P业务的方法的流程图, 如图 3所示, 包括下面 步骤: 步骤 10、 DPI设备若检测到用户设备发起 P2P业务请求, 则将该 P2P业 务请求重定向到控制中心; 3 is a flow chart of a method for processing a P2P service according to the present invention. As shown in FIG. 3, the following steps are included: Step 10: If the DPI device detects that the user equipment initiates a P2P service request, the DPI device redirects the P2P service request to the control center.
步骤 20、控制中心若在緩存设备中搜索到所述 P2P业务请求所请求的资 源, 则将该资源所在緩存设备的地址发送给所述用户设备。  Step 20: If the control center searches for the resource requested by the P2P service request, the control center sends the address of the cache device where the resource is located to the user equipment.
这样, 用户即可以从緩存设备中直接下载资源, 不仅下载速度有保障, 而且减小对于其它 Peer点的下载、 上传负荷。  In this way, the user can download the resources directly from the cache device, which not only ensures the download speed, but also reduces the download and upload load for other Peer points.
图 4是本发明实施例的处理 P2P业务的方法的流程图, 如图 4所示, 可 以包括下面步骤: FIG. 4 is a flowchart of a method for processing a P2P service according to an embodiment of the present invention. As shown in FIG. 4, the following steps may be included:
步骤 1 : 运营商在关键位置部署 DPI设备, DPI设备实时监控 P2P应用。 步骤 2: DPI设备当发现 P2P客户端向 P2P服务器发起的 P2P业务请求 时, 将该 P2P业务请求重定向到控制中心。  Step 1: The operator deploys the DPI device at a key location, and the DPI device monitors the P2P application in real time. Step 2: The DPI device redirects the P2P service request to the control center when the P2P client initiates a P2P service request to the P2P server.
步骤 3: 控制中心分析 P2P用户的请求信息, 确定使用的 P2P协议(例 如 BT、 电驴、 迅雷等协议), 获取请求的文件信息, 并对该文件的下载次数 进行统计。  Step 3: The control center analyzes the request information of the P2P user, determines the P2P protocol used (for example, BT, eDonkey, Thunder, etc.), obtains the requested file information, and counts the number of downloads of the file.
步骤 4: 控制中心在部署的 cache中查找请求的资源, 若查找到对应的资 源, 则转向步骤 5; 若未找到对应的资源, 则转向步骤 7。  Step 4: The control center searches for the requested resource in the deployed cache. If the corresponding resource is found, go to step 5. If the corresponding resource is not found, go to step 7.
步骤 5: 控制中心如果找到对应的资源, 则构造对应 P2P协议的回复才艮 文, 将緩存中该资源的下载地址放入下载列表中, 这样用户就可以从緩存中 下载该请求的资源。  Step 5: If the control center finds the corresponding resource, it constructs a reply corresponding to the P2P protocol, and puts the download address of the resource in the cache into the download list, so that the user can download the requested resource from the cache.
步骤 6: 緩存设备还根据緩存中资源的下载次数进行排名, 更新和替换 緩存中的排名最后的资源 , 保证緩存的最佳使用效率。  Step 6: The cache device also ranks the number of downloads of the resources in the cache, updates and replaces the last ranked resources in the cache, and ensures the optimal use efficiency of the cache.
当资源被下载次数增多则排名增加, 当一段设定时间内没有下载流量, 并且緩存设备中的可用存储空间小于预定值, 则删除排名最后的资源, 替换 为新的下载资源。  When the number of times the resource is downloaded increases, the ranking increases. When the traffic is not downloaded within a set period of time, and the available storage space in the cache device is less than the predetermined value, the last ranked resource is deleted and replaced with the new download resource.
步骤 7: 控制中心如果在緩存设备中未搜索到请求的资源, 则将该请求 信息发送到 P2P服务器, 并监听其服务。 步骤 8: 控制中心指示緩存设备下载该请求的资源, 以便为其他的用户 的相同资源请求服务。 Step 7: If the control center does not search for the requested resource in the cache device, the control information is sent to the P2P server and its service is monitored. Step 8: The control center instructs the cache device to download the requested resource to request service for the same resource of other users.
当緩存设备无请求的下载资源时, 用户可直接从原来 P2P服务器指示的 目的地址下载, 同时 cache也会从 P2P服务器指示的目的地址下载一份, 以 后用户即可从 cache上下载了。  When the cache device has no requested download resources, the user can directly download from the destination address indicated by the original P2P server, and the cache also downloads a copy from the destination address indicated by the P2P server, and then the user can download from the cache.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。 One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program instructing the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware or in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
以上仅为本发明的优选实施例, 当然, 本发明还可有其他多种实施例, 在不背离本发明精神及其实质的情况下, 熟悉本领域的技术人员当可根据本 发明作出各种相应的改变和变形, 但这些相应的改变和变形都应属于本发明 所附的权利要求的保护范围。 The above is only a preferred embodiment of the present invention, and of course, the present invention may be embodied in various other embodiments without departing from the spirit and scope of the invention. Corresponding changes and modifications are intended to be included within the scope of the appended claims.
工业实用性 Industrial applicability
与现有技术相比, 本发明提供的处理 P2P业务的方法及系统, 不仅能保 障下载速度, 而且能够减小对于其它 Peer点的下载和上传负荷。  Compared with the prior art, the method and system for processing P2P services provided by the present invention not only can guarantee the download speed, but also can reduce the downloading and uploading load for other Peer points.

Claims

权 利 要 求 书 Claim
1、 一种处理对等互联(P2P )业务的方法, 包括:  1. A method of processing a peer to peer (P2P) service, comprising:
深度报文检测设备若检测到用户设备发起 P2P业务请求, 则将该 P2P业 务请求重定向到控制中心; 以及  If the deep packet detecting device detects that the user equipment initiates a P2P service request, the deep packet detecting device redirects the P2P service request to the control center;
所述控制中心若在緩存设备中搜索到所述 P2P业务请求所请求的资源, 则将该资源所在緩存设备的地址发送给所述用户设备。  If the control center searches for the resource requested by the P2P service request in the cache device, the control device sends the address of the cache device where the resource is located to the user device.
2、 如权利要求 1所述的方法, 还包括:  2. The method of claim 1 further comprising:
所述控制中心若未在緩存设备中搜索到所述 P2P 业务请求所请求的资 源, 则将所述 P2P业务请求转发给 P2P服务器。  If the control center does not search for the resource requested by the P2P service request in the cache device, the control center forwards the P2P service request to the P2P server.
3、 如权利要求 2所述的方法, 还包括:  3. The method of claim 2, further comprising:
所述控制中心将所述 P2P业务请求转发给 P2P服务器之后,监听所述 P2P 服务器针对所述 P2P业务请求的服务, 指示所述緩存设备根据所述 P2P服务 器指示的所述资源的目的地址下载所述述 P2P业务请求所请求的资源。  After the P2P service request is forwarded to the P2P server, the control center intercepts the service requested by the P2P server for the P2P service, and instructs the cache device to download the location according to the destination address of the resource indicated by the P2P server. Describe the resources requested by the P2P service request.
4、 如权利要求 3所述的方法, 还包括:  4. The method of claim 3, further comprising:
所述緩存设备通过如下方式緩存所述 P2P业务请求所请求的资源: 按照 在预定时间段内下载次数从多到少的顺序对緩存的资源进行排序; 以及  The cache device caches the resources requested by the P2P service request by: sorting the cached resources in an order of the number of downloads in a predetermined period of time;
若判断可用存储空间小于预定值, 则将所述 P2P业务请求所请求的资源 替换排序最后的资源。  If it is determined that the available storage space is less than the predetermined value, the resource requested by the P2P service request is replaced with the last resource.
5、 如权利要求 1-4任一项所述的方法, 其中, 所述控制中心将 P2P业务 请求所请求的资源所在緩存设备的地址发送给所述用户设备的步骤包括: 所述控制中心确定所述 P2P业务请求使用的 P2P协议;  The method according to any one of claims 1-4, wherein the step of the control center transmitting the address of the cache device where the resource requested by the P2P service request is located to the user equipment comprises: determining, by the control center The P2P protocol used by the P2P service request;
根据所述 P2P协议构造回复报文, 将所述 P2P业务请求所请求的资源的 下载地址放入所述回复 ^艮文中; 以及  Constructing a reply message according to the P2P protocol, and placing a download address of the resource requested by the P2P service request into the reply message;
将所述回复报文发送给所述用户设备。  Sending the reply message to the user equipment.
6、 一种处理对等互联(P2P )业务的系统, 包括: 深度报文检测设备、 控制中心和緩存设备, 其中,  A system for processing a peer-to-peer (P2P) service, comprising: an in-depth packet detecting device, a control center, and a cache device, wherein
所述深度报文检测设备设置成: 检测到用户设备发起 P2P业务请求后, 将该 P2P业务请求重定向到所述控制中心; The deep packet detecting device is configured to: after detecting that the user equipment initiates a P2P service request, Redirecting the P2P service request to the control center;
所述控制中心设置成: 若在所述緩存设备中搜索到所述 P2P业务请求所 请求的资源, 则将该资源所在緩存设备的地址发送给所述用户设备;  The control center is configured to: if the resource requested by the P2P service request is searched in the cache device, send the address of the cache device where the resource is located to the user equipment;
所述緩存设备设置成存储资源。  The cache device is configured to store resources.
7、 如权利要求 6所述的系统, 其中,  7. The system of claim 6 wherein
所述控制中心还设置成: 若未在緩存设备中搜索到所述 P2P业务请求所 请求的资源, 则将所述 P2P业务请求转发给 P2P服务器。  The control center is further configured to forward the P2P service request to the P2P server if the resource requested by the P2P service request is not found in the cache device.
8、 如权利要求 7所述的系统, 其中,  8. The system of claim 7, wherein
所述控制中心还设置成: 将所述 P2P业务请求转发给 P2P服务器之后, 监听所述 P2P服务器针对所述 P2P业务请求的服务, 并向所述緩存设备发送 下载指令, 携带所述 P2P服务器指示的所述 P2P业务请求所请求的资源的目 的地址;  The control center is further configured to: after forwarding the P2P service request to the P2P server, listening to the service requested by the P2P server for the P2P service, and sending a download instruction to the cache device, carrying the P2P server indication The destination address of the requested resource of the P2P service request;
所述緩存设备还设置成: 接收到所述下载指令后, 根据所述 P2P服务器 指示的目的地址下载所述 P2P业务请求所请求的资源。  The cache device is further configured to: after receiving the download instruction, download the resource requested by the P2P service request according to the destination address indicated by the P2P server.
9、 如权利要求 8所述的系统, 其中,  9. The system of claim 8 wherein
所述緩存设备还设置成通过如下方式緩存所述 P2P业务请求所请求的资 源: 按照在预定时间段内下载次数从多到少的顺序对緩存的资源进行排序; 以及, 若判断可用存储空间小于预定值, 则将所述 P2P业务请求所请求的资 源替换排序最后的资源。  The cache device is further configured to cache the resources requested by the P2P service request by: sorting the cached resources in an order of the number of downloads in a predetermined period of time; and, if determining that the available storage space is smaller than The predetermined value is used to replace the resource requested by the P2P service request with the last resource.
10、 如权利要求 6-9任一项所述的系统, 其中,  10. The system of any of claims 6-9, wherein
所述控制中心是设置成通过如下方式将所述 P2P业务请求所请求的资源 的下载地址发送给所述用户设备: 确定所述 P2P业务请求使用的 P2P协议, 根据所述 P2P协议构造回复报文, 将所述 P2P业务请求所请求的资源的下载 地址放入所述回复报文中, 将所述回复报文发送给所述用户设备。  The control center is configured to send the download address of the resource requested by the P2P service request to the user equipment by: determining a P2P protocol used by the P2P service request, and constructing a reply message according to the P2P protocol And sending the download address of the resource requested by the P2P service request into the reply message, and sending the reply message to the user equipment.
PCT/CN2011/074707 2010-09-19 2011-05-26 Method and system for processing peer to peer (p2p) services WO2012034414A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010102890902A CN101938524A (en) 2010-09-19 2010-09-19 Method and system for handling P2P (Peer-to-Peer) services
CN201010289090.2 2010-09-19

Publications (1)

Publication Number Publication Date
WO2012034414A1 true WO2012034414A1 (en) 2012-03-22

Family

ID=43391651

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/074707 WO2012034414A1 (en) 2010-09-19 2011-05-26 Method and system for processing peer to peer (p2p) services

Country Status (2)

Country Link
CN (1) CN101938524A (en)
WO (1) WO2012034414A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938524A (en) * 2010-09-19 2011-01-05 中兴通讯股份有限公司 Method and system for handling P2P (Peer-to-Peer) services
CN102651861B (en) * 2011-02-24 2014-08-20 腾讯科技(深圳)有限公司 Download method for mobile terminal, mobile terminal and proxy download server
JP6044882B2 (en) * 2012-03-02 2016-12-14 株式会社Pfu Information processing system, management terminal device, information processing device, information processing method, and program
CN102891807B (en) * 2012-07-16 2015-10-28 北京东方网信科技股份有限公司 A kind of network traffic cache method and system based on positive guide
CN103581765B (en) * 2012-08-02 2016-12-21 华为技术有限公司 The method and apparatus that a kind of message forwards
CN103685344A (en) * 2012-09-03 2014-03-26 中国移动通信集团公司 Synergetic method and system for multiple P2P (point-to-point) cache peers
CN103716343B (en) * 2012-09-29 2016-11-09 重庆新媒农信科技有限公司 Distributed service request processing method and system based on data cache synchronization
CN106790494A (en) * 2016-12-14 2017-05-31 北京佰才邦技术有限公司 The update method and buffer memory device of a kind of address information

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707625A (en) * 2009-11-27 2010-05-12 中国电信股份有限公司 Method and system for caching P2P object
CN101938524A (en) * 2010-09-19 2011-01-05 中兴通讯股份有限公司 Method and system for handling P2P (Peer-to-Peer) services

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707625A (en) * 2009-11-27 2010-05-12 中国电信股份有限公司 Method and system for caching P2P object
CN101938524A (en) * 2010-09-19 2011-01-05 中兴通讯股份有限公司 Method and system for handling P2P (Peer-to-Peer) services

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
AKIHIRO ET AL.: "A Remedy for Network Operators against Increasing P2P Traffic: Enabling Packet Cache for P2P Applications", IEICE TRANS. COMMUN., vol. E91-B, no. 12, December 2008 (2008-12-01) *
KAI LEE ET AL.: "ALTO and DECADE service trial within China Telecom", ALTO INTERNET DRAFT, 5 July 2010 (2010-07-05) *
WANG CHENLING ET AL.: "Research on Technology of P2P Traffic Management", TELECOMMUNICATIONS SCIENCE, no. 12, 31 December 2008 (2008-12-31) *
ZOU RONG: "P2P optimization technology based on P2P Cache", TELECOMMUNICATIONS NETWORK TECHNOLOGY, no. 1, 31 January 2009 (2009-01-31) *

Also Published As

Publication number Publication date
CN101938524A (en) 2011-01-05

Similar Documents

Publication Publication Date Title
US10491657B2 (en) Network acceleration method, apparatus and device based on router device
WO2012034414A1 (en) Method and system for processing peer to peer (p2p) services
EP2897340B1 (en) Routing proxy for adaptive streaming
US8510415B2 (en) Data distribution method, data distribution system and relevant devices in edge network
KR101567386B1 (en) Method and apparatus for internet protocol based content router
US8261339B2 (en) Dynamic network tunnel endpoint selection
US8694675B2 (en) Generalized dual-mode data forwarding plane for information-centric network
JP4409788B2 (en) Wireless data communication network switching device and wireless data communication network switching processing program
US8717902B2 (en) Method and apparatus for reducing traffic in a communications network
JP4108486B2 (en) IP router, communication system, bandwidth setting method used therefor, and program thereof
EP3729784B1 (en) Methods and apparatus for delivering content
TW201312980A (en) Content identification, retrieval and routing in the Internet
WO2013029569A1 (en) A Generalized Dual-Mode Data Forwarding Plane for Information-Centric Network
US10250671B2 (en) P2P-based file transmission control method and P2P communication control device therefor
WO2010105505A1 (en) Method, user node and server for requesting position information of resource on network
CN107211035B (en) Method and network node for monitoring services in a content delivery network
US20150127837A1 (en) Relay apparatus and data transfer method
US20230126039A1 (en) Method for delivering an audio and/or video content in a mobile network infrastructure
CN108881034B (en) Request response method, device and system applied to BT system
Thelagathoti et al. Named data networking for content delivery network workflows
Trajano et al. ContentSDN: A content-based transparent proxy architecture in software-defined networking
Ye et al. PTP: Path-specified transport protocol for concurrent multipath transmission in named data networks
US11888692B2 (en) Methods and apparatus for monitoring content delivery
KR101469310B1 (en) Method and system for end-to-end QoS guaranteed content delivery on service overlay network
JP5784234B2 (en) Generalized dual-mode data transfer plane for information-centric networks

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11824484

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11824484

Country of ref document: EP

Kind code of ref document: A1