CN113497818A - Data sharing method and sharing system - Google Patents
Data sharing method and sharing system Download PDFInfo
- Publication number
- CN113497818A CN113497818A CN202010250196.5A CN202010250196A CN113497818A CN 113497818 A CN113497818 A CN 113497818A CN 202010250196 A CN202010250196 A CN 202010250196A CN 113497818 A CN113497818 A CN 113497818A
- Authority
- CN
- China
- Prior art keywords
- data
- terminal device
- target terminal
- request
- downloaded
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000005540 biological transmission Effects 0.000 claims description 34
- 238000004590 computer program Methods 0.000 claims description 6
- 230000004044 response Effects 0.000 claims description 4
- 238000004891 communication Methods 0.000 description 8
- 230000007246 mechanism Effects 0.000 description 5
- 238000012423 maintenance Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a data sharing method and terminal equipment, wherein the method is applied to a data sharing system; the method comprises the following steps: the block chain network receives a data downloading request sent by a request terminal device; the block chain network detects whether a target terminal device exists in the plurality of terminal devices based on the data identification; and the block chain network feeds back the equipment information of the target terminal equipment to the request terminal equipment so that the request terminal equipment downloads the data to be downloaded from the target terminal equipment according to the equipment information. According to the invention, the target terminal device and the request terminal device are in the same block chain network, and the request terminal device can acquire the data to be downloaded from the target terminal device, so that the access resource rate and bandwidth data sharing of the terminal devices in the sharing system are realized, the downloading speed of the data to be downloaded is increased, and the video playing fluency can be further increased.
Description
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a data sharing method and a data sharing system.
Background
At present, when a terminal device (for example, a smart television or a smart phone) plays a video file, it is generally required to access a server through a network to download the video file, so that the downloading of the video file is limited by a network bandwidth, and when the network bandwidth is insufficient, a situation that network buffer data is slow occurs, which further causes unsmooth playing (for example, picture blockage and the like) and brings inconvenience to a user.
Disclosure of Invention
The present invention provides a data sharing method and a data sharing system, which are directed to overcome the disadvantages of the prior art.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a data sharing method is applied to a data sharing system, the data sharing system comprises a plurality of terminal devices and a block chain network, and the terminal devices are communicated with each other; the method comprises the following steps:
the block chain network receives a data downloading request sent by a request terminal device, wherein the data downloading request carries a data identifier of data to be downloaded;
the block chain network detects whether a target terminal device exists in the plurality of terminal devices or not based on the data identification, wherein the target terminal device stores the data to be downloaded;
when the target terminal device is detected, the block chain network feeds back the device information of the target terminal device to the request terminal device, so that the request terminal device downloads the data to be downloaded from the target terminal device according to the device information.
According to the data sharing method, the block chain network stores a stored data list of each terminal device in a plurality of terminal devices; the block chain network detects whether a target terminal device exists in the plurality of terminal devices based on the data identifier specifically comprises:
and the block chain network searches the data identification in each stored data list to determine whether a target terminal device exists in a plurality of terminal devices, wherein the stored data list corresponding to the target terminal device comprises the data identification.
According to the data sharing method, at least two target terminal devices are detected; the block chain network feeds back the device information of the target terminal device to the requesting terminal device, so that the downloading of the data to be downloaded from the target terminal device by the requesting terminal device according to the device information specifically includes:
the block chain network respectively determines the data transmission speed between the request terminal equipment and each target terminal equipment;
the block chain network selects a target terminal device from at least two target terminal devices according to all the determined data transmission speeds;
and the block chain network takes the selected target terminal equipment as target terminal equipment corresponding to the data downloading request, and feeds back equipment information of the target terminal equipment to the request terminal equipment, so that the request terminal equipment downloads the data to be downloaded from the target terminal equipment according to the equipment information.
According to the data sharing method, the target terminal device corresponding to the data downloading request is the target terminal device with the highest data transmission speed in each target terminal.
A data sharing method is applied to a data sharing system, the data sharing system comprises a plurality of terminal devices and a block chain network, and the terminal devices are communicated with each other; the method comprises the following steps:
requesting terminal equipment to respond to a data downloading instruction, wherein the data downloading instruction carries a data identifier of data to be downloaded;
the request terminal device sends a data downloading request to the blockchain network based on the data identifier so as to search a target terminal device in the plurality of terminal devices through the blockchain network, wherein the target terminal device stores the data to be downloaded;
and the request terminal equipment is communicated with the searched target terminal equipment, and the data to be downloaded is downloaded from the target terminal equipment.
According to the data sharing method, the target terminal device is not found by the block chain network; the method further comprises the following steps:
and the request terminal equipment downloads the data to be downloaded from a server, wherein the server stores the data to be downloaded.
The data sharing method is characterized in that the request terminal device belongs to the data sharing system.
A data sharing system comprises a plurality of terminal devices and a block chain network, wherein the terminal devices are all communicated with the block chain network, the terminal devices are mutually communicated, and each terminal device in the terminals can be a request terminal device;
the request terminal is used for receiving a response data downloading instruction and sending a data downloading request corresponding to the data downloading instruction to the block chain network; downloading the data to be downloaded from the target terminal equipment according to the equipment information of the target terminal equipment, wherein the data downloading instruction carries the data identification of the data to be downloaded;
the block chain network is used for receiving the data downloading request, detecting whether a target terminal device exists in the plurality of terminal devices or not based on the data identification, and feeding back device information of the target terminal device to the request terminal device when the target terminal device is detected, wherein the target terminal device stores the data to be downloaded.
The data sharing system is configured to, when the target terminal device is not found in the blockchain network, download the data to be downloaded from the server, where the server stores the data to be downloaded.
A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of any of the methods described above when executing the computer program.
Has the advantages that: compared with the prior art, the invention provides a data sharing method and terminal equipment, wherein the method is applied to a data sharing system; the method comprises the following steps: the block chain network receives a data downloading request sent by a request terminal device; the block chain network detects whether a target terminal device exists in the plurality of terminal devices based on the data identification; and the block chain network feeds back the equipment information of the target terminal equipment to the request terminal equipment so that the request terminal equipment downloads the data to be downloaded from the target terminal equipment according to the equipment information. According to the invention, the target terminal device and the request terminal device are in the same block chain network, and the request terminal device can acquire the data to be downloaded from the target terminal device, so that the access resource rate and bandwidth data sharing of the terminal devices in the sharing system are realized, the downloading speed of the data to be downloaded is increased, and the video playing fluency can be further increased.
Drawings
Fig. 1 is a flowchart of a data sharing method provided in the present invention.
Fig. 2 is a schematic structural diagram of a block chain network according to the present invention.
Detailed Description
The present invention provides a data sharing method and a data sharing system, and in order to make the objects, technical solutions, and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The embodiment provides a data sharing method, which can be applied to a data sharing system, where the data sharing system includes a plurality of terminal devices and a block chain network, and the terminal devices communicate with each other. Each of the plurality of terminal devices may be an electronic device implemented in various forms. For example, smart televisions, cell phones, tablet computers, palm top computers, Personal Digital Assistants (PDAs), and the like. The blockchain network may be an electronic device implemented in various forms, such as a server, a cloud server, and the like. In addition, the functions realized by the method can be realized by calling the program code by a processor in the electronic equipment, and the program code can be saved in a computer storage medium.
The present embodiment provides a data sharing method, which is applied to a data sharing system, as shown in fig. 1, where the data sharing system includes a plurality of terminal devices (e.g., a smart television, etc.) and a blockchain network, the terminal devices are all in communication with the blockchain network, and the terminal devices are in communication with each other. And the terminal devices in the block chain network can communicate with each other and share resources. It can be understood that each of the plurality of terminal devices may be connected to the internet, and each of the plurality of terminal devices may access the network of the other terminal devices in the sharing system, so that any two terminal devices of the plurality of terminal devices may directly access each other. Of course, it is worth explaining that several terminal devices may be in different physical locations, and the block chain network may be a local area network, a wide area network, a metropolitan area network, or the like.
Further, in an implementation manner of this embodiment, the data sharing system may be configured with a unique network identifier, and each terminal device in the data sharing system joins the data sharing system in a registration manner. For example, when the terminal device a needs to join the data sharing system, the terminal device a acquires the network identifier of the data sharing system, and sends a registration request to the blockchain network based on the network identifier, and the blockchain network receives the registration request and joins the terminal device a to the sharing system based on the registration request, so that the terminal device a becomes a terminal device of the data sharing system. The blockchain network may be a server for managing the shared system, or may be a terminal device in the data shared system.
Further, the plurality of terminal devices may communicate with each other based on a consensus mechanism, where the consensus mechanism is a rule for communication of each terminal device in the data sharing system, each terminal device in the data sharing system complies with the consensus mechanism, and each terminal device in the data sharing system performs communication and data sharing based on the consensus mechanism. In this embodiment, the consensus mechanism may be to share data based on a download request, where the request is to send a download request from one terminal device to another terminal device in the data sharing system. It can be understood that the request is a download request sent between terminal devices in the data sharing system, for example, terminal device a and terminal device B in the data sharing system, and when terminal device B sends a download request to terminal device a, terminal device a feeds back first data corresponding to the download request to terminal device B according to the download request, so as to share the first data with terminal device B.
Specifically, as shown in fig. 2, the data sharing method may include the following steps:
s10, requesting the terminal device to respond to a data downloading instruction, wherein the data downloading instruction carries a data identifier of the data to be downloaded.
Specifically, the requesting terminal device is a terminal device that receives the data downloading instruction from the plurality of terminal devices, where the requesting terminal device may be any terminal device of the plurality of terminal devices. It is understood that when any terminal device in the plurality of terminal devices receives the data download instruction, the terminal device acts as a request terminal device, and the request terminal device is in communication with the blockchain network and the request terminal device is in communication with the plurality of terminal devices.
The data downloading instruction is a control instruction which is received by the request terminal equipment and is used for triggering the request terminal equipment to acquire the data to be downloaded. It can be understood that, after the requesting terminal device receives the data downloading instruction and responds to the data downloading instruction, the requesting terminal device generates a data downloading request, so as to obtain the data to be downloaded through the data downloading request. The data to be downloaded may be video data, audio data, or the like. The data downloading instruction carries a data identifier of the data to be downloaded, the data identifier is a unique identifier of the data to be downloaded, the data to be downloaded can be uniquely determined based on the data identifier, and the data identifier is, for example, a Uniform Resource Locator (URL), a data ID, and the like. In an implementation manner of this embodiment, the data identifier uses a uniform resource locator URL.
Further, the data download instruction may be a data download instruction sent by an external device, or may be a data download instruction generated by the requesting terminal device itself, for example, a data download instruction generated by triggering a trigger key of a display interface of the requesting terminal device, or a data download instruction generated by clicking a data preview image of the display interface of the requesting terminal device, or the like. Of course, in practical applications, the data downloading instruction may also be generated in other forms, for example, by a control signal output by a remote control device.
And S20, the request terminal device sends a data downloading request to the blockchain network based on the data identification.
Specifically, the data download request is formed by requesting the terminal device to apply the data download instruction, and is used for sending the data request to the blockchain network. And the request terminal equipment sends a requirement for acquiring the data to be downloaded to the blockchain network based on the data downloading request, wherein the data downloading request carries the data identifier, so that the blockchain network can acquire the data identifier according to the data downloading request to determine the data to be downloaded, which is required to be acquired by the request terminal equipment. It can be understood that the requesting terminal device is connected to the blockchain network, and when the requesting terminal device generates a data download request in response to a data download instruction, the data download request carries the data identifier, so that when the blockchain network receives the data download request, the blockchain network can obtain the data identifier in the data download request. In an implementation manner of this embodiment, the data downloading request may be sent in a data message form.
And S30, the block chain network receives a data downloading request sent by the request terminal equipment.
Specifically, when the block chain network receives a data download request, the data download request is analyzed to obtain a data identifier carried by the data download request. In practical application, the data downloading request may carry an equipment identifier of the requesting terminal equipment, and when the blockchain network receives the data downloading request, the blockchain network extracts the equipment identifier carried by the data downloading request and compares the extracted equipment identifier with an equipment identifier stored in the blockchain network; if the two are consistent, the data downloading request is analyzed to obtain the data identifier; and if the data downloading request is inconsistent with the data downloading request, discarding the data downloading request, so that the data downloading request is verified through the equipment identifier, and the safety of the data stored in each terminal equipment in the data sharing system can be improved.
And S40, the block chain network detects whether a target terminal device exists in the plurality of terminal devices based on the data identification, wherein the target terminal device stores the data to be downloaded.
Specifically, the target terminal device is a terminal device in the data sharing system, the target terminal device communicates with the blockchain network, and the blockchain network can acquire data stored in the target terminal device. The data identification is used for detecting whether a target terminal device exists in the plurality of terminal devices or not, namely detecting whether a terminal device storing data to be downloaded exists in the plurality of terminal devices or not, and using the terminal device storing the data to be downloaded as the target terminal device, so that the terminal device storing the data to be downloaded is stored in the plurality of terminal devices of the target terminal device.
Further, in an implementation manner of this embodiment, the blockchain network stores a storage data list of each of the plurality of terminal devices; the block chain network detects whether a target terminal device exists in the plurality of terminal devices based on the data identifier specifically comprises:
and the block chain network searches the data identification in each stored data list to determine whether a target terminal device exists in a plurality of terminal devices, wherein the stored data list corresponding to the target terminal device comprises the data identification.
Specifically, the stored data list is used for storing data identifiers stored in the terminal device, and each terminal device in the plurality of terminal devices corresponds to one stored data list. That is, the stored data list in the blockchain network corresponds to several terminal devices in the data sharing system one to one. For example, if the data sharing system includes a terminal device a and a terminal device B, the blockchain network stores a data list a and a data list B, and the data list a corresponds to the terminal device a and is used for storing data information stored in the terminal device a; the storage data list B corresponds to the terminal device B and is used for storing data information stored in the terminal device B. In addition, in this embodiment, the data identifier is stored in the stored data list, so that after the data identifier of the data to be downloaded is obtained, the block link network can directly search the data identifier in the stored data list corresponding to each terminal device, so as to detect whether a target terminal device storing the data to be downloaded exists in the data sharing system, thereby increasing the search speed of the target terminal device. It should be noted that, when any terminal device in the data sharing system downloads data, the data identifier corresponding to the data is sent to the blockchain network, and the blockchain network receives the data identifier and stores the data identifier in the stored data list corresponding to the terminal device, so as to maintain the accuracy of the stored data list.
Further, in an implementation manner of this embodiment, the process of detecting the target terminal device by the blockchain network may further include: the blockchain network can detect whether target terminal equipment storing data to be downloaded exists in a plurality of terminals in the data sharing system or not by sending query requests. It can be understood that the block chain network sends an inquiry request to each terminal of the plurality of terminal devices, wherein the inquiry request carries a data identifier of data to be downloaded; each terminal device in the plurality of terminal devices receives the query request, determines whether the terminal device stores the data to be downloaded corresponding to the data identifier according to the data identifier, and when the data to be downloaded exists, the feedback information can be generated to the blockchain network, and the blockchain network determines the target terminal device storing the data to be downloaded in the plurality of terminal devices according to the received feedback information, so that whether the target terminal device storing the data to be downloaded exists in the plurality of terminal devices is detected, and meanwhile, the problem of target terminal device omission caused by data information storage omission in the blockchain network can be avoided through the feedback information of each terminal device, and further the detection accuracy is improved. Therefore, the detecting, by the blockchain network based on the data identifier, whether the target terminal device exists in the plurality of terminal devices may specifically be: the block chain network generates a query request to each terminal device in the plurality of terminal devices, wherein the query request carries the data identifier; monitoring feedback information sent by the terminal equipment based on the query request; and determining whether a target terminal device storing the data to be downloaded exists in the plurality of terminal devices according to the monitored feedback information, wherein the target terminal device is the terminal device sending the feedback information. It should be noted that, of course, the requesting terminal device sends the data download request to the blockchain network, and the blockchain network may not send the query request to the requesting terminal device.
For example, the following steps are carried out: the method comprises the steps that a plurality of terminal devices are assumed to comprise a terminal device A, a terminal device B, a terminal device C and a terminal device D, the terminal device A, the terminal device B, the terminal device C and the terminal device D can be connected with a network, and the terminal device A, the terminal device B, the terminal device C and the terminal device D can be communicated with each other. If the terminal equipment A sends a data downloading request to the block chain network; then, the blockchain network sends query requests carrying URLs to the terminal device B, the terminal device C and the terminal device D respectively; the block chain network receives the feedback information sent by the terminal equipment B and the terminal equipment C, and does not receive the feedback information sent by the terminal equipment D; it means that terminal B and terminal C store data to be downloaded, and terminal D stores data to be downloaded.
And S50, when the target terminal device is detected, the block chain network feeds back the device information of the target terminal device to the request terminal device.
Specifically, the device information of the target terminal device is a unique identifier of the target terminal device, and the terminal device is requested to access the target terminal device according to the device information. For example, the device information is a network address, an IP address, or a MAC address of the target terminal device. In addition, when detecting whether a target terminal device storing the data to be downloaded exists in the plurality of terminal devices, the detected target terminal device may be one or a plurality of terminal devices, wherein when the target terminal device is one, the block chain network may directly feed back the target terminal device to the requesting terminal device; when a plurality of target terminal devices are provided, one target terminal device needs to be selected from the plurality of target terminal devices as a target terminal device corresponding to the request terminal device, so that the request terminal device downloads the data to be downloaded from the target terminal device. The selection mode of the target terminal device may be a random selection mode, or a target terminal device corresponding to the request terminal device may be determined according to the data transmission speed between the request terminal device and each target terminal device, or a target terminal device may be determined according to a physical distance between each target terminal device and the request terminal device (for example, a target device with the smallest physical distance is selected as a final device, and the like), where the physical distance may be determined based on the physical location of the request terminal device and the physical location of the target terminal device.
In an implementation manner of this embodiment, as shown in fig. 2, when the blockchain network detects at least two target terminal devices, the blockchain network feeds back device information of the target terminal devices to the requesting terminal device, so that the downloading, by the requesting terminal device, the data to be downloaded from the target terminal device according to the device information specifically includes:
the block chain network respectively determines the data transmission speed between the request terminal equipment and each target terminal equipment;
the block chain network selects a target terminal device from at least two target terminal devices according to all the determined data transmission speeds;
and the block chain network takes the selected target terminal equipment as target terminal equipment corresponding to the data downloading request, and feeds back equipment information of the target terminal equipment to the request terminal equipment, so that the request terminal equipment downloads the data to be downloaded from the target terminal equipment according to the equipment information.
Specifically, the data transmission speed refers to a speed at which the target terminal device transmits the data to be downloaded to the requesting terminal device. Each target terminal device is located at a different physical location, and the network efficiency, transmission delay and throughput of each target terminal device are different, so that the data transmission speed corresponding to each target terminal device is different, and thus the transmission efficiency corresponding to each terminal device is also different (i.e. the transmission duration required by each terminal device for transmitting the data to be downloaded is different), wherein the transmission efficiency from the target terminal device to the receiving transmission device is higher the faster the data transmission speed corresponding to the target terminal device is, and conversely, the transmission efficiency from the target terminal device to the receiving transmission device is lower the slower the data transmission speed corresponding to the target terminal device is. Thus, in an implementation manner of this embodiment, after determining the data transmission speeds corresponding to the target terminal devices, the target terminal device corresponding to the fastest data transmission speed among the data transmission speeds may be selected, and the target terminal device may be used as the target terminal device corresponding to the data download request (i.e., the target terminal device corresponding to the request terminal device).
Further, in this embodiment, after obtaining each target terminal device, the shortest path algorithm may be adopted to determine the fastest data transmission speed from each target terminal device to the requesting terminal device, so as to determine the target terminal device. The fastest data transmission speed algorithm may be Dijkstra (Dijkstra) algorithm, where the Dijkstra algorithm is used to calculate the fastest data transmission speed from one node to another node, that is, the fastest data transmission speed from the requesting terminal device to each target terminal device is calculated through the Dijkstra algorithm. The Dijkstra algorithm determines the fastest data transmission speed by expanding outwards layer by taking a starting point as a center until the data transmission speed is expanded to a terminal point; in addition, dijkstra's algorithm is a shortest path algorithm of the prior art and will not be described in detail here.
For example, the following steps are carried out: the terminal device A is a request terminal device, the terminal device B and the terminal device C are respectively target terminal devices corresponding to the terminal device A, and if the data transmission speed from the terminal device A to the terminal device B is low and the data transmission speed from the terminal device A to the terminal device C is high based on a shortest path algorithm, the terminal device C is the target terminal device corresponding to the terminal device A; on the contrary, if the data transmission speed from the terminal device a to the terminal device B is fast and the data transmission speed from the terminal device a to the terminal device C is slow, the terminal device B is the target terminal device corresponding to the terminal device a.
And S60, the request terminal device communicates with the target terminal device based on the device information of the target terminal device, and downloads the data to be downloaded from the target terminal device.
Specifically, after the target terminal device is determined, the requesting terminal device sends a download request to the target terminal device, and the target terminal device communicates, so that the target terminal device transmits data to be downloaded to the requesting terminal device based on the download request. The request terminal device can establish connection with the target terminal device based on the device information of the target terminal device and can send a downloading request to the target terminal device, and therefore after the target terminal device receives the downloading request, the downloading request is responded to transmit the data to be downloaded to the request terminal device, the request terminal device can acquire the data to be downloaded through the target terminal device and wirelessly acquire the data to be downloaded from the server, and the access pressure of the server can be reduced. It can be understood that any terminal device in the data sharing system can be used as a server of other terminal devices, and any terminal device can also send a download request to other terminal devices, so that for any data (e.g., video data, etc.), as long as one terminal device accesses the server and acquires the data in the data sharing system, the other terminal devices in the data sharing system do not need to access the server, thereby reducing the number of times the server is accessed, reducing the high concurrency and maintenance and replacement frequency of the server, and increasing the service life of the server.
In addition, when detecting whether a target terminal device storing the data to be downloaded exists in the plurality of terminal devices, one target terminal may be detected or no target terminal may be detected in addition to the plurality of target terminal devices. Therefore, in an implementation manner of this embodiment, when it is detected that 1 target terminal device stores the data to be downloaded, the target terminal device is taken as a target terminal device corresponding to the request terminal device. In another implementation manner of this embodiment, if there is no target terminal device storing the data to be downloaded (that is, it is detected that there are 0 target terminal devices storing the data to be downloaded), the requesting terminal device sends a download request to the server over the network to download the data to be downloaded from the server, where the server is used to store a data resource, and the data resource includes the data to be downloaded.
In summary, the present embodiment provides a data sharing method, which is applied to a data sharing system; the method comprises the following steps: the block chain network receives a data downloading request sent by a request terminal device; the block chain network detects whether a target terminal device exists in the plurality of terminal devices based on the data identification; and the block chain network feeds back the equipment information of the target terminal equipment to the request terminal equipment so that the request terminal equipment downloads the data to be downloaded from the target terminal equipment according to the equipment information. In this embodiment, the target terminal device and the request terminal device are in the same data sharing system, and when receiving a data downloading instruction of the request terminal device, the data downloading instruction is responded to enable the request terminal device to download the data to be downloaded from the target terminal device. Therefore, the target terminal device can be used as a server corresponding to the request terminal device, and the access resource rate and bandwidth data sharing of the target terminal device and the request terminal device are realized, so that the downloading speed of the data to be downloaded is increased, and the video playing fluency can be further improved. Meanwhile, each terminal device in the data sharing system can be converted into a server, and for one video file, when one terminal device in the data sharing system acquires the video file, other terminal devices can be downloaded from the terminal device, so that the access times of the terminal device to the server are reduced, the high concurrency and maintenance and replacement frequency of the server are reduced, and the service life of the server is prolonged.
Based on the above data sharing method, this embodiment provides a data sharing system, where the data sharing system includes a plurality of terminal devices and a block chain network, the terminal devices are all in communication with the block chain network, and the terminal devices are in communication with each other; each terminal device in the plurality of terminals can be a request terminal device;
the request terminal is used for receiving a response data downloading instruction and sending a data downloading request corresponding to the data downloading instruction to the block chain network; downloading the data to be downloaded from the target terminal equipment according to the equipment information of the target terminal equipment, wherein the data downloading instruction carries the data identification of the data to be downloaded;
the block chain network is used for receiving the data downloading request, detecting whether a target terminal device exists in the plurality of terminal devices or not based on the data identification, and feeding back device information of the target terminal device to the request terminal device when the target terminal device is detected, wherein the target terminal device stores the data to be downloaded.
The data sharing system is configured to, when the target terminal device is not found in the blockchain network, download the data to be downloaded from the server, where the server stores the data to be downloaded.
Based on the above data sharing method, this embodiment further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the method in the above embodiment when executing the computer program.
It should be noted that, of course, the specific working procedures of each terminal device and the blockchain network in the data sharing system are described in detail in the above method, and are not stated herein one by one.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A data sharing method is characterized in that the method is applied to a data sharing system, the data sharing system comprises a plurality of terminal devices and a block chain network, and the terminal devices are communicated with each other; the method comprises the following steps:
the block chain network receives a data downloading request sent by a request terminal device, wherein the data downloading request carries a data identifier of data to be downloaded;
the block chain network detects whether a target terminal device exists in the plurality of terminal devices or not based on the data identification, wherein the target terminal device stores the data to be downloaded;
when the target terminal device is detected, the block chain network feeds back the device information of the target terminal device to the request terminal device, so that the request terminal device downloads the data to be downloaded from the target terminal device according to the device information.
2. The data sharing method according to claim 1, wherein the blockchain network stores a stored data list for each of a plurality of terminal devices; the block chain network detects whether a target terminal device exists in the plurality of terminal devices based on the data identifier specifically comprises:
and the block chain network searches the data identification in each stored data list to determine whether a target terminal device exists in a plurality of terminal devices, wherein the stored data list corresponding to the target terminal device comprises the data identification.
3. The data sharing method according to claim 1, wherein at least two target terminal devices are detected; the block chain network feeds back the device information of the target terminal device to the requesting terminal device, so that the downloading of the data to be downloaded from the target terminal device by the requesting terminal device according to the device information specifically includes:
the block chain network respectively determines the data transmission speed between the request terminal equipment and each target terminal equipment;
the block chain network selects a target terminal device from at least two target terminal devices according to all the determined data transmission speeds;
and the block chain network takes the selected target terminal equipment as target terminal equipment corresponding to the data downloading request, and feeds back equipment information of the target terminal equipment to the request terminal equipment, so that the request terminal equipment downloads the data to be downloaded from the target terminal equipment according to the equipment information.
4. The data sharing method according to claim 3, wherein the target terminal device corresponding to the data downloading request is a target terminal device with the fastest data transmission speed among the target terminals.
5. A data sharing method is characterized in that the method is applied to a data sharing system, the data sharing system comprises a plurality of terminal devices and a block chain network, and the terminal devices are communicated with each other; the method comprises the following steps:
requesting terminal equipment to respond to a data downloading instruction, wherein the data downloading instruction carries a data identifier of data to be downloaded;
the request terminal device sends a data downloading request to the blockchain network based on the data identifier so as to search a target terminal device in the plurality of terminal devices through the blockchain network, wherein the target terminal device stores the data to be downloaded;
and the request terminal equipment is communicated with the searched target terminal equipment, and the data to be downloaded is downloaded from the target terminal equipment.
6. The data sharing method according to claim 4, wherein the blockchain network does not find a target terminal device; the method further comprises the following steps:
and the request terminal equipment downloads the data to be downloaded from a server, wherein the server stores the data to be downloaded.
7. The data sharing method according to claim 4, wherein the requesting terminal device belongs to the data sharing system.
8. A data sharing system is characterized by comprising a plurality of terminal devices and a block chain network, wherein the terminal devices are all communicated with the block chain network, the terminal devices are mutually communicated, and each terminal device in the terminals can be a request terminal device;
the request terminal is used for receiving a response data downloading instruction and sending a data downloading request corresponding to the data downloading instruction to the block chain network; downloading the data to be downloaded from the target terminal equipment according to the equipment information of the target terminal equipment, wherein the data downloading instruction carries the data identification of the data to be downloaded;
the block chain network is used for receiving the data downloading request, detecting whether a target terminal device exists in the plurality of terminal devices or not based on the data identification, and feeding back device information of the target terminal device to the request terminal device when the target terminal device is detected, wherein the target terminal device stores the data to be downloaded.
9. The data sharing system according to claim 8, wherein the requesting terminal device is further configured to download the data to be downloaded from a server when the target terminal device is not found in a blockchain network, wherein the server stores the data to be downloaded.
10. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the steps of the method of any one of claims 1 to 4 or any one of claims 5 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010250196.5A CN113497818A (en) | 2020-04-01 | 2020-04-01 | Data sharing method and sharing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010250196.5A CN113497818A (en) | 2020-04-01 | 2020-04-01 | Data sharing method and sharing system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113497818A true CN113497818A (en) | 2021-10-12 |
Family
ID=77993902
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010250196.5A Pending CN113497818A (en) | 2020-04-01 | 2020-04-01 | Data sharing method and sharing system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113497818A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012129887A1 (en) * | 2011-03-25 | 2012-10-04 | 中兴通讯股份有限公司 | Method, system, and terminal for data downloading |
CN102801800A (en) * | 2012-08-03 | 2012-11-28 | 中国联合网络通信集团有限公司 | Method and system for performing resource sharing processing among plurality of wireless terminals |
WO2014172976A1 (en) * | 2013-04-27 | 2014-10-30 | 深圳创维数字技术股份有限公司 | Video sharing method and digital television terminal |
CN110059495A (en) * | 2018-12-14 | 2019-07-26 | 阿里巴巴集团控股有限公司 | Data sharing method, apparatus and system, electronic equipment |
CN110224808A (en) * | 2019-05-07 | 2019-09-10 | 深圳壹账通智能科技有限公司 | Bank data sharing method and relevant device based on block chain |
CN110636144A (en) * | 2019-11-07 | 2019-12-31 | 腾讯科技(深圳)有限公司 | Data downloading method and device |
-
2020
- 2020-04-01 CN CN202010250196.5A patent/CN113497818A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012129887A1 (en) * | 2011-03-25 | 2012-10-04 | 中兴通讯股份有限公司 | Method, system, and terminal for data downloading |
CN102801800A (en) * | 2012-08-03 | 2012-11-28 | 中国联合网络通信集团有限公司 | Method and system for performing resource sharing processing among plurality of wireless terminals |
WO2014172976A1 (en) * | 2013-04-27 | 2014-10-30 | 深圳创维数字技术股份有限公司 | Video sharing method and digital television terminal |
CN110059495A (en) * | 2018-12-14 | 2019-07-26 | 阿里巴巴集团控股有限公司 | Data sharing method, apparatus and system, electronic equipment |
CN110224808A (en) * | 2019-05-07 | 2019-09-10 | 深圳壹账通智能科技有限公司 | Bank data sharing method and relevant device based on block chain |
CN110636144A (en) * | 2019-11-07 | 2019-12-31 | 腾讯科技(深圳)有限公司 | Data downloading method and device |
Non-Patent Citations (1)
Title |
---|
王晶: "物流优化技术与方法", 中国财富出版社 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10666756B2 (en) | Request management for hierarchical cache | |
EP3550892B1 (en) | Method for network slice selection, user equipment, and network device | |
US8509753B2 (en) | Transfer of data-intensive content between portable devices | |
TWI392285B (en) | Method and apparatus for efficiently expanding a p2p network | |
KR20140009931A (en) | Communication method of contents requester and contents provider for providing contents and real-time streaming contents in a contents centric network based on contents name | |
CN103237060B (en) | A kind of data object acquisition, Apparatus and system | |
WO2016205948A1 (en) | A method of locating a mobile device and a cloud computer system employing same | |
KR101473660B1 (en) | Web-based real time data pushing method and system thereof | |
CN111263338A (en) | Network distribution method of Bluetooth Mesh network and related network distribution equipment and system | |
CN113452808A (en) | Domain name resolution method, device, equipment and storage medium | |
US9350606B2 (en) | System and method for assigning server to terminal and efficiently delivering messages to the terminal | |
EP1982442A1 (en) | Method and apparatus of searching for and acquiring handover information using dynamic host configuration protocol | |
CN108684021B (en) | Bluetooth low-power-consumption communication method and device | |
WO2008071566A1 (en) | System and methods for on-demand document provisioning using ad hoc networking | |
US9137331B2 (en) | Adaptive replication | |
CN112491951B (en) | Request processing method, server and storage medium in peer-to-peer network | |
US20090157896A1 (en) | Tcp offload engine apparatus and method for system call processing for static file transmission | |
CN109471713B (en) | Method and device for inquiring information | |
CN104754642B (en) | A kind of service-seeking method, apparatus and system and website | |
CN107992489B (en) | Data processing method and server | |
CN108337280B (en) | Resource updating method and device | |
CN109788075B (en) | Private network system, data acquisition method and edge server | |
US8392549B2 (en) | Apparatus and method for registering node and searching for floating internet protocol address using distributed network | |
WO2017045454A1 (en) | Method, device and system for realizing terminal access | |
US10003954B2 (en) | Method and apparatus for distributive mobility management |
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 |