CN112583667A - Content delivery network link evaluation method and device - Google Patents

Content delivery network link evaluation method and device Download PDF

Info

Publication number
CN112583667A
CN112583667A CN202011448582.1A CN202011448582A CN112583667A CN 112583667 A CN112583667 A CN 112583667A CN 202011448582 A CN202011448582 A CN 202011448582A CN 112583667 A CN112583667 A CN 112583667A
Authority
CN
China
Prior art keywords
uploading
network link
distribution network
content distribution
time interval
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
CN202011448582.1A
Other languages
Chinese (zh)
Other versions
CN112583667B (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.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN202011448582.1A priority Critical patent/CN112583667B/en
Publication of CN112583667A publication Critical patent/CN112583667A/en
Application granted granted Critical
Publication of CN112583667B publication Critical patent/CN112583667B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Abstract

The application provides a content delivery network link evaluation method and a content delivery network link evaluation device, wherein the content delivery network link evaluation method comprises the following steps: acquiring a content distribution network link to be evaluated; counting the uploading request number of the target uploading request of the content distribution network link to be evaluated in a first time interval; counting the uploading success number of the target uploading request successfully uploaded by the content distribution network link to be evaluated in the first time interval and a second time interval, wherein the second time interval is after the first time interval and is adjacent to the first time interval; calculating the uploading success rate of the content distribution network link to be evaluated according to the uploading request number and the uploading success number; and evaluating the content distribution network link to be evaluated according to the uploading success rate, and accurately calculating the uploading success rate of the content distribution network link by using the method so as to be used as an index for evaluating the content distribution network.

Description

Content delivery network link evaluation method and device
Technical Field
The application relates to the technical field of internet, in particular to a content delivery network link evaluation method. The application also relates to a content distribution network link evaluation apparatus, a computing device, and a computer-readable storage medium.
Background
The Content Delivery Network (CDN) is an advanced traffic distribution Network constructed on the existing Network, and is an advanced Network in which a new Network architecture is added to the existing Network to distribute the Content of a website to the edge of the Network closest to a user, so as to improve the response speed of the user in accessing the website.
After a website content provider delivers website content to a website, the delivered content is cached in a CDN server for a user to download and browse, the website content provider usually selects a service of multiple CDN links to ensure the quality of the CDN service, in a CDN system in the prior art, the upload success rate of a CDN link is usually an important index for evaluating one CDN link, and the upload success rate of the CDN link is usually determined by recording an event statistical failure rate of upload failure at a client to calculate the upload success rate of the CDN link, but this calculation method has the following problems: when uploading fails, the file can be uploaded in a form of re-uploading, so that the calculated uploading success rate value is low, sometimes, a user actively cancels uploading, and the uploading success rate value is high, so that the finally obtained uploading success rate of the CDN link is inaccurate, and the actual experience effect of the final user is poor.
Disclosure of Invention
In view of this, the present application provides a content delivery network link evaluation method. The application also relates to a content delivery network link evaluation device, a computing device and a computer readable storage medium, which are used for solving the problems that the success rate of uploading of the CDN link is inaccurate and the utilization of the CDN link is insufficient in the prior art.
According to a first aspect of embodiments of the present application, there is provided a content delivery network link evaluation method, including:
acquiring a content distribution network link to be evaluated;
counting the uploading request number of the target uploading request of the content distribution network link to be evaluated in a first time interval;
counting the uploading success number of the target uploading request successfully uploaded by the content distribution network link to be evaluated in the first time interval and a second time interval, wherein the second time interval is after the first time interval and is adjacent to the first time interval;
calculating the uploading success rate of the content distribution network link to be evaluated according to the uploading request number and the uploading success number;
and evaluating the content distribution network link to be evaluated according to the uploading success rate.
According to a second aspect of embodiments of the present application, there is provided a content distribution network link evaluation apparatus including:
the acquisition module is configured to be a content distribution network link to be evaluated;
the first counting module is configured to count the uploading request number of the target uploading request of the content distribution network link to be evaluated in a first time interval;
a second counting module, configured to count an upload success number of a target upload request that is successfully uploaded by the content distribution network link to be evaluated in the first time interval and a second time interval, where the second time interval is after the first time interval and is adjacent to the first time interval;
the calculation module is configured to calculate the uploading success rate of the content distribution network link to be evaluated according to the uploading request number and the uploading success number;
and the evaluation module is configured to evaluate the content distribution network link to be evaluated according to the uploading success rate.
According to a third aspect of embodiments herein, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the content distribution network link evaluation method when executing the instructions.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the content distribution network link evaluation method.
The content distribution network link evaluation method provided by the application acquires a content distribution network link to be evaluated; counting the uploading request number of the target uploading request of the content distribution network link to be evaluated in a first time interval; counting the uploading success number of the target uploading request successfully uploaded by the content distribution network link to be evaluated in the first time interval and a second time interval, wherein the second time interval is after the first time interval and is adjacent to the first time interval; calculating the uploading success rate of the content distribution network link to be evaluated according to the uploading request number and the uploading success number; according to the method, the number of uploading requests in the first time interval and the number of uploading success in the first time interval and the second time interval are counted, uploading success records in the first time interval are eliminated, uploading success records in the second time interval can be omitted, the quality of the content distribution network link to be evaluated is considered globally from the perspective of uploading success rate, the content distribution network link with the highest uploading success rate is selected from the plurality of content distribution network links, uploading experience is optimized, and the actual experience effect of a user is improved.
Drawings
Fig. 1 is a flowchart of a content delivery network link evaluation method according to an embodiment of the present application;
fig. 2 is a process flow diagram of a content delivery network link evaluation method according to another embodiment of the present application;
fig. 3 is a schematic structural diagram of a content distribution network link evaluation apparatus according to an embodiment of the present application;
fig. 4 is a block diagram of a computing device according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
First, the noun terms to which one or more embodiments of the present application relate are explained.
Uploading success rate: in the process of completing the uploading task, a difference of uploading experience can be generated due to factors such as network and client behaviors, and the uploading success rate is an important index for measuring the uploading experience.
The present application also relates to a content distribution network link evaluation apparatus, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments one by one.
Fig. 1 shows a flowchart of a content distribution network link evaluation method according to an embodiment of the present application, which specifically includes the following steps:
step 102: and acquiring a content distribution network link to be evaluated.
The CDN (Content Delivery Network) is an advanced flow distribution Network constructed on the existing Network, a new Network architecture is added in the existing Network, the Content of a website is distributed to the edge of the Network closest to a user, the response speed of the user for accessing the website is improved, and the CDN has the characteristics of load balancing, has the functions of caching, mirroring and overall load balancing, mainly caches static data in the website, after the website Content is released by a website Content provider, the released Content is cached in a CDN server for the user to download and browse, and in the process of completing an uploading task, a large file generates uploading experience difference due to factors such as Network and client behaviors, and the uploading success rate is an important index for measuring a CDN link.
The content delivery network link to be evaluated is the CDN link that needs to be evaluated in the present application.
In A specific embodiment provided by the present application, A CDN link to be evaluated is obtained by taking the CDN link to be evaluated as CDN-A as an example.
Step 104: and counting the uploading request number of the target uploading request of the content distribution network link to be evaluated in a first time interval.
The first time interval is a preset time period, the uploading request recorded in the first time interval is counted on the basis of the first time interval, the specific duration of the first time interval is based on practical application and can be 12 hours, 24 hours, 36 hours, 50 hours and the like, preferably, the first time interval is 24 hours, specifically, 9 months, 15 days and 0 days: 00: day 0, 00 to 9, 16: 00: 00 for a total of 24 hours.
Specifically, counting the number of upload requests of the target upload request of the content distribution network link to be evaluated in the first time interval includes:
acquiring a log record;
determining an uploading request with an uploading request starting time in a first time interval as a target uploading request;
and counting the uploading request number of the target uploading request in the content distribution network link to be evaluated.
In practical applications, the diary record is used to record a series of operations on the CDN link, such as upload request time, upload end time, file size, and so on, and all events occurring on the CDN are recorded in the diary record.
After the CDN link receives the upload request, the time of receiving the upload request (i.e., the start time of the upload request) is written into the log record.
The method comprises the steps of obtaining log records, recording a plurality of records in the log records, reading an uploading request of which the starting time of the uploading request falls in a first time interval in the log records, taking the uploading request of which the starting time of the uploading request falls in the first time interval as a target uploading request, and counting the uploading request number of the target uploading request of a CDN link to be evaluated.
In a specific embodiment provided by the present application, the first time interval is 9 months, 15 days 0: 00: day 0, 00 to 9, 16: 00: 00 this time period is taken as an example, the log record is read, and in the CDN-A link, the number of upload requests whose start time of the upload request falls in this time period is Xa
Step 106: and counting the uploading success number of the target uploading request successfully uploaded by the content distribution network link to be evaluated in the first time interval and a second time interval, wherein the second time interval is after the first time interval and is adjacent to the first time interval.
The second time interval is adjacent to the first time interval and immediately follows the first time interval, such as the first time interval is 9 months and 15 days 0: 00: day 0, 00 to 9, 16: 00: 00, the second time interval may be 9 months, 16 days 0: 00: day 0, 00 to 9, 17: 00: 00, if the first time interval is 9 months, 15 days 0: 00: day 12, 00 to 9, 15: 00: 00, the second time interval may be 9 months, 15 days, 12: 00: day 0, 00 to 9, 16: 00: 00. the second time interval may be the same as or different from the first time interval, for example, the first time interval is 24 hours, the second time interval may be 24 hours, 12 hours, 36 hours, and so on.
Specifically, counting the number of successful uploads of the target upload request in which the upload of the content distribution network link to be evaluated is successful in the first time interval and the second time interval includes:
determining that the target uploading requests with the completion time within the first time interval and the second time interval are uploading successful requests;
and counting the uploading success number of the uploading success request in the content distribution network link to be evaluated.
In practical application, the upload request is written into a log record after being successfully uploaded, when the upload request is finished, the upload start time and the upload end time of the upload request are written into one log record, the upload request completion record before the first time interval may also exist in the first time interval and the second time interval, the target upload request can be screened according to the upload start time, the target upload request with the upload end time falling in the first time interval and the second time interval is taken as the upload success request, and the upload success number of the upload success request in the CDN connection to be evaluated is counted.
In one embodiment provided herein, the first time interval is 9 months, 15 days, 0: 00: day 0, 00 to 9, 16: 00: 00, with a second time interval of 9 months, 16 days 0: 00: day 0, 00 to 9, 17: 00: 00 for example, reading in the log record, obtaining the uploading requests with the completion time falling within the first time interval and the second time interval, screening out the target uploading requests with the uploading time falling within the first time interval from the uploading requests as uploading success requests, and counting, wherein in the CDN-A link, the uploading success number with the completion time falling within the first time interval and the second time interval is Ya
Step 108: and calculating the uploading success rate of the content distribution network link to be evaluated according to the uploading request number and the uploading success number.
Specifically, the uploading success rate of the CDN link to be evaluated can be calculated and determined according to the uploading request number and the uploading success number corresponding to the CDN link to be evaluated.
In an embodiment provided by the present application, along the above example, the upload success rate of the CDN-A link is succrratio-A ═ Ya/XaWherein SuccRatio-A identifies the uploading success rate of CDN-A.
Step 110: and evaluating the content distribution network link to be evaluated according to the uploading success rate.
In practical application, after the uploading success rate of the CDN link to be evaluated is calculated, the uploading success rate corresponding to the CDN link to be evaluated can be used as an evaluation index for evaluating the CDN link, and the quality of the CDN link with the uploading success rate draft is better.
In the specific embodiment provided by the present application, if the upload success rate of the CDN-A link is 0.92, the upload success rate of 0.92 is an evaluation index of the CDN-A link.
Optionally, the method further includes:
receiving an uploading instruction of a file to be uploaded;
acquiring at least two content distribution network links in response to the upload instruction;
determining a content distribution network link with the highest uploading success rate as a target content distribution network link;
and uploading the file to be uploaded through the target content distribution network link.
A website content provider usually selects a plurality of CDN links, in practical application, an optimal service needs to be selected from the plurality of CDN links to ensure the quality of CDN services, an upload success rate is used as an important index for evaluating one CDN link, when a new upload instruction exists, the plurality of CDN links are determined in response to the upload instruction, the upload success rate of each CDN link is calculated according to a CDN link evaluation method provided by the application, the CDN link with the highest upload success rate is determined as a target CDN link, and a file to be uploaded is uploaded through the target CDN link.
In A specific embodiment provided by the present application, taking uploading A file M to be uploaded as an example, in response to an upload instruction of the file M to be uploaded, three CDN links, which are CDN-A, CDN-B, and CDN-C, are obtained, where an upload success rate of the CDN-A is 0.92, an upload success rate of the CDN-B is 0.90, and an upload success rate of the CDN-C is 0.98, and then the CDN-C may be determined as A target link, that is, the CDN-C link is selected to upload the file M to be uploaded.
Optionally, the method further includes:
and correspondingly writing the starting time for receiving the uploading instruction and the finishing time for finishing uploading into a log record under the condition that the file to be uploaded is uploaded successfully.
Correspondingly, under the condition that the file to be uploaded is successfully uploaded, the uploading request start time (the start time for receiving the uploading instruction) and the uploading completion end time of the file to be uploaded are correspondingly written into a log record, and the log record is used for counting the uploading success rate of the CDN link again.
In practical applications, it may happen that the upload success rates of at least two CDN links are the same, and correspondingly, determining a content delivery network link with the highest upload success rate as a target content delivery network link includes:
and under the condition that at least two CDN links with the highest uploading success rate are available, determining one CDN link as a target CDN link according to a preset screening rule.
And under the condition that at least two content distribution network links with the highest uploading success rate are available, determining one content distribution network link as a target content distribution network link according to a preset screening rule.
Specifically, determining a content distribution network link as a target content distribution network link according to a preset screening rule includes:
optionally selecting one content distribution network link as a target content distribution network link; or
Determining the content distribution network link with the minimum load as a target content distribution network link; or
And determining the content distribution network link with the minimum cost as the target content distribution network link.
In practical applications, one CDN link may be selected as the target CDN link for convenience. A target CDN link can also be determined according to the load of CDN links, each CDN link can be used by a plurality of users, the number of users corresponding to the CDN link with a small load is small, and the CDN link with the minimum load is determined to be the target CDN link, so that the use experience of the users can be improved; meanwhile, each CDN link pays corresponding cost for a corresponding operator, CDN link prices provided by different operators are different, and the CDN link with the lowest price cost can be selected as the target CDN link under the condition that other attribute parameters of the CDN link are the same.
In A specific embodiment provided by the present application, along the above example, the upload success rate of the CDN-A link is 0.92, the upload success rate of the CDN-B link is 0.96, the upload success rate of the CDN-C link is 0.96, the upload success rates of the CDN-B link and the CDN-C link are the same, and when A low load of the CDN-B is detected and the number of people using the CDN-B is small, it is determined that the CDN-B link is the target CDN link.
The content distribution network link evaluation method provided by the application acquires a content distribution network link to be evaluated; counting the uploading request number of the target uploading request of the content distribution network link to be evaluated in a first time interval; counting the uploading success number of the target uploading request successfully uploaded by the content distribution network link to be evaluated in the first time interval and a second time interval, wherein the second time interval is after the first time interval and is adjacent to the first time interval; calculating the uploading success rate of the content distribution network link to be evaluated according to the uploading request number and the uploading success number; according to the method, the number of uploading requests in the first time interval and the number of uploading success in the first time interval and the second time interval are counted, uploading success records in the first time interval are eliminated, uploading success records in the second time interval can be omitted, the quality of the content distribution network link to be evaluated is considered globally from the perspective of uploading success rate, the content distribution network link with the highest uploading success rate is selected from the plurality of content distribution network links, uploading experience is optimized, and the actual experience effect of a user is improved.
The content delivery network link evaluation method is further described below with reference to fig. 2. Fig. 2 shows a processing flow chart of a content distribution network link evaluation method applied in a content distribution network link selection scenario according to an embodiment of the present application, which specifically includes the following steps:
step 202: and receiving an uploading instruction of the file to be uploaded.
In the embodiment provided by the application, an upload instruction of the file F to be uploaded is received, and meanwhile, the time T1 for receiving the upload instruction is recorded.
Step 204: and responding to the uploading instruction to obtain five CDN links.
In the embodiment provided by the present application, the CDN links obtained are CDN1, CDN2, CDN3, CDN4, and CDN5, respectively.
Step 206: and acquiring a log record.
In the embodiment provided by the application, a log record is obtained, and the log record records operation records in each CDN link, such as upload request time, upload end time, file size, and the like.
Step 208: and determining that the uploading request with the uploading request starting time within the first time interval is a target uploading request.
In the examples provided in this application, statistics are taken for 10 months, 1 day, 0: 00: 0, 00 to 10 months, 2 days: 00: 00, the first time interval is 10 months, 1 day, 0: 00: 0, 00 to 10 months, 2 days: 00: 00, determining that an upload request of an upload request start time in a first time interval in 5 CDN links is a target upload request.
Step 210: and counting the number of the uploading requests of the target uploading requests in each CDN link.
In the embodiment provided by the present application, the number of target upload requests in a CDN1 link is 100, the number of target upload requests in a CDN2 link is 120, the number of target upload requests in a CDN3 link is 98, the number of target upload requests in a CDN4 link is 140, and the number of target upload requests in a CDN5 link is 110.
Step 212: and determining that the target uploading request with the completion time within the first time interval and the second time interval is an uploading success request.
In the examples provided herein, the first time interval is 10 months, 1 day, 0: 00: 0, 00 to 10 months, 2 days: 00: 00, second time interval 10 months, 2 days 0: 00: 0 on 3 days 00 to 10 months: 00: 00. and determining the target uploading request with the completion time in the first time interval and the second time interval in each CDN link as an uploading success request.
Step 214: and counting the uploading success number of the uploading success request in each CDN link.
In the embodiment provided by the application, the number of successful uploads of successful upload requests in the CDN1 link obtained through statistics is 98, the number of successful uploads of successful upload requests in the CDN2 link is 117, the number of successful uploads of successful upload requests in the CDN3 link is 96, the number of successful uploads of successful upload requests in the CDN4 link is 135, and the number of successful uploads of successful upload requests in the CDN5 link is 108.
Step 216: and calculating the uploading success rate of each CDN link according to the uploading request number and the uploading success number.
In the embodiment provided by the present application, the success rate S1 of the CDN1 link is 98/100-0.98, the success rate S2 of the CDN2 link is 117/120-0.94, the success rate S3 of the CDN3 link is 96/98-0.97, the success rate S4 of the CDN4 link is 135/140-0.96, and the success rate S5 of the CDN5 link is 108/110-0.98.
Step 218: and determining the CDN link with the minimum load as a target CDN link.
In the embodiment provided by the application, the upload success rates of the CDN1 link and the CDN5 link are the highest and both are 0.98, and then the user load conditions of the CDN1 link and the CDN5 link are further determined, and if the load of the CDN1 link is smaller, it is determined that the CDN1 link is the target CDN link.
Step 220: and uploading the file to be uploaded through the target CDN link.
In the embodiment provided by the present application, the file F to be uploaded is uploaded through a CDN1 link.
Step 222: and correspondingly writing the starting time for receiving the uploading instruction and the finishing time for finishing uploading into a log record under the condition that the file to be uploaded is uploaded successfully.
In the embodiment provided by the application, when the file F to be uploaded is successfully uploaded, the uploading completed end time T2 is recorded, and the uploading command start time T1 (i.e. the uploading command receiving time) and the uploading completed end time T2 are correspondingly written into the log record for reference when the uploading success rate is counted again in the following process.
The content distribution network link evaluation method provided by the application obtains at least two content distribution network links; counting the uploading request number of the target uploading request of each content distribution network link in a first time interval; counting the uploading success number of each target uploading request successfully uploaded by each content distribution network link in the first time interval and a second time interval, wherein the second time interval is after the first time interval and is adjacent to the first time interval; calculating the uploading success rate of each content distribution network link according to the uploading request number and the uploading success number; the method is used for counting the number of uploading requests in the first time interval and the number of uploading successes in the first time interval and the second time interval, so that uploading successes in the first time interval are eliminated, uploading successes in the second time interval are not omitted, the quality of each content distribution network link is considered from the perspective of the uploading success rate, the content distribution network link with the highest uploading success rate is conveniently selected from the plurality of content distribution network links, uploading experience is optimized, and the actual experience effect of a user is improved.
Corresponding to the above method embodiment, the present application further provides an embodiment of a content distribution network link evaluation device, and fig. 3 shows a schematic structural diagram of a content distribution network link evaluation device provided in an embodiment of the present application. As shown in fig. 3, the apparatus includes:
an obtaining module 302 configured to obtain a content distribution network link to be evaluated;
a first statistics module 304, configured to count an upload request number of a target upload request of the content distribution network link to be evaluated in a first time interval;
a second counting module 306, configured to count the number of successful uploads of the target upload requests successfully uploaded by the content distribution network link to be evaluated in the first time interval and a second time interval, where the second time interval is after the first time interval and is adjacent to the first time interval;
a calculating module 308 configured to calculate an upload success rate of the content distribution network link to be evaluated according to the upload request number and the upload success number;
an evaluation module 310 configured to evaluate the content distribution network link to be evaluated according to the upload success rate.
Optionally, the first statistical module 304 is further configured to:
acquiring a log record;
determining an uploading request with an uploading request starting time in a first time interval as a target uploading request;
and counting the uploading request number of the target uploading request in the content distribution network link to be evaluated.
Optionally, the second statistical module 306 is further configured to:
determining that the target uploading requests with the completion time within the first time interval and the second time interval are uploading successful requests;
and counting the uploading success number of the uploading success request in the content distribution network link to be evaluated.
Optionally, the apparatus further comprises:
the receiving module is configured to receive an uploading instruction of a file to be uploaded;
a response module configured to obtain at least two content distribution network links in response to the upload instruction;
the determining module is configured to determine the content distribution network link with the highest uploading success rate as a target content distribution network link;
an upload module configured to upload the file to be uploaded through the target content distribution network link.
Optionally, the apparatus further comprises:
and the writing module is configured to correspondingly write the starting time of receiving the uploading instruction and the finishing time of finishing uploading into a log record under the condition that the file to be uploaded is uploaded successfully.
Optionally, the determining module is further configured to:
and under the condition that at least two content distribution network links with the highest uploading success rate are available, determining one content distribution network link as a target content distribution network link according to a preset screening rule.
Optionally, the determining module is further configured to:
optionally selecting one content distribution network link as a target content distribution network link; or
Determining the content distribution network link with the minimum load as a target content distribution network link; or
And determining the content distribution network link with the minimum cost as the target content distribution network link.
The content distribution network link evaluation device comprises an acquisition module, a judgment module and a processing module, wherein the acquisition module is configured to be a content distribution network link to be evaluated; the first counting module is configured to count the uploading request number of the target uploading request of the content distribution network link to be evaluated in a first time interval; a second counting module, configured to count an upload success number of a target upload request that is successfully uploaded by the content distribution network link to be evaluated in the first time interval and a second time interval, where the second time interval is after the first time interval and is adjacent to the first time interval; the calculation module is configured to calculate the uploading success rate of the content distribution network link to be evaluated according to the uploading request number and the uploading success number; the evaluation module is configured to evaluate the content distribution network link to be evaluated according to the upload success rate, and according to the device, the number of upload requests in the first time interval and the number of upload successes in the first time interval and the second time interval are counted, so that not only are upload success records in the first time interval removed, but also upload success records in the second time interval are not omitted, the quality of each content distribution network link is considered globally from the perspective of the upload success rate, the content distribution network link with the highest upload success rate is conveniently selected from the plurality of content distribution network links, upload experience is optimized, and the actual experience effect of a user is improved.
The above is an exemplary scheme of a content distribution network link evaluation apparatus according to this embodiment. It should be noted that the technical solution of the content distribution network link evaluation apparatus and the technical solution of the content distribution network link evaluation method belong to the same concept, and details that are not described in detail in the technical solution of the content distribution network link evaluation apparatus can be referred to the description of the technical solution of the content distribution network link evaluation method.
Fig. 4 shows a block diagram of a computing device 400 provided according to an embodiment of the present application. The components of the computing device 400 include, but are not limited to, a memory 410 and a processor 420. Processor 420 is coupled to memory 410 via bus 430 and database 450 is used to store data.
Computing device 400 also includes access device 440, access device 440 enabling computing device 400 to communicate via one or more networks 460. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. The access device 440 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the application, the above-described components of computing device 400 and other components not shown in FIG. 4 may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 4 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 400 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smartphone), wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 400 may also be a mobile or stationary server.
Wherein processor 420, when executing the instructions, performs the steps of the content distribution network link evaluation method.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the content distribution network link evaluation method described above belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the content distribution network link evaluation method described above.
An embodiment of the present application also provides a computer readable storage medium storing computer instructions that, when executed by a processor, implement the steps of the content distribution network link evaluation method as described above.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the content distribution network link evaluation method described above, and for details that are not described in detail in the technical solution of the storage medium, reference may be made to the description of the technical solution of the content distribution network link evaluation method described above.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (10)

