CN113422728A - Method and device for selecting content distribution network link - Google Patents

Method and device for selecting content distribution network link Download PDF

Info

Publication number
CN113422728A
CN113422728A CN202110690939.5A CN202110690939A CN113422728A CN 113422728 A CN113422728 A CN 113422728A CN 202110690939 A CN202110690939 A CN 202110690939A CN 113422728 A CN113422728 A CN 113422728A
Authority
CN
China
Prior art keywords
distribution network
content distribution
network link
link
transmitted
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.)
Pending
Application number
CN202110690939.5A
Other languages
Chinese (zh)
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 CN202110690939.5A priority Critical patent/CN113422728A/en
Publication of CN113422728A publication Critical patent/CN113422728A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/121Shortest path evaluation by minimising delays

Landscapes

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

Abstract

The application provides a method and a device for selecting a content delivery network link, wherein the method for selecting the content delivery network link is applied to a client and comprises the following steps: acquiring at least two content distribution network links to be selected; determining service data to be transmitted, and transmitting the service data to be transmitted to a server through each content distribution network link to be selected respectively, wherein the size of the service data to be transmitted is larger than a preset threshold value; receiving response information corresponding to each content distribution network link to be selected returned by the server, and determining the round-trip delay of each content distribution network link to be selected; and selecting a target content distribution network link from the at least two content distribution network links to be selected based on the round trip delay of each content distribution network link to be selected.

Description

Method and device for selecting content distribution network link
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method for selecting a content delivery network link. The application also relates to a selection device of the content distribution network link, 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, and in actual application, selects an optimal link among the multiple CDN links.
Disclosure of Invention
In view of this, the present application provides a method for selecting a content delivery network link. The application also relates to a selection device of the content delivery network link, a computing device and a computer readable storage medium, which are used for solving the problem that the optimal CDN link cannot be accurately detected due to numerous CDN links and complex network environment in the prior art.
According to a first aspect of the embodiments of the present application, there is provided a method for selecting a content delivery network link, applied to a client, including:
acquiring at least two content distribution network links to be selected;
determining service data to be transmitted, and transmitting the service data to be transmitted to a server through each content distribution network link to be selected respectively, wherein the size of the service data to be transmitted is larger than a preset threshold value;
receiving response information corresponding to each content distribution network link to be selected returned by the server, and determining the round-trip delay of each content distribution network link to be selected;
and selecting a target content distribution network link from the at least two content distribution network links to be selected based on the round trip delay of each content distribution network link to be selected.
According to a second aspect of the embodiments of the present application, there is provided a device for selecting a content distribution network link, applied to a client, including:
the acquisition module is configured to acquire at least two content distribution network links to be selected;
the system comprises a determining module, a sending module and a receiving module, wherein the determining module is configured to determine to-be-transmitted service data and transmit the to-be-transmitted service data to a server through each to-be-selected content distribution network link respectively, and the size of the to-be-transmitted service data is larger than a preset threshold value;
the receiving module is configured to receive response information corresponding to each to-be-selected content distribution network link returned by the server and determine the round-trip delay of each to-be-selected content distribution network link;
a selection module configured to select a target content distribution network link among the at least two content distribution network links to be selected based on a round trip delay of each content distribution network link to be selected.
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 when executing the computer instructions implementing the steps of the method of selecting a content distribution network link.
According to a fourth aspect of embodiments herein, there is provided a computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the method of selecting a content distribution network link.
The method for selecting the content distribution network link, which is applied to the client, comprises the following steps: acquiring at least two content distribution network links to be selected; determining service data to be transmitted, and transmitting the service data to be transmitted to a server through each content distribution network link to be selected respectively, wherein the size of the service data to be transmitted is larger than a preset threshold value; receiving response information corresponding to each content distribution network link to be selected returned by the server, and determining the round-trip delay of each content distribution network link to be selected; and selecting a target content distribution network link from the at least two content distribution network links to be selected based on the round trip delay of each content distribution network link to be selected. By the method for selecting the content delivery network link, real data transmission requests can be simulated, and the optimal CDN link can be selected more accurately by comparing the time consumed by the request of each CDN link in a round trip mode.
Drawings
Fig. 1 is a flowchart of a method for selecting a content distribution network link according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an architecture of a content distribution network link provided by an embodiment of the present application;
fig. 3 is a process flow diagram of a method for selecting a content distribution network link applied to a video transmission scenario according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a selection apparatus of a content distribution network link according to an embodiment of the present application;
fig. 5 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.
RTT: round-trip Time, i.e., Round-trip delay. RTT is the interval of time from the completion of data transmission to the receipt of an acknowledgement signal.
HTTP: the hypertext Transfer Protocol (Hypertext Transfer Protocol) is a request and response standard between a client and a server. Common HTTP protocols include GET and POST methods.
In the existing CDN service, when there are multiple upstream or downstream CDN links, a GET method of an HTTP protocol is usually used to send a very small file (only a few bytes), which can only detect one RTT time from a client to a server.
Based on this, in the present application, a method for selecting a content distribution network link is provided, and the present application simultaneously relates to a device for selecting a content distribution network link, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments one by one.
Fig. 1 is a flowchart illustrating a method for selecting a content distribution network link, which is applied to a client according to an embodiment of the present application, and specifically includes the following steps:
step 102: and acquiring at least two content distribution network links to be selected.
In practical application, a plurality of CDN links are usually provided for a user to select, and processing requests between different CDN links are different due to the number of networks and nodes. In the method for selecting a content delivery network link provided by the present application, the best CDN link is selected from at least two CDN links to execute a service request.
Specifically, the obtaining of at least two links of the content distribution network to be selected includes:
sending a link acquisition request to a server;
and acquiring at least two links of the content distribution network to be selected, which are returned by the server in response to the link acquisition request.
In practical applications, when a user needs to upload or download data using a CDN link, a link acquisition request is usually sent to a server, where the link acquisition request is a request sent to a CDN link scheduling system of the server to acquire an available CDN link. After receiving a link acquisition request sent by the client, the server sends available CDN links to the client, and the CDN links returned by the server to the client are all CDN links to be selected.
In a specific embodiment provided by the present application, taking three candidate content distribution networks as an example, a client sends a link acquisition request to a server, and the server responds to the link acquisition request and returns a candidate content distribution network to the client: CDN-1, CDN-2, and CDN-3.
Step 104: determining service data to be transmitted, and transmitting the service data to be transmitted to a server through each content distribution network link to be selected respectively, wherein the size of the service data to be transmitted is larger than a preset threshold value.
The method includes that service data to be transmitted is test data used for detecting a CDN link to be selected, in an existing link detection method, a data package with only a few bytes is generally used for detecting round-trip delay of a line, a real use scene of a user cannot be accurately simulated, in order to simulate real uploading or downloading data of the user, the service data to be transmitted needs to have a certain volume, namely the size of the service data to be transmitted is larger than a preset threshold value, the preset threshold value can be determined according to the size of the data package in an actual data transmission process, and can also be dynamically determined according to actual conditions, for example, in actual application, when data transmission is carried out, the data is generally divided into data packages with the size of 1M for transmission, and the preset threshold value can be set to be 1M; or the preset threshold may be determined according to the data transmission record in the past preset time interval, and the value method of the preset threshold is not limited in the present application.
Preferably, the size of the service data to be transmitted may be determined according to a specific service scenario, and specifically, determining the service data to be transmitted includes:
acquiring a target service identifier;
and determining the service data to be transmitted based on the target service identification.
The target service identifier specifically refers to a specific service that needs to use a CDN link for data transmission, such as a video transmission service, an audio transmission service, and the like, and then, according to the target service identifier, corresponding service data to be transmitted can be determined, and different service identifiers can correspond to different service data to be transmitted, for example, in a video transmission scenario, the service data to be transmitted can be 3MB (megabyte); in an audio transmission scene, the service data to be transmitted may be 1 MB; in the document transmission scenario, the service data to be transmitted may be 500KB, and so on. It should be noted that, in practical application, the size and/or type of the service data to be transmitted may be determined according to the target service identifier, for example, for a video transmission scene, the service data to be transmitted may be a video file, and the size may be 5 MB; for an audio transmission scene, the service data to be transmitted can be an audio file, and the size can be 1 MB; for a document transmission scenario, the service data to be transmitted may be a text file, and the size may be 500KB, and so on.
In order to facilitate a client to quickly determine service data to be transmitted according to a target service identifier, the determining of the service data to be transmitted based on the target service identifier includes:
and determining the service data to be transmitted in a preset database according to the target service identifier.
In practical applications, the service data to be transmitted corresponding to different service identifiers may be pre-stored in a preset database, where the preset database is used to store the service identifiers and the service data to be transmitted corresponding to the service identifiers. The service data to be transmitted and the service identification are correspondingly stored in the preset database, so that the corresponding service identification to be transmitted can be quickly determined after the target service identification is determined, time delay caused by searching for the proper service identification to be transmitted is avoided, and the processing efficiency can be effectively improved.
After the service data to be transmitted are determined, the same data transmission request is used for transmitting the service data to be transmitted to the server through each CDN link, the data transmission request can be an HTTP POST request or an HTTP GET request, in order to guarantee the fairness of detecting CDN links to be selected, the same data transmission request is used for transmitting the same service data to be transmitted, detection is carried out on a plurality of CDN links to be selected concurrently, the detection data can be accelerated, and the detection efficiency is improved.
In a specific embodiment provided by the application, an audio transmission scene is taken as an example, service data D to be transmitted corresponding to the audio transmission scene is determined, wherein the size of the service data D to be transmitted is 1MB, at this time, there are 3 CDN links to be selected, and an HTTP GET request is used to transmit the service data D to be transmitted to a server through a CDN-1, a CDN-2, and a CDN-3, respectively.
Optionally, determining to-be-transmitted service data further includes:
acquiring network information of the client;
and determining the size of the service data to be transmitted according to the network information.
In practical application, determining the size of the service data to be transmitted is also related to network information of a network environment where a client is located, and determining the service data to be transmitted according to the network information where the client is located, for example, when the client is in a WIFI environment and a target service identifier is video transmission, selecting the service data to be transmitted with a larger volume to perform link detection, for example, the volume of the service data to be transmitted is 10 MB; when the client uses the cellular data and the uploaded file is small, the small service data to be transmitted can be selected for link detection, for example, the volume of the service data to be transmitted is 0.1 MB.
Step 106: and receiving response information corresponding to each to-be-selected content distribution network link returned by the server, and determining the round-trip delay of each to-be-selected content distribution network link.
In the present application, a client sends a data transmission request to a server through different CDN links, and the server also returns response information corresponding to each CDN link to the client according to the different CDN links, where in actual application, the response information may not include any content, and may also include link description information, such as information about a CND link identifier, a client IP address, a node load state, time consumed for the request, and the like, for example, the client sends service data to be transmitted to the server through a CDN-1 link, and the server returns response information corresponding to the CDN-1 to the client through the CDN-1 after receiving the service data to be transmitted, where the response information may be empty, and may include link description information related to the CDN-1, and specific content of the response information is not limited in the present application.
Round-trip Time (RTT) is a Time interval from the end of data transmission to the Time when the acknowledgment signal is received, and the lower the Round-trip Time, the faster the data transmission speed. After response information of each to-be-selected CDN link returned by the server is received, the round-trip delay of the CDN link can be determined according to the time point of sending the request by the client and the time point of receiving the response information returned by the server by the client.
In a specific embodiment provided by the application, still taking an audio transmission scene as an example, response information M-1 of the CDN-1, response information M-2 of the CDN-2, and response information M-3 of the CDN-3 returned by the server are respectively received, and then a round-trip delay corresponding to each CDN link is determined according to a sending time point of service data to be transmitted.
Step 108: and selecting a target content distribution network link from the at least two content distribution network links to be selected based on the round trip delay of each content distribution network link to be selected.
After the round-trip delay of each to-be-selected CDN link is determined, a target CDN link may be selected according to the round-trip delay of the to-be-selected CDN link, where the target CDN link is a CDN link that is finally selected for use by the method for selecting a content delivery network link provided by the present application.
In practical application, selecting a target content distribution network link from the at least two content distribution network links to be selected based on the round trip delay of each content distribution network link to be selected specifically includes:
and determining the to-be-selected content distribution network link with the shortest round trip delay as a target content distribution network link.
In practical application, the shorter the round-trip delay is, the faster the data transmission speed is, and the shorter the round-trip delay of the CND link is, the higher the quality of the CDN link is. Therefore, the CDN links with the shortest round trip delay are preferable to the target CDN link.
In a specific embodiment provided by the present application, taking three CDN links to be selected as an example, if a round-trip delay of the CDN-1 is 50ms (milliseconds), a round-trip delay of the CDN-2 is 30ms, and a round-trip delay of the CDN-3 is 68ms, it may be determined that the round-trip delay of the CDN-2 is the shortest, and then the CDN-2 is determined to be the target CDN.
In another specific embodiment provided herein, the method further comprises:
transmitting target service data to the server through the target content distribution network link;
monitoring the data transmission time of the target content distribution network link;
and under the condition that the data transmission time exceeds a preset time threshold, determining a new target content distribution network link from the content distribution network links to be selected, and transmitting the target service data through the new target content distribution network link.
In practical application, after the target CDN is determined, the service data may be transmitted through the target CDN, and in a data transmission process, a problem of a network failure or a data transmission failure caused by a node jam on a CND link often occurs, so that data transmission time of the target CDN needs to be monitored in real time, and when the data transmission time exceeds a preset time threshold, that is, when the data transmission time is overtime, it is indicated that the CDN link fails, a new target CDN link needs to be determined again in other CDN links, and the target service data is transmitted through the new CND link, thereby ensuring smooth performance of the target service.
Specifically, determining a new target content distribution network link from the candidate content distribution network links includes:
and selecting the content distribution network link with the shortest round trip delay from the content distribution network links to be selected as a new target content distribution network link.
Specifically, when the target CDN link is abnormal and cannot be used normally, a new target CDN needs to be further selected from the remaining CDN links to be selected, that is, the CDN link to be selected with the shortest round-trip delay needs to be selected as the target CDN link from the remaining CDN links to be selected.
In a specific embodiment provided by the present application, CDN-2 is selected as a target CDN link, and in a data transmission process, if a CDN-2 is abnormal, a new target CDN link needs to be selected from CDN-1 and CDN-3, and if the round-trip delay of CDN-1 is calculated as 50ms and the round-trip delay of CDN-3 is calculated as 68ms, CDN-1 is selected as the new target CDN link.
In practical application, in order to conveniently and quickly determine which CDN link has the lowest round-trip delay, service data to be transmitted may be sent to a server through each CDN link at the same time point, and then the round-trip delay of which CDN link is determined to be the lowest according to the time of response information of each CDN link received by a client, for example, the client transmits the service data to be transmitted to the server through CDN-1, CDN-2, and CDN-3 at the same time, and then, the sequence in which the client receives responses is CDN-2, CDN-1, and CDN-3, it may be determined that the round-trip delay of CDN-2 is the shortest, and CDN-2 is the best line.
It should be noted that if no response information is returned by any CDN over a preset time period, one CDN link is randomly selected as a target CDN from at least two CDN links to be selected, so as to ensure that a data transmission task can be performed smoothly.
The method for selecting the content distribution network link, which is applied to the client, comprises the following steps: acquiring at least two content distribution network links to be selected; determining service data to be transmitted, and transmitting the service data to be transmitted to a server through each content distribution network link to be selected respectively, wherein the size of the service data to be transmitted is larger than a preset threshold value; receiving response information corresponding to each content distribution network link to be selected returned by the server, and determining the round-trip delay of each content distribution network link to be selected; and selecting a target content distribution network link from the at least two content distribution network links to be selected based on the round trip delay of each content distribution network link to be selected. According to the method for selecting the content delivery network link, the real data transmission request is simulated by uploading or downloading the data to be transmitted which exceeds a certain size, and the optimal CDN link is selected more accurately by comparing the time consumed by the request of each CDN link in a round trip.
The following will further describe the method for selecting a content distribution network link, by taking an application of the method for selecting a content distribution network link provided in the present application in a video transmission scene as an example, with reference to fig. 2 and fig. 3. Fig. 2 shows a schematic architecture diagram of a content delivery network provided in an embodiment of the present application, and as shown in fig. 2, the embodiment of the present application includes a client C and a server S, three CDN links are CDN-A, CDN-B and CDN-C, respectively, the client C sends service data V to be transmitted to the server S through the CDN-A, CDN-B and the CDN-C, respectively, and a target CDN link is selected through round-trip delay of each CDN link.
Fig. 3 shows a processing flow chart of a method for selecting a content distribution network link applied to a video transmission scenario according to an embodiment of the present application, which specifically includes the following steps:
step 302: and the client C sends a link acquisition request to the server S and acquires the CDN-A, CDN-B and the CDN-C returned by the server S.
In the specific embodiment provided by the application, a user watches a video by using a client C, a link acquisition request is sent to a server S by the client C, and the server S returns three CDN links to be selected, namely DN-A, CDN-B and CDN-C, to the client C.
Step 304: and the client C determines the service data V to be transmitted according to the video task identifier, wherein the size of the service data V to be transmitted is 10 MB.
In the specific embodiment provided by the application, a user watches a video through a client C, determines the service data V to be transmitted according to a video task identifier, determines the size of the service data V to be transmitted to be 10MB based on a WIFI environment and a video task when the client C is in the WIFI environment,
step 306: and the client C transmits the service data V to be transmitted to the server S through the CDN-A, CDN-B and the CDN-C respectively at the same time point.
In the specific embodiment provided by the application, at the same time point, the service data V to be transmitted are transmitted to the server S through the CDN-A, CDN-B and the CDN-C in parallel, respectively.
Step 308: and receiving response information corresponding to each to-be-selected content delivery network link returned by the server S, and determining that the sequence of the response information returned by the three CDNs is CDN-B, CDN-C and CDN-A respectively.
In the specific embodiment provided by the application, the client C receives the response information corresponding to each CDN link to be selected, which is returned by the server S through each CDN link to be selected, and determines that the order of the response information returned by the three CDN links to be selected is CDN-B, CDN-C and CDN-A, that is, the response information returned by the CDN-B is received first, then the response information returned by the CND-C is received, and finally the response information returned by the CDN-A is received.
Step 310: and determining the CDN-B with the shortest round trip delay as the target CDN.
In the specific embodiment provided by the application, the shortest round-trip delay of the CDN-B can be determined according to the time point at which the client C receives the response information returned by each CDN link, that is, the CDN-B is determined to be the target CDN.
Step 312: and transmitting the video through the CDN-B, and monitoring the data transmission time.
In the specific embodiment provided by the application, a video is transmitted through the CDN-B, and the data transmission time for data transmission through the CND-B is monitored.
Step 314: and under the condition that the data transmission time is overtime, stopping using the CDN-B to transmit data, and selecting the CDN-C as a new target CDN.
In the specific embodiment provided by the application, if the data transmission time is overtime, it is indicated that a CDN-B link fails, in order to ensure that video data can be normally transmitted, the client C stops using the CDN-B to transmit data, and selects a CDN with the shortest round-trip delay among the remaining CDN links to be selected as a new target CDN, that is, selects the CDN-C as the new target CDN.
The method for selecting the content distribution network link, which is applied to the client, comprises the following steps: acquiring at least two content distribution network links to be selected; determining service data to be transmitted, and transmitting the service data to be transmitted to a server through each content distribution network link to be selected respectively, wherein the size of the service data to be transmitted is larger than a preset threshold value; receiving response information corresponding to each content distribution network link to be selected returned by the server, and determining the round-trip delay of each content distribution network link to be selected; and selecting a target content distribution network link from the at least two content distribution network links to be selected based on the round trip delay of each content distribution network link to be selected. According to the method for selecting the content delivery network link, the real data transmission request is simulated by uploading or downloading the data to be transmitted which exceeds a certain size, and the optimal CDN link is selected more accurately by comparing the time consumed by the request of each CDN link in a round trip.
Corresponding to the above embodiment of the method for selecting a content distribution network link, the present application also provides an embodiment of a device for selecting a content distribution network link, and fig. 4 shows a schematic structural diagram of a device for selecting a content distribution network link provided in an embodiment of the present application. As shown in fig. 4, the apparatus is applied to a client, and includes:
an obtaining module 402, configured to obtain at least two content distribution network links to be selected;
a determining module 404, configured to determine service data to be transmitted, and transmit the service data to be transmitted to a server through each content distribution network link to be selected, where the size of the service data to be transmitted is greater than a preset threshold;
a receiving module 406, configured to receive response information corresponding to each to-be-selected content distribution network link returned by the server, and determine a round-trip delay of each to-be-selected content distribution network link;
a selecting module 408 configured to select a target content distribution network link among the at least two content distribution network links based on a round trip delay of each of the content distribution network links.
Optionally, the determining module 404 is further configured to:
acquiring a target service identifier;
and determining the service data to be transmitted based on the target service identification.
Optionally, the determining module 404 is further configured to:
and determining the service data to be transmitted in a preset database according to the target service identifier.
Optionally, the obtaining module 402 is further configured to:
sending a link acquisition request to the server;
and acquiring at least two links of the content distribution network to be selected, which are returned by the server in response to the link acquisition request.
Optionally, the selecting module 408 is further configured to:
and determining the to-be-selected content distribution network link with the shortest round trip delay as a target content distribution network link.
Optionally, the apparatus further comprises:
a transmission module configured to transmit target service data to the server through the target content distribution network link;
a monitoring module configured to monitor a data transmission time of the target content distribution network link;
and the switching module is configured to determine a new target content distribution network link from the content distribution network links to be selected and transmit the target service data through the new target content distribution network link under the condition that the data transmission time exceeds a preset time threshold.
Optionally, the switching module is further configured to:
and selecting the content distribution network link with the shortest round trip delay from the content distribution network links to be selected as a new target content distribution network link.
Optionally, the response information includes link description information.
Optionally, the determining module 404 is further configured to:
acquiring network information of the client;
and determining the size of the service data to be transmitted according to the network information.
The application provides a selection device of a content distribution network link, which is applied to a client and comprises: acquiring at least two content distribution network links to be selected; determining service data to be transmitted, and transmitting the service data to be transmitted to a server through each content distribution network link to be selected respectively, wherein the size of the service data to be transmitted is larger than a preset threshold value; receiving response information corresponding to each content distribution network link to be selected returned by the server, and determining the round-trip delay of each content distribution network link to be selected; and selecting a target content distribution network link from the at least two content distribution network links to be selected based on the round trip delay of each content distribution network link to be selected. According to the selection device for the content delivery network link, the real data transmission request is simulated by uploading or downloading the data to be transmitted which exceeds a certain size, and the optimal CDN link is selected more accurately by comparing the time consumed by the request of each CDN link in a round trip.
The above is an exemplary scheme of a selection apparatus of a content distribution network link according to this embodiment. It should be noted that the technical solution of the selection apparatus of the content distribution network link and the technical solution of the selection method of the content distribution network link belong to the same concept, and details that are not described in detail in the technical solution of the selection apparatus of the content distribution network link can be referred to the description of the technical solution of the selection method of the content distribution network link.
Fig. 5 illustrates a block diagram of a computing device 500 provided according to an embodiment of the present application. The components of the computing device 500 include, but are not limited to, a memory 510 and a processor 520. Processor 520 is coupled to memory 510 via bus 530, and database 550 is used to store data.
Computing device 500 also includes access device 540, access device 540 enabling computing device 500 to communicate via one or more networks 560. 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 540 may include one or more of any type of network interface, e.g., a Network Interface Card (NIC), 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 500 and other components not shown in FIG. 5 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. 5 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 500 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 500 may also be a mobile or stationary server.
Wherein processor 520, when executing said computer instructions, performs the steps of said method for selecting a content distribution network link.
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 above-mentioned method for selecting a content distribution network link 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 above-mentioned method for selecting a content distribution network link.
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 method for selecting a content distribution network link 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 and the technical solution of the method for selecting a content distribution network link described above belong to the same concept, 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 method for selecting a content distribution network link 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 selecting a content distribution network link, applied to a client, includes:
acquiring at least two content distribution network links to be selected;
determining service data to be transmitted, and transmitting the service data to be transmitted to a server through each content distribution network link to be selected respectively, wherein the size of the service data to be transmitted is larger than a preset threshold value;
receiving response information corresponding to each content distribution network link to be selected returned by the server, and determining the round-trip delay of each content distribution network link to be selected;
and selecting a target content distribution network link from the at least two content distribution network links to be selected based on the round trip delay of each content distribution network link to be selected.
2. The method for selecting a content distribution network link according to claim 1, wherein determining the traffic data to be transmitted comprises:
acquiring a target service identifier;
and determining the service data to be transmitted based on the target service identification.
3. The method for selecting a content distribution network link according to claim 2, wherein determining the service data to be transmitted based on the target service identifier comprises:
and determining the service data to be transmitted in a preset database according to the target service identifier.
4. The method for selecting content delivery network links according to claim 1, wherein obtaining at least two content delivery network links to be selected comprises:
sending a link acquisition request to the server;
and acquiring at least two links of the content distribution network to be selected, which are returned by the server in response to the link acquisition request.
5. The method for selecting content distribution network links according to claim 1, wherein selecting a target content distribution network link among the at least two candidate content distribution network links based on a round trip delay of each candidate content distribution network link comprises:
and determining the to-be-selected content distribution network link with the shortest round trip delay as a target content distribution network link.
6. The method for selecting a content distribution network link according to claim 5, wherein the method further comprises:
transmitting target service data to the server through the target content distribution network link;
monitoring the data transmission time of the target content distribution network link;
and under the condition that the data transmission time exceeds a preset time threshold, determining a new target content distribution network link from the content distribution network links to be selected, and transmitting the target service data through the new target content distribution network link.
7. The method for selecting content delivery network links according to claim 6, wherein determining a new target content delivery network link from the candidate content delivery network links comprises:
and selecting the content distribution network link with the shortest round trip delay from the content distribution network links to be selected as a new target content distribution network link.
8. The method for selecting a content distribution network link of claim 1, wherein the response information includes link description information.
9. The method for selecting a content distribution network link according to any of claims 1 to 8, wherein determining the traffic data to be transmitted further comprises:
acquiring network information of the client;
and determining the size of the service data to be transmitted according to the network information.
10. A device for selecting a content distribution network link, applied to a client, comprising:
the acquisition module is configured to acquire at least two content distribution network links to be selected;
the system comprises a determining module, a sending module and a receiving module, wherein the determining module is configured to determine to-be-transmitted service data and transmit the to-be-transmitted service data to a server through each to-be-selected content distribution network link respectively, and the size of the to-be-transmitted service data is larger than a preset threshold value;
the receiving module is configured to receive response information corresponding to each to-be-selected content distribution network link returned by the server and determine the round-trip delay of each to-be-selected content distribution network link;
a selection module configured to select a target content distribution network link among the at least two content distribution network links to be selected based on a round trip delay of each content distribution network link to be selected.
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 computer 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.
CN202110690939.5A 2021-06-22 2021-06-22 Method and device for selecting content distribution network link Pending CN113422728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110690939.5A CN113422728A (en) 2021-06-22 2021-06-22 Method and device for selecting content distribution network link

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110690939.5A CN113422728A (en) 2021-06-22 2021-06-22 Method and device for selecting content distribution network link

