CN113747252A - Multimedia resource transmission method, device and system - Google Patents

Multimedia resource transmission method, device and system Download PDF

Info

Publication number
CN113747252A
CN113747252A CN202010477763.0A CN202010477763A CN113747252A CN 113747252 A CN113747252 A CN 113747252A CN 202010477763 A CN202010477763 A CN 202010477763A CN 113747252 A CN113747252 A CN 113747252A
Authority
CN
China
Prior art keywords
resource
peer node
peer
server
node
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.)
Granted
Application number
CN202010477763.0A
Other languages
Chinese (zh)
Other versions
CN113747252B (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)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a method, a device and a system for transmitting multimedia resources, wherein the method comprises the following steps: sending a resource request to a preloading server, wherein the resource request is used for requesting that multimedia resources are prestored on a first peer node, and the preloading server and the first peer node are deployed in a peer-to-peer network; receiving a first resource list returned by a preloading server in response to a resource request, wherein the first resource list is used for recording a resource identifier of a multimedia resource to be prestored by 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 the P2P uploading in the related art cannot perform P2P transmission.

Description

Multimedia resource transmission method, device and system
Technical Field
The present application 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 playback system that integrates the P2P (Peer-to-Peer) kernel: on one hand, for a user who does not want to start the uploading of P2P, P2P cannot be performed. On the other hand, the P2P can only be performed in the node playing in real time, whether data can be interacted depends on whether the playing schedules of the two playing ends are close, and if the playing schedules are far apart, the valid P2P cannot be performed. For the above problem, the current solution is to select nodes with similar playing progress to return according to the playing progress of the playing node by a tracking server tracker. However, this solution increases the complexity of the tracker and does not solve the problem of P2P transmission for users who do not start P2P uploading.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The application provides a method, a device and a system for transmitting multimedia resources, which are used for at least solving the technical problem that users who do not start P2P uploading cannot perform P2P transmission in the related art.
According to an aspect of an embodiment of the present application, there is provided a method for transmitting a multimedia resource, including:
sending a resource request to a preload server, wherein the resource request is used for requesting the pre-storage 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 by the first peer node;
and 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 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 includes:
starting the first peer node and connecting to a selected server in the peer-to-peer network;
acquiring a tracking server address sent by the selected server;
and sending registration information to a tracking server indicated by the tracking server address, wherein the registration information is used for indicating that the first peer node is used for pre-storing the multimedia resource.
Optionally, after downloading the multimedia resource according to the resource list, the method further includes:
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 prestored on the first peer node.
Optionally, after downloading the multimedia resource according to the resource list, the method further includes:
receiving a connection request, wherein the connection request is used for requesting the first peer node to establish a connection with a second peer node and acquiring data of a target multimedia resource from the first peer node;
searching the target multimedia resource from the multimedia resources prestored in the first peer node;
providing the target multimedia resource to the second peer node.
According to another aspect of the embodiments of the present application, there is also provided a transmission system of multimedia resources, 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, the second peer node being a node in the peer-to-peer network;
the first peer node is used for sending a resource request to a preloading server, wherein the resource request is used for requesting that multimedia resources are prestored on the first peer node, and the preloading 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 by 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 returning 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 to: before sending a resource request to a preloading server, starting the first peer node and connecting the selection server; acquiring a tracking server address sent by the selected server; sending registration information to a tracking server indicated by the tracking server address, wherein the registration information is used for indicating that the first peer node is used for pre-storing multimedia resources;
the selection server is configured to: responding to the connection of the first peer node and transmitting the tracking server address to the first peer node;
the tracking server is configured to: 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 downloading the multimedia resources according to the resource list, sending a second resource list to the tracking server, wherein the second resource list is used for recording resource identifiers of the multimedia resources prestored on the first peer node;
the tracking server is further configured to: 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 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; searching the target multimedia resource 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 apparatus of multimedia resources, including:
a first sending module, configured to send a resource request to a preload server, where the resource request is used to request that a multimedia resource is prestored on a first peer node, and the preload server and the first peer node are deployed in a peer-to-peer network;
a first receiving module, 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, 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.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program which, 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, wherein the processor executes the above method through the computer program.
In the embodiment of the application, a resource request is sent to a preloading server, wherein the resource request is used for requesting that multimedia resources are prestored on a first peer node, and the preloading server and the first peer node are deployed in a peer-to-peer network; receiving a first resource list returned by a preloading server in response to a resource request, wherein the first resource list is used for recording a resource identifier of a multimedia resource to be prestored by 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 comprises the steps that a request is sent to a preloading server to request pre-stored multimedia resources, the preloading server responds to the resource request and returns a first resource list to a first peer-to-peer node, the first peer-to-peer node pre-stores the multimedia resources according to the first resource list, so that complete resource transmission is provided for a second peer-to-peer node in a peer-to-peer network, resource sharing can be provided for a node which does not start P2P uploading, the technical effect of providing P2P transmission for a 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 technology cannot perform P2P transmission 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 present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
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 for transmitting multimedia resources according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a peer node startup procedure in accordance with 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 pair connection request processing procedure in accordance with an alternative embodiment of the present application;
fig. 6 is a schematic diagram of an alternative transmission apparatus for multimedia resources 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 technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or 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, an embodiment of a method for transmission of a multimedia resource is provided.
Alternatively, in this embodiment, the method for transmitting the multimedia resource 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 and the second peer node 103 and the preload server 105 are connected via a network, 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.) for the terminals or the clients installed on the terminals, and a database may be provided on the servers or independent of the servers for providing data storage services for the first peer node 101 and the second peer node 103, and 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 multimedia resource transmission method according to the embodiment of the present application may be executed by the first peer node 101, or may be executed by both the first peer node 101 and the second peer node 103. The first peer node 101 may also perform the transmission method of the multimedia resource according to the embodiment of the present application 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 used for sending a resource request to a preloading server, wherein the resource request is used for requesting that multimedia resources are prestored on the first peer node, and the preloading 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 by 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 returning 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 preloading server, starting the first peer node and connecting the selection server; acquiring a tracking server address sent by the selected server; sending registration information to a tracking server indicated by the tracking server address, wherein the registration information is used for indicating that the first peer node is used for pre-storing multimedia resources;
the selection server is configured to: responding to the connection of the first peer node and transmitting the tracking server address to the first peer node;
the tracking server is configured to: 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 downloading the multimedia resources according to the resource list, sending a second resource list to the tracking server, wherein the second resource list is used for recording resource identifiers of the multimedia resources prestored on the first peer node;
the tracking server is further configured to: 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 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; searching the target multimedia resource from the multimedia resources prestored in the first peer node; providing the target multimedia resource to 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 multimedia resource transmission method according to an embodiment of the present application, and as shown in fig. 2, the method may include the following steps:
step S202, sending a resource request to a preloading server, wherein the resource request is used for requesting that multimedia resources are prestored on a first peer node, and the preloading server and the first peer node are deployed in a peer-to-peer network;
step S204, 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 by the first peer node;
step S206, downloading 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.
Through the steps S202 to S206, the multimedia resource is requested to be pre-stored to the preload server by sending a request, the preload 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 resource according to the first resource list, so as to provide complete resource transmission for the second peer node in the peer-to-peer network, and provide resource sharing for a node that does not start P2P uploading, thereby achieving the technical effect of providing P2P transmission for a user that does not start P2P uploading, and further solving the technical problem that the user that does not start P2P uploading in the related art cannot perform P2P transmission.
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 selecting node is also reduced by caching complete multimedia data through the first peer node.
Alternatively, in the present embodiment, the multimedia resources may include, but are not limited to, any form of resources including video resources, audio resources, image resources, text resources, and the like.
In the technical solution provided in step S202, the first peer node may be, but is not limited to be, called a super node, and may be pre-deployed in a peer-to-peer (P2P) network. The super node can pre-cache complete multimedia resource data, and after the pre-caching is successful, the P2P sharing service is provided for the real-time node.
Optionally, in this embodiment, the first peer node requests the pre-stored multimedia resource from the preload server through a resource request.
Optionally, 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 prestores complete data of multimedia resources for providing P2P service for other nodes.
Optionally, in this embodiment, the one or more multimedia resources pre-stored on the first peer node may be, but are not limited to, indicated by the preload server. The first peer node may, but is not limited to, actively send a resource request to the preload server to determine that the multimedia resource needs to be prestored, the preload server returns a first resource list recording resource identifiers of the multimedia resource to be prestored to the first peer node, and the first peer node downloads and stores the resource according to the list.
In the technical solution provided in step S206, the first peer node downloads and prestores the multimedia resource according to the instruction of the resource list.
Optionally, in this embodiment, the second peer node may be, but is not limited to, a playing end of the multimedia resource, and the second peer node may be, but is not limited to, requesting the first peer node to establish a connection and request to acquire data of the target multimedia resource for playing by sending a connection establishment request to the first peer node.
As an optional embodiment, before sending the resource request to the preload server, the method further includes:
s11, starting the first peer node and connecting the selected server in the peer-to-peer network;
s12, acquiring the address of the tracking server sent by the selected server;
s13, sending registration information to the tracking server indicated by the tracking server address, wherein the registration information is used for indicating that the first peer node is used for pre-storing the multimedia resource.
Optionally, in this embodiment, the first peer node may actively register with the trace server tracker as a super-peer, where the registration process is to report that the first peer node is a super-peer, and to report P2P protocol information (for example, port information available for communication) opened by the first peer node.
Optionally, in this embodiment, the same resource may be stored in different super-peers, or may be stored in only one super-peer, and the storage policy may be determined by tracker scheduling. The super-peer may be a passive node, and the scheduling logic of the tracker may be determined by the service independently of the super-peer (for example, if the service needs multiple super-peers to cache the same resource, for improving sharing, the same resource is set to cache on multiple super-peers).
As an optional embodiment, after downloading the multimedia resource according to the resource list, the method further includes:
s21, sending a second resource list to the tracking server, wherein the second resource list is used for recording resource identifiers of the one or more multimedia resources.
Optionally, in this embodiment, the first peer node may also give the pre-cache list to a tracker, and the tracker returns super-peer information according to the resource requested by the real-time node. The resource list transmitted by the first peer node to the tracker may be a first resource list acquired from a preloader (that is, the second resource list may be the same as the first resource list), or the resource list transmitted by the first peer node to the tracker may be a resource list recording a resource identifier successfully cached on the first peer node (that is, the first peer node may fail when caching the multimedia resource, the first peer node may transmit information of the successfully cached resource to the tracker, and a retry mechanism may be started for the resource which has failed to cache until the information is transmitted to the tracker after the caching is successful).
In an optional embodiment, an optional pre-cached super-peer (i.e., the first peer node) start-up procedure is provided, and fig. 3 is a schematic diagram of a peer node start-up procedure according to an optional embodiment of the present application, and as shown in fig. 3, the pre-cached super-peer start-up procedure includes the following steps:
step S301, the super-peer connection selection server selector acquires a tracker address.
And S302, the super-peer connects the tracker server tracker according to the acquired tracker address and registers the tracker server tracker.
In step S3021, the super-peer opens the P2P protocol.
And step S3022, the super-peer waits for the connection of other nodes.
And step S303, pre-caching the multimedia resources by the super-peer. The super-peer retrieves the pre-cache list (i.e., the first resource list) from the preload server preloader.
And S304, caching the resources by the super-peer according to the pre-caching list.
As an optional embodiment, after downloading the multimedia resource according to the resource list, the method further includes:
s31, receiving a connection request, where the connection request is used to request the first peer node to establish a connection with the second peer node and obtain 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;
s33, providing the target multimedia resource for the second peer node.
Optionally, in this embodiment, the second peer node may be but is not limited to a playing end of the multimedia resource, and the connection establishment request may be but is not limited to a request sent by the second peer node to the first peer node, and is used to request the first peer node to establish a connection and request to acquire data of the target multimedia resource for playing.
Optionally, in this embodiment, the complete data of the multimedia resource is pre-stored in the first peer node for providing the P2P service for other nodes.
Optionally, in this embodiment, if the target multimedia resource is found to be prestored in the first peer node, a connection may be established with the second peer node, and a data request of the second peer node is waited to provide the target multimedia resource for the second peer node.
The present application further provides an optional embodiment, which provides a P2P system supporting pre-caching, where a super node (i.e., the above-mentioned first peer node) is introduced into the system, after the super node is started, the super node registers with a tracker, acquires a list to be cached from a preloader server, caches multimedia resources according to the list, and waits for connection of a real-time node (i.e., a second peer node) after caching is completed, so as to provide P2P sharing.
In this optional embodiment, fig. 4 is a schematic diagram of an interaction process between a real-time node and a super-peer according to an optional embodiment of the present application, and as shown in fig. 4, the interaction process between the real-time node and the super-peer includes the following steps:
step S401, the real-time node peer starts and connects the selector to obtain the tracker address.
And S402, the peer connects the tracker according to the acquired tracker address.
In step S403, the peer acquires super-peer information from the tracker.
And S404, the peer connects the super-peer according to the acquired information of the super-peer.
Step S4041, if the connection is successful, the peer sends a data request to the super-peer.
In this optional embodiment, fig. 5 is a schematic diagram of a processing procedure of a super-peer to a connection request according to an optional embodiment of the present application, and as shown in fig. 5, the processing procedure of the super-peer to the connection request includes the following steps:
step S501, the super-peer receives the connection establishing request sent by the peer.
Step S502, the super-peer analyzes the data of the connection establishing request and judges whether the requested multimedia resources exist in the multimedia resources cached by the super-peer.
And step S5021, if the data exists, the super-peer keeps connection with the peer and waits for a data request sent by the peer.
And step S5022, if the current state does not exist, the super-peer disconnects with the peer, and error information is counted.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
According to another aspect of the embodiment 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 apparatus according to an embodiment of the present application, and as shown in fig. 6, the apparatus 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 that a multimedia resource is prestored on a first peer node, and the preload server and the first peer node are 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;
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 sending module 62 in this embodiment may be configured to execute step S202 in this embodiment, the first receiving module 64 in this embodiment may be configured to execute step S204 in this embodiment, and the downloading module 66 in this embodiment may be configured to execute step S206 in this embodiment.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may operate in a hardware environment as shown in fig. 1, and may be implemented by software or hardware.
Through the modules, the multimedia resources are requested to be prestored from the preloading server by sending a request, the preloading server responds to the resource request and returns a first resource list to the first peer node, and the first peer node prestores 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, resource sharing can be provided for nodes which do not start P2P uploading, the technical effect of providing P2P transmission for users which do not start P2P uploading is achieved, and the technical problem that users which do 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 selecting node is also reduced by caching complete multimedia data through the first peer node.
As an alternative embodiment, the apparatus further comprises:
a starting module, configured to start the first peer node and connect to a selected server in the peer-to-peer network before sending a resource request to a preload server;
the acquisition module is used for acquiring the address of the tracking server sent by the selected server;
and a second sending module, configured to send registration information to the tracking server indicated by the tracking server address, where the registration information is used to indicate that the first peer node is used to pre-store the multimedia resource.
As an alternative embodiment, the apparatus further comprises:
a third sending module, configured to send a second resource list to the tracking server after downloading the multimedia resource according to the resource list, where the second resource list is used to record a resource identifier of the multimedia resource 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 resource from the multimedia resources prestored by the first peer node;
a providing module for providing the target multimedia resource to the second peer node.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may be operated in a hardware environment as shown in fig. 1, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.
According to another aspect of the embodiment of the present application, there is also provided a server or a terminal for implementing the transmission method of the multimedia resource.
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 processors 701 (only one of which is shown), a memory 703, and a transmission means 705. as shown in fig. 7, the terminal may further include 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 multimedia resource transmission method and apparatus in the embodiment of the present application, and the processor 701 executes various functional applications and data processing by running the software programs and modules stored in the memory 703, that is, implements the above-described multimedia resource transmission method. The memory 703 may include high speed random access memory, and 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. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 705 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 705 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Among other things, the memory 703 is used to store application programs.
The processor 701 may call the application program stored in the memory 703 through the transmission means 705 to perform the following steps:
sending a resource request to a preload server, wherein the resource request is used for requesting the pre-storage 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 by the first peer node;
and 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 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 method comprises the steps that a request is sent to a preloading server to request pre-stored multimedia resources, the preloading server responds to the resource request and returns a first resource list to a first peer-to-peer node, the first peer-to-peer node pre-stores the multimedia resources according to the first resource list, so that complete resource transmission is provided for a second peer-to-peer node in a peer-to-peer network, resource sharing can be provided for a node which does not start P2P uploading, the technical effect of providing P2P transmission for a 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 technology 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 selecting node is also reduced by caching complete multimedia data through the first peer node.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 7 is only an illustration, and the terminal may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile Internet Device (MID), a PAD, etc. Fig. 7 is a diagram illustrating a 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 skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Embodiments of the present application also provide a storage medium. Alternatively, in this embodiment, the storage medium may be a program code for executing a transmission method of a multimedia resource.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
sending a resource request to a preload server, wherein the resource request is used for requesting the pre-storage 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 by the first peer node;
and 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 a second peer node, and the second peer node is a node in the peer-to-peer network.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, which can store program codes.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, network devices, or the like) to execute all or part of the steps of the method described in the embodiments of the present application.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the 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 illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (11)