1. A method for content delivery network link evaluation, comprising:
acquiring a content distribution network link to be evaluated;
counting the uploading request number of the target uploading request of the content distribution network link to be evaluated in a first time interval;
counting the uploading success number of the target uploading request successfully uploaded by the content distribution network link to be evaluated in the first time interval and a second time interval, wherein the second time interval is after the first time interval and is adjacent to the first time interval;
calculating the uploading success rate of the content distribution network link to be evaluated according to the uploading request number and the uploading success number;
and evaluating the content distribution network link to be evaluated according to the uploading success rate.
2. The method for evaluating a content distribution network link according to claim 1, wherein counting the number of upload requests of the target upload request of the content distribution network link to be evaluated in the first time interval comprises:
acquiring a log record;
determining an uploading request with an uploading request starting time in a first time interval as a target uploading request;
and counting the uploading request number of the target uploading request in the content distribution network link to be evaluated.
3. The method for evaluating a content delivery network link according to claim 2, wherein counting the upload success number of the target upload request for which the upload of the content delivery network link to be evaluated is successful in the first time interval and the second time interval includes:
determining that the target uploading requests with the completion time within the first time interval and the second time interval are uploading successful requests;
and counting the uploading success number of the uploading success request in the content distribution network link to be evaluated.
4. The content distribution network link evaluation method of any one of claims 1-3, wherein the method further comprises:
receiving an uploading instruction of a file to be uploaded;
acquiring at least two content distribution network links in response to the upload instruction;
determining a content distribution network link with the highest uploading success rate as a target content distribution network link;
and uploading the file to be uploaded through the target content distribution network link.
5. The content distribution network link evaluation method of claim 4, wherein the method further comprises:
and correspondingly writing the starting time for receiving the uploading instruction and the finishing time for finishing uploading into a log record under the condition that the file to be uploaded is uploaded successfully.
6. The content delivery network link evaluation method of claim 4, wherein determining the content delivery network link with the highest upload success rate as the target content delivery network link comprises:
and under the condition that at least two content distribution network links with the highest uploading success rate are available, determining one content distribution network link as a target content distribution network link according to a preset screening rule.
7. The method for evaluating links of a content delivery network according to claim 6, wherein determining a link of a content delivery network as a target link of the content delivery network according to a predetermined filtering rule comprises:
optionally selecting one content distribution network link as a target content distribution network link; or
Determining the content distribution network link with the minimum load as a target content distribution network link; or
And determining the content distribution network link with the minimum cost as the target content distribution network link.
8. A content distribution network link evaluation apparatus, comprising:
the acquisition module is configured to be a content distribution network link to be evaluated;
the first counting module is configured to count the uploading request number of the target uploading request of the content distribution network link to be evaluated in a first time interval;
a second counting module, configured to count an upload success number of a target upload request that is successfully uploaded by the content distribution network link to be evaluated in the first time interval and a second time interval, where the second time interval is after the first time interval and is adjacent to the first time interval;
the calculation module is configured to calculate the uploading success rate of the content distribution network link to be evaluated according to the uploading request number and the uploading success number;
and the evaluation module is configured to evaluate the content distribution network link to be evaluated according to the uploading success rate.
9. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-7 when executing the instructions.
10. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 7.
CN202011448582.1A 2020-12-11 2020-12-11 Content delivery network link evaluation method and device Active CN112583667B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011448582.1A CN112583667B (en) 2020-12-11 2020-12-11 Content delivery network link evaluation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011448582.1A CN112583667B (en) 2020-12-11 2020-12-11 Content delivery network link evaluation method and device

