PCDN node resource elimination method, system and related equipment

By detecting the disk space and egress bandwidth of the pcdn node, combined with the access ranking of the hot resource statistics service, the files with the lowest access ranking are determined and eliminated, which solves the problem that the existing technology cannot ensure that the pcdn node bandwidth is full and the cost is reduced, and achieves Maximize bandwidth cost-effectiveness.

CN115695333BActive Publication Date: 2024-08-30HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211343234.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-31
Publication Date
2024-08-30
Estimated Expiration
2042-10-31

AI Technical Summary

Technical Problem

The existing pcdn node resource elimination strategy cannot ensure that the bandwidth is full and cannot effectively reduce costs.

Method used

By detecting the disk space and egress bandwidth of the pcdn node, if the disk space is full but the bandwidth is not full, the ID of the stored file is obtained, the access ranking in the hot resource statistics service is queried, the file with the lowest access ranking is determined and eliminated to ensure that the bandwidth is at runtime. full status.

Benefits of technology

It maximizes the cost performance of pcdn node bandwidth and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695333B
    Figure CN115695333B
Patent Text Reader

Abstract

The present invention provides a PCDN node resource elimination method, system and related equipment, the method comprising: detecting the disk space of the current PCDN node; if the disk space of the current PCDN node is full, detecting the export bandwidth of the current PCDN node; if the export bandwidth of the current PCDN node is not full, obtaining the ID corresponding to the stored file of the current PCDN node; according to the ID corresponding to the stored file, querying the access ranking of the stored file of the current PCDN node from the hot resource statistical service; according to the access ranking of the stored file of the current PCDN node, determining the stored file with the lowest access ranking; determining the stored file with the lowest access ranking as the resource with the lowest access heat, and eliminating the resource with the lowest access heat. The above method can ensure that the PCDN node bandwidth is in a full state, thereby ensuring the optimal cost performance, thereby reducing costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network resource management, and in particular to a PCDN node resource elimination method, system and related equipment. Background Art

[0002] For the p2p (peer to peer) system, in order to save the bandwidth cost of the cdn (Content Delivery Network), when watching a video through a terminal, part of the traffic is downloaded from the cdn, and the other part of the traffic is downloaded from the pcdn (P2P CDN) node. Among them, the pcdn node can be an embedded device, such as a router, or some x86 servers. The performance of these devices is worse than that of the cdn node, but the cost is at least twice as low as that of the cdn.

[0003] For pcdn nodes, the more popular videos are deployed to the pcdn nodes in advance. However, the disk space of the pcdn nodes is limited. Therefore, when the disk space of the pcdn node is full, does the pcdn node need to eliminate local resources, and which resources (videos) that have been saved locally should be eliminated.

[0004] Therefore, a PCDN node resource elimination strategy is urgently needed. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a PCDN node resource elimination method, system and related equipment to achieve the purpose of ensuring that the PCDN node bandwidth is fully utilized and cost-effective and reducing costs.

[0006] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0007] A first aspect of an embodiment of the present invention discloses a method for eliminating node resources in a peer-to-peer content distribution network (PCDN), the method comprising:

[0008] Check the disk space of the current pcdn node;

[0009] If the disk space of the current pcdn node is full, detecting the export bandwidth of the current pcdn node;

[0010] If the egress bandwidth of the current pcdn node is not fully utilized, obtaining an identification number ID corresponding to a stored file of the current pcdn node, wherein the stored file is a resource;

[0011] According to the ID corresponding to the stored file, query the access ranking of the stored file of the current pcdn node from the pre-established hot resource statistics service, the hot resource statistics service pre-stores the access ranking of all video files in the entire network, including the access ranking of the stored file of the current pcdn node;

[0012] Determine the stored file with the lowest access ranking according to the access ranking of the stored files of the current pcdn node;

[0013] The stored file with the lowest access ranking is determined as the resource with the lowest access popularity, and the resource with the lowest access popularity is eliminated.

[0014] Optionally, also include:

[0015] If the export bandwidth of the current pcdn node is full or nearly full, the local resources pre-stored in the current pcdn node will not be eliminated.

