CN116405563A - Resource acquisition method and system based on point-to-point content distribution network - Google Patents

Resource acquisition method and system based on point-to-point content distribution network Download PDF

Info

Publication number
CN116405563A
CN116405563A CN202310674846.2A CN202310674846A CN116405563A CN 116405563 A CN116405563 A CN 116405563A CN 202310674846 A CN202310674846 A CN 202310674846A CN 116405563 A CN116405563 A CN 116405563A
Authority
CN
China
Prior art keywords
resource
hot spot
node
identification information
resource 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
CN202310674846.2A
Other languages
Chinese (zh)
Other versions
CN116405563B (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.)
Hunan MgtvCom Interactive Entertainment Media Co Ltd
Original Assignee
Hunan MgtvCom Interactive Entertainment Media 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 Hunan MgtvCom Interactive Entertainment Media Co Ltd filed Critical Hunan MgtvCom Interactive Entertainment Media Co Ltd
Priority to CN202310674846.2A priority Critical patent/CN116405563B/en
Publication of CN116405563A publication Critical patent/CN116405563A/en
Application granted granted Critical
Publication of CN116405563B publication Critical patent/CN116405563B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a resource acquisition method and a system based on a point-to-point content distribution network, wherein the method is applied to an initial resource node and comprises the following steps: determining resource service data based on the historical resource acquisition request; determining a hot spot resource according to the resource service data in response to the bandwidth utilization rate of the initial resource node exceeding a preset threshold; and sending the identification information of the hot spot resource to a resource node manager, so that the resource node manager forwards the identification information of the hot spot resource to a newly-added resource node, and the newly-added resource node acquires the hot spot resource according to the identification information of the hot spot resource. Therefore, in the embodiment of the application, under the condition that the current resource node cannot meet the peak bandwidth, the hot spot resource in the node is diffused to the newly added resource node, and the newly added resource node jointly provides the request service of the hot spot resource, so that the P2P sharing efficiency of the media resource is improved.

Description

Resource acquisition method and system based on point-to-point content distribution network
Technical Field
The present disclosure relates to the field of content distribution technologies, and in particular, to a method and a system for obtaining resources based on a peer-to-peer content distribution network.
Background
The point-to-point content distribution network (Peer To Peer Content Delivery Network, PCDN) is a low-cost high-quality content distribution network service constructed by mining and utilizing mass fragmented idle resources of a telecom edge network based on P2P technology, and is suitable for service scenes such as media resource on-demand, live broadcast, large file downloading and the like.
Referring to fig. 1, a PCDN provides a part of resource nodes (referred to as peers) while all clients are embedded into a PCDN client (referred to as peers), peers obtain a resource list to be obtained from a resource connection server (referred to as tracker), then obtain corresponding resources from the peers or peers, and simultaneously provide existing resources as one peer to other peers, wherein all the peers and peers can obtain the resources from each other through a link tracker.
The existing PCDN-based media resource on-demand technology has the following problems in actual use that when a certain first media resource possibly corresponds to a plurality of files with a plurality of resolutions, the files are accessed intensively at the initial stage of on-line, and at the moment, if a sender is simply added to avoid overlarge pressure when a hot spot resource is on line, because not all resources are hot spots, the hot spot is not easy to accurately predict, if the sender simply added with the resource causes resource waste due to overlarge volume, and the cost of transverse capacity expansion is increased.
Disclosure of Invention
In view of the foregoing, the present application provides a method and a system for obtaining resources based on a peer-to-peer content distribution network, so as to improve P2P sharing efficiency of media resources.
The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a resource acquisition method, where the method is applied to an initial resource node, and the method includes:
determining resource service data based on the historical resource acquisition request;
determining a hot spot resource according to the resource service data in response to the bandwidth utilization rate of the initial resource node exceeding a preset threshold;
and sending the identification information of the hot spot resource to a resource node manager, so that the resource node manager forwards the identification information of the hot spot resource to a newly-added resource node, and the newly-added resource node acquires the hot spot resource according to the identification information of the hot spot resource.
Optionally, the determining resource service data based on the historical resource acquisition request includes:
determining target resources and identification information of the target resources according to the historical resource acquisition request;
obtaining service resource usage data corresponding to the target resource in a preset period, wherein the service resource usage data comprises: resource access amount occupation ratio data and resource bandwidth occupation data;
and associating the identification information of the target resource with service resource use data corresponding to the target resource to obtain resource service data.
Optionally, the determining, according to the resource service data, the hot spot resource in response to the bandwidth usage of the initial resource node exceeding a preset threshold includes:
determining the hot spot resources according to the resource service data and preset hot spot conditions in response to the bandwidth utilization rate of the initial resource node exceeding a preset threshold; the preset hot spot conditions comprise: the resource access amount occupying data is larger than a preset occupying threshold value, and the resource bandwidth occupying data is larger than a preset occupying threshold value.
Optionally, the hot spot resource includes streaming media resources with multiple code rates, the hot spot resource is stored in the initial resource node in a form of a multi-level directory file, and the identification information of the hot spot resource is determined according to an MD5 value of a resource storage path of the hot spot resource.
Optionally, the method further comprises:
receiving the identification information of the hot spot resource sent by the resource node manager;
the identification information of the hot spot resource is sent to a resource connection server, and a hot spot resource node address fed back by the resource connection server based on the identification information of the hot spot resource is received;
and acquiring the hot spot resource according to the identification information of the hot spot resource and the node address of the hot spot resource.
Optionally, the method further comprises: and after the resource service data of the hot spot resource no longer meets the preset hot spot condition within a preset time period, cleaning the hot spot resource.
Optionally, the newly added resource node is determined by the resource node manager from an alternative resource node library according to historical service quality or resource service requirements, where the resource service requirements include operator service requirements and service resource regional requirements.
In a second aspect, embodiments of the present application provide a resource acquisition system based on a peer-to-peer content distribution network, the system including: an initial resource node, a resource node manager and a newly added resource node; wherein,,
the initial resource node is configured to: determining resource service data based on the historical resource acquisition request; determining a hot spot resource according to the resource service data in response to the bandwidth utilization rate of the initial resource node exceeding a preset threshold; transmitting the identification information of the hot spot resource to the resource node manager;
the resource node manager is configured to: receiving the identification information of the hot spot resource sent by the initial resource node, and forwarding the identification information of the hot spot resource to the newly added resource node, wherein the newly added resource node is determined by the resource node manager;
the newly added resource node is used for: and acquiring the hot spot resources according to the identification information of the hot spot resources.
Optionally, the resource node manager is configured to:
receiving identification information of the hot spot resource sent by the initial resource node;
determining the newly added resource node from an alternative resource node library according to historical service quality or resource service requirements, wherein the resource service requirements comprise operator service requirements and service resource regional requirements;
forwarding the identification information of the hot spot resource to the newly added resource node so that the newly added resource node obtains the hot spot resource according to the identification information of the hot spot resource.
Optionally, the system further comprises: the resource connection server is respectively connected with the initial resource node and the newly-added resource node, and is used for:
receiving identification information of the hot spot resource sent by the newly added resource node;
and determining the initial resource node based on the identification information of the hot spot resource, and feeding back an initial resource node address to the newly-added resource node so that the newly-added resource node obtains the hot spot resource according to the identification information of the hot spot resource and the initial resource node address, wherein the initial resource node comprises the hot spot resource.
The technical scheme has the following beneficial effects:
the embodiment of the application provides a resource acquisition method based on a point-to-point content distribution network, which is applied to an initial resource node, and comprises the following steps: determining resource service data based on the historical resource acquisition request; determining a hot spot resource according to the resource service data in response to the bandwidth utilization rate of the initial resource node exceeding a preset threshold; and sending the identification information of the hot spot resource to a resource node manager, so that the resource node manager forwards the identification information of the hot spot resource to a newly-added resource node, and the newly-added resource node acquires the hot spot resource according to the identification information of the hot spot resource. Therefore, in the embodiment of the application, under the condition that the current resource node cannot meet the peak bandwidth, the hot spot resource in the node is diffused to the newly added resource node, and the newly added resource node jointly provides the request service of the hot spot resource, so that the P2P sharing efficiency of the media resource is improved.
The embodiment of the application also provides a system corresponding to the method, and the system has the same beneficial effects as the method.
Drawings
In order to more clearly illustrate the present embodiments or the technical solutions in the prior art, the drawings that are required for the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a prior art peer-to-peer content delivery network resource service framework provided in the present application;
fig. 2 is a flow chart of a resource obtaining method based on a peer-to-peer content distribution network according to an embodiment of the present application;
fig. 3 is a schematic diagram before resource capacity expansion based on a peer-to-peer content distribution network according to an embodiment of the present application;
fig. 4 is a schematic diagram of a resource capacity expansion based on a peer-to-peer content distribution network according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a resource acquisition system based on a peer-to-peer content distribution network according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another resource obtaining system based on a peer-to-peer content distribution network according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
In order to improve P2P sharing efficiency of media resources, an embodiment of the present application provides a resource obtaining method based on a PCDN, referring to fig. 2, the method is applied to an initial resource node, where the initial resource node may be any resource node sender in the PCDN, and the method may include:
step S100: resource service data is determined based on the historical resource acquisition requests.
The historical resource acquisition request may be each resource request from the client peer received by the initial resource node in a historical manner, the initial resource node may count and record the resource requests, and determine resource service data according to the historical resource acquisition request, where the resource service data refers to data related to the service capability of the initial resource node occupied by each resource stored in the initial resource node.
It should be noted that, the method for requesting resources by the client peer may specifically be that the client peer obtains the resource list to be obtained from the resource connection server tracker, and then requests corresponding data from the resource node peer, and the method for requesting resources by the client peer may refer to the prior art, which is not described herein in detail.
In an alternative implementation, step S100 may include the steps of:
step S101: and determining the target resource and the identification information of the target resource according to the historical resource acquisition request.
The history resource obtaining request includes a target resource of the history request and identification information of the target resource, and it should be noted that the identification information of the target resource is used for uniquely identifying the target resource, and the identification information may be determined according to an MD5 value of an information abstraction algorithm of a resource storage path.
Step S102: obtaining service resource usage data corresponding to a target resource in a preset period, wherein the service resource usage data comprises: resource access amount duty ratio data and resource bandwidth occupation data.
After the initial resource node responds to the historical resource obtaining request, relevant information of the target resource corresponding to the request, such as identification information of the target resource, file size information of the target resource, transmission rate condition of the target resource and the like, is recorded correspondingly. The initial resource node may acquire service resource usage conditions corresponding to the target resource in the preset period, including, for example, resource access amount occupation ratio data and resource bandwidth occupation data. It should be noted that the preset period is set by a technician as required, and as an option, the preset period may be set to 30 seconds.
It can be understood that the resource access amount duty ratio data refers to data of all resource access amounts of the initial resource node with the target resource access amount, the resource bandwidth occupied data refers to data of total transmission loans of the initial resource node with the target resource access amount, and the service resource use condition is recorded by the initial resource node according to the related information.
Step S103: and associating the identification information of the target resource with service resource use data corresponding to the target resource to obtain resource service data.
Specifically, the corresponding service resource use data are associated according to the identification information of the resources, so that each resource corresponds to the corresponding service resource use data one by one, and the hot spot resources are convenient to determine according to the service resource use data.
Step S200: and determining the hot spot resources according to the resource service data in response to the bandwidth utilization of the initial resource node exceeding a preset threshold.
In the embodiment of the application, when the bandwidth utilization rate of the initial resource node exceeds a preset threshold, the hot spot resource is determined according to the resource service data. It will be appreciated that when the bandwidth usage of a resource node exceeds a preset threshold, it is stated that certain resource data in that resource node is densely requested by clients at the current time node.
In an alternative implementation, step S200 may include: determining the hot spot resources according to the resource service data and preset hot spot conditions in response to the bandwidth utilization rate of the initial resource node exceeding a preset threshold; the preset hot spot conditions comprise: the resource access amount occupied data is larger than a preset occupied threshold value, and the resource bandwidth occupied data is larger than a preset occupied threshold value.
Specifically, in the embodiment of the present application, whether a resource is a hot spot resource is determined by the resource service data and the preset hot spot condition, specifically, whether the resource access amount occupation data corresponding to the resource is greater than the preset occupation threshold value and whether the resource bandwidth occupation data is greater than the preset occupation threshold value are determined, if both the two are the same, the resource may be determined to be the hot spot resource.
It may be understood that, in the embodiment of the present application, the resource service data is counted according to a preset period (for example, 30 seconds), and accordingly, the judgment of the hotspot resource may be synchronous with the preset period, or may be set as required, and the time span should be greater than the preset period, for example, one minute, two minutes, or the like.
In an alternative implementation, the resource data in the resource node server in the embodiment of the present application may be stored in the form of a multi-level directory file.
Specifically, one target resource corresponds to one streaming media resource, and one streaming media resource can include streaming media sub-resources with various code rates and various resolutions, for example: the same video resource comprises streaming media sub-resources with multiple code rates and multiple resolutions, each streaming media sub-resource in one streaming media resource can be segmented by using a protocol of a slice file and a slice directory file, such as HLS (HTTP Live Streaming) or DASH (Dynamic Adaptive Streaming over HTTP), and the streaming media sub-resources are stored in the directory file in a multi-layer directory file mode, so that each streaming media sub-resource included in one streaming media resource is issued as a whole, a client peer requests a corresponding slice file from the directory file when requesting the resource, and therefore, as the multimedia heat is related to content, all the media with the code rates share one heat calculation, so that the heat information of the resource is counted according to one streaming media resource, and the follow-up transverse expansion is convenient. And in addition, unlike the mode that the common P2P uses the data block as a sharing unit, the sharing among peers is performed by using the slice file as a unit, so that the blocking checking overhead is reduced, and the data acquisition efficiency is improved.
It can be understood that, since each streaming media sub-resource included in one streaming media resource is issued as a whole and stored in the form of a multi-level directory file, the granularity of subsequent judgment on the hot spot file can be set by a technician, which is specifically as follows.
The method comprises the following steps: the method comprises the steps of uniformly judging each streaming media sub-resource in one streaming media resource, namely uniformly judging the heat of resources with different code rates and different resolutions in one video resource, and subsequently transversely expanding the whole video resource, for example: the video A comprises sub-videos with four resolutions, the four sub-videos are regarded as a total resource to carry out heat judgment, and after the video A is judged to be a hot spot resource, the video A comprising the four sub-videos is transversely expanded. The second mode is as follows: and (3) carrying out independent heat judgment on the streaming media sub-resources with each code rate and each resolution, and subsequently carrying out transverse expansion on the streaming media sub-resources which are determined to be hot spot resources. For example: the video A comprises sub-videos with four resolutions, wherein the four resolutions are respectively: and performing heat calculation on the four sub-videos corresponding to the four resolutions independently, and performing transverse expansion on the sub-video of the first resolution if the sub-video of the first resolution is determined to be a hot spot resource. In the embodiment of the application, the resource is stored in a multi-level directory file mode, so that the judgment granularity of the hot spot files can be adjusted and set according to the needs, and the determination modes of the two hot spot resources can be selected according to the actual conditions of bandwidth capacity, storage space, resource size and the like of the resource nodes.
In practical application, the storage example of the HLS slice file used by the streaming media sub-resource in the form of a multi-level directory file is as follows, the HLS slice uses an index file in m3u8 format, multi-level index can be used in multi-parameter, and the lower level index file comprises a plurality of secondary index files of audio and video parameters, and the code is as follows:
#EXTM3U
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="English", \
default=yes, auto=yes, language= "en", secondary index description
Uri= "main/englist-audio.m3u8" \secondary index address
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="Deutsch", \
Default=no, autoselect=yes, language= "de", \secondary index description
Uri= "main/german-audio.m3u8" \secondary index address
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="Commentary", \
Default=no, autoselect=no, language= "en", secondary index description
Uri= "comment/audio-only.m3u8" \secondary index address
In practical application, storage examples of streaming media sub-resources in the form of multi-level directory files are as follows, and DASH slices use XML files in mpd format, and files use hierarchical structures to store different contents, and the codes are as follows:
<?xml version="1.0" encoding="utf-8"?>
<!-- MPD file Generated with mgtv-encoder -->
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT1.500000S" type="static" mediaPresentationDuration="PT0H10M54.00S" profiles="urn:mpeg:dash:profile:isoff-live:2011,http://dashif.org/guidelines/dash264">
<Period id="" duration="PT0H10M54.00S">
< AdaptationSet segmentAlignment = "true" maxwidth= "1280" maxheight= "720" maxframerate= "24" par= "16:9" > \different resolution description
< Representation id = "0" definition= "1" checkfile= "288pavc1/f8c 28c 62b234eff7e3a 2621 a4431.Md5" mimetype= "video/mp4" codes= "avc1.42c01f" width= "512" height= "288" frame rate= "24" sar= "1:1" startwisp= "1" bandwidth= "1082580" > \resolution, frame rate, code rate bandwidth, etc. description
<SegmentTemplate timescale="12288" media ="*****.m4v" initialization="288pavc1/f8c286dee62b234eff7e3a262a3a4431-init.mp4">
<SegmentTimeline>
<S d="24576" r="-1" />
</SegmentTimeline>
</SegmentTemplate>
</Representation>
< Representation id = "1" definition= "2" checkfile= "432pavc1/c8829de 4f2e3bc33268 bfdd1cb9146.md5" mimetype= "video/mp4" codes= "avc1.42c01f" width= "768" height= "432" frame rate= "24" sar= "1:1" startwisp= "1" bandwidth= "1880897" > \resolution, frame rate, code rate bandwidth, etc. description
<SegmentTemplate timescale="12288" media="*****.m4v" initialization="432pavc1/c8829de4f2e3bc3326d8bfdd1cbe9146-init.mp4">
<SegmentTimeline>
<S d="24576" r="-1" />
……
</SegmentTimeline>
</SegmentTemplate>
</Representation>
</AdaptationSet>
</Period>
</MPD>
Step S300: and sending the identification information of the hot spot resource to a resource node manager, so that the resource node manager forwards the identification information of the hot spot resource to a newly-added resource node, and the newly-added resource node acquires the hot spot resource according to the identification information of the hot spot resource.
Specifically, the initial resource node sends the identification information of the hot spot resource determined to the resource node manager, the resource node manager is used for managing, for example expanding capacity, cleaning and the like, the resource node manager sends the identification information of the hot spot resource to the newly-added resource node after receiving the identification information of the hot spot resource, and the newly-added resource node can obtain the hot spot resource based on the identification information of the hot spot resource, so that the transverse expansion of the hot spot resource is realized. It should be noted that, the identification information of the hot spot resource is determined according to the MD5 value of the resource storage path of the hot spot resource, and the identification information of the hot spot resource is used to uniquely identify the hot spot resource.
In a specific implementation manner, the obtaining, by the newly added resource node, the hot spot resource according to the identification information of the hot spot resource includes: the newly added resource node sends the identification information of the hot spot resource to the resource connection server, and the resource connection server feeds back the initial resource node address with the hot spot resource to the newly added resource node based on the identification information of the hot spot resource, and the newly added resource node downloads the hot spot resource according to the identification information of the hot spot resource and the initial resource node address.
In an alternative implementation manner, the newly added resource node in the embodiment of the present application is determined by the resource node manager from the candidate resource node library according to the historical service quality or the resource service requirement, where the resource service requirement includes the service requirement of the operator and the service resource regional requirement.
Specifically, the candidate resource node library includes a plurality of standby resource nodes, and the resource nodes may be used resource nodes, i.e. resource nodes which have provided the resource acquisition service, or resource nodes which are newly added into the PCDN, i.e. resource nodes which have not provided the resource acquisition service. The resource node manager may consider and select when determining the newly added resource node based on historical service quality (including bandwidth capability, storage space, etc. as provided by history) or resource service requirements (including service requirements of an operator and regional requirements of service resources) of the standby resource node. The operator service demand is selected based on statistics of the client's network service provider ISP, such as mobile, corporate, or telecommunications, and the service resource regional demand is selected based on statistics of the client's regional distribution, such as south-China, middle-China, or north-China.
In an optional implementation manner, in the embodiment of the present application, when the resource service data of the hot spot resource in the hot spot resource no longer meets the preset hot spot condition in the preset time period, the newly added resource node cleans the hot spot resource.
It can be understood that the hot spot resource is time-efficient, and when the heat of the hot spot resource is lower than the threshold value, capacity expansion cleaning work is performed, so that the system is more flexible.
In the following, hot spot resource capacity expansion in the embodiment of the present application is described by means of fig. 3 and fig. 4, fig. 3 shows a connection schematic diagram of a PCDN before hot spot resource capacity expansion, where an initial resource node is connected to four client peers, the initial resource node is further connected to a resource node manager peer manager, both the initial resource node and the client peers are connected to a resource connection server tracker, and the initial resource node provides a resource acquisition service for the client peers.
Fig. 4 shows a connection schematic diagram of a PCDN after hot spot resource expansion, where when the bandwidth capability of an initial resource node is insufficient to meet the requirement, the initial resource node spreads the hot spot resource to a newly added resource node, and the initial resource node and the newly added resource node together provide resource acquisition service for a client peer. It should be noted that, the number of the initial resource nodes, the newly added resource nodes, the clients, the resource connection servers and the resource node manager is not limited in the present application.
In summary, the embodiment of the present application provides a method for obtaining resources based on PCDN, where the method is applied to an initial resource node, and the method includes: determining resource service data based on the historical resource acquisition request; determining a hot spot resource according to the resource service data in response to the bandwidth utilization rate of the initial resource node exceeding a preset threshold; and sending the identification information of the hot spot resource to a resource node manager, so that the resource node manager forwards the identification information of the hot spot resource to a newly-added resource node, and the newly-added resource node acquires the hot spot resource according to the identification information of the hot spot resource. Therefore, in the embodiment of the application, under the condition that the current resource node cannot meet the peak bandwidth, the hot spot resource in the node is diffused to the newly added resource node, and the newly added resource node jointly provides the request service of the hot spot resource, so that the P2P sharing efficiency of the media resource is improved.
In correspondence to the above method, the embodiment of the present application further provides a PCDN-based resource acquisition system, referring to fig. 5, which shows a schematic structural diagram of the system, where the system may include: an initial resource node 501, a resource node manager 502 and a newly added resource node 503, wherein the initial resource node 501 is connected with the resource node manager 502, and the resource node manager 502 is connected with the newly added resource node 503; wherein,,
the initial resource node 501 is configured to: determining resource service data based on the historical resource acquisition request; determining a hot spot resource according to the resource service data in response to the bandwidth utilization rate of the initial resource node exceeding a preset threshold; the identification information of the hot spot resource is sent to a resource node manager;
the resource node manager 502 is configured to: receiving the identification information of the hot spot resource sent by the initial resource node, and forwarding the identification information of the hot spot resource to the newly added resource node, wherein the newly added resource node is determined by the resource node manager;
the added resource node 503 is configured to: and acquiring the hot spot resources according to the identification information of the hot spot resources.
In an alternative implementation, the resource node manager 502 is specifically configured to:
receiving identification information of a hot spot resource sent by an initial resource node;
determining newly added resource nodes from an alternative resource node library according to historical service quality or resource service requirements, wherein the resource service requirements comprise operator service requirements and service resource regional requirements;
and forwarding the identification information of the hot spot resource to the newly added resource node so that the newly added resource node acquires the hot spot resource according to the identification information of the hot spot resource.
In an alternative implementation, the system described with reference to fig. 6 further includes: a resource connection server 504, the resource connection server is respectively connected to the initial resource node 501 and the added resource node 503, and the resource connection server 504 is configured to:
receiving identification information of hot spot resources sent by a newly added resource node;
and determining an initial resource node based on the identification information of the hot spot resource, and feeding back an address of the initial resource node to the newly added resource node so that the newly added resource node acquires the hot spot resource according to the identification information of the hot spot resource and the address of the initial resource node, wherein the initial resource node comprises the hot spot resource.
It should be noted that, the steps and relevant technical features executed by each part in the system provided in the embodiments of the present application correspond to the methods provided in the embodiments of the present application, and the description of the system part may refer to the embodiments of the foregoing method part, which is not repeated herein.
In summary, the embodiments of the present application provide a resource acquisition system based on a peer-to-peer content distribution network, where the system includes: the resource node management system comprises an initial resource node, a resource node manager and a newly added resource node, wherein the initial resource node is connected with the resource node manager, and the resource node manager is connected with the newly added resource node; wherein the initial resource node is configured to: determining resource service data based on the historical resource acquisition request; determining a hot spot resource according to the resource service data in response to the bandwidth utilization rate of the initial resource node exceeding a preset threshold; the identification information of the hot spot resource is sent to a resource node manager; the resource node manager is configured to: receiving the identification information of the hot spot resource sent by the initial resource node, and forwarding the identification information of the hot spot resource to the newly added resource node, wherein the newly added resource node is determined by the resource node manager; the newly added resource node is used for: and acquiring the hot spot resources according to the identification information of the hot spot resources. Therefore, in the embodiment of the application, under the condition that the current resource node cannot meet the peak bandwidth, the hot spot resource in the node is diffused to the newly added resource node, and the newly added resource node jointly provides the request service of the hot spot resource, so that the P2P sharing efficiency of the media resource is improved.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other.
Those skilled in the art will appreciate that the flow chart shown in the figures is only one example in which embodiments of the present application may be implemented, and the scope of applicability of embodiments of the present application is not limited in any way by the flow chart.
In the several embodiments provided in the present application, it should be understood that the disclosed methods, apparatuses, and devices may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or 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 communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for obtaining resources based on a peer-to-peer content distribution network, wherein the method is applied to an initial resource node, the method comprising:
determining resource service data based on the historical resource acquisition request;
determining a hot spot resource according to the resource service data in response to the bandwidth utilization rate of the initial resource node exceeding a preset threshold;
and sending the identification information of the hot spot resource to a resource node manager, so that the resource node manager forwards the identification information of the hot spot resource to a newly-added resource node, and the newly-added resource node acquires the hot spot resource according to the identification information of the hot spot resource.
2. The method of claim 1, wherein determining resource service data based on historical resource acquisition requests comprises:
determining target resources and identification information of the target resources according to the historical resource acquisition request;
obtaining service resource usage data corresponding to the target resource in a preset period, wherein the service resource usage data comprises: resource access amount occupation ratio data and resource bandwidth occupation data;
and associating the identification information of the target resource with service resource use data corresponding to the target resource to obtain resource service data.
3. The method of claim 2, wherein determining the hot spot resource from the resource service data in response to the bandwidth usage of the initial resource node exceeding a preset threshold comprises:
determining the hot spot resources according to the resource service data and preset hot spot conditions in response to the bandwidth utilization rate of the initial resource node exceeding a preset threshold; the preset hot spot conditions comprise: the resource access amount occupying data is larger than a preset occupying threshold value, and the resource bandwidth occupying data is larger than a preset occupying threshold value.
4. The method of claim 1, wherein the hot spot resource comprises streaming media resources with multiple code rates, the hot spot resource is stored in the initial resource node in a form of a multi-level directory file, and the identification information of the hot spot resource is determined according to an MD5 value of a resource storage path of the hot spot resource.
5. A method according to claim 3, characterized in that the method further comprises:
receiving the identification information of the hot spot resource sent by the resource node manager;
the identification information of the hot spot resource is sent to a resource connection server, and a hot spot resource node address fed back by the resource connection server based on the identification information of the hot spot resource is received;
and acquiring the hot spot resource according to the identification information of the hot spot resource and the node address of the hot spot resource.
6. The method of claim 5, wherein the method further comprises:
and after the resource service data of the hot spot resource no longer meets the preset hot spot condition within a preset time period, cleaning the hot spot resource.
7. The method according to any of claims 1-6, wherein the newly added resource node is determined by the resource node manager from a library of alternative resource nodes based on historical quality of service or resource service requirements, including operator service requirements and service resource regional requirements.
8. A resource acquisition system based on a point-to-point content distribution network, the system comprising: an initial resource node, a resource node manager and a newly added resource node; wherein,,
the initial resource node is configured to: determining resource service data based on the historical resource acquisition request; determining a hot spot resource according to the resource service data in response to the bandwidth utilization rate of the initial resource node exceeding a preset threshold; transmitting the identification information of the hot spot resource to the resource node manager;
the resource node manager is configured to: receiving the identification information of the hot spot resource sent by the initial resource node, and forwarding the identification information of the hot spot resource to the newly added resource node, wherein the newly added resource node is determined by the resource node manager;
the newly added resource node is used for: and acquiring the hot spot resources according to the identification information of the hot spot resources.
9. The system of claim 8, wherein the resource node manager is configured to:
receiving identification information of the hot spot resource sent by the initial resource node;
determining the newly added resource node from an alternative resource node library according to historical service quality or resource service requirements, wherein the resource service requirements comprise operator service requirements and service resource regional requirements;
forwarding the identification information of the hot spot resource to the newly added resource node so that the newly added resource node obtains the hot spot resource according to the identification information of the hot spot resource.
10. The system of claim 8, wherein the system further comprises: the resource connection server is respectively connected with the initial resource node and the newly-added resource node, and is used for:
receiving identification information of the hot spot resource sent by the newly added resource node;
and determining the initial resource node based on the identification information of the hot spot resource, and feeding back an initial resource node address to the newly-added resource node so that the newly-added resource node obtains the hot spot resource according to the identification information of the hot spot resource and the initial resource node address, wherein the initial resource node comprises the hot spot resource.
CN202310674846.2A 2023-06-08 2023-06-08 Resource acquisition method and system based on point-to-point content distribution network Active CN116405563B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310674846.2A CN116405563B (en) 2023-06-08 2023-06-08 Resource acquisition method and system based on point-to-point content distribution network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310674846.2A CN116405563B (en) 2023-06-08 2023-06-08 Resource acquisition method and system based on point-to-point content distribution network