Publications (1)

Publication Number Publication Date
CN113422728A true CN113422728A (en) 2021-09-21

Family

ID=77789780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110690939.5A Pending CN113422728A (en) 2021-06-22 2021-06-22 Method and device for selecting content distribution network link

Country Status (1)

Country Link
CN (1) CN113422728A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205296A (en) * 2021-12-16 2022-03-18 北京有竹居网络技术有限公司 Network access method, device, medium and electronic equipment
CN114268936A (en) * 2022-03-01 2022-04-01 荣耀终端有限公司 Data transmission method and device
CN114615337A (en) * 2022-01-27 2022-06-10 网宿科技股份有限公司 Equipment scheduling method, system, server and storage medium
CN115460124A (en) * 2022-09-05 2022-12-09 中国银行股份有限公司 Method, device, equipment and storage medium for cross-machine room transmission link optimization
CN115766564A (en) * 2022-10-25 2023-03-07 阿里巴巴(中国)有限公司 Data transmission method and device
CN117459449A (en) * 2023-12-20 2024-01-26 深圳市视晶无线技术有限公司 Communication method and device based on multiple links

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108696449A (en) * 2018-05-09 2018-10-23 清华大学 A kind of data dispatching method and device
CN109039424A (en) * 2018-07-18 2018-12-18 北京邮电大学 Network communication path determines method, apparatus and electronic equipment between Satellite
CN109743259A (en) * 2018-12-24 2019-05-10 中国联合网络通信集团有限公司 A kind of network traffic scheduling method and device
CN111294881A (en) * 2020-02-07 2020-06-16 北京小米移动软件有限公司 Network link switching method and device, client and computer readable storage medium
CN111431803A (en) * 2020-03-27 2020-07-17 中国联合网络通信集团有限公司 A routing method and device
CN111669285A (en) * 2020-05-08 2020-09-15 广州微算互联信息技术有限公司 Network detection data processing method, system and storage medium
CN111770140A (en) * 2020-06-09 2020-10-13 成都中云天下科技有限公司 Communication method, user equipment and proxy server cluster
CN111953551A (en) * 2020-08-27 2020-11-17 网易(杭州)网络有限公司 Log data transmission method and device, electronic equipment and storage medium
CN112291816A (en) * 2020-11-13 2021-01-29 Oppo广东移动通信有限公司 Data transmission method, device, storage medium and electronic device
CN112996031A (en) * 2019-12-12 2021-06-18 烽火通信科技股份有限公司 PPP link selection method and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108696449A (en) * 2018-05-09 2018-10-23 清华大学 A kind of data dispatching method and device
CN109039424A (en) * 2018-07-18 2018-12-18 北京邮电大学 Network communication path determines method, apparatus and electronic equipment between Satellite
CN109743259A (en) * 2018-12-24 2019-05-10 中国联合网络通信集团有限公司 A kind of network traffic scheduling method and device
CN112996031A (en) * 2019-12-12 2021-06-18 烽火通信科技股份有限公司 PPP link selection method and system
CN111294881A (en) * 2020-02-07 2020-06-16 北京小米移动软件有限公司 Network link switching method and device, client and computer readable storage medium
CN111431803A (en) * 2020-03-27 2020-07-17 中国联合网络通信集团有限公司 A routing method and device
CN111669285A (en) * 2020-05-08 2020-09-15 广州微算互联信息技术有限公司 Network detection data processing method, system and storage medium
CN111770140A (en) * 2020-06-09 2020-10-13 成都中云天下科技有限公司 Communication method, user equipment and proxy server cluster
CN111953551A (en) * 2020-08-27 2020-11-17 网易(杭州)网络有限公司 Log data transmission method and device, electronic equipment and storage medium
CN112291816A (en) * 2020-11-13 2021-01-29 Oppo广东移动通信有限公司 Data transmission method, device, storage medium and electronic device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205296A (en) * 2021-12-16 2022-03-18 北京有竹居网络技术有限公司 Network access method, device, medium and electronic equipment
WO2023109479A1 (en) * 2021-12-16 2023-06-22 北京有竹居网络技术有限公司 Network access method and apparatus, and medium and electronic device
EP4432625A4 (en) * 2021-12-16 2025-03-19 Beijing Youzhuju Network Tech Co Ltd Network access method and device, as well as medium and electronic device
CN114615337A (en) * 2022-01-27 2022-06-10 网宿科技股份有限公司 Equipment scheduling method, system, server and storage medium
CN114615337B (en) * 2022-01-27 2024-04-12 网宿科技股份有限公司 Device scheduling method, system, server and storage medium
CN114268936A (en) * 2022-03-01 2022-04-01 荣耀终端有限公司 Data transmission method and device
CN115460124A (en) * 2022-09-05 2022-12-09 中国银行股份有限公司 Method, device, equipment and storage medium for cross-machine room transmission link optimization
CN115460124B (en) * 2022-09-05 2024-03-01 中国银行股份有限公司 Method, device, equipment and storage medium for optimizing transmission link across machine room
CN115766564A (en) * 2022-10-25 2023-03-07 阿里巴巴(中国)有限公司 Data transmission method and device
CN117459449A (en) * 2023-12-20 2024-01-26 深圳市视晶无线技术有限公司 Communication method and device based on multiple links
CN117459449B (en) * 2023-12-20 2024-03-22 深圳市视晶无线技术有限公司 Communication method and device based on multiple links