1. A method for transmitting multimedia resources, comprising:
sending a resource request to a preload server, wherein the resource request is used for requesting the pre-storage 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 by the first peer node;
and 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 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 prior to sending the resource request to the preload server, the method further comprises:
starting the first peer node and connecting to a selected server in the peer-to-peer network;
acquiring a tracking server address sent by the selected server;
and sending registration information to a tracking server indicated by the tracking server address, wherein the registration information is used for indicating that the first peer node is used for pre-storing the multimedia resource.
3. The method of claim 2, wherein after downloading the multimedia asset according to 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 prestored on the first peer node.
4. The method of claim 1, wherein after downloading the multimedia asset according to the asset list, the method further comprises:
receiving a connection request, wherein the connection request is used for requesting the first peer node to establish a connection with the second peer node and acquiring data of a target multimedia resource from the first peer node;
searching the target multimedia resource from the multimedia resources prestored in the first peer node;
providing the target multimedia resource to the second peer node.
5. A system for transmitting 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, the second peer node being a node in the peer-to-peer network;
the first peer node is used for sending a resource request to a preloading server, wherein the resource request is used for requesting that multimedia resources are prestored on the first peer node, and the preloading 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 by 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 returning the first resource list in response to the resource request.
6. The system of claim 5, further comprising: a selection server and a tracking server, wherein,
the first peer node is further to: before sending a resource request to a preloading server, starting the first peer node and connecting the selection server; acquiring a tracking server address sent by the selected server; sending registration information to a tracking server indicated by the tracking server address, wherein the registration information is used for indicating that the first peer node is used for pre-storing multimedia resources;
the selection server is configured to: responding to the connection of the first peer node and transmitting the tracking server address to the first peer node;
the tracking server is configured to: and receiving the registration information sent by the first peer node, and recording the registration information.
7. The system of claim 6,
the first peer node is further to: after downloading the multimedia resources according to the resource list, sending a second resource list to the tracking server, wherein the second resource list is used for recording resource identifiers of the multimedia resources prestored on the first peer node;
the tracking server is further configured to: receiving and storing the second resource list sent by the first peer node.
8. The system of claim 5, further comprising: a second peer node, wherein,
the first peer node is 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; searching the target multimedia resource from the multimedia resources prestored in the first peer node; providing the target multimedia resource to 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.
9. An apparatus for transmitting multimedia resources, comprising:
a first sending module, configured to send a resource request to a preload server, where the resource request is used to request that a multimedia resource is prestored on a first peer node, and the preload server and the first peer node are deployed in a peer-to-peer network;
a first receiving module, 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, 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.
10. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program when executed performs the method of any of the preceding claims 1 to 4.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the method of any of the preceding claims 1 to 4 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 true CN113747252A (en) 2021-12-03
CN113747252B 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)

Cited By (1)

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

Citations (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

Patent Citations (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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
DOUBLELIST: "p2p视频点播系统开发案例――Myseelite", 《HTTPS://WWW.BBSMAX.COM/A/RNJWDAEO5Q/》 *

Cited By (1)

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

Also Published As

Publication number Publication date
CN113747252B (en) 2023-07-07

Similar Documents

Publication Publication Date Title
US8090813B2 (en) Methods and apparatus for data transfer
US8082290B2 (en) Intelligent establishment of peer-to-peer communication
US9204180B2 (en) Method, server and terminal for audio and video on demand
US20070094279A1 (en) Service provision in peer-to-peer networking environment
CN103597471A (en) Methods and systems for caching data communications over computer networks
CN101902346A (en) P2P (Point to Point) content caching system and method
US20070180079A1 (en) Method and system for peer-to-peer stream
CN102271165B (en) Device and method for sharing and managing resources searched on Internet
WO2021051747A1 (en) Data update method, system and device, electronic device, and computer storage medium
CN101917488A (en) BT download method, device and system
CN111314437B (en) Resource package downloading method and device, storage medium and electronic device
CN101326493A (en) Method and device for distributing load of multiprocessor server
CN111744174A (en) Account management method and device of cloud game, account login method and device and electronic equipment
CN104410660A (en) Method and device of downloading multimedia resources as well as router and server
CN110198333B (en) Data acquisition method and device, storage medium and electronic device
CN109982152A (en) P2P CDN method for processing business, intelligent gateway and CDN platform
CN111245918A (en) Service request transmission method and device
CN106657183A (en) Caching acceleration method and apparatus
US8180857B2 (en) Method for downloading file in parallel
CN113747252B (en) Method, device and system for transmitting multimedia resources
CN110995779A (en) Method and system for caching network resources at mobile client, server and medium
CN113746884B (en) Multimedia resource transmission method, device and system
CN109547508B (en) Method, device and system for realizing resource access
CN110784414B (en) Data interaction method, device, electronic equipment and storage medium
CN105847396A (en) Data transmission 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