[0016] Optionally, the detecting of the disk space of the current pcdn node includes:

[0017] Use the pre-set system command to check the disk space of the current pcdn node.

[0018] Optionally, the detecting the egress bandwidth of the current PCDN node includes:

[0019] Detect the current amount of data sent by the network card and the export bandwidth of the current pcdn node;

[0020] If the current data volume sent by the network card is greater than or equal to the egress bandwidth of the current PCDN node, it is determined that the egress bandwidth of the current PCDN node is fully utilized;

[0021] If the current data volume sent by the network card is less than the egress bandwidth of the current pcdn node, it is determined that the egress bandwidth of the current pcdn node is not fully utilized.

[0022] Optionally, the process of pre-storing the access rankings of all video files in the entire network in a hot resource statistics service includes:

[0023] Acquire multiple resource data reported by the terminal, wherein the resource data is obtained by the terminal downloading required data from a content delivery network (CDN) service;

[0024] For each resource data, counting the number of downloads of the resource data;

[0025] Determine the resource data with the most download times, and determine the resource data with the most download times as the hottest resource data;

[0026] According to the number of downloads of each resource data, the access ranking of all video files in the whole network is obtained, and the access ranking of all video files in the whole network is stored.

[0027] A second aspect of an embodiment of the present invention discloses a peer-to-peer content distribution network (PCDN) node resource elimination system, the system comprising:

[0028] The first detection module is used to detect the disk space of the current pcdn node;

[0029] A second detection module is used to detect the export bandwidth of the current pcdn node if the disk space of the current pcdn node is full;

[0030] An acquisition module, used for acquiring an identification number ID corresponding to a stored file of the current pcdn node if the egress bandwidth of the current pcdn node is not fully utilized, wherein the stored file is a resource;

[0031] A query module, used to query the access ranking of the stored files of the current pcdn node from a pre-established hot resource statistics service according to the ID corresponding to the stored file, wherein the hot resource statistics service pre-stores the access ranking of all video files in the entire network, including the access ranking of the stored files of the current pcdn node;

[0032] A determination module, used to determine the stored file with the lowest access ranking according to the access ranking of the stored files of the current pcdn node;

[0033] The elimination module is used to determine the stored file with the lowest access ranking as the resource with the lowest access popularity, and eliminate the resource with the lowest access popularity.

[0034] Optionally, also include:

[0035] The non-eliminated module is used to not eliminate the local resources pre-stored in the current pcdn node if the export bandwidth of the current pcdn node is full or close to full.

[0036] Optionally, the first detection module is specifically used to:

[0037] Use the pre-set system command to check the disk space of the current pcdn node.

[0038] A third aspect of an embodiment of the present invention discloses an electronic device, the electronic device comprising a processor;

[0039] The memory is used to store computer programs;

[0040] The processor is used to call and execute the computer program stored in the memory to implement the point-to-point content distribution network PCDN node resource elimination method as described in any one of the first aspects of the embodiments of the present invention.

[0041] The fourth aspect of an embodiment of the present invention discloses a computer storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by a processor, a point-to-point content distribution network PCDN node resource elimination method as described in any one of the first aspect of the embodiment of the present invention is implemented.

[0042] Based on the above-mentioned embodiment of the present invention, a PCDN node resource elimination method, system and related equipment are provided, the method comprising: detecting the disk space of the current PCDN node; if the disk space of the current PCDN node is full, detecting the export bandwidth of the current PCDN node; if the export bandwidth of the current PCDN node is not full, obtaining the identification number ID corresponding to the stored file of the current PCDN node, the stored file being a resource; according to the ID corresponding to the stored file, querying the access ranking of the stored file of the current PCDN node from a pre-established hot resource statistics service, the hot resource statistics service pre-stores the access ranking of all video files in the entire network, including the access ranking of the stored file of the current PCDN node; according to the access ranking of the stored file of the current PCDN node, determining the stored file with the lowest access ranking; determining the stored file with the lowest access ranking as the resource with the lowest access popularity, and eliminating the resource with the lowest access popularity. In this scheme, if it is detected in turn that the disk space of the current pcdn node is full and the export bandwidth of the current pcdn node is not fully utilized, the access ranking of the stored files of the current pcdn node is queried according to the ID corresponding to the stored files of the current pcdn node. After determining the stored file with the lowest access ranking, the stored file with the lowest access ranking is determined as the resource with the lowest access popularity, and the resource with the lowest access popularity is eliminated to ensure that the bandwidth of the pcdn node is fully utilized, thereby ensuring the optimal cost-effectiveness and reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0044] Figure 1 A schematic diagram of a process for eliminating PCDN node resources provided by an embodiment of the present invention;

[0045] Figure 2 A schematic diagram of a process for determining whether the egress bandwidth of a current PCDN node is not fully utilized is provided in an embodiment of the present invention;

[0046] Figure 3 A schematic diagram of a process for pre-storing the access rankings of all video files in the entire network in a hot resource statistics service provided by an embodiment of the present invention;

[0047] Figure 4 A schematic diagram of the structure of a PCDN node resource elimination system provided by an embodiment of the present invention;

[0048] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0050] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0051] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein.

[0052] As can be seen from the background technology, the existing PCDN node resource elimination strategy cannot guarantee the cost-effectiveness of the PCDN node bandwidth being fully utilized, nor can it reduce costs.

[0053] Therefore, an embodiment of the present invention provides a method, system and related equipment for eliminating PCDN node resources. In this scheme, if it is detected in turn that the disk space of the current PCDN node is full and the export bandwidth of the current PCDN node is not fully utilized, the access ranking of the stored files of the current PCDN node is queried according to the ID corresponding to the stored files of the current PCDN node. After determining the stored file with the lowest access ranking, the stored file with the lowest access ranking is determined as the resource with the lowest access popularity, and the resource with the lowest access popularity is eliminated to ensure that the PCDN node bandwidth is in a fully utilized state, thereby ensuring the optimal cost performance and reducing costs.

[0054] like Figure 1 As shown, it is a flow chart of a PCDN node resource elimination method provided in an embodiment of the present invention.

[0055] The PCDN node resource elimination method mainly includes the following steps:

[0056] Step S101: Detect the disk space of the current pcdn node.

[0057] In the process of implementing step S101, for the pcdn node, the more popular videos will be deployed to the pcdn node in advance. Since the disk space of the pcdn node is limited, in order to facilitate the subsequent deployment of more popular videos, first, the disk space of the current pcdn node needs to be detected to detect whether the disk space of the current pcdn node is full or not.

[0058] Optionally, in a specific embodiment, the disk space of the current pcdn node is checked through a pre-set system command.

[0059] The pre-set system command may be a du-sh command.

[0060] Step S102: Determine whether the disk space of the current pcdn node is full. If so, execute step S103; if not, end the operation.

[0061] In the process of implementing step S102, determine whether the disk space of the current pcdn node is full. If so, it means that subsequent resource elimination operations need to be performed, that is, some deployed videos need to be eliminated, then execute step S103. If not, it means that the disk space of the current pcdn node is not full, and hot videos can continue to be deployed. There is no need to perform subsequent resource elimination operations, then the operation ends directly.

[0062] Step S103: Detect the egress bandwidth of the current pcdn node.

[0063] In the specific implementation of step S103, when it is determined that the disk space of the current pcdn node is full, the export bandwidth of the current pcdn node is detected.

[0064] Step S104: Determine whether the export bandwidth of the current pcdn node is not fully utilized. If so, execute step S105; if not, execute step S109.

[0065] In the process of implementing step S104, determine whether the export bandwidth of the current pcdn node is not fully utilized. If so, execute step S105. If not, it means that the export bandwidth of the current pcdn node is fully utilized or nearly fully utilized, then execute step S109.

[0066] Optionally, the process of executing step S103 to detect the egress bandwidth of the current pcdn node and step S104 to determine whether the egress bandwidth of the current pcdn node is not fully utilized is as follows: Figure 2 As shown, a flow chart of determining whether the egress bandwidth of the current PCDN node is not fully utilized is provided in an embodiment of the present invention, and mainly includes the following steps:

[0067] Step S201: Detect the current data volume sent by the network card and the export bandwidth of the current pcdn node.

[0068] In the process of implementing step S201, when it is determined that the disk space of the current pcdn node is full, the current amount of data sent by the network card and the export bandwidth of the current pcdn node are detected.

[0069] Step S202: Determine whether the current data volume sent by the network card is greater than or equal to the export bandwidth of the current pcdn node. If so, execute step S203; if not, execute step S204.

[0070] Step S203: Determine that the egress bandwidth of the current pcdn node is fully utilized.

[0071] In the process of implementing step S203, when it is determined that the current amount of data sent by the network card is greater than or equal to the egress bandwidth of the current pcdn node, it is determined that the egress bandwidth of the current pcdn node is fully utilized.

[0072] Step S204: Determine that the egress bandwidth of the current pcdn node is not fully utilized.

[0073] In the process of implementing step S204, when it is determined that the current data transmission volume of the network card is less than the egress bandwidth of the current pcdn node, it is determined that the egress bandwidth of the current pcdn node is not fully utilized.

[0074] It can be understood that whether the export bandwidth is fully utilized is determined based on the current amount of data sent by the network card. If the amount of data sent per second by the network card is greater than or equal to the total export bandwidth (the export bandwidth of different pcdn node networks is different), the export bandwidth is considered to be fully utilized, otherwise the export bandwidth is considered to be not fully utilized.

[0075] Step S105: Obtain the identification number ID corresponding to the file stored in the current pcdn node.

[0076] In step S105, the files currently stored in the pcdn node refer to the videos that the user wants to watch. A video will be divided into many small files, which is equivalent to the pcdn node storing in advance the videos that the user will watch in the future and thinks are relatively popular.

[0077] In the embodiment of the present invention, the stored file is a resource.

[0078] In the process of implementing step S105, when it is determined that the export bandwidth of the current pcdn node is not fully utilized, because the disk space of the current pcdn node is full, the files stored locally need to be eliminated, and each file has a unique ID identifier, so it is necessary to obtain the identification number ID corresponding to the file stored in the current pcdn node.

[0079] Optionally, in a specific embodiment, the hash corresponding to the file stored in the current pcdn node is obtained.

[0080] It should be noted that the hash corresponding to the file stored in the current pcdn node can be determined by the md2 algorithm and the sha1 algorithm, or in other words, the hash corresponding to the file stored in the current pcdn node can be calculated by the md2 algorithm and the sha1 algorithm.

[0081] Step S106: According to the ID corresponding to the stored file, query the access ranking of the stored files of the current pcdn node from the pre-established hot resource statistics service.

[0082] In step S106, the hot resource statistics service pre-stores the access rankings of all video files in the entire network, including the access rankings of files stored in the current pcdn node.

[0083] Optional, such as Figure 3 As shown, a flow chart of pre-storing the access rankings of all video files in the entire network in a hot resource statistics service according to an embodiment of the present invention mainly includes the following steps:

[0084] Step S301: Acquire multiple resource data reported by the terminal.

[0085] In step S301, the resource data is obtained by the terminal downloading the required data from the content distribution network CDN service.

[0086] That is to say, the terminal may download data from three sources simultaneously: CDN service, P2P node (such as other terminals or P2P devices) and PCDN node, and the terminal reports the data that is not downloaded from the P2P node and PCDN node, or it can be understood that the terminal reports the data downloaded from the CDN service, that is, if the P2P node and PCDN node do not have the data the terminal wants, the terminal will download the data from the CDN service.

[0087] It should be noted that resource data is block data, and a video can be divided into many blocks.

[0088] In the process of implementing step S301, after the terminal downloads the required resource data from the CDN service, it reports the resource data, that is, reports the number of downloads of the resource data, or reports the number of downloads of these block data. The thermal resource statistics service then obtains multiple resource data reported by the terminal, that is, obtains the number of downloads of multiple block data reported by the terminal.

[0089] Step S302: For each resource data, count the number of times the resource data is downloaded.

[0090] In the specific implementation of step S302, for each resource data, the number of downloads of each resource data is counted, that is, for each block data, the number of downloads of each block data is counted.

[0091] It is understandable that each time a user views a block data resource through a terminal, the terminal performs statistics and reports it to a related statistical service, namely, a hot resource statistical service, which accumulates and calculates the total number of downloads of each block data.

[0092] Step S303: Determine the resource data with the most download times, and determine the resource data with the most download times as the hottest resource data.

[0093] In the specific implementation of step S303, the resource data with the most download times is determined, and the resource data with the most download times is determined as the hottest resource data, that is, the block data with the most download times is the hottest resource data.

[0094] Optionally, if two resource data have the same number of downloads and the number of downloads is the largest, then both resource data are determined as the hottest resource data.

[0095] Step S304: according to the number of downloads of each resource data, the access ranking of all video files in the whole network is obtained, and the access ranking of all video files in the whole network is stored.

[0096] In the specific implementation of step S304, the number of downloads of each resource data is arranged in ascending order according to the number of downloads of each resource data, the access ranking of all video files in the entire network is obtained, and the access ranking of all video files in the entire network is stored.

[0097] In the process of implementing step S106, the access ranking of the stored files of the current pcdn node is queried. First, it is necessary to determine which file is the stored file. A unique identifier is required to specify which file is being queried. That is to say, based on the ID corresponding to the stored file, the access ranking of the stored files of the current pcdn node is queried from the pre-established hot resource statistics service.

[0098] Step S107: Determine the stored file with the lowest access ranking according to the access ranking of the stored files of the current pcdn node.

[0099] In the process of implementing step S107, the stored file with the lowest access ranking is determined according to the access ranking of the stored files of the current pcdn node, that is, the resource with the lowest access ranking is determined according to the access ranking of the stored files of the current pcdn node.

[0100] Step S108: Determine the stored file with the lowest access ranking as the resource with the lowest access popularity, and eliminate the resource with the lowest access popularity.

[0101] In the specific implementation of step S108, the stored file with the lowest access ranking is determined as the resource with the lowest access popularity, that is, the resource with the lowest access ranking is determined as the resource with the lowest access popularity, and the resource with the lowest access popularity is eliminated.

[0102] Based on the above description, it can be understood that if the current PCDN node's export bandwidth is not fully utilized, the coldest resources, that is, the resources with the lowest access popularity, will be eliminated.

[0103] Step S109: The local resources pre-stored in the current pcdn node are not eliminated.

[0104] In the process of implementing step S109, when it is determined that the export bandwidth of the current pcdn node is fully utilized or nearly fully utilized, the local resources pre-stored in the current pcdn node are not eliminated.

[0105] Optionally, in a specific embodiment, after the elimination is successful, the pcdn node notifies other related services (such as resource deployment services) to deploy one or more of the hottest resources that are not available on this node to the pcdn node.

[0106] A PCDN node resource elimination method is provided based on an embodiment of the present invention. The method comprises the following steps: detecting the disk space of the current PCDN node; if the disk space of the current PCDN node is full, detecting the export bandwidth of the current PCDN node; if the export bandwidth of the current PCDN node is not full, obtaining the identification number ID corresponding to the stored file of the current PCDN node, wherein the stored file is a resource; querying the access ranking of the stored file of the current PCDN node from a pre-established hot resource statistics service according to the ID corresponding to the stored file, wherein the hot resource statistics service pre-stores the access ranking of all video files in the entire network, including the access ranking of the stored file of the current PCDN node; determining the stored file with the lowest access ranking according to the access ranking of the stored file of the current PCDN node; determining the stored file with the lowest access ranking as the resource with the lowest access popularity, and eliminating the resource with the lowest access popularity. In this scheme, if it is detected in turn that the disk space of the current pcdn node is full and the export bandwidth of the current pcdn node is not fully utilized, the access ranking of the stored files of the current pcdn node is queried according to the ID corresponding to the stored files of the current pcdn node. After determining the stored file with the lowest access ranking, the stored file with the lowest access ranking is determined as the resource with the lowest access popularity, and the resource with the lowest access popularity is eliminated to ensure that the bandwidth of the pcdn node is fully utilized, thereby ensuring the optimal cost-effectiveness and reducing costs.

[0107] Corresponding to the PCDN node resource elimination method shown in the above embodiment of the present invention, the embodiment of the present invention also provides a PCDN node resource elimination system, such as Figure 4 As shown, the PCDN node resource elimination system includes: a first detection module 401, a second detection module 402, an acquisition module 403, a query module 404, a determination module 405 and an elimination module 406.

[0108] The first detection module 401 is used to detect the disk space of the current pcdn node.

[0109] The second detection module 402 is used to detect the export bandwidth of the current pcdn node if the disk space of the current pcdn node is full.

[0110] The acquisition module 403 is used to obtain the identification number ID corresponding to the file stored in the current pcdn node if the export bandwidth of the current pcdn node is not fully utilized.

[0111] Among them, the stored file is a resource.

[0112] The query module 404 is used to query the access ranking of the stored files of the current pcdn node from the pre-established hot resource statistics service according to the ID corresponding to the stored file.

[0113] Among them, the hot resource statistics service pre-stores the access rankings of all video files in the entire network, including the access rankings of files stored in the current pcdn node.

[0114] The determination module 405 is used to determine the stored file with the lowest access ranking according to the access ranking of the stored files in the current pcdn node.

[0115] The elimination module 406 is used to determine the stored file with the lowest access ranking as the resource with the lowest access popularity, and eliminate the resource with the lowest access popularity.

[0116] Optional, based on the above Figure 4 The PCDN node resource elimination system shown is combined with Figure 4 The pcdn node resource elimination system further sets up a non-eliminated module.

[0117] The non-eliminated module is used to not eliminate the local resources pre-stored in the current pcdn node if the export bandwidth of the current pcdn node is full or close to full.

[0118] Optional, based on the above Figure 4 The first detection module 401 shown is specifically used for:

[0119] Use the pre-set system command to check the disk space of the current pcdn node.

[0120] Optional, based on the above Figure 4 The second detection module 402 shown is specifically configured to:

[0121] Check the current amount of data sent by the network card and the current PCDN node's export bandwidth; if the current amount of data sent by the network card is greater than or equal to the current PCDN node's export bandwidth, determine that the current PCDN node's export bandwidth is fully utilized; if the current amount of data sent by the network card is less than the current PCDN node's export bandwidth, determine that the current PCDN node's export bandwidth is not fully utilized.

[0122] Optional, based on the above Figure 4 The PCDN node resource elimination system shown is combined with Figure 4 The pcdn node resource elimination system further sets up a pre-storage module for pre-storing the access rankings of all video files in the entire network in the hot resource statistics service.

[0123] Pre-storage module, including:

[0124] The acquisition unit is used to acquire multiple resource data reported by the terminal.

[0125] The resource data is obtained by the terminal downloading the required data from the content distribution network CDN service.

[0126] The statistical unit is used to count the number of times the resource data is downloaded for each resource data.

[0127] The determination unit is used to determine the resource data with the most download times, and determine the resource data with the most download times as the hottest resource data.

[0128] The obtaining unit is used to obtain the access ranking of all video files in the entire network according to the number of downloads of each resource data, and store the access ranking of all video files in the entire network.

[0129] It should be noted that the specific principles and execution processes of each module or unit in the PCDN node resource elimination system disclosed in the above-mentioned embodiment of the present invention are the same as those of the PCDN node resource elimination method implemented in the above-mentioned present invention. Please refer to the corresponding parts of the PCDN node resource elimination method disclosed in the above-mentioned embodiment of the present invention, and will not be repeated here.

[0130] A PCDN node resource elimination system is provided based on an embodiment of the present invention. The system detects the disk space of the current PCDN node. If the disk space of the current PCDN node is full, the export bandwidth of the current PCDN node is detected. If the export bandwidth of the current PCDN node is not full, the identification number ID corresponding to the stored file of the current PCDN node is obtained, and the stored file is a resource. According to the ID corresponding to the stored file, the access ranking of the stored file of the current PCDN node is queried from a pre-established hot resource statistics service, and the hot resource statistics service pre-stores the access ranking of all video files in the entire network, including the access ranking of the stored file of the current PCDN node. According to the access ranking of the stored file of the current PCDN node, the stored file with the lowest access ranking is determined; the stored file with the lowest access ranking is determined as the resource with the lowest access popularity, and the resource with the lowest access popularity is eliminated. In this scheme, if it is detected in turn that the disk space of the current pcdn node is full and the export bandwidth of the current pcdn node is not fully utilized, the access ranking of the stored files of the current pcdn node is queried according to the ID corresponding to the stored files of the current pcdn node. After determining the stored file with the lowest access ranking, the stored file with the lowest access ranking is determined as the resource with the lowest access popularity, and the resource with the lowest access popularity is eliminated to ensure that the bandwidth of the pcdn node is fully utilized, thereby ensuring the optimal cost-effectiveness and reducing costs.

[0131] Based on the PCDN node resource elimination system disclosed in the above embodiment of the present invention, each of the above modules can be implemented by a hardware device composed of a processor and a memory. Specifically, each of the above modules is stored in the memory as a program unit, and the processor executes the program unit stored in the memory to implement PCDN node resource elimination.

[0132] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the elimination of PCDN node resources can be achieved by adjusting kernel parameters.

[0133] An embodiment of the present invention provides a computer storage medium, which includes a storage program for storing PCDN node resource elimination, wherein when the program is executed by a processor, a PCDN node resource elimination method as described in any one of the above method embodiments is implemented.

[0134] An embodiment of the present invention provides a processor, which is used to run a program, wherein when the program is running, the PCDN node resource elimination method disclosed in the above method embodiment is executed.

[0135] An embodiment of the present invention provides an electronic device, such as Figure 5 , which is a schematic structural diagram of an electronic device 50 provided in an embodiment of the present invention.

[0136] The electronic device in the embodiment of the present invention may be a server, a PC, a PAD, a mobile phone, etc.

[0137] The electronic device includes at least one processor 501 , at least one memory 502 connected to the processor, and a bus 503 .

[0138] The processor 501 and the memory 502 communicate with each other via the bus 503. The processor 501 is used to execute the program stored in the memory 502.

[0139] Memory 502 is used to store a program, which is at least used for: detecting the disk space of the current pcdn node; if the disk space of the current pcdn node is full, detecting the export bandwidth of the current pcdn node; if the export bandwidth of the current pcdn node is not full, obtaining the identification number ID corresponding to the stored file of the current pcdn node, the stored file is a resource; according to the ID corresponding to the stored file, querying the access ranking of the stored file of the current pcdn node from a pre-established hot resource statistics service, the hot resource statistics service pre-stores the access ranking of all video files in the entire network, including the access ranking of the stored file of the current pcdn node; according to the access ranking of the stored file of the current pcdn node, determining the stored file with the lowest access ranking; determining the stored file with the lowest access ranking as the resource with the lowest access popularity, and eliminating the resource with the lowest access popularity.

[0140] The present application also provides a computer program product, which, when executed on an electronic device, is suitable for executing a program for initializing the following method steps:

[0141] Detect the disk space of the current pcdn node; if the disk space of the current pcdn node is full, detect the export bandwidth of the current pcdn node; if the export bandwidth of the current pcdn node is not full, obtain the identification number ID corresponding to the stored file of the current pcdn node, and the stored file is a resource; according to the ID corresponding to the stored file, query the access ranking of the stored file of the current pcdn node from the pre-established hot resource statistics service, and the hot resource statistics service pre-stores the access ranking of all video files in the entire network, including the access ranking of the stored files of the current pcdn node; according to the access ranking of the stored files of the current pcdn node, determine the stored file with the lowest access ranking; determine the stored file with the lowest access ranking as the resource with the lowest access popularity, and eliminate the resource with the lowest access popularity.

[0142] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0143] In a typical configuration, the device includes one or more processors (CPU), memory and bus. The device may also include input / output interface, network interface and the like.

[0144] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.

[0145] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0146] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0147] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0148] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for eliminating node resources in a peer-to-peer content distribution network (PCDN). It is characterized in that The method comprises: Check the disk space of the current pcdn node; If the disk space of the current pcdn node is full, detecting the export bandwidth of the current pcdn node; If the egress bandwidth of the current pcdn node is not fully utilized, obtaining an identification number ID corresponding to a stored file of the current pcdn node, wherein the stored file is a resource; According to the ID corresponding to the stored file, query the access ranking of the stored file of the current pcdn node from the pre-established hot resource statistics service, the hot resource statistics service pre-stores the access ranking of all video files in the entire network, including the access ranking of the stored file of the current pcdn node; Determine the stored file with the lowest access ranking according to the access ranking of the stored files of the current pcdn node; The stored file with the lowest access ranking is determined as the resource with the lowest access popularity, and the resource with the lowest access popularity is eliminated.

2. The method according to claim 1, It is characterized in that Also includes: If the export bandwidth of the current pcdn node is full or nearly full, the local resources pre-stored in the current pcdn node will not be eliminated.

3. The method according to claim 1, It is characterized in that The detecting of the disk space of the current pcdn node includes: Use the pre-set system command to check the disk space of the current pcdn node.

4. The method according to claim 1, It is characterized in that The detecting the egress bandwidth of the current PCDN node includes: Detect the current data volume sent by the network card and the export bandwidth of the current pcdn node; If the current data volume sent by the network card is greater than or equal to the egress bandwidth of the current PCDN node, it is determined that the egress bandwidth of the current PCDN node is fully utilized; If the current data volume sent by the network card is less than the egress bandwidth of the current pcdn node, it is determined that the egress bandwidth of the current pcdn node is not fully utilized.

5. The method according to claim 1, It is characterized in that The process of pre-storing the access rankings of all video files in the entire network in the hot resource statistics service includes: Acquire multiple resource data reported by the terminal, wherein the resource data is obtained by the terminal downloading required data from a content delivery network (CDN) service; For each resource data, counting the number of downloads of the resource data; Determine the resource data with the most download times, and determine the resource data with the most download times as the hottest resource data; According to the number of downloads of each resource data, the access ranking of all video files in the whole network is obtained, and the access ranking of all video files in the whole network is stored.

6. A peer-to-peer content distribution network PCDN node resource elimination system, It is characterized in that The system comprises: The first detection module is used to detect the disk space of the current pcdn node; A second detection module is used to detect the export bandwidth of the current pcdn node if the disk space of the current pcdn node is full; An acquisition module, used for acquiring an identification number ID corresponding to a stored file of the current pcdn node if the egress bandwidth of the current pcdn node is not fully utilized, wherein the stored file is a resource; A query module, used to query the access ranking of the stored files of the current pcdn node from a pre-established hot resource statistics service according to the ID corresponding to the stored file, wherein the hot resource statistics service pre-stores the access ranking of all video files in the entire network, including the access ranking of the stored files of the current pcdn node; A determination module, used to determine the stored file with the lowest access ranking according to the access ranking of the stored files of the current pcdn node; The elimination module is used to determine the stored file with the lowest access ranking as the resource with the lowest access popularity, and eliminate the resource with the lowest access popularity.

7. The system according to claim 6, It is characterized in that Also includes: The non-eliminated module is used to not eliminate the local resources pre-stored in the current pcdn node if the export bandwidth of the current pcdn node is full or close to full.

8. The system according to claim 6, It is characterized in that The first detection module is specifically used for: Use the pre-set system command to check the disk space of the current pcdn node.

9. An electronic device, It is characterized in that The electronic device comprises a processor; Memory for storing computer programs; The processor is used to call and execute the computer program stored in the memory to implement the point-to-point content distribution network PCDN node resource elimination method as described in any one of claims 1 to 5.

10. A computer storage medium, It is characterized in that The computer storage medium stores computer executable instructions, and when the computer executable instructions are loaded and executed by the processor, the point-to-point content distribution network PCDN node resource elimination method as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • P2P-oriented video cache management and playing method and system and medium

    CN110062280A

  • Method and device for eliminating data, cache node and cache system

    CN114741630A