CN102088399B - Flow control method of peer-to-peer (P2P) network, routing equipment and communication system - Google Patents

Flow control method of peer-to-peer (P2P) network, routing equipment and communication system Download PDF

Info

Publication number
CN102088399B
CN102088399B CN2009102520813A CN200910252081A CN102088399B CN 102088399 B CN102088399 B CN 102088399B CN 2009102520813 A CN2009102520813 A CN 2009102520813A CN 200910252081 A CN200910252081 A CN 200910252081A CN 102088399 B CN102088399 B CN 102088399B
Authority
CN
China
Prior art keywords
node
resource
local
user
response message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2009102520813A
Other languages
Chinese (zh)
Other versions
CN102088399A (en
Inventor
滕新东
曹正平
李晋
梅强
彭丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lianshi Haifu Weihai Intelligent Technology Co ltd
Suzhou Yudeshui Electric Technology Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2009102520813A priority Critical patent/CN102088399B/en
Publication of CN102088399A publication Critical patent/CN102088399A/en
Application granted granted Critical
Publication of CN102088399B publication Critical patent/CN102088399B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a flow control method of a peer-to-peer (P2P) network. The method comprises the following steps of: receiving a network message and extracting a P2P protocol message in the network message; judging whether the P2P protocol message is an acknowledgement 1 (ACK1) message required to be acquired by a user or not; if the P2P protocol message is the ACK1 message required to be acquired by the user, optimizing a P2P node list to ensure that a local P2P node owning a P2P resource is arranged in front of a nonlocal P2P node owning a P2P resource; and encapsulating the optimized P2P node list into a new ACK2 message and transmitting the ACK2 message to the user, so that the user can establish connection with a corresponding P2P node according to the optimized P2P node. By adopting the method, P2P flow is changed into ordered from confused, the bandwidth of a local network is effectively utilized, the outlet bandwidth of a metropolitan area network is reduced, and closing costs among operators are saved.

Description

The flow control methods of peer-to-peer network, routing device and communication system
Technical field
The present invention relates to the metropolitan area network field, be specifically related to flow control methods, routing device and the communication system of peer-to-peer network.
Background technology
Peer-to-peer network (P2P, Peer to Peer) is a kind of client/server (C/S, Client/Server) network model of model of being different from.Under the P2P network model, any Peer in two P2P nodes (Peer) be client be again server, connect mutually between the two and transmit data, and, same Peer can and a plurality of Peer between set up peer-to-peer.Peer can be to any possible Peer request resource wherein in the P2P network, and therefore, any Peer can greatly utilize Internet resources.Have above characteristics just because of the P2P network, the Peer in the P2P network can seize and utilizes Internet resources without end, makes some application based on P2P unrestrictedly take the network bandwidth and is difficult to identification and control.For reduce the network size that this situation brings such as operator increasing, can not get any income and other normal use (like normal online) because insufficient bandwidth causes degradation adverse effect under the quality; Operator manages the flow of P2P network is controlled and optimum management; So that when satisfying the P2P application demand, reduce bandwidth occupancy, especially taking again as best one can to the metropolitan area network outlet bandwidth.
In the prior art; A kind of scheme that the flow of P2P network is controlled with optimum management is: buffer server (Cache servers) is set in this locality; Obtain and preserve P2P resource (for example popular file) by Cache servers from external network; Meanwhile, Cache servers start P2P to be used, and joins in the P2P network as a P2P node own.So, when the user of local P2P network need obtain the P2P resource, can set up P2P with Cache servers and be connected, corresponding P2P resource sent to the user by Cache servers.
Inventor of the present invention is in middle discovery that such scheme is studied for a long period of time, prior art waste bandwidth resource.
Summary of the invention
The embodiment of the invention provides flow control methods, routing device and the communication system of peer-to-peer network, is used to solve the problem of bandwidth resources waste.
A kind of flow control methods of peer-to-peer network comprises: receive network message and extract P2P protocol massages wherein; Judge whether said P2P protocol massages is the response message ACK of user's acquisition request P2P resource 1, said response message ACK 1Comprise the P2P node listing, the P2P node in the said P2P node listing has said P2P resource; If said P2P protocol massages is the response message ACK of user's acquisition request P2P resource 1, then said P2P node listing is optimized so that have the local P2P node of said P2P resource and come before the non-local P2P node that has said P2P resource; Be packaged into new response message ACK with said through the P2P node listing of optimizing 2After be sent to said user so that the P2P node listing of said user after according to said optimization connects with corresponding P2P node.
A kind of routing device comprises: P2P protocol massages extraction module is used to receive network message and extracts P2P protocol massages wherein; Judge module is used to judge whether the P2P protocol massages that said P2P protocol massages extraction module extracts is the response message ACK of user's acquisition request P2P resource 1, said response message ACK 1Comprise the P2P node listing, the P2P node in the said P2P node listing has said P2P resource; Optimal module is used for the response message ACK that said P2P protocol massages is user's acquisition request P2P resource 1The time, said P2P node listing is optimized so that have the local P2P node of said P2P resource and come before the non-local P2P node that has said P2P resource; Package module is used for being packaged into new response message ACK with said through the P2P node listing of optimizing 2After be sent to said user so that said user connects with corresponding P2P node.
A kind of communication system; Comprise routing device and server; Said routing device comprises P2P protocol massages extraction module, judge module, optimal module and package module; Said P2P protocol massages extraction module is used to receive network message and the extraction P2P protocol massages wherein that said server sends; Said judge module is used to judge whether the said P2P protocol massages that said P2P protocol massages extraction module extracts is the response message ACK of user's acquisition request P2P resource 1, said response message ACK 1Comprise the P2P node listing, the P2P node in the said P2P node listing has said P2P resource; Said optimal module is used for judge module and judges that said P2P protocol massages is the response message ACK of user's acquisition request P2P resource 1The time, said P2P node listing is optimized, come before the non-local P2P node that has said P2P resource so that have the local P2P node of said P2P resource; Said package module is used for being packaged into new response message ACK with said through the P2P node listing of optimizing 2After be sent to said user so that said user connects with corresponding P2P node; Server is used to receive the user and obtains the request of P2P resource and send response message to the said routing device of described request.
The embodiment of the invention is through extracting the P2P protocol massages and judging that said P2P protocol massages is the response message ACK of user's acquisition request P2P resource 1After, the P2P node that has said P2P resource is carried out prioritization and is packaged into new response message ACK according to ranking results 2Thereby, with said response message ACK 2Be sent to said user so that said user connects with corresponding P2P node.The P2P node that has the P2P resource is optimized makes local P2P resource node come to have and realize the localization of P2P network traffics before the non-local P2P resource node of said P2P resource, make the P2P flow become orderly by confusion.Further, effectively utilize the local network bandwidth, reduce the metropolitan area network outlet bandwidth, make the P2P network traffics reduce, and closing the account between the operator also saved in the minimizing of flow between net the bandwidth demand of backbone network.
Description of drawings
Fig. 1 is the flow control methods basic procedure sketch map of a kind of peer-to-peer network of providing of the embodiment of the invention one;
Fig. 2 is a kind of routing device basic logical structure sketch map that the embodiment of the invention two provides;
Fig. 3 is a kind of communication system basic logical structure sketch map that the embodiment of the invention three provides.
Embodiment
The embodiment of the invention provides a kind of flow control methods of peer-to-peer network; After judging that the P2P protocol massages is the response message ACK1 of user's acquisition request P2P resource of P2P network, the P2P node with said P2P resource is carried out prioritization and is packaged into new response message ACK according to ranking results 2, with said response message ACK 2Be sent to said user so that said user connects with corresponding P2P node.The embodiment of the invention also provides corresponding routing device and a kind of communication system.Below be elaborated respectively.
Please refer to Fig. 1, the flow control methods basic procedure sketch map of a kind of peer-to-peer network that the embodiment of the invention one provides mainly comprises:
Step S101 receives network message and extracts P2P protocol massages wherein.
In embodiments of the present invention; Can adopt deep-packet detection (DPI; Deep Packet Inspect) message that receives is carried out degree of depth identification, through resolving seven layers of heading or 7 layers of message content and compare, and then from message, extract the P2P protocol massages according to the tagged word of P2P agreement.This is extracted the P2P protocol massages rather than all messages is transferred to correlation module handle and can reduce the workload that takies and reduce system to system resource.
Step S102 judges whether said P2P protocol massages is the response message ACK of user's acquisition request P2P resource 1
Generally speaking; If the user in the P2P network (promptly; The Peer of P2P network) need obtain P2P resource (for example, file in download etc.), it at first sends a request of obtaining the P2P resource; This request can be directly to be sent to P2P server (can think a special joint in the P2P network); Also can be that message mechanism through P2P diffuses to a certain relevant P2P node (for example, the super node in the P2P network) in the P2P network, receive that the node of request can feed back a response message ACK 1Whether therefore, need further analyze the P2P protocol massages that from message, extracts, that is, be the response message ACK of user's acquisition request P2P resource of P2P network through the bed-by-bed analysis of protocol stack being judged the P2P protocol massages 1
Step S 103, if said P2P protocol massages is the response message ACK of user's acquisition request P2P resource 1, then said P2P node listing is optimized so that have the local P2P node of said P2P resource and come before the non-local P2P node that has said P2P resource.
As previously mentioned, receive that the node that the user obtains the request of P2P resource finally can feed back a response message ACK 1, response message ACK 1Comprise the P2P node listing, P2P node wherein is the P2P node that has the P2P resource of user's acquisition request, certainly, and response message ACK 1At least also the resource information that comprises these P2P resources, for example, P2P resource identification or P2P resource name etc.Receive this response message ACK 1Can be an intermediate node in the P2P network, for example, routing device.
Usually, any P2P node in the P2P network can be issued the relevant information of P2P resource, wherein comprises the resource identification of P2P resource and P2P IP addresses of nodes of this P2P resource of issue or the like.In embodiments of the present invention; Can generate P2P Resource Properties information bank, these P2P Resource Properties can comprise the P2P resource and have the resource identification of the mapping relations of the P2P node of this P2P resource, the P2P IP addresses of nodes that has the P2P resource, P2P resource and/or frequency that the P2P resource is visited or the like.So, receive response message ACK 1Intermediate node can be according to response message ACK 1The resource information of middle P2P resource (for example; P2P resource identification or P2P resource name etc.); Attribute information through this P2P resource in the inquiry P2P Resource Properties information bank obtains the P2P nodal information that has this P2P resource (the P2P IP addresses of nodes etc. that for example, has this P2P resource).
In embodiments of the present invention; (for example can generate network topological diagram; Topological tree) and communication between domains cost bivariate table, comprised in the network topological diagram zone of each P2P node with respect to the communications cost of local zone (the user region of acquisition request P2P resource), each P2P node with respect to the user's communications cost that sends acquisition request P2P resource or each P2P node communications cost with respect to P2P node in the local network (user of acquisition request P2P resource).Wherein, Network topological diagram can be according to static information, the for example generations such as mutual exclusion network segment information, IP address, cross-domain information and priority that provide of operator, and the network topological diagram that this mode generates can satisfy the specific demand of localization; And; Because network topological diagram is to generate according to static information, therefore, can strictness distinguish local P2P node and non-local P2P node according to network topological diagram; Network topological diagram also can be according to dynamic routing protocol; IGRP (IGP for example; Internal Gateway Protocol) or Exterior Gateway Protocol (EGP; Generations such as dynamic routing that External Gateway Protocol) provides and communication between domains cost, this mode according to dynamic routing protocol generation network topological diagram can guarantee the real-time change of path priority and the maintenance workload that reduces static configuration, and; P2P node by in the network topological diagram of IGP generation is local P2P node, is non-local P2P node by the P2P node in the network topological diagram of EGP generation.
Behind the P2P nodal information that obtains the P2P resource that has user's acquisition request; Can further be optimized the P2P node listing; In embodiments of the present invention, can or be optimized the P2P node listing through following dual mode simultaneously through a kind of in the following dual mode.
Mode one, topology Network Based is optimized the P2P node listing, comprising:
S1, the area information of each P2P node is with the zone that the obtains said P2P node user's communications cost with respect to acquisition request P2P resource in the requester network topological diagram;
In embodiments of the present invention; The area information of each P2P node is with the zone that obtains said P2P node during with respect to the communications cost of local P2P node in the requester network topological diagram, can pay close attention to network topological diagram and be static that generate, dynamically generate or both combine and generate.
S2 resequences to local P2P node that has said P2P resource in the said P2P node listing and the non-local P2P node that has said P2P resource according to said communications cost, so that said local P2P node comes before the said non-local P2P node.
As previously mentioned; Because can be (for example according to the information in the network topological diagram that generates by static information; Each P2P IP addresses of nodes etc.) or network topological diagram be to generate or generate by IGP just to distinguish local P2P node and non-local P2P node by EGP; Therefore, can be not difficult to distinguish local P2P node and the non-local P2P node that has identical P2P resource in the P2P node listing.
Mode two is optimized the P2P node listing based on the P2P resource information, comprising:
S1 judges whether have the non-local P2P node that has identical P2P resource with local P2P node in the P2P node listing according to the P2P nodal information.As previously mentioned; Because the attribute information through this P2P resource in the inquiry P2P Resource Properties information bank can obtain the P2P nodal information that has this P2P resource; Therefore, judge whether have the non-local P2P node that has identical P2P resource with local P2P node in the P2P node listing according to the P2P nodal information.
S2 if having, then directly substitutes in the P2P node listing the non-local P2P node that has identical P2P resource with local P2P node with local P2P node.
Likewise; Because can be (for example according to the information in the network topological diagram that generates by static information; Each P2P IP addresses of nodes etc.) or according to network topological diagram is to be generated or generated by EGP by IGP just to distinguish local P2P node and non-local P2P node; Therefore; Can be not difficult to distinguish local P2P node and the non-local P2P node that has identical P2P resource in the P2P node listing, directly local P2P node substituted in the P2P node listing the non-local P2P node that has identical P2P resource with local P2P node.
Because local P2P node is lower than the user's communications cost of non-local P2P node and acquisition request P2P resource with the user's communications cost of acquisition request P2P resource; Therefore; The user priority of acquisition request P2P resource connects with the local P2P node that has said P2P resource, obtains the P2P resource from local P2P node.
Optimize replenishing of P2P node listing modes as above-mentioned two kinds, when existing a plurality of local P2P nodes to have the P2P resource of user's acquisition request, then the P2P node listing be optimized also and comprise:
Compare each local P2P node and said user's communications cost respectively; Will with the low local P2P node of said user's communications cost come with the high local P2P node of said user's communications cost before; Ordering connects at preceding local P2P node in the user priority of acquisition request P2P resource and the P2P node listing, therefrom obtains the P2P resource.
Step S104 is packaged into new response message ACK with said through the P2P node listing of optimizing 2After be sent to said user so that the P2P node listing of said user after according to said optimization connects with corresponding P2P node.
In the present embodiment; Can response message ACK2 integral body be sent to the user that described request is obtained the P2P resource; Perhaps; The P2P node sequence is set up P2P and is connected in the P2P node listing that the user who considers acquisition request P2P resource not necessarily sends over according to integral body sometimes fully, in the present embodiment, also can response message ACK2 be split as a plurality of response messages and be sent to the user that described request is obtained the P2P resource; Wherein, the response message that comprises said local P2P node listing sends prior to the response message that comprises said non-local P2P node listing.Afterwards, the user sets up P2P with corresponding P2P node and is connected, and obtains the P2P resource.
Need to prove; Because P2P node (Peer) difference that different routing devices is hung down in the same local network; For the P2P Resource Properties information in the same local network is consistent, in embodiments of the present invention, can other P2P Resource Properties information banks in P2P Resource Properties information bank and the same local network be carried out synchronously; Specifically can be: connect through between routing device, setting up reliable TCP; The operation proprietary protocol afterwards, carries out P2P Resource Properties information through proprietary protocol alternately between routing device.
In addition; Can also be according to monitoring result to P2P Resource Properties information bank; Delete visit in the certain hour, renewal or the lower P2P Resource Properties information of usage frequency in the said P2P Resource Properties information bank; Can reduce these P2P Resource Properties information like this to the taking of storage resources, improve operating factor of memory space.
Can know that from the invention described above embodiment the present invention need not dispose high performance Cache servers, therefore seldom take the resource of local device.Through only preserving P2P Resource Properties information (rather than P2P resource itself) and making local P2P resource node come to have before the non-local P2P resource node of said P2P resource to being optimized; Realized the localization of P2P network traffics, made the P2P network traffics of localization become orderly by confusion.Further, effectively utilize the local network bandwidth, reduce the metropolitan area network outlet bandwidth, make the P2P network traffics reduce, and closing the account between the operator also saved in the minimizing of flow between net the bandwidth demand of backbone network.
See also Fig. 2, a kind of routing device basic logical structure sketch map that the embodiment of the invention two provides.For the ease of explanation, only show the part relevant with the embodiment of the invention.The functional module that this routing device comprises can be software module, hardware module or the software and hardware module that combines, and below describes in detail.
P2P protocol massages extraction module 21 is used to receive network message and extracts P2P protocol massages wherein.
Finally can feed back a response message ACK owing to receive the node that the user obtains the request of P2P resource 1, response message ACK 1Comprise the P2P node listing, P2P node wherein is the P2P node that has the P2P resource of user's acquisition request, certainly, and response message ACK 1At least also the resource information that comprises these P2P resources, for example, P2P resource identification or P2P resource name etc.The intermediate node of P2P network, for example, routing device will receive response message ACK 1Adopt deep-packet detection (DPI by P2P protocol massages extraction module 21; Deep Packet Inspect) message that receives is carried out degree of depth identification; Through resolving seven layers of heading or 7 layers of message content and compare, and then from message, extract the P2P protocol massages according to the tagged word of P2P agreement.This is extracted the P2P protocol massages rather than all messages is transferred to correlation module handle and can reduce the workload that takies and reduce system to system resource.
Judge module 22 is used to judge whether the P2P protocol massages that said P2P protocol massages extraction module 21 extracts is the response message ACK of user's acquisition request P2P resource 1, that is, the P2P protocol massages that 22 pairs of P2P protocol massages of judge module extraction module 21 extracts from message further carries out the bed-by-bed analysis of protocol stack, thereby judges whether the P2P protocol massages is the response message ACK of user's acquisition request P2P resource of P2P network 1
Optimal module 23 is used for said judge module 22 and judges that the P2P protocol massages is the response message ACK of user's acquisition request P2P resource 1In time, be optimized said P2P node listing so that have the local P2P node of said P2P resource and come before the non-local P2P node that has said P2P resource, and it comprises acquiring unit 231 and sequencing unit 232.
Acquiring unit 231 is used to obtain the local P2P nodal information that has said P2P resource, and wherein, the user that said local P2P node and described request are obtained the P2P resource is in same local network;
Usually, any P2P node in the P2P network can be issued the relevant information of P2P resource, wherein comprises the resource identification of P2P resource and P2P IP addresses of nodes of this P2P resource of issue or the like.In embodiments of the present invention; Can generate P2P Resource Properties information bank 209, these P2P Resource Properties can comprise the P2P resource and have the resource identification of the mapping relations of the P2P node of this P2P resource, the P2P IP addresses of nodes that has the P2P resource, P2P resource and/or frequency that the P2P resource is visited or the like.So, receive response message ACK when routing device 1The time, can be according to response message ACK 1The resource information of middle P2P resource (for example; P2P resource identification or P2P resource name etc.); The attribute information of acquiring unit 231 through this P2P resource in the inquiry P2P Resource Properties information bank 209 obtains the P2P nodal information that has this P2P resource (the P2P IP addresses of nodes etc. that for example, has this P2P resource).
In embodiments of the present invention; (for example can generate network topological diagram; Topological tree) and communication between domains cost bivariate table, comprised in the network topological diagram zone of each P2P node with respect to the communications cost of local zone (the user region of acquisition request P2P resource), each P2P node with respect to the user's communications cost that sends acquisition request P2P resource or each P2P node communications cost with respect to P2P node in the local network (user of acquisition request P2P resource).Wherein, Network topological diagram can be according to static information, the for example generations such as mutual exclusion network segment information, IP address, cross-domain information and priority that provide of operator, and the network topological diagram that this mode generates can satisfy the specific demand of localization; And; Because network topological diagram is to generate according to static information, therefore, can strictness distinguish local P2P node and non-local P2P node according to network topological diagram; Network topological diagram also can be according to dynamic routing protocol; IGRP (IGP for example; Internal Gateway Protocol) or Exterior Gateway Protocol (EGP; Generations such as dynamic routing that External Gateway Protocol) provides and communication between domains cost, this mode according to dynamic routing protocol generation network topological diagram can guarantee the real-time change of path priority and the maintenance workload that reduces static configuration, and; P2P node by in the network topological diagram of IGP generation is local P2P node, is non-local P2P node by the P2P node in the network topological diagram of EGP generation.
Sequencing unit 232 is used for the P2P nodal information that has said P2P resource that obtains according to said acquiring unit 231, and the P2P node listing is carried out prioritization, specifically can be through a kind of in the dual mode or simultaneously through following dual mode.
Mode one, topology Network Based is carried out prioritization to the P2P node listing:
S1, the area information of each P2P node is with the zone that the obtains said P2P node user's communications cost with respect to acquisition request P2P resource in the requester network topological diagram 210;
S2 resequences to local P2P node that has said P2P resource in the said P2P node listing and the non-local P2P node that has said P2P resource according to said communications cost, so that said local P2P node comes before the said non-local P2P node.
As previously mentioned; Because can be (for example according to the information in the network topological diagram that generates by static information; Each P2P IP addresses of nodes etc.) or network topological diagram be to generate or generate by IGP just to distinguish local P2P node and non-local P2P node by EGP; Therefore, can be not difficult to distinguish local P2P node and the non-local P2P node that has identical P2P resource in the P2P node listing.
Mode two, based on the P2P resource information P2P node listing is carried out prioritization:
S1 judges whether have the non-local P2P node that has identical P2P resource with local P2P node in the P2P node listing according to the P2P nodal information.As previously mentioned; Because the attribute information through this P2P resource in the inquiry P2P Resource Properties information bank can obtain the P2P nodal information that has this P2P resource; Therefore, judge whether have the non-local P2P node that has identical P2P resource with local P2P node in the P2P node listing according to the P2P nodal information.
S2 if having, then directly substitutes in the P2P node listing the non-local P2P node that has identical P2P resource with local P2P node with local P2P node.
Likewise; Because can be (for example according to the information in the network topological diagram that generates by static information; Each P2P IP addresses of nodes etc.) or according to network topological diagram is to be generated or generated by EGP by IGP just to distinguish local P2P node and non-local P2P node; Therefore; Can be not difficult to distinguish local P2P node and the non-local P2P node that has identical P2P resource in the P2P node listing, directly local P2P node substituted in the P2P node listing the non-local P2P node that has identical P2P resource with local P2P node.
Because local P2P node is lower than the user's communications cost of non-local P2P node and acquisition request P2P resource with the user's communications cost of acquisition request P2P resource; Therefore; The user priority of acquisition request P2P resource connects with the local P2P node that has said P2P resource, obtains the P2P resource from local P2P node.
Optimize replenishing of P2P node listing modes as above-mentioned two kinds, when existing a plurality of local P2P nodes to have the P2P resource of user's acquisition request, then the P2P node listing be optimized also and comprise:
Compare each local P2P node and said user's communications cost respectively; Will with the low local P2P node of said user's communications cost come with the high local P2P node of said user's communications cost before; Ordering connects at preceding local P2P node in the user priority of acquisition request P2P resource and the P2P node listing, therefrom obtains the P2P resource.
Package module 24 is used for being packaged into new response message ACK with said through the P2P node listing of optimizing 2After be sent to said user so that said user connects with corresponding P2P node.Particularly, can be with said response message ACK 2Integral body is sent to said user; Perhaps; Perhaps; The P2P node sequence is set up P2P and is connected in the P2P node listing that the user who considers acquisition request P2P resource not necessarily sends over according to integral body sometimes fully, and in the present embodiment, package module 24 also can use its split cells that comprises with said response message ACK 2Be split as a plurality of response messages and be sent to said user, wherein, the response message that comprises said local P2P node listing sends prior to the response message that comprises said non-local P2P node listing.Afterwards, the user connects with corresponding P2P node, obtains the P2P resource.
Further, routing device also comprises:
Chart generating module 25 is used to generate network topological diagram 210 and communication between domains cost bivariate table.
In embodiments of the present invention, can adopt chart generating module 25 to generate network topological diagram 210 (for example, topological tree) and communication between domains cost bivariate table.Wherein, comprised in the network topological diagram zone of each P2P node with respect to the communications cost of local zone, each P2P node with respect to the user's communications cost that sends acquisition request P2P resource or each P2P node communications cost with respect to P2P node in the local network (sending the user of acquisition request P2P resource).Network topological diagram 210 can be according to static information, the for example generations such as mutual exclusion network segment information, IP address, cross-domain information and priority that provide of operator, and the network topological diagram 210 that this mode generates can satisfy the specific demand of localization; The dynamic routing that also can provide according to dynamic routing protocol and with generation such as communication between domains cost, this mode that generates network topological diagram 210 according to dynamic routing protocol can guarantee the real-time change of path priority and the maintenance workload that reduces static configuration.Certainly; In embodiments of the present invention; The area information of each P2P node is with the zone that obtains said P2P node during with respect to the communications cost of local P2P node in the requester network topological diagram 210, can pay close attention to network topological diagram 210 and be static that generate, dynamically generate or both combine and generate.
P2P Resource Properties message processing module 26 is used to handle P2P Resource Properties information, and it further comprises attribute information storehouse generation unit 261, lock unit 262 and aging unit 263, wherein:
Attribute information storehouse generation unit 261; Be used to generate P2P Resource Properties information bank 209, said P2P Resource Properties can comprise the P2P resource and have the resource identification of the mapping relations of the P2P node of this P2P resource, the P2P IP addresses of nodes that has the P2P resource, P2P resource and/or frequency that the P2P resource is visited or the like.
Because P2P node (Peer) difference that different routing devices is hung down in the same local network; For the P2P Resource Properties information in the same local network is consistent; In embodiments of the present invention; Other P2P Resource Properties information banks carry out synchronously in the P2P Resource Properties information bank 209 that lock unit 262 generates said attribute information storehouse generation unit 261 and the same local network; That is, the real-time subelement synchronously of lock unit 262 carries out the real-time synchronous subelement of timing synchronous and/or lock unit 262 with other P2P Resource Properties information banks in said P2P Resource Properties information bank 209 and the same local network other P2P Resource Properties information banks in said P2P Resource Properties information bank and the same local network is carried out timing synchronously.Specifically can be: connect through between routing device, setting up reliable TCP, the operation proprietary protocol afterwards, carries out P2P Resource Properties information through proprietary protocol alternately between routing device.
In order to reduce lower P2P Resource Properties information the taking of visit in a period of time, renewal or usage frequency to storage resources; Improve operating factor of memory space; Visit in a period of time, renewal or the lower P2P Resource Properties information of usage frequency in the said P2P Resource Properties information bank 209 are deleted according to the monitoring result to said P2P Resource Properties information bank 209 in aging unit 263 in the embodiment of the invention.
Can know that from the invention described above embodiment the present invention need not dispose high performance Cache servers, therefore seldom take the resource of local device.Through only preserving P2P Resource Properties information (rather than P2P resource itself) and making local P2P resource node come to have before the non-local P2P resource node of said P2P resource to being optimized; Realized the localization of P2P network traffics, made the P2P network traffics of localization become orderly by confusion.Further, effectively utilize the local network bandwidth, reduce the metropolitan area network outlet bandwidth, make the P2P network traffics reduce, and closing the account between the operator also saved in the minimizing of flow between net the bandwidth demand of backbone network.
See also Fig. 3, a kind of communication system basic logical structure sketch map that the embodiment of the invention three provides.For the ease of explanation, only show the part relevant with the embodiment of the invention.The functional module that this communication system comprises can be software module, hardware module or the software and hardware module that combines, and below describes in detail.
Routing device 301 is used to receive the network message that said server sends and extracts P2P protocol massages wherein and judge whether said P2P protocol massages is the response message ACK of user's acquisition request P2P resource 1, if said P2P protocol massages is the response message ACK of user's acquisition request P2P resource 1, then to said response message ACK 1In the P2P node listing be optimized, be packaged into new response message ACK with said through the P2P node listing of optimizing 2After be sent to said user so that said user connects with corresponding P2P node, in the P2P node listing after said being optimized, the local P2P node that has said P2P resource comes before the non-local P2P node that has said P2P resource;
Server 302 is used to receive the user and obtains the request of P2P resource and send response message to the said routing device 301 of described request.
Said routing device 301 comprises:
P2P protocol massages extraction module 3011 is used to receive network message and extracts P2P protocol massages wherein;
Judge module 3012 is used to judge whether the P2P protocol massages that said P2P protocol massages extraction module 3011 extracts is the response message ACK of user's acquisition request P2P resource 1Promptly; The P2P protocol massages that 3012 pairs of P2P protocol massages of judge module extraction module 3011 extracts from message further carries out the bed-by-bed analysis of protocol stack, thereby judges whether the P2P protocol massages is the response message ACK of user's acquisition request P2P resource of P2P network 1
Optimal module 3013 is used for said judge module 3012 and judges that the P2P protocol massages is the response message ACK of user's acquisition request P2P resource 1In time, be optimized so that have the local P2P node of said P2P resource and come before the non-local P2P node that has said P2P resource said P2P node listing;
Package module 3014 is used for being packaged into new response message ACK with said through the P2P node listing of optimizing 2After be sent to said user so that said user connects with corresponding P2P node.Particularly, can be with said response message ACK 2Integral body is sent to said user, and perhaps, the split cells that package module 3014 is comprised is with said response message ACK 2The response message that is split as a plurality of P2P of comprising node listings is sent to said user, and wherein, the response message that comprises the P2P node listing of said local P2P node sends prior to the response message of the P2P node listing that comprises said non-local P2P node.Afterwards, the user connects with corresponding P2P node, obtains the P2P resource.
In addition, routing device 301 can also comprise P2P Resource Properties message processing module 3015, is used for handling the P2P Resource Properties information of P2P Resource Properties information bank 3016.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to accomplish through program; This program can be stored in the computer-readable recording medium; Storage medium can comprise: read-only memory (ROM; Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
More than flow control methods, routing device and the communication system of peer-to-peer network that the embodiment of the invention provides is described in detail; Used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (11)

1. the flow control methods of a peer-to-peer network is characterized in that, comprising:
Receive network message and extract P2P protocol massages wherein;
Judge whether said P2P protocol massages is the response message ACK of user's acquisition request P2P resource 1, said response message ACK 1Comprise the P2P node listing, the P2P node in the said P2P node listing has said P2P resource;
If said P2P protocol massages is the response message ACK of user's acquisition request P2P resource 1, then said P2P node listing is optimized so that have the local P2P node of said P2P resource and come before the non-local P2P node that has said P2P resource;
Be packaged into new response message ACK with said through the P2P node listing of optimizing 2After be sent to said user so that the P2P node listing of said user after according to said optimization connects with corresponding P2P node.
2. the method for claim 1 is characterized in that, and is said to said response message ACK 1In the P2P node listing be optimized comprise following at least a:
Local P2P node that has said P2P resource in the said P2P node listing and the non-local P2P node that has said P2P resource are resequenced, so that said local P2P node comes before the said non-local P2P node; With
The local P2P node that will have said P2P resource substitutes the non-local P2P node that has said P2P resource in the P2P node listing, so that said local P2P node comes before the said non-local P2P node.
3. method as claimed in claim 2 is characterized in that, and is when existing a plurality of local P2P nodes to have said P2P resource, said to said response message ACK 1In the P2P node listing be optimized also and comprise:
Relatively each local P2P node and said user's communications cost respectively, will with the low local P2P node of said user's communications cost come with the high local P2P node of said user's communications cost before.
4. like any described method of claim 1 to 3, it is characterized in that said method also comprises:
Generate P2P Resource Properties information bank, said attribute information comprises P2P resource and the mapping relations that have the local P2P node of said P2P resource;
Other P2P Resource Properties information banks in said P2P Resource Properties information bank and the same local network are carried out synchronously; And/or
According to monitoring result, delete visit in a period of time, renewal or the lower P2P Resource Properties information of usage frequency in the said P2P Resource Properties information bank to said P2P Resource Properties information bank.
5. method as claimed in claim 4 is characterized in that, said other P2P Resource Properties information banks in said P2P Resource Properties information bank and the same local network is comprised synchronously:
Other P2P Resource Properties information banks in said P2P Resource Properties information bank and the same local network are carried out in real time synchronously; And/or
It is synchronous that other P2P Resource Properties information banks in said P2P Resource Properties information bank and the same local network are carried out timing.
6. the method for claim 1 is characterized in that, the said P2P node listing that said process is optimized is packaged into new response message ACK 2After be sent to said user and comprise:
With said response message ACK 2Integral body is sent to said user; Perhaps
With said response message ACK 2The response message that is split as a plurality of P2P of comprising node listings is sent to said user, and wherein, the response message that comprises said local P2P node listing sends prior to the response message that comprises said non-local P2P node listing.
7. a routing device is characterized in that, said routing device comprises:
P2P protocol massages extraction module is used to receive network message and extracts P2P protocol massages wherein;
Judge module is used to judge whether the P2P protocol massages that said P2P protocol massages extraction module extracts is the response message ACK of user's acquisition request P2P resource 1, said response message ACK 1Comprise the P2P node listing, the P2P node in the said P2P node listing has said P2P resource;
Optimal module is used for the response message ACK that said P2P protocol massages is user's acquisition request P2P resource 1The time, said P2P node listing is optimized so that have the local P2P node of said P2P resource and come before the non-local P2P node that has said P2P resource;
Package module is used for being packaged into new response message ACK with said through the P2P node listing of optimizing 2After be sent to said user so that said user connects with corresponding P2P node.
8. like the said routing device of claim 7, it is characterized in that said routing device also comprises P2P Resource Properties message processing module, be used to handle P2P Resource Properties information, it comprises:
Attribute information storehouse generation unit is used to generate P2P Resource Properties information bank, and said attribute information comprises P2P resource and the mapping relations that have the local P2P node of said P2P resource;
Lock unit is used for P2P Resource Properties information bank and other P2P Resource Properties information banks of same local network that said attribute information storehouse generation unit generates are carried out synchronously; And/or
Aging unit is used for according to the monitoring result to said P2P Resource Properties information bank, deletes visit in a period of time, renewal or the lower P2P Resource Properties information of usage frequency in the said P2P Resource Properties information bank.
9. routing device as claimed in claim 8 is characterized in that, said lock unit further comprises:
In real time synchronous subelement is used for said P2P Resource Properties information bank and other P2P Resource Properties information banks of same local network are carried out in real time synchronously; And/or
Regularly synchronous subelement is used for said P2P Resource Properties information bank and other P2P Resource Properties information banks of same local network are carried out timing synchronously.
10. routing device as claimed in claim 7 is characterized in that said package module comprises split cells, is used for said response message ACK 2Be split as a plurality of response messages and be sent to said user, wherein, the response message that comprises said local P2P node listing sends prior to the response message that comprises said non-local P2P node listing.
11. a communication system is used for peer-to-peer network, it is characterized in that, said communication system comprises routing device and server, and said routing device comprises P2P protocol massages extraction module, judge module, optimal module and package module;
Said P2P protocol massages extraction module is used to receive network message and the extraction P2P protocol massages wherein that said server sends;
Said judge module is used to judge whether the said P2P protocol massages that said P2P protocol massages extraction module extracts is the response message ACK of user's acquisition request P2P resource 1, said response message ACK 1Comprise the P2P node listing, the P2P node in the said P2P node listing has said P2P resource;
Said optimal module is used for said judge module and judges that the P2P protocol massages is the response message ACK of user's acquisition request P2P resource 1The time, said P2P node listing is optimized, come before the non-local P2P node that has said P2P resource so that have the local P2P node of said P2P resource;
Said package module is used for said the process is sent to said user so that said user connects with corresponding P2P node after the P2P node listing of optimizing is packaged into new response message ACK2;
Server is used to receive the user and obtains the request of P2P resource and send response message to the said routing device of described request.
CN2009102520813A 2009-12-08 2009-12-08 Flow control method of peer-to-peer (P2P) network, routing equipment and communication system Expired - Fee Related CN102088399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102520813A CN102088399B (en) 2009-12-08 2009-12-08 Flow control method of peer-to-peer (P2P) network, routing equipment and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102520813A CN102088399B (en) 2009-12-08 2009-12-08 Flow control method of peer-to-peer (P2P) network, routing equipment and communication system

Publications (2)

Publication Number Publication Date
CN102088399A CN102088399A (en) 2011-06-08
CN102088399B true CN102088399B (en) 2012-12-19

Family

ID=44100020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102520813A Expired - Fee Related CN102088399B (en) 2009-12-08 2009-12-08 Flow control method of peer-to-peer (P2P) network, routing equipment and communication system

Country Status (1)

Country Link
CN (1) CN102088399B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179045B (en) * 2013-02-07 2016-04-13 北京邮电大学 Support the resource node selecting method of P2P flow optimization
CN105162881B (en) * 2015-09-25 2018-09-21 中铁工程装备集团有限公司 A kind of P2P optimized transmission methods based on multimode terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1426201A (en) * 2002-12-16 2003-06-25 北京朗通环球科技有限公司 Method for realizing access controller function on radio access point
CN1466339A (en) * 2002-06-24 2004-01-07 ��Ϊ�������޹�˾ Method for preempting multi-procotol label switching flow controlling band width resource

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466339A (en) * 2002-06-24 2004-01-07 ��Ϊ�������޹�˾ Method for preempting multi-procotol label switching flow controlling band width resource
CN1426201A (en) * 2002-12-16 2003-06-25 北京朗通环球科技有限公司 Method for realizing access controller function on radio access point

Also Published As

Publication number Publication date
CN102088399A (en) 2011-06-08

Similar Documents

Publication Publication Date Title
US7978631B1 (en) Method and apparatus for encoding and mapping of virtual addresses for clusters
CN107948324B (en) Request Transmission system, method, apparatus and storage medium
CN108200165B (en) Request Transmission system, method, apparatus and storage medium
JP2014511089A (en) Private address and public address mapping
RU2464722C2 (en) Method, device and system for distribution of messages
CN103597471A (en) Methods and systems for caching data communications over computer networks
CN101026543A (en) Point-tor point P2P content sharing method and system
CN112954406B (en) Data downloading method and device, computer equipment and storage medium
CN108718236B (en) Data transmission method for internet self-organizing convergence
CN102088399B (en) Flow control method of peer-to-peer (P2P) network, routing equipment and communication system
CN116708358B (en) P2P traversing method, device and storage medium
JP5716745B2 (en) Data transfer system
US8051167B2 (en) Optimized mirror for content identification
KR20130060895A (en) Smart router and controlling method thereof, and network service system and method using thereof
CN103685367A (en) Offline download system and offline download method
CN115914074A (en) Point-to-point network message transmission method, routing equipment and computer storage medium
JP5803924B2 (en) Data transfer system
CN113934916A (en) CDN service implementation method, terminal device, node server and storage medium
CN102474422A (en) Method and apparatus for checking anycast group configuration in communication network
JP2012524951A (en) Home network, device information sharing method between home networks, and home network system
Banerjee et al. The survey, research challenges, and opportunities in ICN
WO2014201933A1 (en) Method for hypertext transfer protocol network and broadband network gateway
Incipini et al. MIMIC: A cybersecurity threat turns into a fog computing agent for IoT systems
Aggarwal et al. Implementation of a P2P system within a network simulation framework
CN102714664B (en) data sharing method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211119

Address after: 264200 Room 608, block C, innovation and entrepreneurship base, No. 213, Torch Road, torch high tech Industrial Development Zone, Weihai City, Shandong Province

Patentee after: Lianshi Haifu (Weihai) Intelligent Technology Co.,Ltd.

Address before: 215010 room 704, building 5, No. 556, Changjiang Road, high tech Zone, Suzhou, Jiangsu

Patentee before: SUZHOU YUDESHUI ELECTRICAL TECHNOLOGY Co.,Ltd.

Effective date of registration: 20211119

Address after: 215010 room 704, building 5, No. 556, Changjiang Road, high tech Zone, Suzhou, Jiangsu

Patentee after: SUZHOU YUDESHUI ELECTRICAL TECHNOLOGY Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121219