CN108683728B - Data transmission method, server, terminal, network system and storage medium - Google Patents

Data transmission method, server, terminal, network system and storage medium Download PDF

Info

Publication number
CN108683728B
CN108683728B CN201810450835.5A CN201810450835A CN108683728B CN 108683728 B CN108683728 B CN 108683728B CN 201810450835 A CN201810450835 A CN 201810450835A CN 108683728 B CN108683728 B CN 108683728B
Authority
CN
China
Prior art keywords
node
data
server
client
client server
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
CN201810450835.5A
Other languages
Chinese (zh)
Other versions
CN108683728A (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.)
Shenzhen Onething Technology Co Ltd
Original Assignee
Shenzhen Onething 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 Shenzhen Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN201810450835.5A priority Critical patent/CN108683728B/en
Publication of CN108683728A publication Critical patent/CN108683728A/en
Application granted granted Critical
Publication of CN108683728B publication Critical patent/CN108683728B/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 discloses a data transmission method, a server, a terminal, a network system and a storage medium, wherein the method comprises the steps of obtaining node feedback information from a plurality of node devices, obtaining data from a client server or another node device by the node devices, and setting programs interacted with the client server in the node devices; obtaining a data request from a client terminal; determining source node equipment according to the data request and the node feedback information, and generating a source node list; and sending the source node list to the client terminal so that the client terminal acquires data from at least part of the source node devices in the source node list. By arranging a program interacting with the client server in the node equipment, the node equipment can send feedback to the client server when acquiring data, so that the client server can count which node stores what information; so that the client terminal can acquire required data from the corresponding node device according to the statistics of the client server.

Description