Publications (2)

Publication Number Publication Date
CN112583667A true CN112583667A (en) 2021-03-30
CN112583667B CN112583667B (en) 2022-02-11

Family

ID=75131249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011448582.1A Active CN112583667B (en) 2020-12-11 2020-12-11 Content delivery network link evaluation method and device

Country Status (1)

Country Link
CN (1) CN112583667B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115865929A (en) * 2023-02-15 2023-03-28 珠海大横琴泛旅游发展有限公司 Equipment safety management method, device and equipment based on Internet of things

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270828A (en) * 2016-12-30 2018-07-10 北京国双科技有限公司 A kind of content distribution network system recommends method and device
CN109005056A (en) * 2018-07-16 2018-12-14 网宿科技股份有限公司 Storage capacity evaluation method and apparatus based on CDN application
CN110071977A (en) * 2019-04-25 2019-07-30 北京风行极客科技有限公司 A kind of data transmission method and device
CN111404713A (en) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 Network resource adjusting method, device and storage medium
CN111770186A (en) * 2020-07-03 2020-10-13 珠海金山网络游戏科技有限公司 Multi-content distribution network load balancing method and device
CN111897703A (en) * 2019-05-05 2020-11-06 北京神州泰岳软件股份有限公司 Website performance evaluation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270828A (en) * 2016-12-30 2018-07-10 北京国双科技有限公司 A kind of content distribution network system recommends method and device
CN109005056A (en) * 2018-07-16 2018-12-14 网宿科技股份有限公司 Storage capacity evaluation method and apparatus based on CDN application
CN111404713A (en) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 Network resource adjusting method, device and storage medium
CN110071977A (en) * 2019-04-25 2019-07-30 北京风行极客科技有限公司 A kind of data transmission method and device
CN111897703A (en) * 2019-05-05 2020-11-06 北京神州泰岳软件股份有限公司 Website performance evaluation method and device
CN111770186A (en) * 2020-07-03 2020-10-13 珠海金山网络游戏科技有限公司 Multi-content distribution network load balancing method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
胡文: "边缘网络多媒体内容分发策略研究", 《中国优秀博硕士学位论文全文数据库(博士) 信息科技辑》 *
韩美芳: "云计算下敏感数据安全传输可靠性评估仿真", 《计算机仿真》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115865929A (en) * 2023-02-15 2023-03-28 珠海大横琴泛旅游发展有限公司 Equipment safety management method, device and equipment based on Internet of things
CN115865929B (en) * 2023-02-15 2023-04-25 珠海大横琴泛旅游发展有限公司 Equipment security management method, device and equipment based on Internet of things

