CN106790609B - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN106790609B
CN106790609B CN201611249253.8A CN201611249253A CN106790609B CN 106790609 B CN106790609 B CN 106790609B CN 201611249253 A CN201611249253 A CN 201611249253A CN 106790609 B CN106790609 B CN 106790609B
Authority
CN
China
Prior art keywords
server
communication address
resource data
target
target resource
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.)
Active
Application number
CN201611249253.8A
Other languages
Chinese (zh)
Other versions
CN106790609A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201611249253.8A priority Critical patent/CN106790609B/en
Publication of CN106790609A publication Critical patent/CN106790609A/en
Application granted granted Critical
Publication of CN106790609B publication Critical patent/CN106790609B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Abstract

The invention provides a data transmission method and a data transmission device, wherein configuration files corresponding to all group identification IDs are set in a cloud server; when a computing node needs to acquire target resource data, determining a target group Identification (ID) of a group in which the computing node is located; the cloud server can feed back a target configuration file corresponding to the target grouping identifier ID to the computing node, and the computing node obtains a first P2P server with the same operator information as the self operator information according to the operator information corresponding to each P2P server in the target configuration file; and obtaining the communication address of the computing node storing the target resource data through the first P2P server. The first P2P server and the computing node belong to the same operator, so the phenomenon of operator hijacking is avoided, and the communication address of the computing node storing the target resource data can be successfully acquired from the first P2P server. Target resource data do not need to be downloaded from the CDN server, and therefore bandwidth flow of the CDN server is reduced.

Description

