CN113747252B - Method, device and system for transmitting multimedia resources - Google Patents

Method, device and system for transmitting multimedia resources Download PDF

Info

Publication number
CN113747252B
CN113747252B CN202010477763.0A CN202010477763A CN113747252B CN 113747252 B CN113747252 B CN 113747252B CN 202010477763 A CN202010477763 A CN 202010477763A CN 113747252 B CN113747252 B CN 113747252B
Authority
CN
China
Prior art keywords
peer node
resource
peer
node
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
CN202010477763.0A
Other languages
Chinese (zh)
Other versions
CN113747252A (en
Inventor
赵彦青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202010477763.0A priority Critical patent/CN113747252B/en
Publication of CN113747252A publication Critical patent/CN113747252A/en
Application granted granted Critical
Publication of CN113747252B publication Critical patent/CN113747252B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/632Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing using a connection between clients on a wide area network, e.g. setting up a peer-to-peer communication via Internet for retrieving video segments from the hard-disk of other client devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23106Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/27Server based end-user applications
    • H04N21/274Storing end-user multimedia data in response to end-user request, e.g. network recorder

Landscapes

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

Abstract

The application relates to a method, a device and a system for transmitting multimedia resources, wherein the method comprises the following steps: transmitting a resource request to a preload server, wherein the resource request is used for requesting pre-storing multimedia resources on a first peer node, and the preload server and the first peer node are deployed in a peer-to-peer network; receiving a first resource list returned by the preloading server in response to the resource request, wherein the first resource list is used for recording a resource identifier of a multimedia resource to be prestored in a first peer node; and downloading the multimedia resources according to the resource list, wherein the multimedia resources prestored by the first peer node are used for providing resource transmission for a second peer node, and the second peer node is a node in the peer-to-peer network. The method and the device solve the technical problem that the user who does not start P2P uploading cannot perform P2P transmission in the related technology.

Description

Method, device and system for transmitting multimedia resources
Technical Field
The present invention relates to the field of computers, and in particular, to a method, an apparatus, and a system for transmitting multimedia resources.
Background
The following problems exist in the current playing system integrated with the P2P (Peer-to-Peer) kernel: on the one hand, for the user who does not want to start P2P uploading, P2P cannot be performed. On the other hand, the P2P can only be performed in a node playing in real time, whether the interactive data can be performed depends on whether the playing progress of the two playing ends is similar, and if the playing progress is far away, the effective P2P cannot be performed. For the above problems, the current solution is to select nodes with similar playing progress to return according to the playing progress of the playing nodes by tracking the server tracker. But this solution increases the complexity of the tracker and does not solve the P2P transmission problem for users who do not start P2P upload.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The application provides a transmission method, a device and a system of multimedia resources, which at least solve the technical problem that a user who does not start P2P uploading cannot perform P2P transmission in the related technology.
According to an aspect of an embodiment of the present application, there is provided a method for transmitting a multimedia resource, including:
transmitting a resource request to a preload server, wherein the resource request is used for requesting pre-storing of multimedia resources on a first peer node, and the preload server and the first peer node are deployed in a peer-to-peer network;
receiving a first resource list returned by the preloading server in response to the resource request, wherein the first resource list is used for recording a resource identifier of a multimedia resource to be prestored in the first peer node;
and downloading the multimedia resources according to the resource list, wherein the multimedia resources prestored by the first peer node are used for providing resource transmission for a second peer node, and the second peer node is a node in the peer-to-peer network.
Optionally, before sending the resource request to the preload server, the method further comprises:
Starting the first peer node and connecting a selection server in the peer-to-peer network;
acquiring a tracking server address sent by the selection server;
and sending registration information to a tracking server indicated by the tracking server address, wherein the registration information is used for indicating the first peer node to be used for pre-storing multimedia resources.
Optionally, after downloading the multimedia resource according to the resource list, the method further comprises:
and sending a second resource list to the tracking server, wherein the second resource list is used for recording the resource identification of the multimedia resource pre-stored on the first peer node.
Optionally, after downloading the multimedia resource according to the resource list, the method further comprises:
receiving a connection establishment request, wherein the connection establishment request is used for requesting the first peer node to establish connection with a second peer node and acquiring data of a target multimedia resource from the first peer node;
searching the target multimedia resources from the multimedia resources prestored in the first peer node;
the target multimedia resource is provided for the second peer node.
According to another aspect of the embodiments of the present application, there is also provided a transmission system of a multimedia resource, including: a first peer node and a preload server, wherein,
The first peer node and the preload server are deployed in a peer-to-peer network, and the second peer node is a node in the peer-to-peer network;
the first peer node is configured to send a resource request to a preload server, where the resource request is used to request pre-storing of multimedia resources on the first peer node, and the preload server and the first peer node are deployed in a peer-to-peer network; receiving a first resource list returned by the preloading server in response to the resource request, wherein the first resource list is used for recording a resource identifier of a multimedia resource to be prestored in the first peer node; downloading multimedia resources according to the resource list, wherein the multimedia resources prestored by the first peer node are used for providing resource transmission for the second peer node;
the preload server is configured to receive the resource request sent by the first peer node, and return the first resource list in response to the resource request.
Optionally, the system further comprises: a selection server and a tracking server, wherein,
the first peer node is further configured to: before sending a resource request to a preload server, starting the first peer node and connecting with the selection server; acquiring a tracking server address sent by the selection server; transmitting registration information to a tracking server indicated by the tracking server address, wherein the registration information is used for indicating the first peer node to be used for pre-storing multimedia resources;
The selection server is used for: responding to the connection of the first peer node and sending the tracking server address to the first peer node;
the tracking server is used for: and receiving the registration information sent by the first peer node and recording the registration information.
Optionally, the first peer node is further configured to: after the multimedia resources are downloaded according to the resource list, a second resource list is sent to the tracking server, wherein the second resource list is used for recording the resource identifiers of the multimedia resources pre-stored on the first peer node;
the tracking server is further configured to: and receiving and storing the second resource list sent by the first peer node.
Optionally, the system further comprises: a second peer node, wherein,
the first peer node is configured to receive a connection establishment request after downloading the multimedia resource according to the resource list, where the connection establishment request is used to request the first peer node to establish a connection with a second peer node and obtain data of a target multimedia resource from the first peer node, and the second peer node is a node in the peer-to-peer network; searching the target multimedia resources from the multimedia resources prestored in the first peer node; providing the target multimedia resource for the first peer node;
The second peer node is configured to send the connection establishment request to the first peer node, and acquire the target multimedia resource provided by the first peer node.
According to another aspect of the embodiments of the present application, there is also provided a transmission device for a multimedia resource, including:
a first sending module, configured to send a resource request to a preload server, where the resource request is used to request pre-storing of multimedia resources on a first peer node, and the preload server and the first peer node are deployed in a peer-to-peer network;
the first receiving module is used for receiving a first resource list returned by the preloading server in response to the resource request, wherein the first resource list is used for recording the resource identification of the multimedia resource to be prestored by the first peer node;
and the downloading module is used for downloading the multimedia resources according to the resource list, wherein the multimedia resources prestored by the first peer node are used for providing resource transmission for a second peer node, and the second peer node is a node in the peer-to-peer network.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program that when executed performs the above-described method.
According to another aspect of the embodiments of the present application, there is also provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the method described above by the computer program.
In the embodiment of the application, a resource request is sent to a preload server, wherein the resource request is used for requesting to pre-store multimedia resources on a first peer node, and the preload server and the first peer node are deployed in a peer-to-peer network; receiving a first resource list returned by the preloading server in response to the resource request, wherein the first resource list is used for recording a resource identifier of a multimedia resource to be prestored in a first peer node; and downloading the multimedia resources according to the resource list, wherein the multimedia resources prestored by the first peer node are used for providing resource transmission for a second peer node, and the second peer node is a mode of nodes in the peer-to-peer network. The pre-stored multimedia resources are requested to the pre-load server by sending a request, the pre-load server returns a first resource list to the first peer node in response to the resource request, and the first peer node pre-stores the multimedia resources according to the first resource list, so that complete resource transmission is provided for a second peer node in the peer-to-peer network, resource sharing can be provided for the node which does not start P2P uploading, the technical effect of providing P2P transmission for the user which does not start P2P uploading is achieved, and the technical problem that the user which does not start P2P uploading cannot perform P2P transmission in the related art is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic diagram of a transmission system of multimedia resources according to an embodiment of the present application;
FIG. 2 is a flow chart of an alternative method of transmission of multimedia assets according to an embodiment of the application;
FIG. 3 is a schematic diagram of a peer startup procedure according to an alternative embodiment of the present application;
FIG. 4 is a schematic diagram of a real-time node interaction process with a super-peer in accordance with an alternative embodiment of the present application;
FIG. 5 is a schematic diagram of a super-peer processing procedure for a request for a connection establishment in accordance with an alternative embodiment of the present application;
fig. 6 is a schematic diagram of an alternative multimedia asset transmission device according to an embodiment of the present application;
and
Fig. 7 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiments of the present application, a method embodiment of transmission of a multimedia resource is provided.
Alternatively, in the present embodiment, the above-described transmission method of multimedia resources may be applied to a system composed of the first peer node 101, the second peer node 103, and the preload server 105 as shown in fig. 1. As shown in fig. 1, the first peer node 101 is connected to the second peer node 103 and the preloading server 105 through a network, where the first peer node 101 and the second peer node 103 may be terminals or clients installed on the terminals, or servers providing services (such as game services, application services, etc.) to the terminals or clients installed on the terminals, and a database may be provided on the servers or independent of the servers, for providing data storage services to the first peer node 101 and the second peer node 103, where the network includes, but is not limited to: the first peer node 101 is not limited to a PC, a mobile phone, a tablet computer, or the like. The method for transmitting the multimedia resource according to the embodiment of the present application may be performed by the first peer node 101, or may be performed jointly by the first peer node 101 and the second peer node 103. The method for the first peer node 101 to perform the transmission of the multimedia resource according to the embodiment of the present application may also be performed by a client installed thereon.
Optionally, in this embodiment, the first peer node and the preload server are deployed in a peer-to-peer network, and the second peer node is a node in the peer-to-peer network;
the first peer node is configured to send a resource request to a preload server, where the resource request is used to request pre-storing of multimedia resources on the first peer node, and the preload server and the first peer node are deployed in a peer-to-peer network; receiving a first resource list returned by the preloading server in response to the resource request, wherein the first resource list is used for recording a resource identifier of a multimedia resource to be prestored in the first peer node; downloading multimedia resources according to the resource list, wherein the multimedia resources prestored by the first peer node are used for providing resource transmission for the second peer node;
the preload server is configured to receive the resource request sent by the first peer node, and return the first resource list in response to the resource request.
Optionally, in this embodiment, the system further includes: a selection server and a tracking server, wherein the first peer node is further configured to: before sending a resource request to a preload server, starting the first peer node and connecting with the selection server; acquiring a tracking server address sent by the selection server; transmitting registration information to a tracking server indicated by the tracking server address, wherein the registration information is used for indicating the first peer node to be used for pre-storing multimedia resources;
The selection server is used for: responding to the connection of the first peer node and sending the tracking server address to the first peer node;
the tracking server is used for: and receiving the registration information sent by the first peer node and recording the registration information.
Optionally, in this embodiment, the first peer node is further configured to: after the multimedia resources are downloaded according to the resource list, a second resource list is sent to the tracking server, wherein the second resource list is used for recording the resource identifiers of the multimedia resources pre-stored on the first peer node;
the tracking server is further configured to: and receiving and storing the second resource list sent by the first peer node.
Optionally, in this embodiment, the system further includes: a second peer node, wherein,
the first peer node is configured to receive a connection establishment request after downloading the multimedia resource according to the resource list, where the connection establishment request is used to request the first peer node to establish a connection with a second peer node and obtain data of a target multimedia resource from the first peer node, and the second peer node is a node in the peer-to-peer network; searching the target multimedia resources from the multimedia resources prestored in the first peer node; providing the target multimedia resource for the second peer node;
The second peer node is configured to send the connection establishment request to the first peer node, and acquire the target multimedia resource provided by the first peer node.
Fig. 2 is a flowchart of an alternative method for transmitting multimedia resources according to an embodiment of the present application, and as shown in fig. 2, the method may include the following steps:
step S202, a resource request is sent to a preloading server, wherein the resource request is used for requesting to pre-store multimedia resources on a first peer node, and the preloading server and the first peer node are deployed in a peer-to-peer network;
step S204, a first resource list returned by the preloading server in response to the resource request is received, wherein the first resource list is used for recording the resource identification of the multimedia resource to be prestored by the first peer node;
step S206, downloading the multimedia resources according to the resource list, wherein the multimedia resources pre-stored by the first peer node are used for providing resource transmission for a second peer node, and the second peer node is a node in the peer-to-peer network.
Through the steps S202 to S206, the pre-stored multimedia resources are requested to the pre-load server by sending the request, the pre-load server returns the first resource list to the first peer node in response to the resource request, and the first peer node pre-stores the multimedia resources according to the first resource list, so that complete resource transmission is provided for the second peer node in the peer-to-peer network, and resource sharing can be provided for the node which does not start P2P uploading, so that the technical effect of providing P2P transmission for the user which does not start P2P uploading is achieved, and the technical problem that the user which does not start P2P uploading cannot perform P2P transmission in the related art is solved.
On the other hand, once the first peer node stores a multimedia resource, the first peer node has all data of the resource, the data request from the second peer node to the first peer node is not limited by the playing progress any more, and in addition, the complexity of the tracker selection node is reduced by caching the complete multimedia data by the first peer node.
Alternatively, in the present embodiment, the multimedia asset may be, but is not limited to, any form of asset including video asset, audio asset, image asset, text asset, and the like.
In the technical solution provided in step S202, the first peer node may be, but not limited to, referred to as a super node, and may be deployed in advance in a peer-to-peer (P2P) network. The super node can pre-cache complete multimedia resource data, and after the pre-caching is successful, P2P sharing service is provided for the real-time node.
Alternatively, in this embodiment, the first peer node requests the pre-stored multimedia resources from the pre-load server through the resource request.
Alternatively, in this embodiment, the preload server may be, but is not limited to, a preloader.
In the technical solution provided in step S204, the first peer node pre-stores the complete data of the multimedia resource for providing P2P services for other nodes.
Alternatively, in the present embodiment, the one or more multimedia resources pre-stored on the first peer node may be, but are not limited to being, indicated by a preload server. The first peer node may, but is not limited to, actively send a resource request to the preload server to determine the multimedia resources that need to be pre-stored, the preload server returns a first resource list that records the resource identifications of the multimedia resources to be pre-stored to the first peer node, and the first peer node downloads and stores the resources according to the list.
In the technical solution provided in step S206, the first peer node downloads and pre-stores the multimedia resources according to the indication of the resource list.
Alternatively, in this embodiment, the second peer node may be, but not limited to, a playing end of the multimedia resource, and the second peer node may be, but not limited to, by sending a connection establishment request to the first peer node to request the first peer node to establish a connection and request to obtain data of the target multimedia resource for playing.
As an alternative embodiment, before sending the resource request to the preload server, the method further comprises:
s11, starting the first peer node and connecting a selection server in the peer-to-peer network;
S12, acquiring a tracking server address sent by the selection server;
and S13, transmitting registration information to the tracking server indicated by the tracking server address, wherein the registration information is used for indicating the first peer node to be used for pre-storing multimedia resources.
Alternatively, in this embodiment, the first peer node may actively register with the tracking server tracker as a super-peer, where the first peer node reports that the first peer node is a super-peer, and the second peer node reports P2P protocol information (such as port information available for communication) opened by the first peer node.
Alternatively, in this embodiment, the same resource may be stored on different super-peers, or may be stored on only one super-peer, and the storage policy may be determined by the tracker schedule. The super-peer may be a passive node, and the scheduling logic of the tracker may be independent of the super-peer, and may be determined by the service (for example, the service needs multiple super-peers to cache the same resource for sharing improvement, and then the same resource is set to be cached on multiple super-peers).
As an alternative embodiment, after downloading the multimedia resources according to the resource list, the method further comprises:
And S21, sending a second resource list to the tracking server, wherein the second resource list is used for recording the resource identification of the one or more multimedia resources.
Optionally, in this embodiment, the first peer node may also give the pre-cached list to the tracker, and the tracker returns the super-peer information according to the resource requested by the real-time node. The resource list transmitted to the tracker by the first peer node may be a first resource list acquired from the preloader (i.e., the second resource list may be the same as the first resource list), or the resource list transmitted to the tracker by the first peer node may be a resource list recording the resource identifier successfully cached on the first peer node (i.e., the first peer node may fail in caching the multimedia resource, the first peer node may transmit the information of the successfully cached resource to the tracker, and a retry mechanism may be started for the resource with failed caching until the information is transmitted to the tracker after the successful caching.
In an alternative embodiment, an alternative super-peer supporting pre-caching (i.e. the first peer node) startup procedure is provided, and fig. 3 is a schematic diagram of a peer node startup procedure according to an alternative embodiment of the present application, and as shown in fig. 3, the super-peer supporting pre-caching startup procedure includes the following steps:
In step S301, the super-peer connection selection server selector obtains the tracker address.
In step S302, the super-peer connects with the tracking server tracker according to the acquired tracker address and registers with the tracker.
In step S3021, the super-peer opens the P2P protocol.
In step S3022, the super-peer waits for other nodes to establish a connection.
Step S303, the super-peer performs pre-caching of the multimedia resource. The super-peer obtains a pre-cache list (i.e., a first resource list) from the preload server preloader.
And step S304, the super-peer caches resources according to the pre-cache list.
As an alternative embodiment, after downloading the multimedia resources according to the resource list, the method further comprises:
s31, receiving a connection establishment request, wherein the connection establishment request is used for requesting the first peer node to establish connection with the second peer node and acquiring data of a target multimedia resource from the first peer node;
s32, searching the target multimedia resource from the multimedia resources prestored in the first peer node;
and S33, providing the target multimedia resource for the second peer node.
Alternatively, in this embodiment, the second peer node may be, but not limited to, a playing end of the multimedia resource, and the connection establishment request may be, but not limited to, data sent by the second peer node to the first peer node, for requesting the first peer node to establish a connection and requesting to acquire the target multimedia resource for playing.
Optionally, in this embodiment, the first peer node pre-stores the complete data of the multimedia resource for providing P2P services for other nodes.
Alternatively, in this embodiment, if it is found that the target multimedia resource is pre-stored in the first peer node, a connection may be established with the second peer node, and the second peer node waits for a data request from the second peer node to provide the target multimedia resource for the second peer node.
The application also provides an alternative embodiment, which provides a P2P system supporting pre-caching, wherein super nodes (i.e. the first peer node and super-peer) are introduced into the system, after the super nodes are started, register with the tracker, acquire a list to be cached from a preloader server, cache multimedia resources according to the list, wait for connection of a real-time node (i.e. a second peer node) after caching is completed, and provide P2P sharing.
In this alternative embodiment, fig. 4 is a schematic diagram of a real-time node interaction process with a super-peer according to an alternative embodiment of the present application, where, as shown in fig. 4, the real-time node interaction process with the super-peer includes the following steps:
in step S401, the real-time node peer starts and connects with the selector to obtain the tracker address.
In step S402, the peer connects the tracker according to the acquired tracker address.
In step S403, the peer obtains super-peer information from the tracker.
And step S404, the peer connects the super-peer according to the acquired super-peer information.
In step S4041, if the connection is successful, the peer sends a data request to the super-peer.
In this alternative embodiment, fig. 5 is a schematic diagram of a super-peer processing procedure for a connection establishment request according to an alternative embodiment of the present application, and as shown in fig. 5, the super-peer processing procedure for the connection establishment request includes the following steps:
in step S501, the super-peer receives a connection establishment request sent by the peer.
In step S502, the super-peer parses the data of the connection request, and determines whether the requested multimedia resource exists in the multimedia resource cached by the super-peer.
Step S5021, if yes, the super-peer keeps connected with the peer, and waits for a data request sent by the peer.
Step S5022, if not, the super-peer disconnects from the peer and counts error information.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present application.
According to another aspect of the embodiments of the present application, there is also provided a multimedia resource transmission apparatus for implementing the above multimedia resource transmission method. Fig. 6 is a schematic diagram of an alternative multimedia resource transmission device according to an embodiment of the present application, as shown in fig. 6, the device may include:
a first sending module 62, configured to send a resource request to a preload server, where the resource request is used to request pre-storing of multimedia resources on a first peer node, the preload server and the first peer node being deployed in a peer-to-peer network;
A first receiving module 64, configured to receive a first resource list returned by the preload server in response to the resource request, where the first resource list is used to record a resource identifier of a multimedia resource to be pre-stored by the first peer node;
and a downloading module 66, configured to download multimedia resources according to the resource list, where the multimedia resources pre-stored by the first peer node are used to provide resource transmission for a second peer node, and the second peer node is a node in the peer-to-peer network.
It should be noted that, the first transmitting module 62 in this embodiment may be used to perform step S202 in the embodiment of the present application, the first receiving module 64 in this embodiment may be used to perform step S204 in the embodiment of the present application, and the downloading module 66 in this embodiment may be used to perform step S206 in the embodiment of the present application.
It should be noted that the above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiments. It should be noted that the above modules may be implemented in software or hardware as a part of the apparatus in the hardware environment shown in fig. 1.
Through the module, the pre-stored multimedia resources are requested to the pre-load server by sending the request, the pre-load server returns a first resource list to the first peer node in response to the resource request, and the first peer node pre-stores the multimedia resources according to the first resource list, so that complete resource transmission is provided for a second peer node in the peer-to-peer network, resource sharing can be provided for the node which does not start P2P uploading, the technical effect of providing P2P transmission for the user which does not start P2P uploading is achieved, and the technical problem that the user which does not start P2P uploading in the related art cannot perform P2P transmission is solved.
On the other hand, once the first peer node stores a multimedia resource, the first peer node has all data of the resource, the data request from the second peer node to the first peer node is not limited by the playing progress any more, and in addition, the complexity of the tracker selection node is reduced by caching the complete multimedia data by the first peer node.
As an alternative embodiment, the apparatus further comprises:
the starting module is used for starting the first peer node and connecting with a selection server in the peer-to-peer network before sending a resource request to the preloading server;
The acquisition module is used for acquiring the address of the tracking server sent by the selection server;
and the second sending module is used for sending registration information to the tracking server indicated by the tracking server address, wherein the registration information is used for indicating the first peer node to pre-store the multimedia resource.
As an alternative embodiment, the apparatus further comprises:
and the third sending module is used for sending a second resource list to the tracking server after the multimedia resources are downloaded according to the resource list, wherein the second resource list is used for recording the resource identification of the multimedia resources pre-stored on the first peer node.
As an alternative embodiment, the apparatus further comprises:
a second receiving module, configured to receive a connection establishment request after downloading a multimedia resource according to the resource list, where the connection establishment request is used to request the first peer node to establish a connection with a second peer node and obtain data of a target multimedia resource from the first peer node, and the second peer node is a node in the peer-to-peer network;
the searching module is used for searching the target multimedia resources from the multimedia resources prestored in the first peer node;
And the providing module is used for providing the target multimedia resource for the second peer node.
It should be noted that the above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiments. It should be noted that the above modules may be implemented in software or in hardware as part of the apparatus shown in fig. 1, where the hardware environment includes a network environment.
According to another aspect of the embodiments of the present application, there is also provided a server or a terminal for implementing the above-mentioned transmission method of multimedia resources.
Fig. 7 is a block diagram of a terminal according to an embodiment of the present application, and as shown in fig. 7, the terminal may include: one or more (only one is shown in the figure) processors 701, memory 703, and transmission means 705, as shown in fig. 7, the terminal may further comprise an input output device 707.
The memory 703 may be used to store software programs and modules, such as program instructions/modules corresponding to the transmission method and apparatus of the multimedia resource in the embodiments of the present application, and the processor 701 executes the software programs and modules stored in the memory 703, thereby executing various functional applications and data processing, that is, implementing the above-mentioned transmission method of the multimedia resource. The memory 703 may include high speed random access memory, but may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 703 may further include memory located remotely from the processor 701, which may be connected to the terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 705 is used for receiving or transmitting data via a network, and may also be used for data transmission between a processor and a memory. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 705 includes a network adapter (Network Interface Controller, NIC) that may be connected to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 705 is a Radio Frequency (RF) module for communicating with the internet wirelessly.
Among them, the memory 703 is used to store, in particular, application programs.
The processor 701 may call an application program stored in the memory 703 through the transmission means 705 to perform the steps of:
transmitting a resource request to a preload server, wherein the resource request is used for requesting pre-storing of multimedia resources on a first peer node, and the preload server and the first peer node are deployed in a peer-to-peer network;
receiving a first resource list returned by the preloading server in response to the resource request, wherein the first resource list is used for recording a resource identifier of a multimedia resource to be prestored in the first peer node;
And downloading the multimedia resources according to the resource list, wherein the multimedia resources prestored by the first peer node are used for providing resource transmission for a second peer node, and the second peer node is a node in the peer-to-peer network.
By adopting the embodiment of the application, a scheme for transmitting the multimedia resources is provided. The pre-stored multimedia resources are requested to the pre-load server by sending a request, the pre-load server returns a first resource list to the first peer node in response to the resource request, and the first peer node pre-stores the multimedia resources according to the first resource list, so that complete resource transmission is provided for a second peer node in the peer-to-peer network, resource sharing can be provided for the node which does not start P2P uploading, the technical effect of providing P2P transmission for the user which does not start P2P uploading is achieved, and the technical problem that the user which does not start P2P uploading cannot perform P2P transmission in the related art is solved.
On the other hand, once the first peer node stores a multimedia resource, the first peer node has all data of the resource, the data request from the second peer node to the first peer node is not limited by the playing progress any more, and in addition, the complexity of the tracker selection node is reduced by caching the complete multimedia data by the first peer node.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the structure shown in fig. 7 is only illustrative, and the terminal may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 7 is not limited to the structure of the electronic device. For example, the terminal may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in fig. 7, or have a different configuration than shown in fig. 7.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random access Memory (Random AccessMemory, RAM), magnetic disk or optical disk, and the like.
Embodiments of the present application also provide a storage medium. Alternatively, in the present embodiment, the above-described storage medium may be used for executing the program code of the transmission method of the multimedia resource.
Alternatively, in this embodiment, the storage medium may be located on at least one network device of the plurality of network devices in the network shown in the above embodiment.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of:
transmitting a resource request to a preload server, wherein the resource request is used for requesting pre-storing of multimedia resources on a first peer node, and the preload server and the first peer node are deployed in a peer-to-peer network;
receiving a first resource list returned by the preloading server in response to the resource request, wherein the first resource list is used for recording a resource identifier of a multimedia resource to be prestored in the first peer node;
and downloading the multimedia resources according to the resource list, wherein the multimedia resources prestored by the first peer node are used for providing resource transmission for a second peer node, and the second peer node is a node in the peer-to-peer network.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, randomAccess Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (10)

1. A method for transmitting a multimedia resource, comprising:
starting a first peer node and connecting a selection server in a peer-to-peer network;
Acquiring a tracking server address sent by the selection server;
transmitting registration information to a tracking server indicated by the tracking server address, wherein the registration information is used for indicating the first peer node to be used for pre-storing multimedia resources;
transmitting a resource request to a preload server, wherein the resource request is used for requesting pre-storing of multimedia resources on a first peer node, and the preload server and the first peer node are deployed in a peer-to-peer network;
receiving a first resource list returned by the preloading server in response to the resource request, wherein the first resource list is used for recording a resource identifier of a multimedia resource to be prestored in the first peer node;
and downloading the multimedia resources according to the resource list, wherein the multimedia resources prestored by the first peer node are used for providing resource transmission for a second peer node, and the second peer node is a node in the peer-to-peer network.
2. The method of claim 1, wherein after downloading the multimedia assets in accordance with the asset list, the method further comprises:
and sending a second resource list to the tracking server, wherein the second resource list is used for recording the resource identification of the multimedia resource pre-stored on the first peer node.
3. The method of claim 1, wherein after downloading the multimedia assets in accordance with the asset list, the method further comprises:
receiving a connection establishment request, wherein the connection establishment request is used for requesting the first peer node to establish connection with the second peer node and acquiring data of a target multimedia resource from the first peer node;
searching the target multimedia resources from the multimedia resources prestored in the first peer node;
the target multimedia resource is provided for the second peer node.
4. A transmission system for multimedia resources, comprising: a first peer node, a second peer node, and a preload server, wherein,
the first peer node and the preload server are deployed in a peer-to-peer network, and the second peer node is a node in the peer-to-peer network;
the first peer node is configured to send a resource request to a preload server, where the resource request is used to request pre-storing of multimedia resources on the first peer node, and the preload server and the first peer node are deployed in a peer-to-peer network; receiving a first resource list returned by the preloading server in response to the resource request, wherein the first resource list is used for recording a resource identifier of a multimedia resource to be prestored in the first peer node; downloading multimedia resources according to the resource list, wherein the multimedia resources prestored by the first peer node are used for providing resource transmission for the second peer node;
The preloading server is used for receiving the resource request sent by the first peer node and responding to the resource request to return to the first resource list;
the system further comprises: a selection server and a tracking server;
the first peer node is further configured to: before sending a resource request to a preload server, starting the first peer node and connecting with the selection server; acquiring a tracking server address sent by the selection server; and sending registration information to a tracking server indicated by the tracking server address, wherein the registration information is used for indicating the first peer node to be used for pre-storing multimedia resources.
5. The system of claim 4, wherein the system further comprises a controller configured to control the controller,
the selection server is used for: responding to the connection of the first peer node and sending the tracking server address to the first peer node;
the tracking server is used for: and receiving the registration information sent by the first peer node and recording the registration information.
6. The system of claim 5, wherein the system further comprises a controller configured to control the controller,
the first peer node is further configured to: after the multimedia resources are downloaded according to the resource list, a second resource list is sent to the tracking server, wherein the second resource list is used for recording the resource identifiers of the multimedia resources pre-stored on the first peer node;
The tracking server is further configured to: and receiving and storing the second resource list sent by the first peer node.
7. The system of claim 4, wherein the system further comprises: a second peer node, wherein,
the first peer node is configured to receive a connection establishment request after downloading the multimedia resource according to the resource list, where the connection establishment request is used to request the first peer node to establish a connection with a second peer node and obtain data of a target multimedia resource from the first peer node, and the second peer node is a node in the peer-to-peer network; searching the target multimedia resources from the multimedia resources prestored in the first peer node; providing the target multimedia resource for the second peer node;
the second peer node is configured to send the connection establishment request to the first peer node, and acquire the target multimedia resource provided by the first peer node.
8. A transmission apparatus for multimedia resources, comprising:
the system comprises a first peer node, a second peer node and a selection server, wherein the first peer node is used for starting the first peer node and connecting with the selection server in a peer-to-peer network; acquiring a tracking server address sent by the selection server; transmitting registration information to a tracking server indicated by the tracking server address, wherein the registration information is used for indicating the first peer node to be used for pre-storing multimedia resources;
A first sending module, configured to send a resource request to a preload server, where the resource request is used to request pre-storing of multimedia resources on a first peer node, and the preload server and the first peer node are deployed in a peer-to-peer network;
the first receiving module is used for receiving a first resource list returned by the preloading server in response to the resource request, wherein the first resource list is used for recording the resource identification of the multimedia resource to be prestored by the first peer node;
and the downloading module is used for downloading the multimedia resources according to the resource list, wherein the multimedia resources prestored by the first peer node are used for providing resource transmission for a second peer node, and the second peer node is a node in the peer-to-peer network.
9. A storage medium comprising a stored program, wherein the program when run performs the method of any one of the preceding claims 1 to 3.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor performs the method of any of the preceding claims 1 to 3 by means of the computer program.
CN202010477763.0A 2020-05-29 2020-05-29 Method, device and system for transmitting multimedia resources Active CN113747252B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010477763.0A CN113747252B (en) 2020-05-29 2020-05-29 Method, device and system for transmitting multimedia resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010477763.0A CN113747252B (en) 2020-05-29 2020-05-29 Method, device and system for transmitting multimedia resources

Publications (2)

Publication Number Publication Date
CN113747252A CN113747252A (en) 2021-12-03
CN113747252B true CN113747252B (en) 2023-07-07

Family

ID=78724816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010477763.0A Active CN113747252B (en) 2020-05-29 2020-05-29 Method, device and system for transmitting multimedia resources

Country Status (1)

Country Link
CN (1) CN113747252B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116264577A (en) * 2021-12-15 2023-06-16 华为云计算技术有限公司 Content distribution network system and content distribution method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231761A (en) * 2011-08-12 2011-11-02 乐视网信息技术(北京)股份有限公司 Peer-to-Peer (P2P) data interaction method

Also Published As

Publication number Publication date
CN113747252A (en) 2021-12-03

Similar Documents

Publication Publication Date Title
US8090813B2 (en) Methods and apparatus for data transfer
US9204180B2 (en) Method, server and terminal for audio and video on demand
CN108173774B (en) Client upgrading method and system
CN103597471A (en) Methods and systems for caching data communications over computer networks
US10848586B2 (en) Content delivery network (CDN) for uploading, caching and delivering user content
CN101917488A (en) BT download method, device and system
WO2021051747A1 (en) Data update method, system and device, electronic device, and computer storage medium
CN111314437B (en) Resource package downloading method and device, storage medium and electronic device
US20170171585A1 (en) Method and Electronic Device for Recording Live Streaming Media
CN113747252B (en) Method, device and system for transmitting multimedia resources
CN110213330B (en) Pre-push system, method, device, electronic equipment and computer readable medium
US8180857B2 (en) Method for downloading file in parallel
CN108874472B (en) Method and system for optimally displaying user head portraits
CN113746884B (en) Multimedia resource transmission method, device and system
JP5109901B2 (en) Session data sharing method
CN110895583B (en) Method, device and system for acquiring data resources
CN103731511B (en) Data acquiring method and data acquiring device in P2P (Peer-to-Peer) system
CN102904935A (en) Downloading method, downloading device and downloading system based on home gateway
CN105847396A (en) Data transmission method and device
CN113873302B (en) Content distribution method, content distribution device, storage medium and electronic equipment
KR101447504B1 (en) User terminal and data sharing method between applications thereof
CN114452642A (en) Game picture display method, storage medium and electronic device
CN113347234A (en) Network information acquisition method, device, system, computer equipment and storage medium
US20030076786A1 (en) Peer to peer network
CN116302618B (en) Session information processing method and device

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