Also Published As

Publication number Publication date
CN112583667B (en) 2022-02-11

Similar Documents

Publication Publication Date Title
CN109495318B (en) Mobile communication network flow prediction method, device and readable storage medium
US8250040B2 (en) Storage or removal actions based on priority
WO2020154154A1 (en) Blockchain-based service processing system and method, computing device, and storage medium
CN104704773A (en) Consistency-based service-level agreements in cloud storage environments
US20200090269A1 (en) Data collection method and apparatus for risk evaluation, and electronic device
JP2014006898A (en) Systems and methods for behavioral pattern mining
CN110321273A (en) A kind of business statistical method and device
CN106790487A (en) The display methods of help information, apparatus and system
CN103067479A (en) Network disk synchronized method and system based on file coldness and hotness
CN111371672A (en) Message pushing method and device
CN112583667B (en) Content delivery network link evaluation method and device
CN102354385A (en) Mobile terminal, server and security information pushing method
US11538048B1 (en) Predictively identifying activity subscribers
CN110417869A (en) A kind of activity method for pushing, device and computer equipment
US20140280216A1 (en) Automated ranking of contributors to a knowledge base
CN113382071A (en) Link creation method and device based on hybrid cloud architecture
US9525687B2 (en) Template for customer attributes
CN112615757B (en) Content delivery network link evaluation method and device
US20180107719A1 (en) Data access using aggregation
US20120253886A1 (en) Systems and Methods for Client Development
CN113408817B (en) Traffic distribution method, device, equipment and storage medium
CA2977302C (en) Cloud collaboration and management application
WO2019019737A1 (en) Product data processing system and method, server and storage medium
CN112308639B (en) Aging prediction method and device for target event
CN106998276A (en) Data processing, storage, querying method and data handling system

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