Data transmission method and device
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a data transmission method and device.
Background
P2P (peer-to-peer) technology, or peer-to-peer networking technology, is a technology for directly exchanging data or services between different computers (also called computing nodes) without going through a relay device. The computing nodes in the peer-to-peer network have the characteristics of both client and server sides, and can be used as users and providers of services at the same time. The P2P network includes P2P server and a plurality of computing nodes, the P2P network may include a plurality of groups, the P2P server in each group manages the corresponding resource data stored by each computing node in the corresponding group, if a computing node needs to obtain a certain resource data, the computing node storing the resource data is first obtained through the P2P server in the same group, and then the required resource data is obtained from the corresponding computing node.
Each computing node in the P2P network can be divided into a telecommunication network node, a mobile network node, a communication network node, etc., and the P2P server can also be divided into a telecommunication network server, a mobile network server, a communication network server, etc.; when a computing node obtains a computing node storing the resource data from a P2P server, cross-Network access often occurs, for example, a telecommunication Network node accesses a mobile Network server, because the cross-Network access increases the bandwidth cost of an operator of the computing node, the operator may limit the cross-Network access, that is, a phenomenon of hijacking of the operator may occur, that is, the computing node storing the corresponding resource data fails to be obtained from the P2P server, so that the resource data required by the operator cannot be obtained from the corresponding computing node, and the corresponding resource data can only be obtained from a CDN (Content Delivery Network) server, thereby increasing the bandwidth traffic of the CDN server.
Disclosure of Invention
In view of this, the present invention provides a data transmission method and apparatus, so as to overcome the problem that in the prior art, when cross-network access occurs, because an operator hijacking phenomenon occurs, resource data required by itself cannot be obtained from a corresponding computing node, and only corresponding resource data can be obtained from a CDN server, so that bandwidth traffic of the CDN server is increased.
In order to achieve the purpose, the invention provides the following technical scheme:
a method of data transmission, comprising:
determining a target grouping identification ID of a grouping in which the self is positioned;
according to the target group identification ID, obtaining a target configuration file corresponding to the target group identification ID from configuration files corresponding to the group identification IDs stored in a cloud server;
the configuration file comprises operator information of each P2P server in the corresponding group corresponding to the corresponding group identification ID and communication addresses of each P2P server in the corresponding group;
acquiring a first P2P server with the same operator information as the self operator information according to the operator information corresponding to each P2P server in the target configuration file;
sending a request for obtaining target resource data to the first P2P server according to the communication address of the first P2P server, so that the first P2P server feeds back the communication address of the computing node storing the target resource data.
The configuration file also comprises operator information of each proxy server in the corresponding group corresponding to the corresponding group identification ID, and communication addresses of each proxy server in the corresponding group; the data transmission method further comprises:
acquiring a first proxy server with the same information as the own operator according to the operator information corresponding to each proxy server in the target configuration file;
when the communication address of the computing node which is fed back by the first P2P server and stores the target resource data is not received within a preset time, sending a request for forwarding the target resource data to the first P2P server to the first proxy server according to the communication address of the first proxy server;
receiving, by the first proxy server, a communication address of the computing node storing the target resource data fed back by the first P2P server.
Preferably, the method further comprises the following steps:
when the communication address of the computing node which is fed back by the first proxy server and stores the target resource data is not received within the preset time, a second P2P server which is not the same as the second P2P server is determined from the target configuration file;
sending, by the first proxy server, a request to forward the target resource data to the second P2P server.
Preferably, the method further comprises the following steps:
when the communication address of the computing node which is fed back by the first proxy server and stores the target resource data is not received within the preset time, determining a second proxy server which is not the same as the second proxy server from the target configuration file;
sending a request for forwarding the target resource data to the first P2P server to the second proxy server according to the communication address of the second proxy server;
receiving, by the second proxy server, a communication address of the computing node storing the target resource data fed back by the first P2P server.
Preferably, the method further comprises the following steps:
when the communication address of the computing node which is fed back by the second proxy server and stores the target resource data is not received within the preset time, a second P2P server which is not the same as the second P2P server is determined from the target configuration file;
forwarding, by the second proxy server, the request to obtain the target resource data to the second P2P server in accordance with the communication address of the second P2P server.
Preferably, the method further comprises the following steps:
when the communication address of the computing node which is fed back by the first P2P server and stores the target resource data is not received within a preset time, determining a second P2P server which is not the same as the second P2P server from the target configuration file;
sending a request for acquiring the target resource data to the second P2P server according to the communication address of the second P2P server;
and receiving the communication address of the computing node storing the target resource data fed back by the second P2P server.
A data transmission apparatus comprising:
the determining module is used for determining the target group identification ID of the group in which the determining module is positioned;
the first acquisition module is used for acquiring a target configuration file corresponding to the target group identifier ID from configuration files corresponding to the group identifier IDs stored in the cloud server according to the target group identifier ID;
the configuration file comprises operator information of each P2P server in the corresponding group corresponding to the corresponding group identification ID and communication addresses of each P2P server in the corresponding group;
a second obtaining module, configured to obtain, according to operator information corresponding to each P2P server in the target configuration file, a first P2P server having the same operator information as the own operator information;
a first sending module, configured to send a request for obtaining target resource data to the first P2P server according to the communication address of the first P2P server, so that the first P2P server feeds back the communication address of the computing node storing the target resource data.
Preferably, the configuration file further includes operator information to which each proxy server in the corresponding group of the corresponding group identification ID belongs, and a communication address of each proxy server in the corresponding group; the data transmission apparatus further includes:
a third obtaining module, configured to obtain, according to operator information corresponding to each proxy server in the target configuration file, a first proxy server having the same operator information as the first proxy server;
a second sending module, configured to, when a communication address of a computing node storing the target resource data, which is fed back by the first P2P server, is not received within a preset time, send, to the first proxy server, a request for forwarding the target resource data to the first P2P server according to the communication address of the first proxy server;
a first receiving module, configured to receive, by the first proxy server, a communication address of the computing node storing the target resource data, where the communication address is fed back by the first P2P server.
Preferably, the method further comprises the following steps:
a first determining module, configured to determine, from the target configuration file, a second P2P server that is not the same as the second P2P server when a communication address of the computing node storing the target resource data, which is fed back by the first proxy server, is not received within a preset time;
a third sending module, configured to send, to the second P2P server through the first proxy server, a request for forwarding the target resource data.
Preferably, the method further comprises the following steps:
the second determining module is used for determining a second proxy server of a non-same operator with the first proxy server from the target configuration file when the communication address of the computing node which is fed back by the first proxy server and stores the target resource data is not received within preset time;
a fourth sending module, configured to send, to the second proxy server, a request for forwarding the target resource data to the first P2P server according to the communication address of the second proxy server;
a second receiving module, configured to receive, by the second proxy server, a communication address of the computing node storing the target resource data, where the communication address is fed back by the first P2P server.
Preferably, the method further comprises the following steps:
a third determining module, configured to determine, from the target configuration file, a second P2P server that is not the same as the second P2P server when a communication address of the computing node storing the target resource data, which is fed back by the second proxy server, is not received within a preset time;
a fifth sending module, configured to forward, through the second proxy server to the second P2P server, the request for obtaining the target resource data according to the communication address of the second P2P server.
Preferably, the method further comprises the following steps:
a fourth determining module, configured to determine, when the communication address of the computing node storing the target resource data, which is fed back by the first P2P server, is not received within a preset time, a second P2P server of a different operator from the first P2P server from the target configuration file;
a sixth sending module, configured to send, to the second P2P server, a request for obtaining the target resource data according to the communication address of the second P2P server;
a third receiving module, configured to receive the communication address of the computing node storing the target resource data, which is fed back by the second P2P server.
As can be seen from the foregoing technical solutions, compared with the prior art, an embodiment of the present invention provides a data transmission method, where a configuration file corresponding to each group identifier ID is set in a cloud server, and the configuration file includes operator information to which each P2P server in a group corresponding to the corresponding group identifier ID belongs and a communication address of each P2P server in the corresponding group; when a computing node needs to acquire target resource data, a target grouping Identification (ID) of a grouping where the computing node is located can be determined; the cloud server can feed back a target configuration file corresponding to the target grouping identifier ID to the computing node according to the target grouping identifier ID determined by the computing node, and the computing node can obtain a first P2P server with the same operator information as the self operator information according to the operator information corresponding to each P2P server in the target configuration file; sending a request for obtaining the target resource data to the first P2P server according to the communication address of the first P2P server, so that the first P2P server feeds back the communication address of the computing node storing the target resource data. Since the first P2P server and the computing node belong to the same operator, the phenomenon of operator hijacking does not occur, and the communication address of the computing node storing the target resource data can be successfully acquired from the first P2P server. Target resource data do not need to be downloaded from the CDN server, and therefore bandwidth flow of the CDN server is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a data transmission system according to an embodiment of the present application;
fig. 2 is a signaling diagram of a data transmission method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of another data transmission system according to an embodiment of the present application;
fig. 4 is a signaling diagram of another data transmission method according to an embodiment of the present application;
fig. 5 is a signaling diagram of another data transmission method according to an embodiment of the present application;
fig. 6 is a signaling diagram of another data transmission method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a data transmission device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The data transmission method provided in the embodiment of the present application may be applied to a data transmission system, as shown in fig. 1, and is a schematic structural diagram of the data transmission system provided in the embodiment of the present application, where the data transmission system includes: a plurality of compute nodes, a plurality of P2P servers, cloud server 10, wherein:
a plurality of computing nodes form a P2P network, and the computing nodes are divided into one group or a plurality of groups, and each group is provided with one or a plurality of P2P servers.
Fig. 1 is only an example, and does not limit the embodiments of the present application. Fig. 1 shows that a P2P network includes 4 packets (an embodiment of the present application provides, but is not limited to, 4 packets), where packet 1 includes: compute node a, compute node B, P2P server C, P2P server D; the packet 2 includes: compute node M, compute node M, P2P server P, P2P server Q; the packet 3 includes: compute node H, compute node J, P2P server K, P2P server L; the packet 4 includes: compute node E, P2P server F, P2P server G.
Each packet has a packet identification ID.
The cloud server 10 stores configuration files corresponding to the group identifiers ID. The configuration file comprises the operator information of each P2P server in the corresponding group corresponding to the corresponding group identification ID and the communication address of each P2P server in the corresponding group.
Before sending a request for acquiring target resource data to a P2P server, each compute node firstly determines a P2P server which is the same operator and is grouped with the compute node according to the cloud server 10, and then sends the request for acquiring the target resource data to the P2P server.
Based on the above data transmission system, the following describes a data transmission method, and please refer to fig. 2, which is a signaling diagram of a data transmission method provided in an embodiment of the present application, and the method includes:
step S201: the computing node a (assumed to be the computing node a of packet 1) determines the target packet identification ID of the packet in which it is located.
Step S202: the computing node a sends the target group identification ID to the cloud server 10.
Step S203: the cloud server 10 obtains a target configuration file corresponding to the target group identifier ID according to the stored configuration file corresponding to each group identifier ID, and sends the target configuration file to the computing node a.
The configuration file comprises the operator information of each P2P server in the corresponding group corresponding to the corresponding group identification ID and the communication address of each P2P server in the corresponding group.
Assuming that the telecom operator information is CT; the information of the Unicom operator is CNC; the mobile operator information is CMNET.
Optionally, the content stored in the configuration file may be as follows:
<Group MatchKey="0">
<Host ISP="CT">101.227.22.23:17788</Host>
<Host ISP="CT">58.215.125.47:17788</Host>
<Host ISP="CT">183.61.167.104:17788</Host>
<Host ISP="CNC">113.207.90.12:17788</Host>
<Host ISP="CNC">119.188.13.150:17788</Host>
<Host ISP="CNC">119.188.13.151:17788</Host>
<Host ISP="CMNET">120.192.88.83:17788</Host>
</Group>
wherein 101.227.22.23:17788, 58.215.125.47:17788 and … are all communication addresses.
Each computing node may store its own operator information, and when not stored, it may acquire its own operator information through another server (for example, access to the scheduler using the HTTP method).
The form of the operator information stored by the computing node is optional, and is as follows: { "t": CT | QIYI _ SHMinRun-101.227.12.253", … }, which indicates that the operator of the computing node is a telecom operator.
Step S204: the computing node a obtains a first P2P server (assumed to be P2P server C in fig. 1, and hereinafter referred to as a first P2P server C) identical to its own operator information according to the operator information corresponding to each P2P server in the target configuration file.
If the group 1 in which the computing node a is located includes a plurality of P2P servers of the same operator as the computing node a, one of the servers is randomly selected for access.
Step S205: the computing node A sends a request for obtaining the target resource data to the first P2P server C according to the communication address of the first P2P server.
Step S206: the first P2P server C feeds back the communication address of the computing node storing the target resource data to the computing node a.
In the data transmission method provided by the embodiment of the invention, configuration files corresponding to the group identifiers ID are set in the cloud server, and the configuration files comprise operator information of P2P servers in the corresponding group corresponding to the group identifiers ID and communication addresses of P2P servers in the corresponding group; when a computing node needs to acquire target resource data, a target grouping Identification (ID) of a grouping where the computing node is located can be determined; the cloud server can feed back a target configuration file corresponding to the target grouping identifier ID to the computing node according to the target grouping identifier ID determined by the computing node, and the computing node can obtain a first P2P server with the same operator information as the self operator information according to the operator information corresponding to each P2P server in the target configuration file; sending a request for obtaining the target resource data to the first P2P server according to the communication address of the first P2P server, so that the first P2P server feeds back the communication address of the computing node storing the target resource data. Since the first P2P server and the computing node belong to the same operator, the phenomenon of operator hijacking does not occur, and the communication address of the computing node storing the target resource data can be successfully acquired from the first P2P server. Target resource data do not need to be downloaded from the CDN server, and therefore bandwidth flow of the CDN server is reduced.
In general, the computing node a in the method shown in fig. 2 can successfully access the first P2P server, and if the computing node a in the method shown in fig. 2 fails to access, for example, the first P2P server fails, the data transmission system shown in fig. 1 further includes one or more proxy servers in each group. Fig. 1 after adding a proxy server is shown in fig. 3.
Fig. 3 is an example, and does not limit the embodiment of the present application, where the packet 1 in fig. 3 includes a proxy server S and a proxy server R; the packet 2 comprises a proxy server V; the packet 3 includes a proxy server U; the proxy server T is included in packet 4.
Alternatively, the proxy server may be an HTTP (HyperText Transfer Protocol) proxy server.
The configuration file included in the cloud server 10 further includes: and the corresponding group identification ID corresponds to the operator information of each proxy server in the group and the communication address of each proxy server in the corresponding group.
When the method shown in fig. 1 fails, the data transmission method may further include a method as shown in fig. 4:
step S401: and the computing node A acquires a first proxy server (assumed as a proxy server S, and subsequently referred to as a first proxy server S) with the same operator information as the computing node A according to the operator information corresponding to each proxy server in the target configuration file.
Step S402: when the computing node A does not receive the communication address of the computing node storing the target resource data, which is fed back by the first P2P server C, within a preset time, the computing node A sends a request for forwarding the target resource data to the first P2P server to the first proxy server S according to the communication address of the first proxy server.
Step S403: the first proxy server S receives the request for obtaining the target resource data forwarded to the first P2P server, and sends the request for obtaining the target resource data to the first P2P server C.
Step S404: the first P2P server C sends the communication address of the computing node storing the target resource data to the first proxy server S.
Step S405: the first proxy server S receives the communication address of the computing node storing the target resource data sent by the first P2P server C, and sends the communication address to the computing node a.
If the computing node a has not successfully acquired the communication address of the computing node storing the target resource data by the method shown in steps S401 to S405, the method further includes the steps shown in fig. 5:
step S501: when the computing node A does not receive the communication address of the computing node stored with the target resource data fed back by the first proxy server within the preset time, a second P2P server (assumed as P2P server D, and subsequently referred to as a second P2P server D) of the same non-own operator is determined from the target configuration file.
Step S502: sending a request for forwarding the target resource data to the second P2P server D through the first proxy server S.
Step S503: the first proxy server S receives and sends a request to obtain the target resource data to the second P2P server D.
Step S504: the second P2P server D sends the communication address of the computing node storing the target resource data to the first proxy server S.
Step S505: and the first proxy server S receives the communication address of the computing node which stores the target resource data and is sent by the second P2P server D, and sends the communication address to the computing node A.
If the computing node a has not successfully obtained the communication address of the computing node storing the target resource data by the method shown in fig. 4, the method shown in fig. 5, or the method shown in fig. 2, the method further includes the steps shown in fig. 6:
step S601: when the communication address of the computing node storing the target resource data, which is fed back by the first proxy server, is not received by the computing node a within the preset time, a second proxy server (assumed as proxy server R, and hereinafter referred to as second proxy server R) of a non-same operator with the computing node a is determined from the target configuration file.
Step S602: and the computing node A sends a request for forwarding the target resource data to the first P2P server C to the second proxy server R according to the communication address of the second proxy server R.
Step S603: the second proxy server R receives the request for obtaining the target resource data and sends the request for obtaining the target resource data to the first P2P server C.
Step S604: the first P2P server C sends the communication address of the compute node storing the target resource data to the second proxy server R.
Step S605: the second proxy server R receives the communication address of the computing node which stores the target resource data and is sent by the first P2P server C, and sends the communication address to the computing node A.
If the computing node a has not successfully acquired the communication address of the computing node storing the target resource data by the method shown in fig. 4, the method shown in fig. 5, the method shown in fig. 6, or the method shown in fig. 2, the method further includes the following steps:
when the communication address of the computing node which is fed back by the second proxy server and stores the target resource data is not received within the preset time, a second P2P server which is not the same as the second P2P server is determined from the target configuration file;
forwarding, by the second proxy server, the request to obtain the target resource data to the second P2P server in accordance with the communication address of the second P2P server.
If the computing node a has not successfully acquired the communication address of the computing node storing the target resource data by the method shown in fig. 4, the method shown in fig. 5, the method shown in fig. 6, or the method shown in fig. 2, the method further includes the following steps:
and when the communication address of the computing node storing the target resource data, which is fed back by the first P2P server, is not received within a preset time, determining a second P2P server of the same operator as the first P2 3578 server from the target configuration file.
Sending a request for obtaining the target resource data to the second P2P server according to the communication address of the second P2P server.
And receiving the communication address of the computing node storing the target resource data fed back by the second P2P server.
The embodiment of the present application further provides a data transmission device corresponding to the data transmission method, and please refer to the description of the corresponding steps in the data transmission method for detailed analysis of modules included in the data transmission device, which is not described herein again.
Please refer to fig. 7, which is a schematic structural diagram of a data transmission device according to an embodiment of the present application, the data transmission device includes:
a determining module 71, configured to determine a target packet identifier ID of a packet in which the determining module is located;
a first obtaining module 72, configured to obtain, according to the target group identifier ID, a target configuration file corresponding to the target group identifier ID from configuration files corresponding to each group identifier ID stored in the cloud server;
the configuration file comprises operator information of each P2P server in the corresponding group corresponding to the corresponding group identification ID and communication addresses of each P2P server in the corresponding group;
a second obtaining module 73, configured to obtain, according to the operator information corresponding to each P2P server in the target configuration file, a first P2P server having the same operator information as the own operator information;
a first sending module 74, configured to send a request for obtaining target resource data to the first P2P server according to the communication address of the first P2P server, so that the first P2P server feeds back the communication address of the computing node storing the target resource data.
Optionally, the configuration file further includes operator information to which each proxy server in the corresponding group of the corresponding group identifier ID belongs, and a communication address of each proxy server in the corresponding group; the data transmission apparatus further includes:
a third obtaining module, configured to obtain, according to operator information corresponding to each proxy server in the target configuration file, a first proxy server having the same operator information as the first proxy server;
a second sending module, configured to, when a communication address of a computing node storing the target resource data, which is fed back by the first P2P server, is not received within a preset time, send, to the first proxy server, a request for forwarding the target resource data to the first P2P server according to the communication address of the first proxy server;
a first receiving module, configured to receive, by the first proxy server, a communication address of the computing node storing the target resource data, where the communication address is fed back by the first P2P server.
Optionally, the method further includes:
a first determining module, configured to determine, from the target configuration file, a second P2P server that is not the same as the second P2P server when a communication address of the computing node storing the target resource data, which is fed back by the first proxy server, is not received within a preset time;
a third sending module, configured to send, to the second P2P server through the first proxy server, a request for forwarding the target resource data.
Optionally, the method further includes:
the second determining module is used for determining a second proxy server of a non-same operator with the first proxy server from the target configuration file when the communication address of the computing node which is fed back by the first proxy server and stores the target resource data is not received within preset time;
a fourth sending module, configured to send, to the second proxy server, a request for forwarding the target resource data to the first P2P server according to the communication address of the second proxy server;
a second receiving module, configured to receive, by the second proxy server, a communication address of the computing node storing the target resource data, where the communication address is fed back by the first P2P server.
Optionally, the method further includes:
a third determining module, configured to determine, from the target configuration file, a second P2P server that is not the same as the second P2P server when a communication address of the computing node storing the target resource data, which is fed back by the second proxy server, is not received within a preset time;
a fifth sending module, configured to forward, through the second proxy server to the second P2P server, the request for obtaining the target resource data according to the communication address of the second P2P server.
Optionally, the method further includes:
a fourth determining module, configured to determine, when the communication address of the computing node storing the target resource data, which is fed back by the first P2P server, is not received within a preset time, a second P2P server of a different operator from the first P2P server from the target configuration file;
a sixth sending module, configured to send, to the second P2P server, a request for obtaining the target resource data according to the communication address of the second P2P server;
a third receiving module, configured to receive the communication address of the computing node storing the target resource data, which is fed back by the second P2P server.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

1. A method of data transmission, comprising:
determining a target grouping identification ID of a grouping in which the self is positioned;
according to the target group identification ID, obtaining a target configuration file corresponding to the target group identification ID from configuration files corresponding to the group identification IDs stored in a cloud server;
the configuration file comprises operator information of each P2P server in the corresponding group corresponding to the corresponding group identification ID and communication addresses of each P2P server in the corresponding group;
acquiring a first P2P server with the same operator information as the self operator information according to the operator information corresponding to each P2P server in the target configuration file;
sending a request for obtaining target resource data to the first P2P server according to the communication address of the first P2P server, so that the first P2P server feeds back the communication address of the computing node storing the target resource data.
2. The data transmission method according to claim 1, wherein the configuration file further includes information on an operator to which each proxy server in the corresponding group belongs, and a communication address of each proxy server in the corresponding group; the data transmission method further comprises:
acquiring a first proxy server with the same information as the own operator according to the operator information corresponding to each proxy server in the target configuration file;
when the communication address of the computing node which is fed back by the first P2P server and stores the target resource data is not received within a preset time, forwarding a request for acquiring the target resource data to the first P2P server through the first proxy server according to the communication address of the first proxy server;
receiving, by the first proxy server, a communication address of the computing node storing the target resource data fed back by the first P2P server.
3. The data transmission method according to claim 2, further comprising:
when the communication address of the computing node which is fed back by the first proxy server and stores the target resource data is not received within the preset time, a second P2P server which is not the same as the second P2P server is determined from the target configuration file;
sending, by the first proxy server, a request to forward the target resource data to the second P2P server.
4. The data transmission method according to claim 2 or 3, further comprising:
when the communication address of the computing node which is fed back by the first proxy server and stores the target resource data is not received within the preset time, determining a second proxy server which is not the same as the second proxy server from the target configuration file;
forwarding a request for acquiring the target resource data to the first P2P server through the second proxy server according to the communication address of the second proxy server;
receiving, by the second proxy server, a communication address of the computing node storing the target resource data fed back by the first P2P server.
5. The data transmission method according to claim 4, further comprising:
when the communication address of the computing node which is fed back by the second proxy server and stores the target resource data is not received within the preset time, a second P2P server which is not the same as the second P2P server is determined from the target configuration file;
forwarding, by the second proxy server, the request to obtain the target resource data to the second P2P server in accordance with the communication address of the second P2P server.
6. The data transmission method according to claim 1 or 2, further comprising:
when the communication address of the computing node which is fed back by the first P2P server and stores the target resource data is not received within a preset time, determining a second P2P server which is not the same as the second P2P server from the target configuration file;
sending a request for acquiring the target resource data to the second P2P server according to the communication address of the second P2P server;
and receiving the communication address of the computing node storing the target resource data fed back by the second P2P server.
7. A data transmission apparatus, comprising:
the determining module is used for determining the target group identification ID of the group in which the determining module is positioned;
the first acquisition module is used for acquiring a target configuration file corresponding to the target group identifier ID from configuration files corresponding to the group identifier IDs stored in the cloud server according to the target group identifier ID;
the configuration file comprises operator information of each P2P server in the corresponding group corresponding to the corresponding group identification ID and communication addresses of each P2P server in the corresponding group;
a second obtaining module, configured to obtain, according to operator information corresponding to each P2P server in the target configuration file, a first P2P server having the same operator information as the own operator information;
a first sending module, configured to send a request for obtaining target resource data to the first P2P server according to the communication address of the first P2P server, so that the first P2P server feeds back the communication address of the computing node storing the target resource data.
8. The data transmission apparatus according to claim 7, wherein the configuration file further includes information on an operator to which each proxy server in the corresponding group belongs, and a communication address of each proxy server in the corresponding group; the data transmission apparatus further includes:
a third obtaining module, configured to obtain, according to operator information corresponding to each proxy server in the target configuration file, a first proxy server having the same operator information as the first proxy server;
a second sending module, configured to, when a communication address of a computing node storing the target resource data, which is fed back by the first P2P server, is not received within a preset time, forward, by the first proxy server, a request for obtaining the target resource data to the first P2P server according to the communication address of the first proxy server;
a first receiving module, configured to receive, by the first proxy server, a communication address of the computing node storing the target resource data, where the communication address is fed back by the first P2P server.
9. The data transmission apparatus according to claim 8, further comprising:
a first determining module, configured to determine, from the target configuration file, a second P2P server that is not the same as the second P2P server when a communication address of the computing node storing the target resource data, which is fed back by the first proxy server, is not received within a preset time;
a third sending module, configured to send, to the second P2P server through the first proxy server, a request for forwarding the target resource data.
10. The data transmission apparatus according to claim 8 or 9, further comprising:
the second determining module is used for determining a second proxy server of a non-same operator with the first proxy server from the target configuration file when the communication address of the computing node which is fed back by the first proxy server and stores the target resource data is not received within preset time;
a fourth sending module, configured to forward, by the second proxy server, a request for obtaining the target resource data to the first P2P server according to the communication address of the second proxy server;
a second receiving module, configured to receive, by the second proxy server, a communication address of the computing node storing the target resource data, where the communication address is fed back by the first P2P server.
11. The data transmission apparatus according to claim 10, further comprising:
a third determining module, configured to determine, from the target configuration file, a second P2P server that is not the same as the second P2P server when a communication address of the computing node storing the target resource data, which is fed back by the second proxy server, is not received within a preset time;
a fifth sending module, configured to forward, through the second proxy server to the second P2P server, the request for obtaining the target resource data according to the communication address of the second P2P server.
12. The data transmission apparatus according to claim 7 or 8, further comprising:
a fourth determining module, configured to determine, when the communication address of the computing node storing the target resource data, which is fed back by the first P2P server, is not received within a preset time, a second P2P server of a different operator from the first P2P server from the target configuration file;
a sixth sending module, configured to send, to the second P2P server, a request for obtaining the target resource data according to the communication address of the second P2P server;
a third receiving module, configured to receive the communication address of the computing node storing the target resource data, which is fed back by the second P2P server.
CN201611249253.8A 2016-12-29 2016-12-29 Data transmission method and device Active CN106790609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611249253.8A CN106790609B (en) 2016-12-29 2016-12-29 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611249253.8A CN106790609B (en) 2016-12-29 2016-12-29 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN106790609A CN106790609A (en) 2017-05-31
CN106790609B true CN106790609B (en) 2020-03-03

Family

ID=58927555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611249253.8A Active CN106790609B (en) 2016-12-29 2016-12-29 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN106790609B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660639B (en) * 2018-12-11 2022-02-25 深圳市迅雷网络技术有限公司 Data uploading method, device, system and medium
CN113364865B (en) * 2021-06-03 2023-04-07 湖南快乐阳光互动娱乐传媒有限公司 Resource acquisition method, device, readable medium and equipment
CN114979146A (en) * 2022-05-25 2022-08-30 中移(杭州)信息技术有限公司 Source returning method, CDN device, storage medium and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459614A (en) * 2008-12-24 2009-06-17 腾讯科技(深圳)有限公司 Method, system and equipment for network data transmission
CN101854387A (en) * 2010-05-14 2010-10-06 中国科学院计算技术研究所 P2P flow optimization method and system based on distributed index server architecture

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459614A (en) * 2008-12-24 2009-06-17 腾讯科技(深圳)有限公司 Method, system and equipment for network data transmission
CN101854387A (en) * 2010-05-14 2010-10-06 中国科学院计算技术研究所 P2P flow optimization method and system based on distributed index server architecture

Also Published As

Publication number Publication date
CN106790609A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106230896B (en) A kind of information push method, apparatus and system
US9661151B2 (en) Method, apparatus and system for determining policy and charging rule function entity
US20150215400A1 (en) File Upload Method And System
JP6624619B2 (en) Resource subscription method, resource subscription device, and resource subscription system
CN108833591B (en) method, electronic equipment, device and network architecture for data transmission in P2P network
CN106210049B (en) Cluster communication method and system based on message queue
CN102647341B (en) Message processing method, device and system
CN102664899B (en) A kind of method for processing business, Apparatus and system
CN106790609B (en) Data transmission method and device
KR101473660B1 (en) Web-based real time data pushing method and system thereof
CN107211035B (en) Method and network node for monitoring services in a content delivery network
US10291607B1 (en) Providing real-time events to applications
US20130282838A1 (en) Group sms messaging
US20150127837A1 (en) Relay apparatus and data transfer method
CN105471820A (en) Processing method and processing device for converged communication terminal discovery and ability detection
CN109347904B (en) Method and system for establishing communication link
US9277014B2 (en) Handling of auxiliary NAS
CN110602264B (en) Method, apparatus, device and medium for transferring domain name resolution address weight information
US10103955B2 (en) Methods, systems, and computer readable media for transmitting diameter peer status information
US11240658B2 (en) Content-delivery footprint and capabilities data transfer from wireless communication devices
CN111262779A (en) Method, device, server and system for acquiring data in instant messaging
CN107682396B (en) IM server deployment method and system
CN108259408B (en) Information transmission method, server and system
TWI477113B (en) Information processing methods and systems
US10581979B2 (en) Information transmission method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant