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

Content delivery network link evaluation method and device Download PDF

Info

Publication number
CN112615757A
CN112615757A CN202011440175.6A CN202011440175A CN112615757A CN 112615757 A CN112615757 A CN 112615757A CN 202011440175 A CN202011440175 A CN 202011440175A CN 112615757 A CN112615757 A CN 112615757A
Authority
CN
China
Prior art keywords
uploading
distribution network
content distribution
network link
speed
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
CN202011440175.6A
Other languages
Chinese (zh)
Other versions
CN112615757B (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 CN202011440175.6A priority Critical patent/CN112615757B/en
Publication of CN112615757A publication Critical patent/CN112615757A/en
Application granted granted Critical
Publication of CN112615757B publication Critical patent/CN112615757B/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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • 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
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Information Transfer Between Computers (AREA)

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; acquiring a preset number of uploading parameters according to a preset uploading parameter strategy; calculating the uploading speed of the content distribution network link to be evaluated under each uploading parameter; the method provided by the application can more accurately consider the quality of the content distribution network link from the perspective of uploading speed in the overall situation, thereby providing evaluation basis for subsequently selecting a content distribution network with higher quality.

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 with multiple CDN links to ensure the quality of the CDN service, in prior art CDN systems, the upload speed of a CDN link is usually an important index for evaluating a CDN link, and the upload speed of an existing CDN link is usually calculated by counting the transmission speed of each link on a network transmission component (e.g., a Nginx server), although the statistical process is simple, the uploading speed calculated in this way is greatly influenced by factors such as the client and the network environment, the quality of the CDN link cannot be measured in the global scope, the CDN link cannot be accurately evaluated, and then the CDN link cannot be fully utilized subsequently, 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 in the prior art, the evaluation of the CDN link through the uploading speed is not accurate, and an accurate evaluation index of the uploading speed angle cannot be provided for evaluating the CDN link.
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;
acquiring a preset number of uploading parameters according to a preset uploading parameter strategy;
calculating the uploading speed of the content distribution network link to be evaluated under each uploading parameter;
and determining a target uploading speed in each uploading speed, and evaluating the content distribution network link to be evaluated according to the target uploading speed.
According to a second aspect of embodiments of the present application, there is provided a content distribution network link evaluation apparatus including:
the first acquisition module is configured to acquire a content distribution network link to be evaluated;
the second acquisition module is configured to acquire a preset number of uploading parameters according to a preset uploading parameter strategy;
the computing module is configured to compute the uploading speed of the content distribution network link to be evaluated under each uploading parameter;
and the evaluation module is configured to determine a target uploading speed in each uploading speed and evaluate the content distribution network link to be evaluated according to the target uploading speed.
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; acquiring a preset number of uploading parameters according to a preset uploading parameter strategy; calculating the uploading speed of the content distribution network link to be evaluated under each uploading parameter; the method comprises the steps of determining a target uploading speed in each uploading speed, and evaluating the content distribution network link to be evaluated according to the target uploading speed.
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 schematic diagram illustrating an uploading result of a file to be processed according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of data transmitted by a content distribution network according to an embodiment of the present application;
fig. 4 is a process flow diagram of a content distribution network link evaluation method according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of a content distribution network link evaluation apparatus according to an embodiment of the present application;
fig. 6 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 speed: in the process of completing the uploading task of a large file, differences of uploading experiences can be generated due to factors such as network and client behaviors, and the uploading speed is an important index for measuring the uploading experiences.
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 functions of caching, mirroring and overall load balancing, mainly caches static data in the website, after the website Content is released by the 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, because factors such as Network and client behaviors can generate uploading experience difference, the uploading speed 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 implementation manner provided by the present application, A CDN link CDN-A to be evaluated is taken as an example to obtain the CDN link CDN-A to be evaluated.
Step 104: and acquiring a preset number of uploading parameters according to a preset uploading parameter strategy.
The upload parameter specifically refers to a parameter for processing the file to be uploaded in the process of uploading the file to be uploaded, such as how large a file packet the file to be processed is divided into, transmission by using several threads, retransmission times when transmission fails, and the like, for example, the upload parameter 1 is that the size of the data packet is 10k, the number of threads is 5, and the retransmission times is 5; the upload parameter 2 is the packet size of 20k, the thread number of 6, the retransmission number of 10, and so on.
Different uploading parameters can be obtained according to different uploading strategies, and specific values of the uploading parameters can be determined according to the uploading parameter strategies.
In a specific embodiment provided by the present application, for example, the number of the upload parameters is two, and the preset upload parameters P1 (packet size 10k, 5 threads, and retransmission time 5) and P2 (packet size 20k, 10 threads, and retransmission time 10) are obtained according to the preset upload parameter policy.
Step 106: and calculating the uploading speed of the content distribution network link to be evaluated under each uploading parameter.
In practical application, different CDN links have different uploading speeds under the same uploading parameter, and the same CDN link also has different uploading speeds under different uploading parameters, and when calculating a CDN link, the uploading speed of the CDN link under each uploading parameter needs to be calculated.
In A specific embodiment provided by the present application, along the above example, the CDN link to be evaluated is CDN-A, the two upload parameters are P1 and P2, respectively, and an upload speed sA1 of the CDN-A at the P1 parameter and an upload speed sA2 of the CDN-A at the P2 parameter are calculated.
Optionally, calculating an upload speed of the content distribution network link to be evaluated under each upload parameter includes:
calculating the average uploading speed of each uploading parameter of the content distribution network link to be evaluated;
and taking the average uploading speed as the uploading speed of the content distribution network link to be evaluated under the current uploading parameters.
Specifically, calculating the average uploading speed of each uploading parameter of the content distribution network link to be evaluated includes:
counting the uploading speed of a plurality of files to be processed on the content distribution network link to be evaluated under the condition of the current uploading parameters;
and determining the average uploading speed of the content distribution network link to be evaluated according to the uploading speed of a plurality of files to be processed on the content distribution network link to be evaluated.
In practical application, due to network fluctuation, terminal device difference and the like, the uploading speed of a single uploaded file is not accurate enough, so that the uploading speeds of a plurality of files can be calculated, an average uploading speed is determined, the average uploading speed is used as the uploading speed of the CDN link to be evaluated under the current uploading parameter, if 10 files are uploaded under a certain uploading parameter for the CDN link to be evaluated, the uploading speed of each file is S1 and S2 … … S10 respectively, the average uploading speed S of the CDN link to be evaluated under the current uploading parameter is (S1+ S2+ … … + S10)/10, and the average uploading speed S is the uploading speed of the CDN link to be evaluated under the current uploading parameter. The uploading speed of the CDN link to be evaluated under the current uploading parameter is identified by using the average uploading speed, so that the value of the uploading speed is closer to the real value.
In practical application, the current uploading parameters comprise file block size and thread number;
counting the uploading speed of a plurality of files to be processed on the content distribution network link to be evaluated under the condition of the current uploading parameters, wherein the method comprises the following steps S1062 to S1068:
s1062, receiving an uploading request of the file to be processed, wherein the uploading request carries the sending time of the uploading request and the volume of the file to be processed.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating an uploading result of a to-be-processed file according to an embodiment of the present application. Explaining by taking the CDN link to be evaluated under a certain uploading parameter as an example, a client uploads a file to be processed to a server, sends an uploading request to the server, the uploading request carries sending time T1 of the uploading request and the volume V of the file to be processed, the server determines the CDN link and the uploading parameter after receiving the uploading request, the uploading parameter comprises file block size and thread number, the CDN link and the uploading parameter are returned to the client, and the client cuts the file to be processed into a plurality of data packets according to the uploading parameter and transmits the data packets to the server through the CDN link.
S1064, receiving a data packet set transmitted through a thread corresponding to the thread number, wherein the data packet set is obtained by dividing the file to be uploaded according to the file block size.
And receiving a data packet set transmitted by the client through the threads corresponding to the number of the threads in the uploading parameters, if the number of the threads in the uploading parameters is 5, transmitting the data packet set through 5 threads, and if the number of the threads in the uploading parameters is 10, transmitting the data packet set through 10 threads, wherein the threads are in a parallel transmission state and do not influence each other.
The data packets in the data packet set are determined according to the file block size in the uploading parameter, if the file to be processed is 10000k, if the file block size is 10k, the data packet set totally has 1000 data packets; if the file block size is 20k, there are 500 packets in the packet set.
S1066, merging the data packets in the data packet set after the data packet set is received, and obtaining the merging completion time of the data packet set.
After the data packets in the data packet set are received, merging the received data packets in the server book, restoring the file to be processed, and recording the time T2 for completing the data packet in the data packet set.
S1068, determining the uploading speed of the content distribution network link to be evaluated under the current uploading parameters according to the merging completion time, the sending time of the uploading request and the volume of the file to be processed.
According to the merging completion time T2, the sending time T1 of the uploading request and the volume V of the file to be processed, the uploading speed S of the CDN link to be evaluated under the current uploading parameters is determined to be V/(T2-T1).
Optionally, the method further includes:
writing the sending time of the uploading request and the volume of the file to be processed into a request starting record corresponding to the file to be processed in a log record;
and writing the merging completion time into a request ending record corresponding to the file to be processed in a log record.
Correspondingly, in practical application, when an upload request is received, the sending time T1 of the upload request and the volume V of the file to be processed are written into the request start record of the file to be processed in the log record; and writing the merging completion time T2 into the request ending record of the file to be processed in the log record, and writing the uploading record of each file into the log, so that the CDN link can be analyzed according to the log record in the follow-up process.
Step 108: and determining a target uploading speed in each uploading speed, and evaluating the content distribution network link to be evaluated according to the target uploading speed.
In practical application, after the uploading speeds of the CDN links to be evaluated under different uploading parameters are calculated, the quality of the CDN link with the fast uploading speed is generally better, that is, the fastest uploading speed is selected as the target uploading speed, the uploading parameter corresponding to the target uploading speed is used as the target uploading parameter, and the evaluation index of the CDN link to be evaluated is determined according to the target uploading speed, and when the CDN link to be evaluated is selected for uploading, the file can be uploaded according to the CDN link to be evaluated and the target uploading parameter.
In the specific implementation provided by the application, along with the above example, the upload speed of the CDN-A to be evaluated in the P1 parameter is sA1, and the upload speed of the CDN-A in the P2 parameter is sA2, where sA2> sA1, it is determined that sA2 is the fastest upload speed corresponding to the CDN-A, the upload parameter P2 is A target upload parameter, and the upload speed sA2 is used as 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 speed as a target content distribution network link;
and uploading the file to be uploaded according to the target content distribution network link.
A website content provider usually selects a plurality of CDN links, selects an optimal service to provide in the plurality of CDN links in practical application to ensure the quality of CDN services, uses an upload speed as an important index for evaluating one CDN link, determines the plurality of CDN links in response to an upload instruction when there is a new upload instruction, determines an upload speed corresponding to each CDN link according to a CDN link evaluation method provided by the application, determines a CDN link with the highest upload speed as a target CDN link, and uploads a file to be 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, responding to an uploading instruction of the file M to be uploaded, obtaining three CDN links, which are CDN-A, CDN-B, and CDN-C, where an uploading speed corresponding to CDN-A is sA, an uploading speed corresponding to CDN-B is SB, and an uploading speed corresponding to CDN-C is SC, where the fastest uploading speed is SC, determining that the CDN-C link is A target CDN link, that is, selecting the CDN-C link to upload the file M to be uploaded.
Specifically, uploading the file to be uploaded according to the target content distribution network link includes:
acquiring a target uploading parameter corresponding to the target content distribution network link under the condition of the fastest uploading speed;
and uploading the file to be uploaded according to the target content distribution network link and the target uploading parameter.
In practical application, after the target CDN link is determined, the target upload parameter corresponding to the target CDN link at the time when the upload speed is the fastest may be obtained, that is, the upload speed of the target CDN link is the fastest under the condition of the target upload parameter, and the uploaded file is uploaded according to the target CDN link and the target upload parameter.
In practical applications, a situation that the uploading speeds of at least two CDN links are the same may occur, and correspondingly, determining the content delivery network link with the highest uploading speed as the target content delivery network link includes:
and under the condition that at least two content distribution network links with the highest uploading speed 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, if the upload speed SA is the same as the upload speed SC, the user load conditions of the CDN-A and the CDN-C may be monitored, and if it is detected that the load of the CDN-A is low and the number of users is small, the CDN-A link is determined to be the target CDN link.
The content distribution network link evaluation method provided by the application acquires a content distribution network link to be evaluated; acquiring a preset number of uploading parameters according to a preset uploading parameter strategy; calculating the uploading speed of the content distribution network link to be evaluated under each uploading parameter; according to the method, the quality of the content distribution network link can be more accurately evaluated in a global angle through the uploading speed, so that an evaluation basis is provided for the subsequent selection of a content distribution network with higher quality, the content distribution network link with the highest uploading speed can be conveniently selected from a plurality of content distribution network links, the uploading experience is optimized, and the actual experience effect of a user is improved.
The content distribution network link evaluation method is further described below in conjunction with fig. 3 and 4. Fig. 3 shows a schematic structural diagram of data transmission of a content distribution network according to an embodiment of the present application, as shown in fig. 3:
1. the method comprises the steps that a client sends an uploading request to a server, wherein the uploading request carries sending time of the uploading request and the volume of a file to be processed.
2. And the scheduling center of the server determines the target CDN and the target uploading parameters corresponding to the target CDN, and sends the target CDN and the target uploading parameters to the client.
3. And the client divides the file to be uploaded according to the target CDN and the target uploading parameters and uploads the divided file to the storage center of the server.
4. The storage center of the server generates a log and records the log in the log center.
5. And the scheduling center acquires log records from the log center, analyzes the uploading speed of each CDN link, and determines a target CDN link and a target uploading parameter corresponding to the target CDN link.
Fig. 4 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 402: and receiving an uploading instruction of the file to be uploaded.
In the embodiment provided by the application, an uploading instruction of a file F to be uploaded is received.
Step 404: and responding to the uploading instruction to obtain three CDN links.
In the embodiment provided by the present application, the CDN links obtained are CDN1, CDN2, and CDN3, respectively.
Step 406: and acquiring a preset number of uploading parameters according to a preset uploading parameter strategy.
In the embodiment provided by the present application, a preset number of upload parameters P1 and P2 are obtained according to a preset upload parameter policy, where the upload parameter P1 is (file chunk size 10k, 5 threads, 5 retries), and the upload parameter P2 is (file chunk size 20k, 10 threads, 10 retries).
Step 408: and counting the uploading speed of a plurality of files to be processed on the current CDN link under the condition of the current uploading parameters.
In the embodiment provided by the present application, when statistics is given to a plurality of files to be processed for uploading parameter P1, the uploading speed of CDN1 is S111、S112、……S11n(ii) a Counting the uploading speed of the CDN1 as S under the condition that a plurality of files to be processed are uploaded according to the uploading parameter P2121、S122、……S12n(ii) a Counting the uploading speed of the CDN2 as S under the condition that a plurality of files to be processed are uploaded according to the uploading parameter P1211、S212、……S21n(ii) a Counting the uploading speed of the CDN2 as S under the condition that a plurality of files to be processed are uploaded according to the uploading parameter P2221、S222、……S22n(ii) a Counting the uploading speed of the CDN3 as S under the condition that a plurality of files to be processed are uploaded according to the uploading parameter P1311、S312、……S31n(ii) a Counting the uploading speed of the CDN3 as S under the condition that a plurality of files to be processed are uploaded according to the uploading parameter P2321、S322、……S32n
Step 410: and determining the average uploading speed of the current CDN link according to the uploading speed of a plurality of files to be processed on the current CDN link.
In the examples provided in this application, according to S111、S112、……S11nDetermining average upload speed S with upload parameter P1 in CDN1 link11(ii) a According to S121、S122、……S12nDetermining average upload speed S with upload parameter P2 in CDN1 link12(ii) a According to S211、S212、……S21nDetermining average upload speed S with upload parameter P1 in CDN2 link21(ii) a According to S221、S222、……S22nDetermining average upload speed S with upload parameter P2 in CDN2 link22(ii) a According to S311、S312、……S31nDetermining average upload speed S with upload parameter P1 in CDN3 link31(ii) a According to S321、S322、……S32nDetermining average upload speed S with upload parameter P2 in CDN3 link32
Step 412: and determining the CDN link with the highest uploading speed as a target CDN link.
In embodiments provided herein, an average upload speed S is determined22And the fastest CDN2 link is the target CDN link.
Step 414: and acquiring a target uploading parameter corresponding to the target CDN link.
In the embodiment provided by the present application, a target upload parameter P2 corresponding to the CDN2 link is obtained.
Step 416: and uploading the file to be uploaded according to the target CDN link and the target uploading parameter.
In the embodiment provided by the present application, the file F to be uploaded is uploaded according to the CDN2 link and the target upload parameter P2.
The content distribution network link evaluation method provided by the application acquires a content distribution network link to be evaluated; acquiring a preset number of uploading parameters according to a preset uploading parameter strategy; calculating the uploading speed of the content distribution network link to be evaluated under each uploading parameter; according to the method, the quality of the content distribution network link can be more accurately evaluated in a global angle through the uploading speed, so that an evaluation basis is provided for the subsequent selection of a content distribution network with higher quality, the content distribution network link with the highest uploading speed can be conveniently selected from a plurality of content distribution network links, the 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. 5 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. 5, the apparatus includes:
a first obtaining module 502 configured to obtain a content distribution network link to be evaluated;
a second obtaining module 504, configured to obtain a preset number of upload parameters according to a preset upload parameter policy;
a calculating module 506, configured to calculate an uploading speed of the content distribution network link to be evaluated under each uploading parameter;
an evaluation module 508 configured to determine a target upload speed in each of the upload speeds, and evaluate the content distribution network link to be evaluated according to the target upload speed.
Optionally, the calculating module 506 is further configured to:
calculating the average uploading speed of each uploading parameter of the content distribution network link to be evaluated;
and taking the average uploading speed as the uploading speed of the content distribution network link to be evaluated under the current uploading parameters.
Optionally, the calculating module 506 is further configured to:
counting the uploading speed of a plurality of files to be processed on the content distribution network link to be evaluated under the condition of the current uploading parameters;
and determining the average uploading speed of the content distribution network link to be evaluated according to the uploading speed of a plurality of files to be processed on the content distribution network link to be evaluated.
Optionally, the current uploading parameter includes a file block size and a thread number;
the calculation module 506, further configured to:
receiving an uploading request of a file to be processed, wherein the uploading request carries the sending time of the uploading request and the volume of the file to be processed;
receiving a data packet set transmitted by a thread corresponding to the thread number, wherein the data packet set is obtained by dividing the file to be uploaded according to the file block size;
merging the data packets in the data packet set after the data packet set is received, and acquiring merging completion time of the data packet set;
and determining the uploading speed of the content distribution network link to be evaluated under the current uploading parameters according to the merging completion time, the sending time of the uploading request and the volume of the file to be processed.
Optionally, the apparatus further comprises:
the writing module is configured to write the sending time of the uploading request and the volume of the file to be processed into a request starting record corresponding to the file to be processed in a log record; and writing the merging completion time into a request ending record corresponding to the file to be processed in a log record.
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 a content distribution network link with the highest uploading speed as a target content distribution network link;
and the uploading module is configured to upload the file to be uploaded according to the target content distribution network link.
Optionally, the uploading module is further configured to:
acquiring a target uploading parameter corresponding to the target content distribution network link under the condition of the fastest uploading speed;
and uploading the file to be uploaded according to the target content distribution network link and the target uploading parameter.
Optionally, the determining module is further configured to:
and under the condition that at least two content distribution network links with the highest uploading speed 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 a first obtaining module, a second obtaining module and a third obtaining module, wherein the first obtaining module is configured to obtain a content distribution network link to be evaluated; the second acquisition module is configured to acquire a preset number of uploading parameters according to a preset uploading parameter strategy; the computing module is configured to compute the uploading speed of the content distribution network link to be evaluated under each uploading parameter; the evaluation module is configured to determine a target uploading speed in each uploading speed and evaluate the content distribution network link to be evaluated according to the target uploading speed.
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. 6 illustrates a block diagram of a computing device 600 provided according to an embodiment of the present application. The components of the computing device 600 include, but are not limited to, a memory 610 and a processor 620. The processor 620 is coupled to the memory 610 via a bus 630 and a database 650 is used to store data.
Computing device 600 also includes access device 640, access device 640 enabling computing device 600 to communicate via one or more networks 660. 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. Access device 640 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 present application, the above-described components of computing device 600, as well as other components not shown in FIG. 6, 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. 6 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 600 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 600 may also be a mobile or stationary server.
Wherein processor 620, 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 (12)

1. A method for content delivery network link evaluation, comprising:
acquiring a content distribution network link to be evaluated;
acquiring a preset number of uploading parameters according to a preset uploading parameter strategy;
calculating the uploading speed of the content distribution network link to be evaluated under each uploading parameter;
and determining a target uploading speed in each uploading speed, and evaluating the content distribution network link to be evaluated according to the target uploading speed.
2. The method for evaluating a content distribution network link according to claim 1, wherein calculating the upload speed of the content distribution network link to be evaluated under each upload parameter comprises:
calculating the average uploading speed of each uploading parameter of the content distribution network link to be evaluated;
and taking the average uploading speed as the uploading speed of the content distribution network link to be evaluated under the current uploading parameters.
3. The method for evaluating links of a content delivery network according to claim 2, wherein calculating an average upload speed of the links of the content delivery network to be evaluated at each upload parameter comprises:
counting the uploading speed of a plurality of files to be processed on the content distribution network link to be evaluated under the condition of the current uploading parameters;
and determining the average uploading speed of the content distribution network link to be evaluated according to the uploading speed of a plurality of files to be processed on the content distribution network link to be evaluated.
4. The content distribution network link evaluation method of claim 3, wherein the current upload parameters include file chunk size, thread number;
counting the uploading speed of a plurality of files to be processed on the content distribution network link to be evaluated under the condition of the current uploading parameters, wherein the counting comprises the following steps:
receiving an uploading request of a file to be processed, wherein the uploading request carries the sending time of the uploading request and the volume of the file to be processed;
receiving a data packet set transmitted by a thread corresponding to the thread number, wherein the data packet set is obtained by dividing the file to be uploaded according to the file block size;
merging the data packets in the data packet set after the data packet set is received, and acquiring merging completion time of the data packet set;
and determining the uploading speed of the content distribution network link to be evaluated under the current uploading parameters according to the merging completion time, the sending time of the uploading request and the volume of the file to be processed.
5. The content distribution network link evaluation method of claim 4, wherein the method further comprises:
writing the sending time of the uploading request and the volume of the file to be processed into a request starting record corresponding to the file to be processed in a log record;
and writing the merging completion time into a request ending record corresponding to the file to be processed in a log record.
6. The content distribution network link evaluation method of any one of claims 1-5, 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 speed as a target content distribution network link;
and uploading the file to be uploaded according to the target content distribution network link.
7. The content distribution network link evaluation method of claim 6, wherein uploading the file to be uploaded according to the target content distribution network link comprises:
acquiring a target uploading parameter corresponding to the target content distribution network link under the condition of the fastest uploading speed;
and uploading the file to be uploaded according to the target content distribution network link and the target uploading parameter.
8. The content distribution network link evaluation method of claim 6, wherein determining the content distribution network link with the fastest upload speed as the target content distribution network link comprises:
and under the condition that at least two content distribution network links with the highest uploading speed are available, determining one content distribution network link as a target content distribution network link according to a preset screening rule.
9. The method for evaluating links of a content delivery network according to claim 8, 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.
10. A content distribution network link evaluation apparatus, comprising:
the first acquisition module is configured to acquire a content distribution network link to be evaluated;
the second acquisition module is configured to acquire a preset number of uploading parameters according to a preset uploading parameter strategy;
the computing module is configured to compute the uploading speed of the content distribution network link to be evaluated under each uploading parameter;
and the evaluation module is configured to determine a target uploading speed in each uploading speed and evaluate the content distribution network link to be evaluated according to the target uploading speed.
11. 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-9 when executing the instructions.
12. 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 9.
CN202011440175.6A 2020-12-11 2020-12-11 Content delivery network link evaluation method and device Active CN112615757B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011440175.6A CN112615757B (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
CN202011440175.6A CN112615757B (en) 2020-12-11 2020-12-11 Content delivery network link evaluation method and device

Publications (2)

Publication Number Publication Date
CN112615757A true CN112615757A (en) 2021-04-06
CN112615757B CN112615757B (en) 2022-04-26

Family

ID=75232777

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN112615757B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189467A (en) * 2021-12-08 2022-03-15 北京达佳互联信息技术有限公司 Content delivery network service evaluation method and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6769030B1 (en) * 2000-02-07 2004-07-27 International Business Machines Corporation Method and apparatus to evaluate and measure the optimal network packet size for file transfer in high-speed networks
US20110305369A1 (en) * 2010-08-26 2011-12-15 Michael Bentley Portable wireless mobile device motion capture and analysis system and method
US20140086073A1 (en) * 2012-09-26 2014-03-27 Calix, Inc. Determining quality of experience with a network device
CN103986621A (en) * 2014-05-23 2014-08-13 中国联合网络通信集团有限公司 Method and system for evaluating performance of mobile Internet
CN104580305A (en) * 2013-10-18 2015-04-29 腾讯科技(深圳)有限公司 Network uploading scheduling method and system, network bandwidth detection method, client and servers
US20150302057A1 (en) * 2014-03-21 2015-10-22 Brendan Kealey Conditioned Transmission of Query Responses and Connection Assessments
CN109617957A (en) * 2018-12-05 2019-04-12 量子云未来(北京)信息科技有限公司 A kind of file uploading method based on CDN network, device, server
CN109982160A (en) * 2019-04-09 2019-07-05 北京奇艺世纪科技有限公司 A kind of method, apparatus, client device and server that video uploads
CN110213623A (en) * 2019-06-03 2019-09-06 上海哔哩哔哩科技有限公司 Video method for uploading, video upload device and computer readable storage medium
CN111131450A (en) * 2019-12-23 2020-05-08 北京奇艺世纪科技有限公司 File uploading method, file recombining method and file recombining device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6769030B1 (en) * 2000-02-07 2004-07-27 International Business Machines Corporation Method and apparatus to evaluate and measure the optimal network packet size for file transfer in high-speed networks
US20110305369A1 (en) * 2010-08-26 2011-12-15 Michael Bentley Portable wireless mobile device motion capture and analysis system and method
US20140086073A1 (en) * 2012-09-26 2014-03-27 Calix, Inc. Determining quality of experience with a network device
CN104580305A (en) * 2013-10-18 2015-04-29 腾讯科技(深圳)有限公司 Network uploading scheduling method and system, network bandwidth detection method, client and servers
US20150302057A1 (en) * 2014-03-21 2015-10-22 Brendan Kealey Conditioned Transmission of Query Responses and Connection Assessments
CN103986621A (en) * 2014-05-23 2014-08-13 中国联合网络通信集团有限公司 Method and system for evaluating performance of mobile Internet
CN109617957A (en) * 2018-12-05 2019-04-12 量子云未来(北京)信息科技有限公司 A kind of file uploading method based on CDN network, device, server
CN109982160A (en) * 2019-04-09 2019-07-05 北京奇艺世纪科技有限公司 A kind of method, apparatus, client device and server that video uploads
CN110213623A (en) * 2019-06-03 2019-09-06 上海哔哩哔哩科技有限公司 Video method for uploading, video upload device and computer readable storage medium
CN111131450A (en) * 2019-12-23 2020-05-08 北京奇艺世纪科技有限公司 File uploading method, file recombining method and file recombining device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189467A (en) * 2021-12-08 2022-03-15 北京达佳互联信息技术有限公司 Content delivery network service evaluation method and device
CN114189467B (en) * 2021-12-08 2023-10-03 北京达佳互联信息技术有限公司 Content distribution network service evaluation method and device

Also Published As

Publication number Publication date
CN112615757B (en) 2022-04-26

Similar Documents

Publication Publication Date Title
CN105354132B (en) The dispensing processing method of Mobile solution, tracking launch the method and system of channel
US11743148B2 (en) Method for measuring end-to-end internet application performance
US9929930B2 (en) Reducing an amount of captured network traffic data to analyze
CN113422728A (en) Method and device for selecting content distribution network link
FR2923972A1 (en) METHOD AND SYSTEM FOR MANAGING COMMUNICATIONS
CN108132868A (en) A kind of data monitoring method, device, computing device and storage medium
CN112615757B (en) Content delivery network link evaluation method and device
EP2882135B1 (en) Network server system, client device, computer program product and computer-implemented method
WO2015081988A1 (en) Performance metric of a system conveying web content
US20230004776A1 (en) Moderator for identifying deficient nodes in federated learning
CN112583667B (en) Content delivery network link evaluation method and device
WO2023221947A1 (en) Data transmission method for cloud application, and computing device and computer storage medium
CA2977302A1 (en) Cloud collaboration and management application
Orive et al. Passive network state monitoring for dynamic resource management in industry 4.0 fog architectures
CN110891077A (en) CDN node detection method and device
CN113626402A (en) Log data acquisition method and device, electronic equipment and storage medium
CN113391985A (en) Resource allocation method and device
CN113204573B (en) Data read-write access system and method
US9571401B2 (en) Technique for projecting network load in a communication network
US11863615B2 (en) Content management systems providing zero recovery time objective
CN113382078B (en) Data processing method and device
CA2865528C (en) Method, apparatus, and system for generating a p2p network scheme
CN116545942A (en) Data transmission method, device, electronic equipment and storage medium
CN117319392A (en) Edge cloud switching method, device, computer equipment and storage medium
CN115391308A (en) Data storage method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant