WO2012075853A1 - Procédé, appareil et système de communication poste à poste - Google Patents

Procédé, appareil et système de communication poste à poste Download PDF

Info

Publication number
WO2012075853A1
WO2012075853A1 PCT/CN2011/080648 CN2011080648W WO2012075853A1 WO 2012075853 A1 WO2012075853 A1 WO 2012075853A1 CN 2011080648 W CN2011080648 W CN 2011080648W WO 2012075853 A1 WO2012075853 A1 WO 2012075853A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
client
tcp connection
shared file
connection
Prior art date
Application number
PCT/CN2011/080648
Other languages
English (en)
Chinese (zh)
Inventor
宿俊
Original Assignee
成都市华为赛门铁克科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 成都市华为赛门铁克科技有限公司 filed Critical 成都市华为赛门铁克科技有限公司
Publication of WO2012075853A1 publication Critical patent/WO2012075853A1/fr

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/1085Resource delivery mechanisms involving dynamic management of active down- or uploading connections

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a point-to-point communication method, apparatus, and system.
  • Scenery technology relates to the field of communications technologies, and in particular, to a point-to-point communication method, apparatus, and system.
  • Peer-to-peer also known as peer-to-peer networking technology, relies on the computing power and bandwidth of participants in the network, rather than concentrating on a small number of servers. Clients of resources and servers that provide shared resources. All clients can provide resources, including bandwidth, storage space and computing power. Such networks can be used for a variety of purposes.
  • Various file sharing software has been widely used. Use, including open source free P2P file sharing software such as eMule and eDonkey.
  • the client can establish a Transmission Control Protocol (TCP) connection and a user datagram protocol (UDP, User Datagram) with the server. Protocol) Messages communicate interactively.
  • TCP Transmission Control Protocol
  • UDP User Datagram
  • UDP User Datagram
  • the node list that owns the shared file is obtained from the server, and it can also be understood that the node list of the shared file can be provided; Then, according to the acquired node The list downloads the shared file from the node in the node list. After the client downloads the shared file, the shared file can also be provided to the node that needs the shared file as the node that owns the shared file. In practical applications, because a shared file is large, a file is usually divided into multiple file segments for download.
  • the node To implement the shared file fragment to other nodes, the node first publishes the shared file information in the server.
  • the shared file information includes the address of the node, the identifier of the shared file that the node can provide, and so on.
  • the client when providing the shared file information, the client needs to issue the shared file information to the server through the TCP connection, but the client only establishes a TCP connection with one server for communication, and communicates with other servers through UDP message interaction. Therefore, when publishing shared file information, the client only issues shared file information to one server through TCP, but does not publish shared file information to other servers.
  • the embodiment of the invention provides a peer-to-peer communication method, device and system, which can improve the speed at which a client downloads a file and uploads a file.
  • the peer-to-peer communication method provided by the embodiment of the present invention includes: acquiring connection state information with each server; determining, according to the connection state information, whether the number of connections between the client and the each server for the transmission control protocol TCP connection reaches the first pre- Setting a threshold value; if the first preset threshold is not reached, selecting at least one server that does not establish a TCP connection with the client according to the connection state information, and establishing a TCP connection with the selected server;
  • the shared file information is issued to a server that has established a TCP connection with the client.
  • the peer-to-peer communication device includes: an obtaining unit, configured to acquire connection state information with each server; and a determining unit, configured to determine, according to the connection state information, a transmission control protocol between the client and each server Whether the number of connections of the TCP connection reaches the first preset threshold; establishing a connection unit, if the first preset threshold is not reached, according to the connection
  • the connection status information selects at least one server that does not establish a TCP connection with itself and establishes a TCP connection with the selected server.
  • the publishing unit is configured to issue shared file information to a server that establishes a TCP connection with the client.
  • the peer-to-peer communication system provided by the embodiment of the present invention includes: a server and the foregoing client.
  • the client first obtains connection state information with each server, and judges and performs with each server according to the connection state information.
  • the number of connections of the TCP connection reaches the first preset threshold. If not, select at least one server that does not establish a TCP connection with itself according to the status connection information, and establish a TCP connection with the selected server, and then The server that establishes the TCP connection itself issues the shared file information. Because the client can perform a TCP connection with multiple servers in the technical solution, the client that downloads the shared file is added, so that the download speed of all the clients that download the shared file can be improved. Provide the upload speed of the shared file client.
  • FIG. 1 is a schematic diagram of an embodiment of a point-to-point communication method according to an embodiment of the present invention
  • FIG. 2a is a schematic diagram of another embodiment of a point-to-point communication method according to an embodiment of the present invention
  • FIG. 2b is a schematic diagram of another embodiment of a point-to-point communication method according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a point-to-point communication method for optimizing a network connection according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of another embodiment of a point-to-point communication method according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of an embodiment of a point-to-point communication system according to an embodiment of the present invention. detailed description
  • a node In a P2P environment, a node only stores a partial fragment file of a shared file. In the process of acquiring the entire shared file, the node provides the other node with the fragment file of the shared file owned by the other node, and also from other nodes. Get other clip files that have not yet been obtained.
  • the file filel has a total of 10 fragment files, which are denoted as filel_p0 ⁇ filel_p9.
  • the A node has filel_p0 ⁇ filel_p4, and the A node publishes the shared file information on the server.
  • the node B Based on the shared file information posted by the node A on the server, the node B knows that the node A has the file filel, and learns that the node A has filel_p0 ⁇ filel_p4 through message interaction with the node A, and then the node B downloads the filel_p0 of filel from the node A. Filel_p4.
  • the A node can learn from the message interaction that the B node owns filel_p5 ⁇ filel_p9, so that the A node can obtain filel_p5 ⁇ filel_p9 directly from the B node.
  • the more nodes including the B node learn the shared file information of the A node, which not only speeds up the downloading of shared files by other nodes, but also speeds up the download of the A node to the entire shared file. speed.
  • the embodiment of the present invention provides a peer-to-peer communication method, device, and system.
  • the client can perform a TCP connection with multiple servers, and increase the number of clients that download the shared file, so as to improve the download speed of all clients that download the shared file.
  • the point-to-point communication method, device and system provided by the embodiments of the present invention are described in detail below.
  • the point-to-point communication protocol uses the eMule protocol as an example, and can also be applied to other point-to-point protocols, such as the eDonkey protocol, the Ares protocol, and the BT protocol.
  • an embodiment of a peer-to-peer communication method includes:
  • a server connection pool module is added to the client, including obtaining a single
  • the unit, the judging unit, the establishing unit, the issuing unit, the control unit and the sending unit are responsible for the connection with each server, including the TCP connection and the UDP session, and are responsible for publishing the shared file information to the server, when other modules of the client are downloading the file.
  • you need to query the list of nodes that can provide shared files you must use the server connection pool module to schedule when to decide whether to issue TCP query messages or UDP query messages.
  • the client obtains connection state information of each server that has a connection relationship with the client, and the connection state information includes a case where each server performs a TCP connection and a UDP session with the client.
  • a node that provides a shared file and a downloaded shared file is referred to as a client
  • a server that establishes a TCP connection with the client and can provide a node list query function is referred to as a primary server.
  • the client can determine whether the number of connections (the number of connections with the primary server) for which the server performs TCP connection with each server reaches the first preset threshold, because the client is When the shared file information is published, the shared file information is only released to the primary server through TCP, and is not released to other servers. Therefore, the number of servers that the client makes a TCP connection with the server directly affects the scope of the client to publish the shared file information.
  • the first preset threshold is set by the system.
  • the first preset threshold may be set in the range of 300 to 500. If the first preset threshold is set too large, the established threshold is established. The number of TCP connections is too large and the system resources are occupied. If the first preset threshold is set too small, the number of established TCP connections is too small to affect the transmission speed of the shared file.
  • the first preset threshold can be based on actual conditions.
  • the application process is set, which is not limited here.
  • step 103 is performed.
  • connection status information At least one server that does not establish a transmission control protocol connection with the client and establish a transmission control protocol connection with the server;
  • the client determines that the number of connections between the server and each server is not up to the first
  • the threshold is set
  • the status of the connection information with each server is queried, and a server that does not establish a TCP connection with itself is selected according to the status of the connection information and a TCP connection is established therewith.
  • the client can select one and not established according to the status of the connection information.
  • the client can also simultaneously
  • the method of establishing a TCP connection with multiple servers to make the number of connections of the server to the TCP connection reaches the first preset threshold, and the manner of establishing the connection is not limited herein.
  • the specific way of selecting a TCP connection may be to select a server to respond to the speed of the response, such as preferentially selecting a server with a fast response to establish a TCP connection, or In other ways, for example, a server that does not establish a TCP connection with the client is randomly selected to establish a TCP connection.
  • the specific selection method is related to the actual application process, which is not limited herein.
  • the response speed of the above server can be detected by using UDP packets as probe messages.
  • the server may return the server information, and the client may also select according to the server information returned by the server.
  • the number of users of the server included in the server information the client according to the number of users of the server is at least In order, a server with a large number of users is preferentially established to establish a TCP connection.
  • the client may issue shared file information to the server that establishes a TCP connection with the client, where the shared file information includes the address of the client, the name of the shared file owned, Information such as size, release time, etc.
  • the shared file information includes the address of the client, the name of the shared file owned, Information such as size, release time, etc.
  • Other clients can find all the nodes that save the shared file by querying the node list. The more nodes are found, the faster the client downloads the shared file, and the client issues the share to the primary server. The specific process of the file information will be described in detail in the subsequent embodiments.
  • the client first obtains connection state information with each server, and then determines, according to the connection state information, whether the number of connections for performing TCP connection with each server reaches the first preset. Threshold value, if not, select at least one server that does not establish a TCP connection with itself according to the status connection information, establish a TCP connection with the selected server, and then issue shared file information to all servers that establish a TCP connection with itself. Since the client can make a TCP connection with more servers, so that more other clients have the opportunity to know that the client can provide shared files, and increase the number of potential clients that download the shared file, thereby improving the download of the shared file.
  • any client with its main server can get the node address in the query of the first node list, increase The number of nodes, which in turn increases the download speed of all clients that download the shared file.
  • another embodiment of the peer-to-peer communication method in the embodiment of the present invention includes:
  • step 201 in the embodiment of the present invention refers to the related description of the step 101 in the foregoing embodiment of the present invention, and details are not described herein again.
  • step 203 is performed, if the client determines that the number of connections between the server and each server reaches the first preset threshold. For the value, go to step 204.
  • the client determines that the number of connections between the server and the server for the TCP connection does not reach the first preset threshold
  • the status of the connection information with each server is selected according to the state of the connection information.
  • step 204 is performed.
  • the specific setting of the first preset threshold is related to the actual application process, and is not limited herein.
  • the client issues shared file information to all the primary servers that have established a TCP connection with itself.
  • the client obtains the shared file information stored on the primary server. If the client does not obtain the shared file information on a primary server, it may determine that there is no shared file on the primary server, if such a primary server exists. , the client issues shared file information to the primary server that has not published the shared file.
  • the client records the shared file information that has been published to each primary server. If it is determined according to the record that a shared server does not include the shared file information to be published, the client issues the location to the primary server. The shared file information to be published.
  • the shared file information previously issued by the client to the primary server includes only the information of the file B, the identifier of the file C, the release time, and the like.
  • the client determines that the shared file information of the file A has not been released to the primary server according to the record, the client The terminal issues the shared file information of file A to the primary server.
  • the client sends a User Datagram Protocol UDP message to all servers except the TCP connection, and requests to establish a UDP session with the server.
  • the client can also communicate with other servers through the UDP message session mode. , but does not publish shared file information to servers other than the primary server.
  • the client issues shared file information to all the primary servers, which can be After the release, the shared file information can be released at a certain interval.
  • the specific release mode is related to the actual application process, and is not limited herein.
  • the client obtains the node number information of the shared file in the locally downloaded node list, and determines whether the number of nodes is smaller than the second preset threshold according to the quantity information. If not, the server selects the query message of the query node.
  • the client preferentially sends a query message to the primary server that has not queried the node list within a certain period of time. If there is no primary server that meets the requirements, the client sends a UDP to the server that does not establish a TCP connection. Query the message and query the node list of the files on other servers that do not have a TCP connection established.
  • the first time can be set by the internal program of the system, and is generally set to be more than 1 minute.
  • the main reason is to prevent the query message from being sent too frequently, which may be considered as malicious sending information, and the client that sends the query message is used by the system. Shielding can be set according to the actual situation, so that the client will not send the query message to the main server because the setting time is too long, and the client will not be blocked by the system because the setting time is too short. limited.
  • the next query message may be sent after waiting for the feedback result of the queried server, and the query message may be simultaneously sent to multiple servers at the same time, and wait until the queried server
  • the feedback result is executed in the next step, and the specific query situation is related to the actual application process, which is not limited herein.
  • the client determines, according to the information displayed in the locally downloaded node list, whether the number of nodes of the shared file recorded in the locally downloaded node list exceeds a second preset threshold. 207.
  • the second preset threshold is set by the system.
  • the second threshold setting may be set in a range of 200 to several thousand, and may or may not be equal to the first preset threshold.
  • the number of nodes affects the speed at which the shared file is downloaded, so the specific setting of the second preset threshold is set. It is related to the download speed to be shared by the actual application, which is not limited here.
  • the client when the number of nodes sharing the file exceeds the second preset threshold, the client does not send the information of the query node list to each server, and stops querying the node of the shared file.
  • the quantity when it is determined in step 206 that the number of nodes of the shared file recorded in the locally downloaded node list is lower than the second preset threshold, the information of the query node list is sent to each server, and the number of nodes for querying the shared file is started.
  • the client obtains the number of nodes of the shared file in the locally downloaded node list, and determines whether the number of nodes is smaller than the second preset threshold. If it is smaller, the client preferentially selects no query for a certain period of time.
  • the primary server of the node list performs the query. Since the client and the primary server are in TCP mode communication, the reliability is high, and the correctness of the transmitted data can be ensured.
  • the request information of the node list and the response information of the server are not lost. Therefore, the client can be effectively prevented from losing the opportunity to obtain a large number of nodes, thereby affecting the download speed of all clients downloading the shared file and the download speed of the shared file downloaded by the client.
  • the client sends a UDP query message to the server that does not establish a TCP connection, and queries the node list of the file on the other server that does not establish a TCP connection, which can effectively increase the chance of querying other nodes, and improve the client. Download the download speed of the shared file. Further, the client determines, according to the number of nodes of the shared file in the locally downloaded node list, whether the number of nodes having the shared file recorded in the locally downloaded node list exceeds a second preset threshold, and if so, indicates the number of nodes. Sufficiently, there is no need to send a query request to the server to query the node list to increase the number of nodes as the download source, and the client no longer queries the server for the node list.
  • FIG. 2b is a flowchart of a peer-to-peer communication method in a scenario in which a client only has a partial file segment in a shared file to be downloaded, and needs to download other file segments from other nodes to obtain a complete shared file to be downloaded.
  • the client performs the following steps 211 to 217, where the steps 211 to 214 are basically similar to the steps 201 to 204 in FIG. 2a, and are only briefly described herein: Step 211: The client acquires connection state information with each server;
  • Step 212 the client determines whether the number of connections with each server for TCP connection reaches the first a preset threshold; if the first preset threshold is reached, step 214 is performed, otherwise step 213 is performed; step 213, if the number of connections between the client and each server for TCP connection does not reach the first preset threshold a value, according to the connection status information, selecting at least one server that does not establish a TCP connection with the client and establishing a TCP connection with the server;
  • Step 214 The client issues shared file information to a server that establishes a TCP connection with the client; the client owns a part of the file segment in the shared file;
  • Step 215 Determine, according to the locally saved node list of the file segment of the shared file to be downloaded, whether the number of nodes in the node list of the shared file that has the shared file to be downloaded is smaller than the second preset threshold. Proceed to step 216; if greater than the second preset threshold, proceed to step 219;
  • the locally saved node list of the file segment having the shared file to be downloaded is generated according to the shared file information of other nodes stored locally;
  • Step 216 Send a query message for querying the node list to the server, where the node list includes a node that has a shared file to be downloaded, where the query message includes the identifier of the shared file to be downloaded;
  • a partial server may be selected to send a query message, and a selection policy when selecting a server is as described in step 205.
  • Step 217 Receive a query result returned by the server, that is, return a node list of the node that has the shared file to be downloaded, and merge the returned node list with the previously locally saved node list to update the locally saved node list, and return to step 215. ;
  • step 218 the node that owns the shared file to be downloaded is obtained from the locally saved node list, and the remaining fragment files of the shared file to be downloaded are downloaded from the obtained node, thereby obtaining the entire shared file to be downloaded.
  • the client can issue shared file information to a larger number of primary servers through the first four steps, thereby increasing the chances of other clients from More primary servers are aware of the client's opportunity to share file information.
  • the download speed is increased by increasing the number of clients that download the shared file;
  • the client since other clients download the file fragments of the shared file from the client and interact with each other's file fragments, the client can download other file fragments from other clients as soon as possible, shortening the client. The time it takes to download to the full shared file.
  • the client that publishes the shared file information does not obtain the remaining file fragments from other clients during the process of downloading the shared file fragments from the client, and may go through steps 215 to 218. Speed up the process of getting the rest of the file fragments from other clients.
  • FIG. 3 For the network diagram in the prior art, refer to FIG. 3.
  • FIG. 4 For the network diagram optimized by the embodiment of the present invention, refer to FIG. 4, where 301 and 401 are eMule network servers, 302 and 402 are eMule network clients, 303 and 403 is a node in the eMule network.
  • the solid line in the connection between the eMule network server, the eMule network client, and the nodes in the eMule network indicates the connection of the TCP connection mode, and the dotted line indicates the connection of other connection methods.
  • another embodiment of the peer-to-peer communication method according to the embodiment of the present invention includes:
  • step 501 in the embodiment For the content of the step 501 in the embodiment, refer to the related description of the step 101 in the foregoing embodiment of the present invention, and details are not described herein again.
  • the first server may be a server that establishes a TCP connection with the client
  • the second server may be a server that does not establish a TCP connection with the client.
  • the server may also be Other types of devices, if applied to the Ares protocol, the client establishes a connection with the super node. If the BT protocol is applied, the client establishes a connection with the tracker server, and the specific device is related to the actual application process, which is not limited herein.
  • the client can determine whether the number of connections between the TCP connection and each server reaches the first preset threshold.
  • the server is selected to establish a TCP connection with the server that has not established a TCP connection with itself, and the number of established TCP connections reaches the first pre-establishment.
  • the threshold is set, the shared file information is published to the primary server.
  • the client determines that the number of connections between the TCP connection and the server is up to the first preset threshold according to the obtained connection status information
  • the client issues the shared file information to the primary server, and other clients can query the shared file by querying the shared file.
  • Information finds all servers that store shared file information. The more servers you find, the faster the client downloads the shared file.
  • step 204 For the specific process of publishing the shared file information in the embodiment of the present invention, refer to the description related to step 204 in the embodiment of FIG. 2, and details are not described herein again.
  • the client obtains the number of nodes of the shared file in the locally downloaded node list, and determines whether the number of nodes is smaller than the second preset threshold according to the number of nodes. If the query is too frequent, the client has a query message. It may be blocked by the system as maliciously sent information. Therefore, the client prefers to send a query message to the primary server that has not queried the node list within a certain period of time. If there is no primary server that meets the requirements, the client does not establish a TCP connection. The server sends a UDP query message to query the list of nodes that have shared files on other servers that do not have a TCP connection established.
  • step 205 For the specific process of querying the node list in the embodiment of the present invention, refer to the description related to step 205 in the foregoing embodiment of FIG. 2, and details are not described herein again.
  • the client determines whether the number of nodes having the shared file to be downloaded exceeds the second preset threshold according to the number of nodes in the locally downloaded node list that have the shared file to be downloaded. More, no need to establish a TCP connection with the server to increase the section If the number of nodes of the shared file is less than the second preset threshold, the number of nodes of the shared file is not queried. Then, the information of the query node list is sent to each server, and the list of nodes having the shared file to be downloaded is started to be queried.
  • the second preset threshold may or may not be equal to the first preset threshold. Because the number of nodes affects the speed of downloading the shared file, the specific setting of the second preset threshold is It is related to the download speed to be shared by the actual application, which is not limited here.
  • an embodiment of the point-to-point communication device in the embodiment of the present invention includes:
  • the obtaining unit 601 is configured to obtain connection state information with each server.
  • the determining unit 602 is configured to determine, according to the connection state information, whether the number of connections between the client and each server for the transmission control protocol TCP connection reaches a first preset threshold;
  • Establishing a connection unit 603, configured to: if the first preset threshold is not reached, select at least one server that does not establish a TCP connection with the client according to the connection status information, and establish a TCP connection with the selected server;
  • the issuing unit 604 is configured to issue shared file information to a server that establishes a TCP connection with the client.
  • the issuing unit 604 is further configured to: if the determining result of the determining unit 602 is that the first preset threshold is reached, issue the shared file information to all servers that establish a TCP connection with the client.
  • the obtaining unit 601 is further configured to obtain a locally saved node list of the node that has the shared file to be downloaded;
  • the determining unit 602 is further configured to determine whether the number of nodes in the node list is less than a second preset threshold
  • the sending unit 605 is configured to: when the determination result of the determining unit 602 is less than the second preset threshold, send a TCP query message to the server that establishes the TCP connection, to all but the establishment of the TCP.
  • the server sends a UDP query message, where the query message is used to query a node list that has a shared file to be downloaded;
  • the determining unit 602 determines that the number of nodes having the shared file in the locally saved node list is less than the second preset threshold, sending the TCP to the server establishing the TCP connection according to the connection state information with the server.
  • Query messages send UDP query messages to all servers except TCP.
  • the control unit 606 is configured to merge the node list returned by the server with the locally saved node list to update the locally saved node list, and if the determining unit 602 determines that the number of nodes in the updated locally saved node list exceeds the second preset Threshold, the number of nodes that stop querying the shared file.
  • the obtaining unit 601 first acquires connection state information with each server, and the connection state information includes a case where each server performs a TCP connection and a UDP session with the client.
  • the server that establishes a TCP connection with the client may be referred to as a primary server.
  • the determining unit 602 determines whether the number of connections between the TCP connection and the server is up to the first preset threshold according to the connection status information. For the specific determination process, refer to the description in the embodiment shown in FIG. 1 above. Let me repeat.
  • the specific setting of the first preset threshold is related to the actual application process, and may be arbitrarily set according to the expected speed of the shared file required by the client, which is not limited herein.
  • the establishing connection unit 603 selects at least one server that does not establish a TCP connection with itself and establishes a TCP connection with it, and when establishing When the number of TCP connections reaches the first preset threshold, the issuing unit 604 issues the shared file information to all the main servers, and if the determining unit 602 determines that the number of connections between the client and each server for the TCP connection reaches the first preset gate The limit value is also issued by the issuing unit 604 to all the main servers to share the file information.
  • the publishing unit 604 advertises the shared file information to all the main servers, which may be advertised at the same time, and the shared file information may be advertised at a certain time interval.
  • the specific publishing method is related to the actual application process, and is not limited herein.
  • the sending unit 605 sends a UDP message to all servers except the established TCP connection, and requests to establish a UDP message session with the server for subsequent communication with the server that establishes the UDP message session.
  • the obtaining unit 601 When the node list is queried, the obtaining unit 601 first obtains the node number information of the shared file to be downloaded in the locally saved node list, and according to the node quantity information, the determining unit 602 determines whether the number of nodes is less than the second preset threshold. If not, the establishing connection unit 603 preferentially sends a query message to the primary server that has not queried the node list within a certain period of time, and the query message is used to query the node list that has the shared file to be downloaded, if there is no primary server that meets the requirements, The sending unit 605 sends a UDP query message to the server that does not establish a TCP connection, and queries the node list of files on other servers that do not establish a TCP connection.
  • the certain time can be set by the internal program of the system, generally set to more than 1 minute, mainly to prevent the query message from being sent too frequently, which may be considered as malicious sending information, and the client sending the query message is blocked by the system. Therefore, the certain time can be specifically set according to the actual situation, and the setup unit 603 does not send the query message to the primary server due to the set time, and the client is not blocked by the system because the set time is too short.
  • the specific time is not limited here.
  • the sending unit 605 issues a query list of the node list for querying the node list that has the shared file to be downloaded
  • the query message may be sent after the query result of the queryed server, and then the next query message may be sent.
  • the server sends the query message at the same time, and waits for the feedback result of the queried server to execute the next step.
  • the specific query is related to the actual application process, which is not limited herein.
  • the determining unit 602 is configured according to the shared text in the obtained locally downloaded node list.
  • the number of nodes of the device determines whether the number of nodes sharing the file exceeds the second preset threshold. If it exceeds, it indicates that the number of nodes is sufficient, and there is no need to establish a TCP connection with the server to add a node, and the control unit 606 no longer
  • the server sends a query message of the query node list, and stops querying the number of nodes of the shared file.
  • the server sends a query node to each server.
  • the list of query messages the number of nodes that started querying shared files.
  • the specific setting of the second preset threshold is related to the actual application process, and is not limited herein.
  • the obtaining unit 601 first obtains connection state information with each server, and according to the connection state information, the determining unit 602 determines whether the number of connections for performing TCP connection with each server reaches a first preset threshold.
  • the shared file information is issued by the issuing unit 604 to all the primary servers. If not, the establishing connection unit 603 selects at least one server that does not establish a TCP connection with itself according to the state connection information, and establishes a TCP connection with the selected server, and the issuing unit The 604 issues the shared file information to all the main servers.
  • the client can make a TCP connection with more servers, the client that downloads the shared file is added, so that the download speed of all the clients that download the shared file can be improved, and since The server that establishes the TCP connection publishes the shared file information, so that any client with its main server can obtain the node address in the query of the first node list, increase the number of nodes, and thereby improve all the users who download the shared file. Download speed of clients. Further, the determining unit 602 determines, according to the node number information of the shared file in the locally downloaded node list acquired by the obtaining unit 601, whether the number of nodes of a shared file exceeds a second preset threshold, and if so, indicates the number of nodes. Sufficiently, the sending unit 605 does not need to send a query message again.
  • an embodiment of the point-to-point communication system in the embodiment of the present invention includes:
  • the client 701 is configured to obtain connection state information with each server, and determine, according to the connection state information, whether the number of connections between the server and the server for the transmission control protocol TCP connection is A first preset threshold is reached. If the first preset threshold is not reached, at least one server that does not establish a TCP connection with the server is selected according to the connection status information, and a TCP connection is established with the selected server. The server that established the TCP connection publishes the shared file information.
  • the server 702 is a high-performance computer in a network environment. It receives service requests submitted by other computers (clients) on the network, and provides corresponding services. It is a computer that manages resources and provides services for users. The specific working process of the server is Common sense, no more details here.
  • the medium can be a read only memory, a magnetic disk or a compact disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

La présente invention concerne un procédé, un appareil et un système de communication poste à poste (P2P) permettant d'améliorer la vitesse de téléchargement descendant et montant de fichiers pour le client. Le procédé selon un mode de réalisation de la présente invention consiste à : déterminer si le nombre de connexions TCP entre le client et des serveurs atteint un premier seuil prédéfini selon des informations d'état de connexion aux serveurs obtenues par le client ; si le seuil n'est pas atteint, sélectionner au moins un serveur qui n'est pas en connexion TCP avec le client afin d'établir une connexion TCP et communiquer des informations de fichiers partagés aux serveurs en connexion TCP avec le client. Le mode de réalisation de la présente invention peut améliorer efficacement la vitesse de téléchargement descendant et montant de fichiers pour le client.
PCT/CN2011/080648 2010-12-08 2011-10-11 Procédé, appareil et système de communication poste à poste WO2012075853A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010105790357A CN102025782A (zh) 2010-12-08 2010-12-08 一种点对点通信方法、装置及系统
CN201010579035.7 2010-12-08

Publications (1)

Publication Number Publication Date
WO2012075853A1 true WO2012075853A1 (fr) 2012-06-14

Family

ID=43866628

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/080648 WO2012075853A1 (fr) 2010-12-08 2011-10-11 Procédé, appareil et système de communication poste à poste

Country Status (2)

Country Link
CN (1) CN102025782A (fr)
WO (1) WO2012075853A1 (fr)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025782A (zh) * 2010-12-08 2011-04-20 成都市华为赛门铁克科技有限公司 一种点对点通信方法、装置及系统
CN102523531A (zh) * 2011-12-08 2012-06-27 深圳市同洲视讯传媒有限公司 视频点播系统中处理会话的接入实体及方法
CN102594926B (zh) * 2011-12-22 2015-04-22 华中科技大学 异构无线p2p网络文件共享系统及加速文件传输方法
CN103716340B (zh) * 2012-09-28 2017-08-25 联想(北京)有限公司 终端设备以及信息处理方法
CN103024081B (zh) * 2013-01-04 2016-01-20 福建星网锐捷通讯股份有限公司 适用于有时效保证通讯系统的点对点通讯的终端调度方法
CN104461710A (zh) * 2014-12-12 2015-03-25 北京国双科技有限公司 任务处理方法及装置

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227460A (zh) * 2007-01-19 2008-07-23 秦晨 分布式文件上传、下载方法及其装置和系统
CN102025782A (zh) * 2010-12-08 2011-04-20 成都市华为赛门铁克科技有限公司 一种点对点通信方法、装置及系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100372310C (zh) * 2006-04-25 2008-02-27 清华大学 基于联邦模型的p2p网络管理方法
CN101577671A (zh) * 2008-05-07 2009-11-11 北京启明星辰信息技术股份有限公司 一种对等联网业务自动流量控制方法及系统
CN101437051B (zh) * 2008-12-04 2011-09-28 四川长虹电器股份有限公司 网络资源下载方法
CN101631056A (zh) * 2009-08-18 2010-01-20 腾讯科技(深圳)有限公司 一种点对点应用中种子群的构建方法及装置

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227460A (zh) * 2007-01-19 2008-07-23 秦晨 分布式文件上传、下载方法及其装置和系统
CN102025782A (zh) * 2010-12-08 2011-04-20 成都市华为赛门铁克科技有限公司 一种点对点通信方法、装置及系统