Publications (2)

Publication Number Publication Date
CN116405563A true CN116405563A (en) 2023-07-07
CN116405563B CN116405563B (en) 2023-08-18

Family

ID=87014632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310674846.2A Active CN116405563B (en) 2023-06-08 2023-06-08 Resource acquisition method and system based on point-to-point content distribution network

Country Status (1)

Country Link
CN (1) CN116405563B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070076622A1 (en) * 2005-09-30 2007-04-05 Mukherjee Shubhendu S Handling hot spots in interconnection networks
CN101626389A (en) * 2008-07-12 2010-01-13 Tcl集团股份有限公司 Network node management method
CN103888512A (en) * 2014-02-20 2014-06-25 上海聚力传媒技术有限公司 Method and device for downloading resources
WO2015014176A1 (en) * 2013-07-31 2015-02-05 Tencent Technology (Shenzhen) Company Limited Method, device, scheduling server and system for network allocation
CN104767796A (en) * 2015-03-18 2015-07-08 广东工业大学 Hot resource management method for internet of vehicles based on mobile P2P
CN111104376A (en) * 2019-12-19 2020-05-05 湖南快乐阳光互动娱乐传媒有限公司 Resource file query method and device
CN111200657A (en) * 2020-01-03 2020-05-26 网宿科技股份有限公司 Method for managing resource state information and resource downloading system
CN111372100A (en) * 2020-04-21 2020-07-03 白杨 End-to-end content distribution network system and distribution method based on distributed election
CN113453038A (en) * 2021-06-25 2021-09-28 桂林电子科技大学 Effectiveness optimal collaborative cache management method under CDN-P2P hybrid architecture
CN114095573A (en) * 2021-10-19 2022-02-25 陕西悟空云信息技术有限公司 Content copy placement method of CDN-P2P network based on edge cache
CN115002132A (en) * 2022-05-23 2022-09-02 苏州思萃工业互联网技术研究所有限公司 Distribution method, system and computer equipment for PCDN network pre-caching resource
CN115695333A (en) * 2022-10-31 2023-02-03 湖南快乐阳光互动娱乐传媒有限公司 Method and system for eliminating pcdn node resources and related equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070076622A1 (en) * 2005-09-30 2007-04-05 Mukherjee Shubhendu S Handling hot spots in interconnection networks
CN101626389A (en) * 2008-07-12 2010-01-13 Tcl集团股份有限公司 Network node management method
WO2015014176A1 (en) * 2013-07-31 2015-02-05 Tencent Technology (Shenzhen) Company Limited Method, device, scheduling server and system for network allocation
CN103888512A (en) * 2014-02-20 2014-06-25 上海聚力传媒技术有限公司 Method and device for downloading resources
CN104767796A (en) * 2015-03-18 2015-07-08 广东工业大学 Hot resource management method for internet of vehicles based on mobile P2P
CN111104376A (en) * 2019-12-19 2020-05-05 湖南快乐阳光互动娱乐传媒有限公司 Resource file query method and device
CN111200657A (en) * 2020-01-03 2020-05-26 网宿科技股份有限公司 Method for managing resource state information and resource downloading system
CN111372100A (en) * 2020-04-21 2020-07-03 白杨 End-to-end content distribution network system and distribution method based on distributed election
CN113453038A (en) * 2021-06-25 2021-09-28 桂林电子科技大学 Effectiveness optimal collaborative cache management method under CDN-P2P hybrid architecture
CN114095573A (en) * 2021-10-19 2022-02-25 陕西悟空云信息技术有限公司 Content copy placement method of CDN-P2P network based on edge cache
CN115002132A (en) * 2022-05-23 2022-09-02 苏州思萃工业互联网技术研究所有限公司 Distribution method, system and computer equipment for PCDN network pre-caching resource
CN115695333A (en) * 2022-10-31 2023-02-03 湖南快乐阳光互动娱乐传媒有限公司 Method and system for eliminating pcdn node resources and related equipment

Also Published As

Publication number Publication date
CN116405563B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
EP3595268B1 (en) Streaming media resource distribution method, system, edge node and central dispatching system
KR100758281B1 (en) Content Distribution Management System managing Multi-Service Type and its method
CN100484069C (en) File data distributing method and relative device
KR101490122B1 (en) Method for distributing content data packages originated by users of a super peer-to-peer network
CN101540775B (en) Method and device for distributing contents and network system for distributing contents
EP1474751B1 (en) Managed object replication and delivery
EP2668515B1 (en) Content delivery network with deep caching infrastructure
CN101193275B (en) Method and apparatus for transmitting/receiving information in internet protocol network
US8266316B2 (en) Client apparatus and method of streaming content, and computer readable recording medium storing program for performing the method
KR101330052B1 (en) Method for providing content caching service in adapted content streaming and local caching device thereof
WO2015034752A1 (en) Server-side systems and methods for reporting stream data
US20140365613A1 (en) Defragmentation of adaptive streaming segment files in a content delivery network
WO2013178010A1 (en) Multimedia content distribution method, device and system
EP2497267A1 (en) Streaming with optional broadcast delivery of data segments
CN110300339B (en) Live multimedia playback method, device and system
US20130144994A1 (en) Content Delivery Network and Method for Content Delivery
US20160330500A1 (en) Method for obtaining network information by a client terminal configured for receiving a multimedia content divided into segments
US20110289218A1 (en) Method for actively sharing available bandwidth to consumer nodes in a peer-to-peer network for delivery of video streams
EP2670109B1 (en) Method, system and devices for multimedia delivering in content delivery networks
WO2016107197A1 (en) Network program recording method, device and system, and recorded-program playing method and device
CN111372103B (en) Multicast method, device, equipment and computer storage medium
CN106209952B (en) Service node distribution method and device, CDN management server and system
CN116405563B (en) Resource acquisition method and system based on point-to-point content distribution network
KR101973724B1 (en) Method and apparatus for providing adaptively video service
KR101937449B1 (en) Method and apparatus for providing adaptively video service

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