Similar Documents

Publication Publication Date Title
CN113422728A (en) Method and device for selecting content distribution network link
US10972967B2 (en) Wi-Fi hotspot recommendation method, terminal, and graphical user interface
CN101917488B (en) BT download method, device and system
US8706871B2 (en) Tag latency monitoring and control system for enhanced web page performance
CN103457973A (en) Image uploading method and system, image uploading client terminal and network server
CN106170970B (en) Assess the QOE of the service in communication network
US20170142196A1 (en) Method and apparatus for selecting source server
CN105812435A (en) Application upgrading data package processing method and device, electronic equipment, and system
CN105208065A (en) File transmitting method and device
CN110445824B (en) NB-IoT data reporting method, device, system and computer-readable storage medium
CN114760482A (en) Live broadcast source returning method and device
CN113032223B (en) Server state detection method and device
US8972569B1 (en) Remote and real-time network and HTTP monitoring with real-time predictive end user satisfaction indicator
CN114679604A (en) Resource processing method and device
US10244550B2 (en) Technique for scheduling transmission of content in an access network
CN107509097B (en) Video sharing method and device and sharing server
CN111770186A (en) Multi-content distribution network load balancing method and device
CN107526758B (en) Message push method and device
US20200186618A1 (en) System for data transfer based on associated transfer paths
US10412778B2 (en) Data transmission method and apparatus for data service
CN113422739B (en) Data transmission method, sending end and data transmission system
CN110198349B (en) File transmission method and device, storage medium and electronic device
WO2017005118A1 (en) Method, device, terminal and server for maintaining communication connection
CN110891077A (en) CDN node detection method and device
CN115086194A (en) Data transmission method for cloud application, computing equipment and computer storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210921

RJ01 Rejection of invention patent application after publication
OSZAR »