Data transmission method, server, terminal, network system and storage medium
Technical Field
The present invention relates to the field of network technologies, and in particular, to a data transmission method, a server, a terminal, a network system, and a storage medium.
Background
In recent years, a multi-source download technology represented by two modes of P2P and P2P and client/Server (P2SP, Peer to Server and Peer) networking has been widely adopted. The multi-source download is a download method for simultaneously and concurrently downloading target data from a plurality of data sources in a network.
However, due to the instability of nodes in the network and the difficulty in managing massive nodes, how to determine which node stores what information is a problem to be solved for a data manager; for data demanders, how to find the needed data source is a problem to be solved.
Disclosure of Invention
To overcome the disadvantages of the prior art, an object of the present invention is to provide a data transmission method for a client server, which can solve the problems of how a data manager determines which node stores what information, and how a data demander finds a required data source.
It is another object of the present invention to provide a data transmission method for a client terminal, which can solve the problems of how a data manager determines which node stores what information, and how a data demander finds a required data source.
It is a further object of the present invention to provide a client server that solves the problem of how a data manager determines which node stores what information and how a data demander seeks a desired data source.
It is a fourth object of the present invention to provide a client terminal that can solve the problem of how a data manager determines which node stores what information, and how a data demander finds a required data source.
The fifth purpose of the present invention is to provide a network system, which can solve the problems of how a data manager determines which node stores what information, and how a data demander finds a required data source.
It is still another object of the present invention to provide a storage medium storing a computer program that can solve the problems of how a data manager determines which node stores what information, and how a data demander finds a required data source.
One of the purposes of the invention is realized by adopting the following technical scheme:
the data transmission method comprises the following steps:
acquiring node feedback information from a plurality of node devices, wherein the node devices acquire data from a client server or another node device and are internally provided with programs interacting with the client server;
obtaining a data request from a client terminal;
determining at least one of the plurality of node devices as a source node device according to the data request and the node feedback information, and generating a source node list, wherein the source node list comprises a network address of the source node device;
and sending the source node list to the client terminal so that the client terminal acquires data from at least part of source node equipment in the source node list.
Further, before the slave node device acquires the node feedback information, the method further includes the following steps:
sending a service request to a service server;
obtaining a target node list from the service server, wherein the target node list comprises network addresses of a plurality of node devices;
and distributing data to the node devices in the target node list.
Further, before or after the obtaining of the target node list from the service server, the method further includes the following steps:
and the service server sends an open notice to the node equipment in the target node list.
Further, the open notification includes a node expansion instruction, so that the node device that acquires the open notification sends the data acquired from the client server to an expansion node device according to the node expansion instruction, where the expansion node device is a node device outside the target node list.
Further, the number of node devices in the target node list is smaller than the number of required nodes.
Further, the obtaining node feedback information from the plurality of node devices specifically includes:
and acquiring node feedback information from the node equipment in the target node list and the extended node equipment.
Further, the node feedback information includes first node information; after the node feedback information is acquired from the plurality of node devices, the method further comprises the following steps:
and analyzing the first service capability of the data according to the first node information of the plurality of node devices.
Further, the first node information includes at least one of a storage space, a node bandwidth, and a node location.
Further, after the sending the source node list to the client terminal so that the client terminal obtains data from at least part of the source node devices in the source node list, the method further includes the following steps:
and acquiring first quality information from the client terminal, wherein the first quality information comprises at least one of network delay, terminal position and network requirement.
Further, after the first quality information is obtained from the client terminal, the method further includes the following steps:
and judging whether to send a new service request to a service server according to the first quality information and the first service capability of the data.
Further, the air conditioner is provided with a fan,
the second purpose of the invention is realized by adopting the following technical scheme:
the data transmission method comprises the following steps:
sending a data request to a client server; the client server is used for sending data to the node equipment and receiving node feedback information from the node equipment which acquires the data, and a program which interacts with the client server is arranged in the node equipment;
obtaining a source node list from the client server, the source node list including a network address of at least one source node device, the source node device being determined by the client server based on the data request and the node feedback information;
and acquiring data from at least part of the source node devices in the source node list.
Further, after obtaining data from at least part of the source node devices in the source node list, the method further includes the following steps:
and sending the first quality information to the client server so that the client server judges whether a new service request needs to be sent to a service server.
Further, the node feedback information includes first node information, and the first node information includes at least one of a storage space, a node bandwidth, and a node location.
Further, the first quality information includes at least one of network delay, terminal location, and network requirements.
The third purpose of the invention is realized by adopting the following technical scheme:
a client server comprising a memory, a processor and a program stored in the memory, the program being configured to be executed by the processor, the processor when executing the program implementing the steps of the data transmission method described above.
The fourth purpose of the invention is realized by adopting the following technical scheme:
a client terminal comprising a memory, a processor and a program stored in the memory, the program being configured to be executed by the processor, the processor when executing the program implementing the steps of the data transmission method described above.
The fifth purpose of the invention is realized by adopting the following technical scheme:
the network system comprises the client server, the client terminal, a service server and a plurality of node devices; the service server and the client server are in communication connection with each node device, the service server is in communication connection with the client server, and the client terminal is used for acquiring data from the node devices.
The sixth purpose of the invention is realized by adopting the following technical scheme:
a storage medium storing a computer program that when executed by a processor implements: the steps of the data transmission method are described above.
Compared with the prior art, the invention has the beneficial effects that: by arranging a program interacting with the client server in the node equipment, the node equipment can send feedback to the client server when acquiring data, so that the client server can count which node stores what information; so that the client terminal can acquire required data from the corresponding node device according to the statistics of the client server.
Drawings
Fig. 1 is a schematic structural diagram of a network system according to a first embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a service server and a client server in FIG. 1;
fig. 3 is a flowchart illustrating a network service method according to a second embodiment of the present invention;
fig. 4 is a flowchart illustrating a network service method according to a third embodiment of the present invention;
fig. 5 is a schematic flow chart of a network service method according to a fourth embodiment of the present invention;
fig. 6 is a schematic diagram of a data transmission method when a program interacting with a client server is built in a node device;
fig. 7 is a schematic diagram of a data transmission method when a program interacting with a service server is built in a client terminal;
fig. 8 is a flowchart illustrating a network service method according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and the detailed description, and it should be noted that any combination of the embodiments or technical features described below can be used to form a new embodiment without conflict.
Example one
Fig. 1 is a schematic structural diagram of a network system. The network system includes a service server, a client server, and a plurality of node devices and a plurality of client terminals. The service server and the client server are in communication connection with each node device, the service server is in communication connection with the client server, and the client terminal is used for acquiring data from the node devices; in a preferred embodiment, the service server, the client server, the node device and the client terminal are all connected to the internet.
In this embodiment, the node device may be a general-purpose computing device accessing to a network system, or may be a dedicated network device such as a guest cloud, and such devices all have a certain storage space, a certain computing capability, and a communication function accessing to the internet. The node devices form a peer-to-peer network, and the service server is responsible for counting the online state, hardware capability, network capability and the like of each node device.
The client terminal mainly refers to a device for acquiring data from a certain node device or certain node devices, such as a mobile phone, a tablet, a television, a computer and the like provided with a video player, live broadcast software and the like. The client server is a data provider, and can be a server for providing movie and television and live broadcast data, such as an entertainment server. In this embodiment, after the client server owner allows the service server owner, the client server owner may distribute the data to the node devices managed by the service server, so as to provide services such as faster data download for the client terminal by using the storage capacity and bandwidth of the massive node devices. It should be noted that the client server may distribute a complete file to each node device, or may distribute the file to different node devices after dividing the file into a plurality of data blocks.
As shown in fig. 2, the service server and the client server each comprise a memory 101, a processor 102 and a program stored in the memory 101, the program being configured to be executed by the processor 102, the processor 102 implementing the steps of the network service method and/or the data transmission method of the service server and the client server when executing the respective program.
The business servers, client servers of embodiments of the present invention are operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics servers, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
Example two
As shown in fig. 3, the network service method includes the following steps:
step S110, the client server sends a service request to the service server, and the service server acquires the service request sent by the client server.
When a client server needs to distribute certain data to node equipment, a service request is sent to a service server first, so that the service server provides the node equipment with information of the node equipment capable of storing the data and transmitting the data.
As a preferred embodiment, the service request includes the number of demand nodes and the node condition requirement. For example, the client server needs to distribute certain data to 5 ten thousand node devices that meet the condition of a certain node.
In a preferred embodiment, the node condition requirement includes at least one of a storage space, a node bandwidth, and a geographical distribution.
For example, if a certain data size is 100Mb, then the storage space in the node condition requirement may be more than 100Mb, and the node bandwidth may require more, and if a certain data size is 10Mb, then the storage space in the node condition requirement may be more than 10Mb, and the node bandwidth may require less. In addition, since the number of client terminals using certain data is different in different regions, the service server may be required to allocate more node devices in places where the number of client terminals is large, and to allocate less node devices in places where the number of client terminals is small. For example, the geographical distribution may be 1 ten thousand node devices in the Guangdong, 500 node devices in Tibet, and so on.
Step S120, the service server acquires a target node list according to the service request, and the client server acquires the target node list from the service server; the target node list includes network addresses of a plurality of node devices.
After a certain node device is started to access a network, a service server can acquire network access information of the node device and also can acquire information of a storage space, a bandwidth, a region where the node device is located and the like. Therefore, when the service server receives the service request of the client server, some node devices which are in accordance with the service request can be determined as target node devices for storing corresponding data according to the service request, and a target node list is generated. The list of target nodes includes the network addresses of these target node devices.
Step S130, the service server sends the target node list to the client server so that the client server distributes data to the node equipment in the target node list; and the client server distributes the data to the node devices in the target node list.
The client server, upon receiving the list of target nodes, may distribute data to the node devices based on the network addresses of the target node devices.
The network service method provided by the embodiment of the invention, and the network system, the service server and the client server applying the network service method, the service server counts the online capacity, the hardware capacity, the network capacity and the like of each node device, and obtains a target node list according to the service request of the client server, wherein the target node list comprises the network address of the node device which can be used for the client server to store data; therefore, the service server can provide support for the client server, so that the service server can provide services such as faster data downloading and the like for the client terminal by means of the storage capacity and bandwidth of the mass node equipment.
As a preferred embodiment, before or after step S130, the network service method further includes the following steps:
step S101, the service server sends a distribution permission to the client server.
That is, the client server needs to acquire a distribution permission from the service server, and has a right to write data to the corresponding node device according to the distribution permission.
Therefore, in step S130, the client server distributes data to the node devices in the target node list, specifically: and the client server distributes data to the node equipment in the target node list according to the distribution permission.
Therefore, the flow of the data stored by the client server to the node equipment can be controlled, and the client server is prevented from writing the data into the node equipment at will.
EXAMPLE III
The network service method as shown in fig. 4 includes the following steps:
step S210, the client server sends a service request to the service server, and the service server obtains the service request sent by the client server.
Step S220, the service server acquires a target node list according to the service request, and the client server acquires the target node list from the service server; the target node list includes network addresses of a plurality of node devices.
Step S230, the service server sends the target node list to the client server, so that the client server distributes data to the node devices in the target node list; and the client server distributes the data to the node devices in the target node list.
Steps S310, S320, and S330 respectively correspond to S110, S120, and S130 in the first embodiment, and are not described again.
In this embodiment, before or after the service server sends the target node list to the client server in step S230, the method further includes the following steps:
step S240, the service server sends an open notification to the node device in the target node list.
In this embodiment, the open notification includes information corresponding to the client server, and thus the node device can recognize from the information that the client server can store data to the node device. Therefore, the client server needs the service server to send an open notification to the node devices in the target node list, so that the client server can distribute data to the node devices in the target node list. Therefore, the flow of the data stored by the client server to the node equipment can be controlled, and the client server is prevented from writing the data into the node equipment at will.
As a preferred embodiment, the open notification further includes a node expansion instruction, so that the node device that acquires the open notification sends the data acquired from the client server to an expansion node device according to the node expansion instruction, where the expansion node device is a node device outside the target node list.
The service server sends an open notification with a node expansion instruction to a certain node device, which indicates that the node device needs to forward the data acquired from the client server to at least one other node device in the network system, and the node device acquiring the data through forwarding is the expansion node device. As a preferred embodiment, after acquiring the data, the expansion node device feeds back information to the service server or the client server.
As a preferred embodiment, the node expansion instruction may specify that the node device that has acquired the opening notification forwards the data acquired from the client server to a specified number of node devices in a specified area.
The node device that has acquired the opening notification may send the data acquired from the client server to the node devices outside the target node list according to the node expansion instruction, so the number of the node devices in the target node list may be smaller than the number of the required nodes. The client server can distribute the data to a small number of node devices, and then the node devices receiving the data continue to forward the data according to the node expansion instruction, so that the bandwidth required by the client server is small, and the data can be distributed to the node devices with the required node number more quickly.
Example four
The network service method as shown in fig. 5 includes the following steps:
step S310, the client server sends a service request to the service server, and the service server acquires the service request sent by the client server.
Step S320, the service server obtains a target node list according to the service request, and the client server obtains the target node list from the service server, where the target node list includes network addresses of multiple node devices.
Step S330, the service server sends the target node list to the client server so that the client server distributes data to the node equipment in the target node list; and the client server distributes the data to the node devices in the target node list.
Steps S310, S320, and S330 respectively correspond to S110, S120, and S130 in the first embodiment, and are not described again.
In this embodiment, after the service server sends the target node list to the client server in step S330, the client server distributes data to the node devices in the target node list, and the node devices that acquire the data send first feedback information to the service server.
As a further improvement of the embodiment of the present invention, the node device has a program built therein for interacting with the client server. Therefore, the node device that acquires the data may also send node feedback information to the client server. The network service method further comprises the following steps:
step S340, the service server obtains the first feedback information of each node device, and/or the client server obtains the node feedback information of each node device, and the client terminal is configured to obtain data from the node device.
As a preferred embodiment, since the node device that acquires the opening notification may send the data acquired from the client server to some node devices outside the target node list, that is, to the extension node device according to the node extension instruction, the service server acquires the first feedback information from the node device, specifically: and the service server acquires the first feedback information from the node equipment in the target node list and the extended node equipment.
As a preferred embodiment, since the node device that acquires the opening notification may send the data acquired from the client server to the expansion node device according to the node expansion instruction, and the expansion node device sends the data acquired from the client server to the node devices other than the target node list, the client server acquires node feedback information of each node device, specifically, node devices in the target node list and the expansion node device.
Therefore, the service server can count which data of the client server is stored in which node devices through the first feedback information; the client server can count which data are stored in which node devices through the node feedback information; thereby facilitating the client terminal to obtain data from the node device.
In a preferred embodiment, the node device has a program built therein for interacting with the client server. The program can be installed in the node device in a plug-in form, specifically, a plug-in provided by a client server manager can be run in a sandbox of the node device.
Fig. 6 is a schematic diagram illustrating a data transmission method in which a client terminal acquires data from a node device when a program interacting with the client server is built in the node device. The data transmission method comprises the following steps:
step S301, the client server acquires node feedback information from a plurality of node devices. As described above, the client server is configured to send data to the node device, and after the node device obtains the data from the client server or another node device, the node device may send node feedback information to the client server through a program, which is built in the node device and interacts with the client server; accordingly, the client server may receive node feedback information from the node device that obtained the data. The client server can count which data are stored in which node devices through the node feedback information, so that convenience is provided for the client terminal to acquire the data from the node devices.
As a preferred embodiment, the node device obtains data from the client server, specifically, the node device in the target node list obtains data from the client server; the node device acquires data from another node device, specifically, the extended node device acquires data from a node device in the target node list. Therefore, the client server obtains node feedback information from the plurality of node devices, specifically: and the client server acquires node feedback information from the node equipment in the target node list and the expansion node equipment.
Step S302, the client terminal sends a data request to the client server, and the client server obtains the data request from the client terminal.
The client terminal is provided with a program corresponding to the client server, such as an entertainment player, a data downloader, and the like. When a client terminal needs certain data, a data request can be sent to a client server; the data request may include a hash value of the data.
The client server counts which data are stored in which node devices through the node feedback information, so that the client terminal can be guided to acquire the data from the corresponding node devices.
Step S303, the client server determines at least one of the plurality of node devices as a source node device according to the data request and the node feedback information, generates a source node list, and the client terminal acquires the source node list from the client server; the source node list includes a network address of the source node device.
The client server counts which data are stored in which node devices through the node feedback information, and after a data request of a certain terminal device is obtained, one or more node devices are appointed to serve as source node devices according to the data request. Preferably, the data request includes location information of the terminal device, the client server preferentially designates a node device that is close to the terminal device as a source node device, and the source node list may be generated according to the source node device.
Step S304, the client server sends the source node list to the client terminal, and the client terminal obtains data from at least part of the source node devices in the source node list.
The source node list includes the network address of the source node device, so that the client terminal can acquire the required data from the source node device according to the network address of the source node device for subsequent operations, such as playing video.
According to the data transmission method provided by the embodiment of the invention, the node equipment is internally provided with a program interacting with the client server, so that the node equipment can send feedback to the client server when acquiring data, and the client server can conveniently count which node stores what information; so that the client terminal can acquire required data from the corresponding node device according to the statistics of the client server. At this time, the service server is responsible for providing service support for the client server to distribute data to the node device, i.e. responding to the service request of the client server.
As a preferred embodiment, the node feedback information includes first node information. After the step S301 that the client server obtains the node feedback information from the plurality of node devices, the method further includes the following steps:
step S3011, the client server analyzes the first service capability of the data according to the first node information of the plurality of node devices.
In a preferred embodiment, the first node information includes at least one of a storage space, a node bandwidth, and a node location. According to the information, the support of storage capacity, network bandwidth and the like actually provided by the node equipment for the client server in the network system can be counted; and data such as storage capacity, bandwidth and the like which can be provided by node equipment of each region can be analyzed according to the node position, namely the first service capability. The client server can analyze the service which can be provided by the node equipment in the network system according to the first service capability, and then predict whether the requirement of the client terminal can be met or not and whether new node equipment is required to be requested from the service server for distributing data.
As a preferred embodiment, after the step S304 that the client server sends the source node list to the client terminal so that the client terminal obtains data from at least part of the source node devices in the source node list, the method further includes the following steps:
step S3041, the client terminal sends first quality information to the client server, and the client server obtains the first quality information from the client terminal, where the first quality information includes at least one of network delay, terminal location, and network requirement.
When downloading data or watching video, the client terminal can feed back the data downloading condition, i.e. the first quality information, to the client server, so that the client server can judge whether the service provided by the node device can meet the requirements of the client terminal, and whether a new node device is required to be requested from the service server for data distribution.
As a preferred embodiment, the first node information includes a node bandwidth and a node location, and after the client server acquires the first quality information from the client terminal in step S304, the method further includes the following steps:
step S3042, according to the first quality information and the first service capability of the data, determining whether to send a new service request to a service server, and if necessary, sending the new service request to the service server by the client server.
The first node information includes node bandwidth and node location, and the client server can count the regional distribution of the node device export bandwidth which can provide data for the client terminal, for example, shenzhen can provide 1GB bandwidth. If the bandwidth of 1GB cannot meet the smooth practicability of Shenzhen and nearby client terminals according to historical data or experience, a new service request is required to be sent by the service server to request a new node device located in Shenzhen for data distribution.
As a further improvement of the embodiment of the present invention, in another embodiment, a program interacting with the service server is built in the client terminal. The program can be installed in the client terminal in a plug-in form, and specifically can be a plug-in provided by a service server manager.
The client terminal is internally provided with a program interacting with the service server. The client terminal may send the second feedback information to the service server after acquiring the data from the node device.
As a preferred embodiment, the network service method may further include the steps of:
step S350, the service server obtains second feedback information of each client terminal, where the client terminal is configured to obtain data from the node device.
The client terminal may send the second feedback information to the service server after acquiring the data from the node device. The second feedback information includes information of a node device providing data for the client terminal, and may further include information of a size, a network speed, and the like of the data provided by the node device.
As a further improvement of the embodiment of the present invention, after step S340 or step S350, the network service method further includes the following steps:
step S360, the service server calculates the contribution value of each node device according to the first feedback information or the second feedback information.
If the data size provided by a certain node device is large and the network speed is high, the contribution value of the node device is large.
Step S370, the account associated with the service server allocates a credential to the account associated with the node device according to the contribution value.
In embodiments of the present invention, the voucher includes one or more of a virtual card voucher, credit, virtual currency, blockchain token, Proof of Work (POW), Proof of entitlement (POS), and/or other electronic billing unit.
If the contribution value of a node device is larger, more credentials are allocated to the account associated with the node device. All the certificates of each account can be transferred to the client server, and the client server can obtain specific data from a certain account number authority of a client terminal associated with the corresponding account. For example, an account associated with a node device also has an account number of a video website, the account can transfer a certain certificate to the video website, the video website can upgrade the account number to a member, and the member has a right to view videos exclusive to some members.
As a preferred embodiment, the account associated with the client server may transfer the credentials obtained from the account associated with the node device to the account associated with the service server again; to subscribe to the service server side so that the service server will respond to the service request of the client server and the corresponding node device can provide data and bandwidth to the client terminal. Therefore, closed-loop circulation of the voucher is formed, and meanwhile, the method is an incentive for node equipment owners, so that node equipment can be continuously added into the network system, more node equipment can provide better data support for a client server, more smooth data downloading or video playing is provided for a client terminal, and good ecology of the network system is formed.
As a preferred embodiment, as shown in fig. 7, a schematic diagram of a data transmission method for a client terminal to acquire data from a node device when a program interacting with the service server is built in the client terminal is shown. The data transmission method shown in fig. 7 includes the following steps:
step S305, the service server acquires the first feedback information from a plurality of node devices, and the node devices all acquire data from the client server or another node device.
As previously described, a node device may obtain data from a client server or another node device; after the node device acquires data from the client server or another node device, the node device sends first feedback information to the service server, and correspondingly, the service server receives the first feedback information from the node device, so that the service server can control what data are stored in each node device, and convenience is provided for the client terminal to acquire the data from the node device.
As a preferred embodiment, the node device obtains data from the client server, specifically, the node device in the target node list obtains data from the client server; the node device acquires data from another node device, specifically, the extended node device acquires data from a node device in the target node list. Therefore, the service server obtains the first feedback information from the multiple node devices, specifically: and the service server acquires the first feedback information from the node equipment in the target node list and the extended node equipment.
Step S306, the client terminal sends a data request to the service server, and the service server acquires the data request from the client terminal.
The client terminal is internally provided with a program interacting with the service server, for example, an entertainment player, a data downloader and the like are internally provided with plug-ins interacting with the node equipment and the service server. When a client terminal needs a certain data, a data request can be sent to a service server; the data request may include a hash value of the data.
Step S307, the service server determines at least one of the plurality of node devices as a source node device according to the data request and the first feedback information, generates a source node list, and the client terminal acquires the source node list from the service server, where the source node list includes a network address of the source node device.
The service server counts which node devices store which data through the first feedback information, and after a data request of a certain terminal device is obtained, one or more node devices are appointed to serve as source node devices according to the data request. As a preferred mode, the data request includes location information of the terminal device, and the service server preferentially designates a node device that is close to the terminal device as a source node device, and may generate a source node list according to the source node device.
Step S308, the service server sends the source node list to the client terminal, and the client terminal obtains data from at least part of the source node devices in the source node list.
The source node list includes the network address of the source node device, so that the client terminal can acquire the required data from the source node device according to the network address of the source node device for subsequent operations, such as playing video.
According to the data transmission method provided by the embodiment of the invention, a program interacting with a service server is arranged in a client terminal, and node equipment sends feedback to the service server when acquiring data; so that the service server counts which node stores what information; thus, the client terminal can obtain the required data from the corresponding node device according to the statistics of the service server. At this time, the client server is responsible for distributing data to the node device, and the client server is responsible for providing service support for the client server to distribute data to the node device, and providing information of a data source to the client terminal.
As a preferred embodiment, the first feedback information includes second node information. After the step S305, the service server acquires the first feedback information from the multiple node devices, further comprising the following steps:
step S3051, the service server analyzes a second service capability of the data according to the second node information.
As a preferred embodiment, the second node information may include at least one of a storage space, a node bandwidth, and a node location. According to the information service servers, the support of storage capacity, network bandwidth and the like actually provided by the node equipment for the client server and the terminal equipment in the network system can be counted; and data such as storage capacity, bandwidth and the like which can be provided by node equipment of each region can be analyzed according to the node position, namely the second service capability. The service server can analyze the service which can be provided by the node equipment in the network system for the client server and the terminal according to the second service capability, and then predict whether the requirement of the client terminal can be met.
In another embodiment, the contribution value of the node device may be calculated based on the first feedback information, thereby providing a basis for providing an incentive to the node device.
As a preferred embodiment, after the step S3051, the service server analyzes the second service capability of the data according to the second node information, the method further includes the following steps:
step S3052, the service server sends the second service capability of the data to the client server, so that the client server determines whether to send a new service request to the service server.
The service server can also send the second service capability to the client server, and the client server can analyze the service which can be provided by the node equipment or the terminal equipment in the network system according to the second service capability, so as to predict whether the requirement of the client terminal can be met or not, and whether new node equipment is required to be requested to the service server for the data distribution of the new node equipment.
As a preferred embodiment, after the client terminal acquires data from at least part of the source node devices in the source node list in step S308, the method further includes the following steps:
step S3081, the client terminal sends the second quality information to the client server, so that the client server determines whether to send a new service request to the service server, and if necessary, sends the new service request to the service server.
As a preferred embodiment, the second quality information comprises at least one of network delay, terminal location, network requirements.
When downloading data or watching a video, the client terminal can feed back the data downloading condition, namely the second quality information, to the client server, so that the client server can judge whether the service provided by the node equipment can meet the requirements of the client terminal or not and whether a new node equipment is required to be requested to the service server for distributing data; and if so, sending a new service request to the service server.
It should be understood by those skilled in the art that the above network service method and the data transmission method may be implemented in different network systems respectively. For example, in a certain network system, the network service method of the embodiment of the present invention may be adopted for the client server to distribute data to the node device, and the method in the prior art is adopted for realizing when the client terminal acquires data from the node device; for another example, in another network system, the client server may distribute data to the node device by using a method in the prior art, and when the client terminal acquires data from the node device, the data transmission method according to the embodiment of the present invention is used. Of course, in a certain network system, the network service method of the embodiment of the present invention may be adopted when the client server distributes data to the node device, and the data transmission method of the embodiment of the present invention may be adopted when the client terminal acquires data from the node device.
EXAMPLE five
The network service method as shown in fig. 8 includes the following steps:
step S410, the client server sends a service request to the service server, and the service server obtains the service request sent by the client server.
Step S420, the service server acquires a target node list according to the service request, and the client server acquires the target node list from the service server; the target node list includes network addresses of a plurality of node devices.
Step S430, the service server sends the target node list to the client server, so that the client server distributes data to the node devices in the target node list; and the client server distributes the data to the node devices in the target node list.
Steps S410, S420, and S430 respectively correspond to steps S310, S320, and S330 in the first embodiment, and are not described again.
After step S430, the node device that has acquired the data sends the first feedback information to the service server, so that the service server may acquire the first feedback information of the multiple node devices. In addition, since the node device is provided with a program for interacting with the client server, the node device that has acquired the data may send node feedback information to the client server.
Therefore, the network service method further comprises the steps of:
step S440, the service server obtains the first feedback information of each node device, and/or the client server obtains the node feedback information of each node device.
In a preferred embodiment, the client terminal has a program built therein for interacting with the service server. The client terminal may send the second feedback information to the service server after acquiring the data from the node device. In addition, after the client terminal acquires the data from the node device, the client terminal may send third feedback information to the client server.
Therefore, the network service method further comprises the steps of:
step S450, the service server obtains second feedback information of each client terminal, and/or the client server obtains third feedback information of each client terminal; the client terminal is used for acquiring data from the node equipment.
As a preferred implementation manner, in this embodiment, after step S440 and/or step S450, the following steps are further included:
step S460, the service server calculates a first service metering value of the client server according to the first feedback information or the second feedback information. And/or
Step S470, the client server calculates a second traffic metering value according to the node feedback information or the third feedback information.
The first feedback information is sent to the service server by the node device that has acquired the data, so the service server calculates a first service metering value of the client server according to the first feedback information, specifically: the node equipment stores the data of the client server, the service server charges the service of the client server, and the plurality of node equipment store the data of the client server for a plurality of times, so that the first service metering value of the client server can be obtained through accumulation.
The second feedback information is sent to the service server after the client terminal acquires data from the node device, so that the service server calculates a first service metering value of the client server according to the second feedback information, specifically: the client terminal obtains data from a certain node device, namely the node device really makes a contribution to the client terminal obtaining device, the service server charges the service of the client server, and a plurality of client terminals obtain data from the node device for a plurality of times, and the first service metering value of the client server can also be obtained in an accumulated mode.
The node feedback information is sent to the client server by the node device which acquires the data, so that the client server calculates a second service metering value according to the node feedback information, specifically: the node device stores the data of the client server, the client server charges the service, the plurality of node devices store the data of the client server for a plurality of times, and the client server can count a second service metering value provided by the service server and the node device.
The third feedback information is sent to the client server after the client terminal acquires data from the node device, so that the client server calculates a second service metering value according to the third feedback information, specifically: the client terminal obtains data from a certain node device, namely the node device really makes a contribution to the client terminal obtaining device, the client server charges the service, a plurality of node devices store the data of the client server for a plurality of times, and the client server can count a second service metering value provided by the service server and the node device.
As a further improvement of the embodiment of the present invention, after the service server calculates the first service metering value of the client server according to the first feedback information or the second feedback information in step S460, the network service method further includes the following steps:
step S480, the service server calculates the service allowance of the client server according to the first service metering value.
As a preferred embodiment, the service request in step S410 further includes a service margin of the client server. The network service method further comprises the following steps:
step S490, if the service margin is less than the margin threshold, sending a margin reminder to at least one of the monitoring device, the client server, and the device associated with the client server.
In a preferred embodiment, the client server side may pay a fee to the service server side in advance, or may transfer a credential acquired from an account associated with the node device to an account associated with the service server to order a certain amount of service. The service allowance is obtained according to the subscribed service and the first service metering value. The business server monitors the business allowance of the client server in real time, and when the business allowance is smaller than an allowance threshold value, a allowance prompt is sent to at least one of the monitoring equipment, the client server and equipment related to the client server, so that the client server is prompted to pay the business server side or transfer the certificate.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. With such an understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods according to the embodiments or some parts of the embodiments, such as:
a storage medium storing a computer program which, when executed by a processor, implements the steps of the aforementioned network traffic method and/or data transmission method.
The above embodiments are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited thereby, and any insubstantial changes and substitutions made by those skilled in the art based on the present invention are within the protection scope of the present invention.

