WO2010096989A1 - 一种用于发现p2p流量优化服务的方法、装置和系统 - Google Patents
一种用于发现p2p流量优化服务的方法、装置和系统 Download PDFInfo
- Publication number
- WO2010096989A1 WO2010096989A1 PCT/CN2009/075292 CN2009075292W WO2010096989A1 WO 2010096989 A1 WO2010096989 A1 WO 2010096989A1 CN 2009075292 W CN2009075292 W CN 2009075292W WO 2010096989 A1 WO2010096989 A1 WO 2010096989A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- traffic optimization
- optimization service
- service information
- registration
- information
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
Definitions
- the present invention relates to the field of communications, and in particular, to a method, apparatus, and system for discovering P2P traffic optimization services. Background of the invention
- P2P Peer to Peer, Peer-to-Peer
- C/S Client/Serve, client and server
- P2P applications usually cannot find an optimal peer sequence, resulting in performance degradation and excessive cross-domain traffic.
- the P2P application not only occupies a large amount of network bandwidth, but also is uncontrollable, which greatly occupies the limited network resources of the ISP (Internet Service Provider). Therefore, P2P traffic optimization has become one of the hotspots of today's technology.
- P2P traffic optimization can be divided into two categories, one is application layer technology, that is, the P2P application itself reduces the cross-domain traffic technology; the other is the inter-layer cooperation technology, that is, the ISP cooperates with the P2P application.
- the P2P application performs peer selection based on the information provided by the ISP to optimize traffic, such as reducing cross-domain traffic.
- inter-layer cooperation technology has advantages and development prospects.
- P4P Provide Portal for (P2P) Applications, supplier portal for P2P applications
- Oracle-based ISP-P2P Oracle -based internet service provider-P2P, Oracle-based network service provider-peer-to-peer collaboration
- IDIPS ISP-Driven Informed Path Selection
- P4P technology proposes that by coordinating network topology data, ISP and P2P applications can cooperate and win together, and better peers can be selected to improve network routing efficiency.
- the IETF The Internet Engineering Task Force
- ALTO Application-Layer Traffic Optimization
- the ALTO server optimizes the selection of P2P resources by collecting and analyzing network topology information, thereby reducing unnecessary traffic between domains, rationally utilizing network bandwidth resources, and strengthening management of P2P services.
- the P2P network is a distributed unstructured network
- the tracking server exists in the P2P network.
- the peer starts the P2P program, it needs to request the peer list from the tracking server.
- the tracking server can obtain information such as the network topology for optimization. , returns the preferred peer list.
- the P2P network is a distributed structured P2P network
- the peer list is selected.
- the peer can obtain information such as the network topology to optimize the peer3.
- the user can preferentially exchange the file segment with the same city user, that is, other users in Beijing; if there is no user in the same city, the user is extended to the remote area.
- users in Shanghai can exchange file fragments, and if necessary, users of remote areas, such as foreign users, can exchange file fragments.
- the above tracking server or peer can also be based on the user. The upstream and download bandwidths are comprehensively judged for the most efficient selection, maximizing the efficiency of the overall exchange.
- the ISP provides certain information to the tracking server or peer, such as the network topology, that is, the ISP deploys related networks in its own network according to actual conditions.
- P2P traffic optimization service the granularity of the deployment can be determined by the ISP. For example, it can be deployed according to the scope of the AS (Autonomous System).
- AS Autonomous System
- IP address of the server or host that provides P2P traffic optimization services in each ISP of each ISP becomes a problem that must be solved, that is, a discovery mechanism of P2P traffic optimization service is required, and different ISP networks are required.
- the IP address of the server or host that provides the P2P traffic optimization service is advertised to the tracking server or peer.
- the object of the present invention is to provide a P2P traffic optimization service discovery mechanism, which can efficiently and quickly discover P2P traffic optimization service devices, and better implement P2P traffic optimization services.
- An embodiment of the present invention provides a system for discovering a peer-to-peer P2P traffic optimization service, including: a P2P application device, a P2P traffic optimization service device, and a service information registration device;
- the P2P traffic optimization service device is configured to send a first registration message to the service information registration device, where the first registration message carries P2P traffic optimization service information, the P2P traffic optimization service information, and the P2P traffic optimization service.
- the service information registration device is configured to store the P2P traffic optimization service information;
- the P2P application device is configured to send a query request message to the service information registration device;
- the service information registration device is further configured to send an inquiry response message to the P2P application device, where the query response message carries the P2P traffic optimization service information;
- the P2P application device is further configured to perform communication with the P2P traffic optimization service device according to the P2P traffic optimization service information.
- Another embodiment of the present invention provides a method for discovering a P2P traffic optimization service, including:
- Yet another embodiment of the present invention provides an apparatus for discovering a P2P traffic optimization service, including a communication module, a storage module, and a query module;
- the communication module is configured to receive a first registration message from a P2P traffic optimization service device, where the first registration message carries P2P traffic optimization service information;
- the storage module is configured to store a P2P traffic optimization service carried in the first registration message.
- the communication module is further configured to receive a query request message from the P2P application device;
- the query module is configured to query P2P traffic optimization service information
- the communication module is further configured to send a query response message to the P2P application device, where the query response message carries the P2P traffic optimization service information that is queried by the query module.
- a further embodiment of the present invention provides a method for discovering a P2P traffic optimization service, including:
- a further embodiment of the present invention provides an apparatus for discovering a P2P traffic optimization service, including a first communication module and a second communication module;
- the first communication module is configured to send a query request message to the service information registration device, and receive a query response message from the service information registration device, where the query response message carries P2P traffic optimization service information;
- the second communication module is configured to communicate with a P2P traffic optimization service device, where the P2P traffic optimization service device corresponds to the P2P traffic optimization service information.
- An embodiment of the present invention provides a method for discovering a P2P traffic optimization service, including:
- Yet another embodiment of the present invention provides an apparatus for discovering a P2P traffic optimization service, including a boot module and a communication module;
- the startup module is configured to start a P2P traffic optimization service
- the communication module is configured to send a registration message after the startup module starts the P2P traffic optimization service, where the registration message carries P2P traffic optimization service information.
- the discovery mechanism of the P2P traffic optimization service provided in the embodiment of the present invention can enable the P2P application device to automatically discover the P2P traffic optimization service device, which is easy to implement, simple and efficient, and thus can satisfy the network update speed, the service is continuously updated, and the application is endless. The need in the situation. BRIEF DESCRIPTION OF THE DRAWINGS
- FIG. 1 is a simplified schematic diagram of a system for discovering a P2P traffic optimization service according to an embodiment of the present invention
- FIG. 2 is a simplified schematic diagram of a system for discovering a P2P traffic optimization service according to another embodiment of the present invention
- 3 is a simplified schematic diagram of a system for discovering a P2P traffic optimization service according to still another embodiment of the present invention
- 4 is a flowchart of a method for discovering a P2P traffic optimization service according to an embodiment of the present invention
- FIG. 5 is a simplified schematic diagram of an apparatus for discovering a P2P traffic optimization service according to an embodiment of the present invention
- FIG. 6 is a flowchart of a method for discovering a P2P traffic optimization service according to another embodiment of the present invention.
- FIG. 7 is a flowchart of a method for discovering a P2P traffic optimization service according to still another embodiment of the present invention.
- FIG. 8 is a simplified schematic diagram of an apparatus for discovering a P2P traffic optimization service according to an embodiment of the present invention.
- FIG. 9 is a flowchart of a method for discovering a P2P traffic optimization service according to still another embodiment of the present invention.
- FIG. 10 is a simplified schematic diagram of an apparatus for discovering a P2P traffic optimization service according to an embodiment of the present invention. Mode for carrying out the invention
- FIG. 1 is a simplified schematic diagram of a system for discovering a P2P traffic optimization service in accordance with an embodiment of the present invention.
- the system includes: a P2P application device 102, a P2P traffic optimization service device 104, and a service information registration device 106.
- the P2P traffic optimization service device 104 sends a registration message to the service information registration device 106, where the registration message carries P2P traffic optimization service information, and the P2P traffic optimization service information corresponds to the P2P traffic optimization service device 104.
- the service information registration device 106 stores the P2P traffic optimization service information.
- the P2P application device 102 transmits a query request message to the service information registration device 106.
- the service information registration device 106 sends an inquiry response message to the P2P application device 102, where the P2P traffic optimization service information is carried in the query response message.
- the P2P application device 102 communicates with the P2P traffic optimization service device 104 based on the P2P traffic optimization service information described above.
- the P2P traffic optimization service device 104 performs specific service information interaction with the P2P application device 102, for example, sends information such as network topology and bandwidth to the P2P application device 102.
- the P2P application device 102 is a device of a P2P application, such as a Tracker in a distributed unstructured P2P network, or a peer in a distributed structured P2P network without Tracker.
- the P2P traffic optimization service device 104 is a device that provides P2P traffic optimization services, for example, a server or a host in an ISP network, and the P2P traffic optimization service provided by the P2P traffic optimization service may be an ALTO service or other types of traffic optimization services. .
- the service information registration device 106 may be a DNS server, or may be an LDAP (Lightweight Directory Access Protocol) server, or a DHCP (Dynamic Host Configuration Protocol) server, or can Other entities that implement storage and query functionality.
- DNS Global System for Mobile communications
- LDAP Lightweight Directory Access Protocol
- DHCP Dynamic Host Configuration Protocol
- Figure 1 is a simplified diagram showing only one P2P application device, one P2P traffic optimization service device, and one service information registration device.
- 2 is a simplified schematic diagram of a system for discovering P2P traffic optimization services in another embodiment of the present invention.
- 2 shows three ASs: AS202, AS204, and AS206; three P2P traffic optimization service devices 212, 214, and 216; service information registration device 220 and P2P application device 230.
- AS202 and AS204 are located at ISP1 (Internet Service Provider);
- AS206 is located at ISP2.
- the P2P traffic optimization service device 212 provides P2P traffic optimization service for the AS 202
- the P2P traffic optimization service device 214 provides P2P traffic optimization service for AS204
- P2P traffic optimization service device 216 provides P2P traffic optimization service for AS206.
- the P2P traffic optimization service devices 212, 214 and 216 both transmit the P2P traffic optimization service information to the service information registration device 220 by transmitting a registration message, that is, the service information registration device in the system adopts a centralized architecture.
- the service information registration device 220 may be a device having a storage and query function maintained by the ISP itself, or a device having a storage and query function maintained by a trusted third party, such as a server capable of implementing storage and query functions. .
- the P2P traffic optimization service device 212 sends a registration message to the service information registration device 220, where the registration message carries P2P traffic optimization service information, and the P2P traffic optimization service information corresponds to the P2P traffic optimization service device 212.
- the P2P traffic optimization service devices 214 and 216 also send registration messages to the service information registration device 220.
- the P2P traffic optimization service information may include the name of the P2P traffic optimization service and the IP address of the P2P traffic optimization service device, or may also include the name of the P2P traffic optimization service, the name of the ISP to which the P2P traffic optimization service belongs, and P2P.
- the IP address of the traffic optimization service device may include the name of the P2P traffic optimization service and the IP address of the P2P traffic optimization service device, or may also include the name of the P2P traffic optimization service, the name of the ISP to which the P2P traffic optimization service belongs, and P2P.
- the IP address of the traffic optimization service device may include the name of the
- the service information registration means 220 stores the received P2P traffic optimization service information.
- the storage may be performed in a list manner, and the mapping relationship between the name of the P2P traffic optimization service and the IP address of the P2P traffic optimization service device is recorded, as shown in Table 1, or the name of the P2P traffic optimization service and the P2P traffic optimization service are recorded.
- the mapping relationship between the name of the ISP and the IP address of the P2P traffic optimization service device is shown in Table 2.
- the P2P application device 230 transmits a query request message to the service information registration device 220.
- the query request message may be used to query all P2P traffic optimization service information stored in the service information registration device 220, or may be used to query a part of the P2P traffic optimization service stored in the service information registration device 220.
- the information for example, the name of the P2P traffic optimization service carried in the query request message, is used to query the P2P traffic optimization service information corresponding to the name of the P2P traffic optimization service.
- the service information registration device 220 sends a query response message to the P2P application device 230, where the query response message carries P2P traffic optimization service information.
- the P2P traffic optimization service information carried in the service information registration device 220 may be all P2P traffic optimization service information stored in the service information registration device 220, or may be part of the P2P traffic optimization service information stored in the service information registration device 220.
- the query request message carries the name of the P2P traffic optimization service
- the P2P traffic optimization service information carried in the query response message corresponds to the name of the P2P traffic optimization service.
- the P2P traffic optimization service information can be P2P traffic preferential.
- the name of the service and the IP address of the P2P traffic optimization service device may also be the name of the P2P traffic optimization service, the name of the ISP to which the P2P traffic optimization service belongs, and the IP address of the P2P traffic optimization service device.
- the P2P application device 230 communicates with the combination of one or more of the P2P traffic optimization service devices 212, 214, 216 based on the P2P traffic optimization service information.
- the P2P application device 230 may also send a registration message to the service information registration device 220, where the registration message carries the information of the P2P application device 230.
- the registration message carries the information of the P2P application device 230.
- the service information registration device 220 may store the information of the P2P application device 230, and notify the P2P application device 230 of the changed P2P according to the information of the stored P2P application device when the P2P traffic optimization service information stored in the service information registration device 220 changes. Traffic optimization service information. This can efficiently discover P2P traffic optimization services.
- FIG. 3 is a simplified schematic diagram of a system for discovering P2P traffic optimization services in yet another embodiment of the present invention.
- Figure 3 shows three
- AS AS302, AS304, and AS306; three P2P traffic optimization service devices 312, 314, and 316; three DNS (Domain Name System) servers 322, 326, and 328; and a P2P application device 340.
- AS302 and AS304 are located at ISP1; AS306 is located at ISP2.
- the P2P traffic optimization service device 312 provides a P2P traffic optimization service for the AS 302, and the P2P traffic optimization service device 314 provides the 8304. 2? Traffic optimization service, P2P traffic optimization service device 316 provides P2P traffic optimization service for AS306.
- the DNS server 322 corresponds to the ISP1; the DNS server 326 corresponds to the ISP2; and the DNS server 328 corresponds to the P2P application device 340.
- the DNS server 330 is a higher-level DNS server of the DNS servers 322, 326, and 328.
- the domain name stored by the DNS server 322 is chinamobile.com, DNS.
- the domain name stored by the server 326 is chinaunicom.com
- the domain name stored by the DNS server 328 is chinatele.com
- the domain name stored by the DNS server 330 is .com.
- Figure 3 shows a two-level DNS server, which is only an example here, or it can be three or more.
- the DNS server 328 corresponding to the P2P application device 340 can be the same as the DNS server 322.
- the DNS server 328 corresponding to the P2P application device 340 can be the same as the DNS server 326.
- the P2P traffic optimization service device 312 sends a registration message to the DNS server 322, where the registration message carries the P2P traffic optimization service information corresponding to the P2P traffic optimization service device 312.
- the P2P traffic optimization service device 314 sends a registration message to the DNS server 322, the registration message.
- the P2P traffic optimization service device 314 is configured to carry the P2P traffic optimization service information corresponding to the P2P traffic optimization service device 314.
- the P2P traffic optimization service device 316 sends the registration message to the DNS server 326, where the registration message carries the P2P traffic optimization service information corresponding to the P2P traffic optimization service device 316. That is to say, the service information registration in the system shown in FIG. 3 adopts a distributed architecture.
- Both the DNS servers 322 and 326 store the P2P traffic optimization service information carried in the registration message received by itself.
- the P2P application device 340 sends a query request message to the DNS server 328 corresponding thereto, and the query request message carries domain name system information.
- the domain name system information may be a domain name, such as chinamobile.com.
- the DNS server 328 queries the P2P traffic optimization service information corresponding to the domain name system information in the stored P2P traffic optimization service information according to the domain name system information, and if not queried, the upper-level DNS server (FIG. 3) In the illustrated embodiment, the query is performed in the DNS server 330); if queried, the query response message is sent to the P2P application device 340, and the query response message carries the P2P traffic optimization service corresponding to the domain name system information. information.
- the P2P application device 340 communicates with the P2P traffic optimization service device corresponding to the P2P traffic optimization service information carried in the query response message.
- the P2P traffic optimization service is an ALTO service.
- the P2P traffic optimization service information stored by the DNS server may be a mapping relationship between the ALTO service and the P2P traffic optimization service device, and the SRV RR of the DNS server may be adopted.
- a Resource Recorder for specifying the location of services, and a host address resource record (A host address resource record) for storage the specific format can refer to the A RR format defined by the RFC1034 standard and The SRV RR format defined by the RFC2782 standard.
- the SRV RR of each DNS records the mapping of the ALTO service name to the P2P traffic optimization service device name.
- Each ARR records a mapping of the name and IP address information of the P2P traffic optimization service device that initiates the ALTO service.
- DNS322 Take DNS322 as an example.
- the P2P traffic optimization service information stored in DNS SRV and A RR is shown in the following example:
- the domain name of ISP1 is chinamobile.com
- ALTO services are deployed on both P2P traffic optimization service devices.
- the two P2P traffic optimization service devices are: IP address is 170.30 Serverl of .29.28, server2 with IP address of 170.30.56.36.
- TCP port number 9 monitors the start of the ALTO service, the priority is set to 0, and the weight is set to 3.
- the values involved in the above settings are for example only, and other values can be set.
- the priorities of serverl and 2 can be set differently, and the weights can be set to be the same.
- the P2P application device 340 may store the domain name of the ISP in advance, for example, by using a list.
- the domain name of the ISP stored in the list is encapsulated into a DNS domain name resolution request message, and the DNS is queried.
- the SRV RR and A RR in the server can obtain information such as the IP address of all servers/hosts that start P2P traffic optimization services.
- the service information registration device adopts a DNS server, and may also adopt an LDAP server or a DHCP server, or other entity capable of implementing storage and query functions; and may be maintained by the ISP itself or It is maintained by a trusted third party.
- the LDAP directory stores data in a tree-like hierarchy, similar to the DNS tree, and the DNS-like P2P traffic optimization service device name, the DN of the LDAP directory record (Distinguished Name) , the identifier name is used to read a single record, and back to the top of the tree.
- the use of the LDAP server as the service information registration device is similar to the example in FIG. 3 above, and will not be described here.
- FIG. 4 is a flowchart of a method for discovering a P2P traffic optimization service according to an embodiment of the present invention. As shown in FIG. 4, the method includes: 402: Receive a registration message from a P2P traffic optimization service device, where the registration message carries P2P. Traffic optimization service information. 404: Store P2P traffic optimization service information carried in the foregoing registration message.
- FIG. 5 is a simplified schematic diagram of an apparatus for discovering a P2P traffic optimization service in an embodiment of the present invention.
- the apparatus includes a communication module 502, a storage module 504, and a query module 506.
- the communication module 502 is configured to receive a registration message from the P2P traffic optimization service device, where the registration message carries P2P traffic optimization service information.
- the storage module 504 is configured to store the foregoing registration message. P2P traffic optimization service information.
- the communication module 502 is further configured to receive a query request message from the P2P application device.
- the query module 506 is configured to query P2P traffic optimization service information.
- the communication module 502 is further configured to send a query response message to the P2P application device, where the query response message carries the P2P traffic optimization service information queried by the query module 506.
- FIG. 5 The specific technical details of the device embodiment shown in FIG. 5 have been described in the above system embodiment, and are not described herein again.
- the illustration shown in Figure 5 is merely an example, and the various modules described therein may also be integrated into one or more units.
- FIG. 6 is a flowchart of a method for discovering a P2P traffic optimization service according to another embodiment of the present invention. As shown in FIG. 6, the method includes:
- 602-608 The same as 402-408 in the embodiment shown in FIG. 4, and details are not described herein again.
- the 610 Receive a registration message from the P2P application device, where the registration message carries information of the P2P application device; and stores information of the P2P application device.
- the information of the P2P application device may be the name and IP address of the P2P application device.
- 610 and 612 can be executed prior to 606.
- the specific technical details of the method embodiment shown in Fig. 6 have been described in the above system embodiment, and are not described herein again.
- another embodiment of the present invention further provides an apparatus for discovering a P2P traffic optimization service.
- the apparatus is based on the apparatus shown in FIG.
- the registration message carries the information of the P2P application device;
- the storage module 504 is further configured to store the information of the P2P application device; when the P2P traffic optimization service information stored in the storage module 504 changes
- the communication module 502 is further configured to notify the P2P application device of the changed P2P traffic optimization service information according to the stored information of the P2P application device.
- FIG. 7 is a flowchart of a method for discovering a P2P traffic optimization service according to still another embodiment of the present invention. As shown in FIG. 7, the method includes:
- the method may further include: sending a registration message to the service information registration device, where the registration message carries information of the P2P application device, for example, The name and IP address of the P2P application device;
- the P2P traffic optimization service information stored in the service information registration device changes, the P2P traffic optimization service information from the service information registration device is received.
- FIG. 8 is a simplified schematic diagram of an apparatus for discovering a P2P traffic optimization service in accordance with an embodiment of the present invention.
- the apparatus includes a first communication module 802 and a second communication module 804.
- the first communication module 802 is configured to send a query request message to the service information registration device, and receive a query response message from the service information registration device, where the query response message carries P2P traffic optimization service information.
- the second communication module 804 is configured to communicate with the P2P traffic optimization service device, and the P2P traffic optimization service device corresponds to the P2P traffic optimization service information.
- FIG. 8 shows For example only, the first communication modules 802 and 804 may be integrated into one unit.
- the first communication module 802 is further configured to send a registration message to the service information registration apparatus, where the registration message is carried.
- FIG. 9 is a flowchart of a method for discovering a P2P traffic optimization service according to still another embodiment of the present invention. As shown in FIG. 9, the method includes:
- FIG. 10 is a simplified schematic diagram of an apparatus for discovering a P2P traffic optimization service according to an embodiment of the present invention.
- the apparatus includes: a startup module 1002 and a communication module 1004.
- the startup module 1002 is configured to start the P2P traffic optimization service.
- the communication module 1004 is configured to send a registration message, where the registration message carries the P2P traffic optimization service information.
- FIG. 10 The specific technical details of the device embodiment shown in FIG. 10 have been described in the above system embodiment, and are not described herein again.
- the illustration shown in Fig. 10 is only an example, in which the startup module 1002 and the communication module 1004 can be integrated into one unit.
- Some of the steps in the embodiment of the present invention may be implemented by using software, and the corresponding software program may be stored in a readable storage medium, such as an optical disk or a hard disk.
- the discovery mechanism of the P2P traffic optimization service can enable the P2P application device to automatically discover the P2P traffic optimization service device, which is easy to implement, simple and efficient.
- the service information registration device can be distributed in a centralized or distributed manner according to actual conditions, and the implementation is flexible.
- the service information registration device may notify the P2P application device of the changed P2P traffic optimization service information, so that the fast update can be implemented. Reduce the amount of information transferred and easy to maintain.
- the solution provided by the embodiment of the present invention can meet the requirements of the network update speed, the service is continuously updated, and the application is endless.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Description
一种用于发现 P2P流量优化服务的方法、 装置和系统
本申请要求于 2009年 2月 27日提交中国专利局、 申请号为 200910105682.1、发明名称为"一种 用于发现 P2P流量优化服务的方法、装置和系统"的中国专利申请的优先权,其全部内容通过引用结 合在本申请中。
技术领域
本发明涉及通信领域, 尤其涉及一种用于发现 P2P流量优化服务的方法、 装置和系统。 发明背景
随着网络的发展, 人们对网络的需求, 尤其是对大容量信息, 如音乐、 视频文件的网络传输需 求不断增长。 P2P (Peer to Peer, 点对点)技术打破了传统 C/S (Client/Serve, 客户机和服务器) 结 构, 采用对等计算, 随机挑选对等点 (peer) , 从而提高传输性能。 但现有情形下, P2P应用装置 通常无法找到一个最佳的 peer序列, 导致性能下降, 以及过多的横跨域的流量。 这样一来, P2P应用 不但会占用大量的网络带宽, 并且往往不可控制, 大大占用了 ISP (Internet Service Provider, 网络服 务提供商) 的有限网络资源。 所以, P2P流量优化成为当今技术热点之一。
总体来说, P2P流量优化可以分为两大类, 一类是应用层技术, 也就是 P2P应用本身减少跨域流 量的技术; 另一类是层间合作技术,也就是 ISP与 P2P应用合作, P2P应用根据 ISP提供的信息进行 peer 选择, 从而进行流量优化, 例如减少跨域流量。 从长远考虑, 层间合作技术更具有优势和发展前景, 与此相关的一些技术研究如 P4P (Provider Portal for (P2P) Applications, P2P应用的供应商入口) 技术、 Oracle-based ISP-P2P (Oracle-based internet service provider-P2P, 基于 Oracle的网络服务提供 商-点对点) 合作、 IDIPS (ISP-Driven Informed Path Selection, ISP驱动的信息路径选择) 等不断展 开。 例如, P4P技术提出可以通过协调网络拓扑数据, ISP与 P2P应用合作共赢, 选择更优的 peer, 从 而提高网络路由效率。
IETF (The Internet Engineering Task Force, 互连网工程任务组)成立了 ALTO (Application-Layer Traffic Optimization, 应用层流量优化) 工作组, 希望提供一种通用的 ALTO服务, 可以提供一些信 息给 P2P应用或其他应用来进行比随机选择方式更好的 peer选择。 ALTO服务器通过收集、 分析网络 拓扑信息来优化 P2P资源的选择, 从而达到减少域间不必要的流量、合理利用网络带宽资源、加强对 P2P业务的管理等目的。若 P2P网络是分布式非结构化网络, 该 P2P网络中存在跟踪服务器, peer启动 P2P程序时需要向跟踪服务器请求 peer列表, 通过连接 ALTO服务器, 跟踪服务器可以获取网络拓扑 等信息用于优化 66 择, 返回优选的 peer列表。 若 P2P网络是分布式结构化 P2P网络, 该 P2P网络中 不存在跟踪服务器, peer启动 P2P程序时, 完成选择 peer列表, 通过连接 ALTO服务器, peer可以获取 网络拓扑等信息用于优化 peer¾择。 采用上述方案, 举例来说, 一个北京的用户选择 P2P资源时, 可 以优先和同城用户, 也就是北京的其他用户来实现文件片段的交换; 如果没有同城用户, 则扩展至 较远地区的用户, 例如和上海的用户来实现文件片段的交换, 必要情形下, 才会和很远地区的用户, 例如和国外的用户来实现文件片段的交换。通过 ALTO服务, 上述跟踪服务器或 peer还可以根据用户
的上行、 下载带宽进行综合判断, 以进行最有效的选择, 最大化提高整体交换的效率。
尽管各种层间合作技术的具体方案有所不同, 其共性都在于由 ISP向跟踪服务器或 peer提供一定 信息, 如网络拓扑等, 也就是说, ISP根据实际情况在自己的网络中部署相关的 P2P流量优化服务, 部署的粒度可以由 ISP决定, 举例来说, 可以根据 AS (Autonomous System, 自治系统) 范围进行部 署。 跟踪服务器或 peer进行 peer选择时, 首先需要连接各 ISP各 AS内提供 P2P流量优化服务的服务器 或主机, 例如 ALTO服务器。 这样一来, 如何获得各 ISP各 AS内提供 P2P流量优化服务的服务器或主 机的 IP地址成为一个必须解决的问题, 也就是说, 需要一种 P2P流量优化服务的发现机制, 把各个不 同 ISP网络内提供 P2P流量优化服务的服务器或主机的 IP地址通告给跟踪服务器或 peer。
目前, 可以用于发现 P2P流量优化服务的技术有如下两种: 一种是通过 ISP发送电子邮件给跟踪 服务器或 peer, 通告提供 P2P流量优化服务的服务器或主机的 IP地址, 这种实现机制虽然简单, 但效 率不高。另一种是采用人工方式在跟踪服务器或 peer的管理数据库中配置提供 P2P流量优化服务的服 务器或主机的 IP地址, 这种实现机制虽然简单, 但维护麻烦。 上述现有技术的可扩展性差, 无法满 足网络更新速度快, 服务不断更新, 应用层出不穷这类情形下的需求。 发明内容
本发明的目的是提供一种 P2P流量优化服务的发现机制, 高效快速地发现 P2P流量优化服务装 置, 更好地实现 P2P流量优化服务。
本发明的一个实施例提供了一种用于发现点对点 P2P流量优化服务的系统, 包括: P2P应用装 置、 P2P流量优化服务装置和服务信息注册装置;
所述 P2P流量优化服务装置用于向所述服务信息注册装置发送第一注册消息,所述第一注册消息 中携带 P2P流量优化服务信息, 所述 P2P流量优化服务信息与所述 P2P流量优化服务装置相对应; 所述服务信息注册装置用于存储所述 P2P流量优化服务信息;
所述 P2P应用装置用于向所述服务信息注册装置发送査询请求消息;
所述服务信息注册装置还用于向所述 P2P应用装置发送査询响应消息,所述査询响应消息中携带 所述 P2P流量优化服务信息;
所述 P2P应用装置还用于根据所述 P2P流量优化服务信息, 与所述 P2P流量优化服务装置进行通 信。
本发明的另一实施例提供了一种用于发现 P2P流量优化服务的方法, 包括:
接收来自 P2P流量优化服务装置的第一注册消息, 所述第一注册消息中携带 P2P流量优化服务信 息, 所述 P2P流量优化服务信息与所述 P2P流量优化服务装置相对应。
存储所述 P2P流量优化服务信息。
接收来自 P2P应用装置的査询请求消息。
向所述 P2P应用装置发送査询响应消息, 査询响应消息中携带所述 P2P流量优化服务信息。 本发明的又一实施例提供了一种用于发现 P2P流量优化服务的装置, 包括通信模块、 存储模块 和査询模块;
所述通信模块用于接收来自 P2P流量优化服务装置的第一注册消息, 所述第一注册消息中携带 P2P流量优化服务信息;
所述存储模块用于存储所述第一注册消息中携带的 P2P流量优化服务
息 Ϊ
所述通信模块还用于接收来自 P2P应用装置的査询请求消息;
所述査询模块用于査询 P2P流量优化服务信息;
所述通信模块还用于向 P2P应用装置发送査询响应消息,査询响应消息中携带所述査询模块査询 到的 P2P流量优化服务信息。
本发明的再一实施例提供了一种用于发现 P2P流量优化服务的方法, 包括:
向服务信息注册装置发送査询请求消息;
接收来自所述服务信息注册装置的査询响应消息,所述査询响应消息中携带 P2P流量优化服务信 息 Ϊ
与 P2P流量优化服务装置进行通信, 所述 P2P流量优化服务装置对应所述 P2P流量优化服务信息。 本发明的又一实施例提供了一种用于发现 P2P流量优化服务的装置, 包括第一通信模块和第二 通信模块;
所述第一通信模块用于向服务信息注册装置发送査询请求消息, 并接收来自所述服务信息注册 装置的査询响应消息, 所述査询响应消息中携带 P2P流量优化服务信息;
所述第二通信模块用于与 P2P流量优化服务装置进行通信, 所述 P2P流量优化服务装置对应所述 P2P流量优化服务信息。
本发明的一个实施例提供了一种用于发现 P2P流量优化服务的方法, 包括:
启动 P2P流量优化服务;
发送注册消息, 所述注册消息中携带 P2P流量优化服务信息。
本发明的又一个实施例提供了一种用于发现 P2P流量优化服务的装置, 包括启动模块和通信模 块;
所述启动模块用于启动 P2P流量优化服务;
所述通信模块用于在所述启动模块启动 P2P流量优化服务后,发送注册消息,所述注册消息中携 带 P2P流量优化服务信息。
本发明实施例中提供的 P2P流量优化服务的发现机制, 可以使得 P2P应用装置自动发现 P2P流量 优化服务装置, 容易实现, 简洁高效, 因此能够满足网络更新速度快, 服务不断更新, 应用层出不 穷这类情形下的需求。 附图简要说明
图 1为本发明一个实施例中用于发现 P2P流量优化服务的系统的简化示意图;
图 2为本发明另一个实施例中用于发现 P2P流量优化服务的系统的简化示意图;
图 3为本发明又一个实施例中用于发现 P2P流量优化服务的系统的简化示意图;
图 4为本发明一个实施例中用于发现 P2P流量优化服务的方法流程图;
图 5为本发明一个实施例中用于发现 P2P流量优化服务的装置简化示意图;
图 6为本发明另一个实施例中用于发现 P2P流量优化服务的方法流程图;
图 7为本发明又一个实施例中用于发现 P2P流量优化服务的方法流程图;
图 8为本发明一个实施例中用于发现 P2P流量优化服务的装置简化示意图;
图 9为本发明又一个实施例中用于发现 P2P流量优化服务的方法流程图;
图 10为本发明一个实施例中用于发现 P2P流量优化服务的装置简化示意图。 实施本发明的方式
下面结合附图和具体实施例展开详细说明。 但需要注意, 下面的这些实施例, 仅为帮助理解技 术方案所举的例子, 并不用于限定本发明。
图 1是本发明一个实施例中用于发现 P2P流量优化服务的系统的简化示意图,如图 1所示,该系统 包括: P2P应用装置 102、 P2P流量优化服务装置 104和服务信息注册装置 106。
其中, P2P流量优化服务装置 104向服务信息注册装置 106发送注册消息, 该注册消息中携带 P2P 流量优化服务信息, 该 P2P流量优化服务信息与 P2P流量优化服务装置 104相对应。 服务信息注册装 置 106存储该 P2P流量优化服务信息。
P2P应用装置 102向服务信息注册装置 106发送査询请求消息。 服务信息注册装置 106向 P2P应用 装置 102发送査询响应消息, 査询响应消息中携带上述 P2P流量优化服务信息。
P2P应用装置 102根据上述 P2P流量优化服务信息, 与 P2P流量优化服务装置 104进行通信。 举例 来说, P2P流量优化服务装置 104与 P2P应用装置 102进行特定的服务信息交互, 例如向 P2P应用装置 102发送网络拓扑、 带宽等信息。
举例来说, P2P应用装置 102是 P2P应用的设备, 例如分布式非结构化 P2P网络中的 Tracker (跟踪 服务器), 或无 Tracker†青况下分布式结构化 P2P网络中的 peer。举例来说, P2P流量优化服务装置 104 是提供 P2P流量优化服务的设备, 例如, ISP网络内的服务器或主机,其提供的 P2P流量优化服务可以 是 ALTO服务, 也可以是其他类型的流量优化服务。 举例来说, 服务信息注册装置 106可以是 DNS服 务器,也可以是 LDAP ( Lightweight Directory Access Protocol,轻量级目录访问协议)服务器,或 DHCP (Dynamic Host Configuration Protocol, 动态主机配置协议)服务器, 或能够实现存储、 査询功能的 其他实体。
图 1是简化示意图, 其中仅示出了一个 P2P应用装置、 一个 P2P流量优化服务装置和一个服务信 息注册装置。 在本发明实施例的系统中, P2P应用装置、 P2P流量优化服务装置和服务信息注册装置 分别可以存在两个或者更多个。
图 2是本发明另一个实施例中用于发现 P2P流量优化服务的系统的简化示意图。 图 2示出了三个 AS: AS202、 AS204和 AS206; 三个 P2P流量优化服务装置 212、 214和 216; 服务信息注册装置 220和 P2P应用装置 230。 其中 AS202和 AS204均位于 ISP1 (Internet Service Provider, 网络服务提供商) ; AS206位于 ISP2。 P2P流量优化服务装置 212为 AS202提供 P2P流量优化服务, P2P流量优化服务装置
214为 AS204提供 P2P流量优化服务, P2P流量优化服务装置 216为 AS206提供 P2P流量优化服务。 P2P 流量优化服务装置 212, 214和 216都采用发送注册消息的方式将 P2P流量优化服务信息发送到服务信 息注册装置 220, 也就是说, 该系统中的服务信息注册装置采用集中式架构。 服务信息注册装置 220 可以是由 ISP自身维护的具有存储和査询功能的设备,也可以是由可信第三方维护的具有存储和査询 功能的设备, 例如能够实现存储、 査询功能的服务器。
其中, P2P流量优化服务装置 212向服务信息注册装置 220发送注册消息, 该注册消息中携带 P2P 流量优化服务信息, 该 P2P流量优化服务信息与 P2P流量优化服务装置 212相对应。 同理, P2P流量优 化服务装置 214和 216也向服务信息注册装置 220发送注册消息。 举例来说, P2P流量优化服务信息可 以包括 P2P流量优化服务的名称和 P2P流量优化服务装置的 IP地址, 或者, 也可以包括 P2P流量优化 服务的名称、 P2P流量优化服务所属的 ISP的名称和 P2P流量优化服务装置的 IP地址。
服务信息注册装置 220存储接收到的 P2P流量优化服务信息。 举例来说, 可以采用列表方式进行 存储, 记录 P2P流量优化服务的名称与 P2P流量优化服务装置的 IP地址的映射关系, 如表 1所示, 或者 记录 P2P流量优化服务的名称、 P2P流量优化服务所属的 ISP的名称与 P2P流量优化服务装置的 IP地址 三者的映射关系, 如表 2所示。
表 1
P2P应用装置 230向服务信息注册装置 220发送査询请求消息。举例来说,该査询请求消息可以用 于査询服务信息注册装置 220中存储的所有 P2P流量优化服务信息, 或者, 也可以用于査询服务信息 注册装置 220中存储的部分 P2P流量优化服务信息, 例如査询请求消息中携带 P2P流量优化服务的名 称, 用于査询与该 P2P流量优化服务的名称相对应的 P2P流量优化服务信息。
服务信息注册装置 220向 P2P应用装置 230发送査询响应消息, 査询响应消息中携带 P2P流量优化 服务信息。 举例来说, 査询响应消息中携带的 P2P流量优化服务信息可以是服务信息注册装置 220中 存储的所有 P2P流量优化服务信息, 也可以是服务信息注册装置 220中存储的部分 P2P流量优化服务 信息, 例如当査询请求消息中携带 P2P流量优化服务的名称时, 査询响应消息中携带的 P2P流量优化 服务信息与该 P2P流量优化服务的名称相对应。 举例来说, P2P流量优化服务信息可以是 P2P流量优
化服务的名称和 P2P流量优化服务装置的 IP地址, 也可以是 P2P流量优化服务的名称、 P2P流量优化 服务所属的 ISP的名称和 P2P流量优化服务装置的 IP地址。
P2P应用装置 230根据 P2P流量优化服务信息, 与 P2P流量优化服务装置 212, 214, 216中的一个 或者多个的组合进行通信。
举例来说, 当 P2P应用装置 230是分布式非结构化 P2P网络中的跟踪服务器时, P2P应用装置 230 还可以向服务信息注册装置 220发送注册消息, 该注册消息中携带 P2P应用装置 230的信息, 例如 P2P 应用装置 230的名称和 IP地址。 服务信息注册装置 220可以存储 P2P应用装置 230的信息, 当服务信息 注册装置 220中存储的 P2P流量优化服务信息发生变化时, 根据存储的 P2P应用装置的信息向 P2P应用 装置 230通知变化后的 P2P流量优化服务信息。 这样可以高效地发现 P2P流量优化服务。
图 3是本发明又一个实施例中用于发现 P2P流量优化服务的系统的简化示意图。 图 3示出了三个
AS: AS302、 AS304和 AS306; 三个 P2P流量优化服务装置 312、 314和 316; 三个 DNS (Domain Name System, 域名系统)服务器 322、 326和 328; 以及 P2P应用装置 340。 其中 AS302和 AS304均位于 ISP1 ; AS306位于 ISP2。 P2P流量优化服务装置 312为 AS302提供 P2P流量优化服务, P2P流量优化服务装置 314为 8304提供?2?流量优化服务, P2P流量优化服务装置 316为 AS306提供 P2P流量优化服务。 DNS 服务器 322与 ISP1对应; DNS服务器 326与 ISP2对应; DNS服务器 328与 P2P应用装置 340对应。举例来 说, 还可以存在多级 DNS服务器, 例如 DNS服务器 330是 DNS服务器 322、 326和 328的上一级 DNS月艮 务器, 示例来说, DNS服务器 322存储的域名是 chinamobile.com, DNS服务器 326存储的域名是 chinaunicom.com, DNS服务器 328存储的域名是 chinatelecom.com, DNS服务器 330存储的域名是 .com。 图 3所示是两级 DNS服务器, 此处仅为示例, 也可以是三级或者更多级。 又举例来说, P2P应用装置 340对应的 DNS服务器 328可以与 DNS服务器 322是同一个。或者, P2P应用装置 340对应的 DNS服务器 328可以与 DNS服务器 326是同一个。
P2P流量优化服务装置 312向 DNS服务器 322发送注册消息, 该注册消息中携带 P2P流量优化服务 装置 312对应的 P2P流量优化服务信息; P2P流量优化服务装置 314向 DNS服务器 322发送注册消息, 该注册消息中携带 P2P流量优化服务装置 314对应的 P2P流量优化服务信息; P2P流量优化服务装置 316向 DNS服务器 326发送注册消息, 该注册消息中携带 P2P流量优化服务装置 316对应的 P2P流量优 化服务信息。 也就是说, 图 3所示系统中的服务信息注册采用分布式架构。
DNS服务器 322和 326均存储自身接收到的注册消息中携带的 P2P流量优化服务信息。
P2P应用装置 340向与其对应的 DNS服务器 328发送査询请求消息,该査询请求消息中携带域名系 统信息, 举例来说, 域名系统信息可以是域名, 例如 chinamobile.com。
DNS服务器 328根据上述域名系统信息, 在自身存储的 P2P流量优化服务信息中査询与上述域名 系统信息相对应的 P2P流量优化服务信息, 若査询不到, 则向上一级 DNS服务器 (图 3所示实施例中 是指 DNS服务器 330)中査询; 若査询到, 则向 P2P应用装置 340发送査询响应消息, 査询响应消息中 携带与上述域名系统信息相对应的 P2P流量优化服务信息。
P2P应用装置 340与査询响应消息中携带的 P2P流量优化服务信息所对应的 P2P流量优化服务装 置进行通信。
结合图 3示例, 以 P2P流量优化服务是 ALTO服务为例来说, 上述 DNS服务器存储的 P2P流量优化 服务信息可以是 ALTO服务与 P2P流量优化服务装置的映射关系, 可以采用 DNS服务器的 SRV RR (a Resource Recorder for specifying the location of services, 月艮务位置资源 i己录) 禾口 A RR (A host address Resource Recorder, 主机地址资源记录) 来存储, 具体格式可参照 RFC1034标准定义的 A RR格式和 RFC2782标准定义的 SRV RR格式。 每个 DNS的 SRV RR记录 ALTO服务名称与 P2P流量优化服务装置 名称的映射。 每个 ARR记录启动 ALTO服务的 P2P流量优化服务装置的名称和 IP地址信息的映射。
以 DNS322为例, 采用 DNS SRV和 A RR存储的 P2P流量优化服务信息如下例所示:
Alto.tcp.chinamobile.com. SRV 0 1 9 server 1.chinamobile.com.
SRV 0 3 9 server2.chinamobile.com.
Serverl A 170.30.29.28
Server2 A 170.30.56.36
如上例所示, 在 ISP1内, 举例来说 ISP1的域名为 chinamobile.com, 在两个 P2P流量优化服务装置 上均部署了 ALTO服务, 这两个 P2P流量优化服务装置分别是: IP地址为 170.30.29.28的 serverl , IP地 址为 170.30.56.36的 server2。
在 serverl上 TCP端口号 9上监听 ALTO服务的启动, 优先级设置为 0, 权值设置为 1 ; 在 server2上
TCP端口号 9上监听 ALTO服务的启动, 优先级设置为 0, 权值设置为 3。 上述设置中涉及的数值仅用 于示例,也可以设置其他的值; 此外, serverl和 2的优先级可以设置为不同,权值也可以设置为相同。
举例来说, 上述 P2P应用装置 340可以预先存储 ISP的域名, 例如采用列表的方式存储, 在发送査 询请求消息时, 将列表中存储的 ISP的域名封装成 DNS域名解析请求消息, 査询 DNS服务器内的 SRV RR和 A RR, 可以获得所有启动 P2P流量优化服务的服务器 /主机的 IP地址等信息。
上述图 3的示例中, 服务信息注册装置采用了 DNS服务器, 也可以采用 LDAP服务器或 DHCP月艮 务器, 或能够实现存储、 査询功能的其他实体; 并且, 可以是 ISP自身维护, 也可以是由可信第三方 维护。 以服务信息注册装置采用 LDAP服务器为例来说, 由于 LDAP目录以树状的层次结构来存储数 据,类似 DNS树,且类似 DNS存储的 P2P流量优化服务装置名称, LDAP目录记录的 DN (Distinguished Name, 标识名) 则用来读取单个记录, 以及回溯到树的顶部, 简言之, 采用 LDAP服务器作为服务 信息注册装置与上述图 3中的示例类似, 此处不再赘述。
图 4是本发明一个实施例中用于发现 P2P流量优化服务的方法流程图, 如图 4所示, 该方法包括: 402: 接收来自 P2P流量优化服务装置的注册消息, 该注册消息中携带 P2P流量优化服务信息。 404: 存储上述注册消息中携带的 P2P流量优化服务信息。
406: 接收来自 P2P应用装置的査询请求消息, 査询 P2P流量优化服务信息。
408: 向 P2P应用装置发送査询响应消息, 査询响应消息中携带 P2P流量优化服务信息。
图 4所示方法实施例的具体技术细节已在上述系统实施例中进行描述, 此处不再赘述。
图 5是本发明一个实施例中用于发现 P2P流量优化服务的装置简化示意图,如图 5所示,该装置包 括通信模块 502、存储模块 504和査询模块 506。其中, 通信模块 502用于接收来自 P2P流量优化服务装 置的注册消息, 该注册消息中携带 P2P流量优化服务信息。 存储模块 504用于存储上述注册消息中携
带的 P2P流量优化服务信息。 通信模块 502还用于接收来自 P2P应用装置的査询请求消息。 査询模块 506用于査询 P2P流量优化服务信息。 通信模块 502还用于向 P2P应用装置发送査询响应消息, 査询响 应消息中携带査询模块 506査询到的 P2P流量优化服务信息。
图 5所示装置实施例的具体技术细节已在上述系统实施例中进行描述, 此处不再赘述。 图 5所示 仅为示例, 其中描述的各个模块也可以集成为一个或多个单元。
图 6是本发明另一个实施例中用于发现 P2P流量优化服务的方法流程图,如图 6所示,该方法包括:
602-608: 与图 4所示实施例中的 402-408相同, 此处不再赘述。
610: 接收来自 P2P应用装置的注册消息, 该注册消息中携带 P2P应用装置的信息; 存储 P2P应用 装置的信息。 举例来说, P2P应用装置的信息可以是 P2P应用装置的名称和 IP地址。
612: 当 P2P流量优化服务信息发生变化时, 根据存储的 P2P应用装置的信息向 P2P应用装置通知 变化后的 P2P流量优化服务信息。
举例来说, 610及 612可以在 606之前执行。 图 6所示方法实施例的具体技术细节已在上述系统实 施例中进行描述, 此处不再赘述。
采用图 6所示实施例的方案, 可以实现高效的 P2P流量优化服务。
与图 6所示的方法实施例相对应, 本发明的另一实施例还提供了一种用于发现 P2P流量优化服务 的装置, 该装置在图 5所示装置的基础上, 通信模块 502还用于接收来自 P2P应用装置的注册消息, 该 注册消息中携带 P2P应用装置的信息; 存储模块 504还用于存储该 P2P应用装置的信息; 当存储模块 504中存储的 P2P流量优化服务信息发生变化时, 通信模块 502还用于根据存储的 P2P应用装置的信息 向 P2P应用装置通知变化后的 P2P流量优化服务信息。
图 7是本发明又一个实施例中用于发现 P2P流量优化服务的方法流程图,如图 7所示,该方法包括:
702、 向服务信息注册装置发送査询请求消息。
704、接收来自服务信息注册装置的査询响应消息,査询响应消息中携带 P2P流量优化服务信息。
706、与 P2P流量优化服务装置进行通信, P2P流量优化服务装置对应上述 P2P流量优化服务信息。 图 7所示方法实施例的具体技术细节已在上述系统实施例中进行描述, 此处不再赘述。
在本发明的另一个实施例中, 在上述图 7所示方法实施例的基础上, 该方法还可以包括: 向服务信息注册装置发送注册消息, 该注册消息中携带 P2P应用装置的信息, 例如 P2P应用装置 的名称和 IP地址;
当服务信息注册装置中存储的 P2P流量优化服务信息发生变化时,接收来自服务信息注册装置的 P2P流量优化服务信息。
图 8是本发明一个实施例中用于发现 P2P流量优化服务的装置简化示意图,如图 8所示,该装置包 括第一通信模块 802和第二通信模块 804。其中, 第一通信模块 802用于向服务信息注册装置发送査询 请求消息,并接收来自服务信息注册装置的査询响应消息,査询响应消息中携带 P2P流量优化服务信 息。 第二通信模块 804用于与 P2P流量优化服务装置进行通信, P2P流量优化服务装置对应上述 P2P流 量优化服务信息。
图 8所示装置实施例的具体技术细节已在上述系统实施例中进行描述, 此处不再赘述。 图 8所示
仅为示例, 其中第一通信模块 802和 804可以集成为一个单元。
在本发明的另一个实施例中,在上述图 8所示装置实施例的基础上,该装置中,第一通信模块 802 还可以用于向服务信息注册装置发送注册消息, 该注册消息中携带图 8所示装置的信息, 例如图 8所 示装置的名称和 IP地址。
图 9是本发明又一个实施例中用于发现 P2P流量优化服务的方法流程图,如图 9所示,该方法包括:
902、 启动 P2P流量优化服务;
904、 向服务信息注册装置发送注册消息, 该注册消息中携带 P2P流量优化服务信息。
图 9所示方法实施例的具体技术细节已在上述系统实施例中进行描述, 此处不再赘述。
图 10是本发明一个实施例中用于发现 P2P流量优化服务的装置简化示意图,如图 10所示,该装置 包括: 启动模块 1002和通信模块 1004。 其中, 启动模块 1002用于启动 P2P流量优化服务; 启动 P2P流 量优化服务后, 通信模块 1004用于发送注册消息, 该注册消息中携带 P2P流量优化服务信息。
图 10所示装置实施例的具体技术细节已在上述系统实施例中进行描述, 此处不再赘述。 图 10所 示仅为示例, 其中启动模块 1002和通信模块 1004可以集成为一个单元。
本发明实施例中的部分步骤, 可以利用软件实现, 相应的软件程序可以存储在可读取的存储介 质中, 如光盘或硬盘等。
本发明实施例中提供的 P2P流量优化服务的发现机制, 可以使得 P2P应用装置自动发现 P2P流量 优化服务装置, 容易实现, 简洁高效。 此外, 服务信息注册装置可根据实际情况分集中式或分布式 部署, 实施灵活。 并且, 本发明一些实施例中, 当新的 P2P流量优化服务启动时或服务发生变化时, 服务信息注册装置可以向 P2P应用装置通知变化后的 P2P流量优化服务信息, 因此可以实现快速更 新, 能够减少信息传输量, 易于维护。 采用本发明实施例提供的方案, 能够满足网络更新速度快, 服务不断更新, 应用层出不穷这类情形下的需求。
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉该 技术的人在本发明所揭露的技术范围内, 可轻易想到的变化或替换, 都应涵盖在本发明的保护范围 之内。
Claims
1、 一种用于发现点对点 P2P流量优化服务的系统, 其特征在于, 包括: P2P应用装置、 P2P流 量优化服务装置和服务信息注册装置;
所述 P2P流量优化服务装置用于向所述服务信息注册装置发送第一注册消息,所述第一注册消息 中携带 P2P流量优化服务信息, 所述 P2P流量优化服务信息与所述 P2P流量优化服务装置相对应; 所述服务信息注册装置用于存储所述 P2P流量优化服务信息;
所述 P2P应用装置用于向所述服务信息注册装置发送査询请求消息;
所述服务信息注册装置还用于向所述 P2P应用装置发送査询响应消息,所述査询响应消息中携带 所述 P2P流量优化服务信息;
所述 P2P应用装置还用于根据所述 P2P流量优化服务信息, 与所述 P2P流量优化服务装置进行通 信。
2、 如权利要求 1所述的系统, 其特征在于: 所述服务信息注册装置是域名系统服务器, 或者轻 量级目录访问协议服务器, 或者动态主机配置协议服务器;
所述 P2P流量优化服务装置中属于同一个服务提供商的 P2P流量优化服务装置向同一个服务信 息注册装置发送注册消息。
3、 如权利要求 2所述的系统, 所述服务信息注册装置是所述域名系统服务器时, 所述服务信息 注册装置是多级结构; 所述査询请求消息中携带域名系统信息, 所述 P2P应用装置对应的域名系统 服务器査询不到所述域名系统信息对应的 P2P流量优化服务信息,则向上一级域名系统服务器査询。
4、如权利要求 2所述的系统,所述 P2P流量优化服务信息采用域名系统服务器的服务位置资源 记录和主机地址资源记录进行存储。
5、 如权利要求 1所述的系统, 其特征在于:
所述 P2P应用装置是分布式非结构化 P2P网络中的跟踪服务器, 或分布式结构化 P2P网络中的 对等点;
所述 P2P流量优化服务装置是网络服务提供商 ISP网络内的服务器或主机。
6、 如权利要求 5所述的系统, 其特征在于, 当所述 P2P应用装置是分布式非结构化 P2P网络 中的跟踪服务器时,
所述 P2P应用装置还用于向所述服务信息注册装置发送第二注册消息, 所述第二注册消息中携 带 P2P应用装置的信息;
所述服务信息注册装置还用于存储所述 P2P应用装置的信息, 当所述服务信息注册装置存储的 P2P流量优化服务信息发生变化时, 根据所述 P2P应用装置的信息向所述 P2P应用装置通知变化后 的 P2P流量优化服务信息。
7、 如权利要求 6所述的系统, 所述 P2P应用装置的信息包括所述 P2P应用装置的名称和 IP地 址。
8、 如权利要求 1所述的系统, 其特征在于: 所述 P2P流量优化服务装置为两个或两个以上, 所 述服务信息注册装置为一个, 所述服务信息注册装置是能够实现存储、 査询功能的服务器。
9、 如权利要求 1或 8所述的系统, 所述 P2P流量优化服务信息包括 P2P流量优化服务的名称 和 P2P流量优化服务装置的 IP地址, 或者, 所述 P2P流量优化服务信息包括 P2P流量优化服务的 名称、 P2P流量优化服务所属的 ISP的名称和 P2P流量优化服务装置的 IP地址。
10、 一种用于发现 P2P流量优化服务的方法, 其特征在于, 包括:
接收来自 P2P流量优化服务装置的第一注册消息, 所述第一注册消息中携带 P2P流量优化服务信 息, 所述 P2P流量优化服务信息与所述 P2P流量优化服务装置相对应;
存储所述 P2P流量优化服务信息;
接收来自 P2P应用装置的査询请求消息;
向所述 P2P应用装置发送査询响应消息, 査询响应消息中携带所述 P2P流量优化服务信息。
11、 如权利要求 10所述的方法, 其特征在于, 还包括:
接收来自所述 P2P应用装置的第二注册消息, 所述第二注册消息中携带所述 P2P应用装置的信 息 ΐ
存储所述 Ρ2Ρ应用装置的信息;
当存储的 Ρ2Ρ流量优化服务信息发生变化时, 根据所述 Ρ2Ρ应用装置的信息向所述 Ρ2Ρ应用装 置通知变化后的 Ρ2Ρ流量优化服务信息。
12、 一种用于发现 Ρ2Ρ流量优化服务的装置, 其特征在于, 包括通信模块、 存储模块和査询模 块;
所述通信模块用于接收来自 Ρ2Ρ流量优化服务装置的第一注册消息, 所述第一注册消息中携带 Ρ2Ρ流量优化服务信息;
所述存储模块用于存储所述第一注册消息中携带的 Ρ2Ρ流量优化服务信息;
所述通信模块还用于接收来自 Ρ2Ρ应用装置的査询请求消息;
所述査询模块用于査询 Ρ2Ρ流量优化服务信息;
所述通信模块还用于向 Ρ2Ρ应用装置发送査询响应消息, 査询响应消息中携带所述査询模块査 询到的 Ρ2Ρ流量优化服务信息。
13、如权利要求 12所述的装置, 其特征在于, 所述通信模块还用于接收来自所述 Ρ2Ρ应用装置 的第二注册消息, 所述第二注册消息中携带所述 Ρ2Ρ应用装置的信息;
所述存储模块还用于所述 Ρ2Ρ应用装置的信息;
当所述存储模块中存储的 Ρ2Ρ流量优化服务信息发生变化时,所述通信模块还用于根据所述 Ρ2Ρ 应用装置的信息向所述 Ρ2Ρ应用装置通知变化后的 Ρ2Ρ流量优化服务信息。
14、 一种用于发现 Ρ2Ρ流量优化服务的方法, 其特征在于, 包括:
向服务信息注册装置发送査询请求消息;
接收来自所述服务信息注册装置的査询响应消息,所述査询响应消息中携带 Ρ2Ρ流量优化服务信 息 Ϊ
与 Ρ2Ρ流量优化服务装置进行通信, 所述 Ρ2Ρ流量优化服务装置对应所述 Ρ2Ρ流量优化服务信 息。
15、 如权利要求 14所述的方法, 其特征在于, 还包括:
向所述服务信息注册装置发送注册消息, 所述注册消息中携带 P2P应用装置的信息。
16、一种用于发现 P2P流量优化服务的装置, 其特征在于, 包括第一通信模块和第二通信模块; 所述第一通信模块用于向服务信息注册装置发送査询请求消息, 并接收来自所述服务信息注册 装置的査询响应消息, 所述査询响应消息中携带 P2P流量优化服务信息;
所述第二通信模块用于与 P2P流量优化服务装置进行通信, 所述 P2P流量优化服务装置对应所 述 P2P流量优化服务信息。
17、 如权利要求 16所述的装置, 其特征在于, 所述第一通信模块还用于向所述服务信息注册装 置发送注册消息, 所述注册消息中携带用于发现 P2P流量优化服务的装置的信息。
18、 一种用于发现 P2P流量优化服务的方法, 其特征在于, 包括:
启动 P2P流量优化服务;
向服务信息注册装置发送注册消息, 所述注册消息中携带 P2P流量优化服务信息。
19、 一种用于发现 P2P流量优化服务的装置, 其特征在于, 包括启动模块和通信模块; 所述启动模块用于启动 P2P流量优化服务;
所述通信模块用于在所述启动模块启动 P2P流量优化服务后,发送注册消息,所述注册消息中携 带 P2P流量优化服务信息。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910105682.1 | 2009-02-27 | ||
CN 200910105682 CN101820351B (zh) | 2009-02-27 | 2009-02-27 | 一种用于发现p2p流量优化服务的方法、装置和系统 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2010096989A1 true WO2010096989A1 (zh) | 2010-09-02 |
Family
ID=42655306
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2009/075292 WO2010096989A1 (zh) | 2009-02-27 | 2009-12-03 | 一种用于发现p2p流量优化服务的方法、装置和系统 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101820351B (zh) |
WO (1) | WO2010096989A1 (zh) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2502400B1 (en) | 2010-07-23 | 2018-04-11 | Nec Corporation | Method for operating a network and a network |
CN102404796B (zh) * | 2011-12-27 | 2014-03-19 | 中国电信股份有限公司 | 一种流量控制的方法和系统 |
CN102546820B (zh) * | 2012-02-16 | 2015-12-16 | 华为技术有限公司 | 传输优化方法、映射信息的存储方法、装置及系统 |
CN103312749B (zh) * | 2012-03-13 | 2016-12-14 | 华为技术有限公司 | 一种应用层流量优化服务器的发现方法、设备及系统 |
CN102780775B (zh) * | 2012-07-19 | 2017-11-07 | 中兴通讯股份有限公司 | 一种实现应用层传输优化的方法及系统 |
CN102780776B (zh) * | 2012-07-19 | 2018-03-27 | 中兴通讯股份有限公司 | 应用层传输优化服务器发现方法及装置 |
US10091243B2 (en) * | 2016-02-24 | 2018-10-02 | Qualcomm Incorporated | Apparatus and method for securely connecting to a remote server |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030177246A1 (en) * | 2002-03-15 | 2003-09-18 | International Business Machines Corporation | Centrally enhanced peer-to-peer resource sharing method and apparatus |
CN1663222A (zh) * | 2002-06-14 | 2005-08-31 | 法国电信有限公司 | 用于查询和/或更新dns服务器和/或目录的系统 |
CN1756241A (zh) * | 2004-10-01 | 2006-04-05 | 中兴通讯股份有限公司 | 一种分布式环境中消息交换的实现方法及其装置 |
CN1988449A (zh) * | 2005-12-20 | 2007-06-27 | 中国科学院声学研究所 | 一种基于网络信息的数据分布/获取方法 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100433689C (zh) * | 2006-09-13 | 2008-11-12 | 华中科技大学 | 一种流媒体直播系统中控制流的树形网络组织方法 |
-
2009
- 2009-02-27 CN CN 200910105682 patent/CN101820351B/zh active Active
- 2009-12-03 WO PCT/CN2009/075292 patent/WO2010096989A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030177246A1 (en) * | 2002-03-15 | 2003-09-18 | International Business Machines Corporation | Centrally enhanced peer-to-peer resource sharing method and apparatus |
CN1663222A (zh) * | 2002-06-14 | 2005-08-31 | 法国电信有限公司 | 用于查询和/或更新dns服务器和/或目录的系统 |
CN1756241A (zh) * | 2004-10-01 | 2006-04-05 | 中兴通讯股份有限公司 | 一种分布式环境中消息交换的实现方法及其装置 |
CN1988449A (zh) * | 2005-12-20 | 2007-06-27 | 中国科学院声学研究所 | 一种基于网络信息的数据分布/获取方法 |
Also Published As
Publication number | Publication date |
---|---|
CN101820351B (zh) | 2013-08-07 |
CN101820351A (zh) | 2010-09-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
USRE49943E1 (en) | System and method for a context layer switch | |
US7978631B1 (en) | Method and apparatus for encoding and mapping of virtual addresses for clusters | |
EP2127224B1 (en) | Private virtual lan spanning a public network for connection of arbitrary hosts | |
JP6047229B2 (ja) | 情報中心ネットワークにおける名前ベースの近隣探索及びマルチホップサービス探索 | |
JP4808150B2 (ja) | テレコミュニケーションサービスへの汎用アクセスのための一体化されたディレクトリ及び存在状況システム | |
WO2010096989A1 (zh) | 一种用于发现p2p流量优化服务的方法、装置和系统 | |
EP2432187B1 (en) | Method, system and proxy node for peer-to-peer (p2p) streaming media data distribution | |
WO2011150830A1 (zh) | 获取内容的方法、节点及内容网络 | |
EP2922321B1 (en) | 6lowpan network-based service discovery | |
US20120158912A1 (en) | Energy-efficient content caching with custodian-based routing in content-centric networks | |
EP2069952A2 (en) | Virtual peer for a content sharing system | |
WO2008116401A1 (fr) | Procédé, système et nœuds pour partage de contenu p2p | |
WO2008034353A1 (fr) | Procédé, système et dispositif permettant d'établir une connexion entre homologues dans un réseau d'homologues | |
WO2010105505A1 (zh) | 网络上请求资源的位置信息的方法、用户节点和服务器 | |
WO2014000558A1 (zh) | 一种cdn路由实现方法和系统 | |
US20080189351A1 (en) | Network system which performs peer-to-peer communication | |
WO2011144152A1 (zh) | 信息提供方法及家庭网关、家庭网络系统 | |
JP2015197919A (ja) | コンテンツ中心ネットワークにおける動的名称設定のためのシステム及び方法 | |
WO2011041970A1 (zh) | 一种支持数据报文主动推送能力的实现方法及系统 | |
WO2009000181A1 (fr) | Procédé servant à acquérir des ressources transversales, un nœud pair à pair et un système pair à pair | |
Jung et al. | IDNet: beyond all‐IP network | |
Dong et al. | On the cache-and-forward network architecture | |
EP2433412B1 (en) | Limiting storage messages in peer to peer network | |
WO2009086763A1 (zh) | 一种源切换的方法、系统和设备 | |
WO2009086764A1 (zh) | 在网络上提供服务的方法、网络服务实体和网络系统 |
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: 09840657 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: 09840657 Country of ref document: EP Kind code of ref document: A1 |