Also Published As

Publication number Publication date
CN102025782A (zh) 2011-04-20

Similar Documents

Publication Publication Date Title
JP5855867B2 (ja) コンテンツ中心ネットワークを介するサービス仮想化
US10331501B2 (en) USB device redirection for remote systems
US10893031B2 (en) Dynamically serving digital certificates based on secure session properties
US9037628B2 (en) Intelligent establishment of peer-to-peer communication
US7620816B1 (en) System and method for automatic selection of service provider for efficient use of bandwidth and resources in a peer-to-peer network environment
JP5050095B2 (ja) P2pコンテンツ共有のための方法、システム、及びノード
US9191219B2 (en) Network multicast peer discovery methods
WO2012075853A1 (fr) Procédé, appareil et système de communication poste à poste
JP2003016036A (ja) ピア・ツー・ピアネットワーク環境中のピアの信頼性ステータスを検証するシステムおよび方法
WO2010028590A1 (fr) Procédé de fourniture d'une liste d'adresses, réseau poste à poste et procédé de planification associé
CN109787962A (zh) 一种基于多协议双向单连接的p2p软件识别方法
US8959243B2 (en) System and method to guide active participation in peer-to-peer systems with passive monitoring environment
CN114731297B (zh) 用于计算设备对等方匹配的消息限制的自组织网络组
KR20090029113A (ko) 파일 병렬 다운로드에서의 블록 선택 방법, 이를 이용한파일 병렬 다운로드 방법 및 이를 구현하기 위한프로그램을 기록한 기록매체
US8145698B1 (en) Self organizing peer-to-peer system, method, and/or apparatus
US8832281B2 (en) Utilizing resources of a peer-to-peer computer environment
WO2014125708A1 (fr) Dispositif de réception, procédé de commande de dispositif de réception, programme de commande de dispositif de réception, système de réseau, procédé de commande de système de réseau, et programme de commande de système de réseau
CN106060155B (zh) P2p资源共享的方法及装置
Lim CMSNS: a communication middleware for social networking and networked multimedia systems
KR101364927B1 (ko) 네트워크의 토렌트 트래픽 선별 차단 방법
JP5945367B2 (ja) ウェブページ間で通信を行うための方法およびシステム
US20080288447A1 (en) Methods and apparatus for improving peer efficiency
WO2017198088A1 (fr) Procédé, dispositif et système d'abonnement à une ressource
CN116302618B (zh) 一种会话信息处理方法及装置
Oliveros et al. A P2P network booting scheme using a BitTorrent-like protocol

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: 11847585

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: 11847585

Country of ref document: EP

Kind code of ref document: A1