Claims (18)

1. A data transmission method, comprising the steps of:
acquiring a target node list from a service server, wherein the target node list comprises network addresses of a plurality of node devices; obtaining node feedback information from a plurality of node devices, wherein the node devices obtain data from a client server or another node device, and particularly the node devices in the target node list obtain data from the client server; the node device acquires data from another node device, specifically, the extended node device acquires data from the node device in the target node list; the node devices are internally provided with programs interacting with the client server; the client server counts the data stored in the node equipment through the node feedback information to guide the client terminal to obtain the data from the corresponding node equipment;
obtaining a data request from a client terminal;
determining at least one of the plurality of node devices as a source node device according to the data request and the node feedback information, and generating a source node list, wherein the source node list comprises a network address of the source node device;
and sending the source node list to the client terminal so that the client terminal acquires data from at least part of source node equipment in the source node list.
2. The data transmission method of claim 1, wherein: before the node feedback information is acquired from the node equipment, the method further comprises the following steps:
sending a service request to a service server;
obtaining a target node list from the service server, wherein the target node list comprises network addresses of a plurality of node devices;
and distributing data to the node devices in the target node list.
3. The data transmission method of claim 2, wherein: before or after the target node list is obtained from the service server, the method further comprises the following steps:
and the service server sends an open notice to the node equipment in the target node list.
4. The data transmission method of claim 3, wherein: the open notification includes a node expansion instruction, so that the node device that acquires the open notification sends data acquired from the client server to an expansion node device according to the node expansion instruction, and the expansion node device is a node device outside the target node list.
5. The data transmission method of claim 4, wherein: and the number of the node devices in the target node list is less than the number of the required nodes.
6. The data transmission method of claim 5, wherein: the acquiring node feedback information from the plurality of node devices specifically includes:
and acquiring node feedback information from the node equipment in the target node list and the extended node equipment.
7. The data transmission method according to any one of claims 1 to 6, characterized by: the node feedback information comprises first node information; after the node feedback information is acquired from the plurality of node devices, the method further comprises the following steps:
and analyzing the first service capability of the data according to the first node information of the plurality of node devices.
8. The data transmission method of claim 7, wherein: the first node information comprises at least one of storage space, node bandwidth and node position.
9. The data transmission method of claim 7, wherein: after sending the source node list to the client terminal so that the client terminal obtains data from at least part of the source node devices in the source node list, the method further includes the following steps:
and acquiring first quality information from the client terminal, wherein the first quality information comprises at least one of network delay, terminal position and network requirement.
10. The data transmission method of claim 9, wherein: after the first quality information is acquired from the client terminal, the method further comprises the following steps:
and judging whether to send a new service request to a service server according to the first quality information and the first service capability of the data.
11. A data transmission method, comprising the steps of:
sending a data request to a client server; the client server is used for sending data to the node equipment and receiving node feedback information from the node equipment which acquires the data, and a program which interacts with the client server is arranged in the node equipment; the client server counts the data stored in the node equipment through the node feedback information to guide the client terminal to obtain the data from the corresponding node equipment;
obtaining a source node list from the client server, the source node list including a network address of at least one source node device, the source node device being determined by the client server based on the data request and the node feedback information;
and acquiring data from at least part of the source node devices in the source node list.
12. The data transmission method of claim 11, wherein: after the data is acquired from at least part of the source node devices in the source node list, the method further includes the following steps:
and sending the first quality information to the client server so that the client server judges whether a new service request needs to be sent to a service server.
13. The data transmission method of claim 12, wherein: the node feedback information includes first node information, and the first node information includes at least one of a storage space, a node bandwidth, and a node location.
14. The data transmission method according to claim 12 or 13, characterized by: the first quality information comprises at least one of network delay, terminal location, network demand.
15. A client server, characterized by: comprising a memory, a processor and a program stored in the memory, the program being configured to be executed by the processor, the processor implementing the steps of the data transmission method as claimed in any one of claims 1-10 when executing the program.
16. Client terminal, its characterized in that: comprising a memory, a processor and a program stored in the memory, the program being configured to be executed by the processor, the processor implementing the steps of the data transmission method according to any of the claims 11-14 when executing the program.
17. A network system, characterized by: comprising a client server according to claim 15, a client terminal according to claim 16, and a service server and a plurality of node devices; the service server and the client server are in communication connection with each node device, the service server is in communication connection with the client server, and the client terminal is used for acquiring data from the node devices.
18. A storage medium storing a computer program, characterized in that: the computer program when executed by a processor implements:
steps of a data transmission method according to any of claims 1-10, or
The steps of the data transmission method according to any of claims 11-14.
CN201810450835.5A 2018-05-11 2018-05-11 Data transmission method, server, terminal, network system and storage medium Active CN108683728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810450835.5A CN108683728B (en) 2018-05-11 2018-05-11 Data transmission method, server, terminal, network system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810450835.5A CN108683728B (en) 2018-05-11 2018-05-11 Data transmission method, server, terminal, network system and storage medium

Publications (2)

Publication Number Publication Date
CN108683728A CN108683728A (en) 2018-10-19
CN108683728B true CN108683728B (en) 2022-02-25

Family

ID=63805549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810450835.5A Active CN108683728B (en) 2018-05-11 2018-05-11 Data transmission method, server, terminal, network system and storage medium

Country Status (1)

Country Link
CN (1) CN108683728B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11122110B2 (en) 2019-06-11 2021-09-14 Advanced New Technologies Co., Ltd. Blockchain-based file processing method, apparatus, and device, and storage medium
CN110298194B (en) * 2019-06-11 2024-02-02 创新先进技术有限公司 File processing method, device, equipment and storage medium based on block chain
CN111460028A (en) * 2020-03-09 2020-07-28 拉扎斯网络科技(上海)有限公司 Data transmission method, data transmission device, storage medium, and electronic apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610162A (en) * 2008-06-16 2009-12-23 华为技术有限公司 A kind of method, system and equipment that content is provided based on reciprocity storage networking
CN102833293A (en) * 2011-06-17 2012-12-19 腾讯科技(深圳)有限公司 Method for downloading resources in peer to server and peer (P2SP) network, and client
CN103581245A (en) * 2012-07-30 2014-02-12 腾讯科技(深圳)有限公司 Content delivery method and system of content delivery network

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090168752A1 (en) * 2007-12-31 2009-07-02 Jonathan Segel Method and apparatus for distributing content
US20130283097A1 (en) * 2012-04-23 2013-10-24 Yahoo! Inc. Dynamic network task distribution
WO2014021914A1 (en) * 2012-08-01 2014-02-06 Whisper Innovations, Llc System and method for providing and managing multiple content feeds and supplemental content by information provider using an on-screen interactive interface
US9705907B2 (en) * 2015-02-04 2017-07-11 Cisco Technology, Inc. Inspected content delivery with peer-to-peer streaming
CN105450535B (en) * 2015-11-10 2018-11-27 深圳市网心科技有限公司 A kind of CDN node resource deployment system and method for magnanimity

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610162A (en) * 2008-06-16 2009-12-23 华为技术有限公司 A kind of method, system and equipment that content is provided based on reciprocity storage networking
CN102833293A (en) * 2011-06-17 2012-12-19 腾讯科技(深圳)有限公司 Method for downloading resources in peer to server and peer (P2SP) network, and client
CN103581245A (en) * 2012-07-30 2014-02-12 腾讯科技(深圳)有限公司 Content delivery method and system of content delivery network

Also Published As

Publication number Publication date
CN108683728A (en) 2018-10-19

Similar Documents

Publication Publication Date Title
CN108683730B (en) Resource scheduling method, service server, client terminal, network system and medium
EP3143540B1 (en) Distributing content in managed wireless distribution networks
EP3143539B1 (en) Content discovery in managed wireless distribution networks
CN104539977B (en) Method for previewing and device is broadcast live
CN108683728B (en) Data transmission method, server, terminal, network system and storage medium
EP3143541B1 (en) Content delivery prioritization in managed wireless distribution networks
EP3143748B1 (en) Managed wireless distribution network
US20150113156A1 (en) Prioritized blocking of on-demand requests
US20210160294A1 (en) Methods, devices, and systems for live video streaming from a remote location based on a received request utilizing keep alive messages
CN108616600B (en) Resource scheduling method, client server, node device, network system, and medium
EP2583435A1 (en) Improved peer-to-peer system
CN108667935A (en) Network service method, server, network system and storage medium
CN104394221B (en) Utilize edge service node for Stream Media Application carry out accelerate process method and system
CN104506884A (en) Virtual-CDN (Content Delivery Network)-based video-on-demand streaming system
US11202108B2 (en) Augmenting dynamic ad insertion inventory with unused inventory
JP2017126983A (en) Method and system for sharing live broadcast data
CN108683726B (en) Data transmission method, server, terminal, network system and storage medium
US20230239347A1 (en) Assisted delivery service for networks
CN112217910A (en) Video service access method, device, network equipment and storage medium
EP3457633A1 (en) Bandwith policy management in a self-corrected content delivery network
US8924515B1 (en) Distribution of applications over a dispersed network
CN108737121B (en) Cost accounting method, node device, client server, network system, and medium
CN108683515B (en) Fee accounting method, client terminal, service server, network system and medium
US8301775B2 (en) Affiliate bandwidth management
Matsumoto et al. A distributed internet live broadcasting system for multi-viewpoint videos

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